Lines Matching defs:namespace
79 const namespace = this.#getNamespace();
81 if (!await this.#checkACLs(namespace)) {
86 const $form = jQuery(this.#buildForm(namespace));
101 * Check if the user has the right to create a diagram in the given namespace
103 * @param {string} namespace
106 async #checkACLs(namespace) {
109 '&ns=' + encodeURIComponent(namespace);
120 * Extract the namespace from the page
128 let namespace = '';
130 namespace = fullScreenNS.textContent;
132 namespace = popupNS.textContent;
134 throw new Error('Could not find namespace'); //should not happen
138 // because it is not a real namespace
139 return namespace.replace(/^:|\[.*\]$/, '');
154 const namespace = document.createElement('strong');
155 namespace.innerText = ':'+ns;
156 intro.appendChild(namespace);
174 * Open the diagram editor for the given namespace and filename
176 * @param {string} namespace The current namespace
180 async #createDiagram(namespace, input, event) {
191 const svg = namespace + ':' + id + '.svg';
200 url.searchParams.set('ns', namespace);