* Fix bug #38377,38382,38380.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
window.openAdminer = function()
|
||||
$('#mainContent').on('click', '.db-management', function()
|
||||
{
|
||||
var dbName = $(this).data('dbname');
|
||||
var dbType = $(this).data('dbtype');
|
||||
@@ -22,25 +22,24 @@ window.openAdminer = function()
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
var reloadTimes = 0;
|
||||
window.afterPageUpdate = function()
|
||||
{
|
||||
if(reloadTimes > 100 || instanceType != 'store') return;
|
||||
if($('#statusTD').data('reload') !== true && $('#memoryRate').data('load') !== true) return;
|
||||
// $('.db-management').addClass('disabled');
|
||||
setTimeout(function()
|
||||
{
|
||||
if(reloadTimes > 100 || instanceType != 'store') return;
|
||||
if($('#statusTD').data('reload') === true || $('#memoryRate').data('load') == true)
|
||||
{
|
||||
reloadTimes++;
|
||||
fetchContent
|
||||
({
|
||||
url: $.createLink('instance', 'view', 'id=' + instanceID),
|
||||
selector: '#instanceInfoContainer',
|
||||
id: 'instanceInfoContainer',
|
||||
target: '#instanceInfoContainer',
|
||||
});
|
||||
}
|
||||
reloadTimes++;
|
||||
loadPage
|
||||
({
|
||||
url: $.createLink('instance', 'view', 'id=' + instanceID),
|
||||
selector: '#instanceInfoContainer',
|
||||
id: 'instanceInfoContainer',
|
||||
target: '#instanceInfoContainer',
|
||||
});
|
||||
}, 4000);
|
||||
}
|
||||
|
||||
|
||||
@@ -2053,7 +2053,7 @@ class InstanceModel extends model
|
||||
if($action == 'ajaxStop') return $this->canDo('stop', $instance);
|
||||
if($action == 'ajaxUninstall') return $this->canDo('uninstall', $instance);
|
||||
if($action == 'visit') return !empty($instance->domain) && $this->canDo('visit', $instance);
|
||||
if($action == 'upgrade') return !empty($instance->latestVersion);
|
||||
if($action == 'upgrade') return !empty($instance->latestVersion) && in_array($instance->status, array('stopped', 'running'));
|
||||
if($action == 'edit') return false;
|
||||
if($action == 'bindUser') return in_array($instance->appName, array('GitLab', 'Gitea', 'Gogs'));
|
||||
|
||||
|
||||
@@ -52,11 +52,10 @@ foreach($dbList as $db)
|
||||
btn
|
||||
(
|
||||
$lang->instance->management,
|
||||
setClass('btn text-primary ghost ' . $disabledClass),
|
||||
setClass('btn text-primary ghost db-management ' . $disabledClass),
|
||||
setData('dbname', $db->name),
|
||||
setData('dbtype', $db->db_type),
|
||||
setData('id', $instance->id),
|
||||
on::click('openAdminer'),
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export{M as MonacoEditor,T as TiptapEditor}from"./p-9cb0c48e.js";import"./p-fa667546.js";import"./p-0d1d1366.js";
|
||||
export{M as MonacoEditor,T as TiptapEditor}from"./p-b80ff9a8.js";import"./p-f027b047.js";import"./p-0d1d1366.js";
|
||||
//# sourceMappingURL=index.esm.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
var e;ShadowRoot.prototype["createRange"]=document.createRange.bind(document);document.head.insertAdjacentHTML("beforeend",`<style> body > div.monaco-aria-container {display: none;} </style>`);const o="tiptap-component.esm.js";const n=(e=performance.getEntriesByType("resource").find((e=>e.name.includes(o))))===null||e===void 0?void 0:e.name;if(n){const e=n.substring(0,n.length-o.length);document.head.insertAdjacentHTML("beforeend",`<link href="${e}codicon.css?t=${Date.now()}" rel="stylesheet" />`)}
|
||||
//# sourceMappingURL=p-0ac27715.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
import{b as e}from"./p-b80ff9a8.js";import"./p-f027b047.js";import"./p-0d1d1366.js";
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/var n=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var l=(e,l,a,i)=>{if(l&&typeof l==="object"||typeof l==="function"){for(let c of r(l))if(!o.call(e,c)&&c!==a)n(e,c,{get:()=>l[c],enumerable:!(i=t(l,c))||i.enumerable})}return e};var a=(e,n,t)=>(l(e,n,"default"),t&&l(t,n,"default"));var i={};a(i,e);var c={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:true},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:i.languages.IndentAction.Indent}}]};var u={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{c as conf,u as language};
|
||||
//# sourceMappingURL=p-2f984b56.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
import{r as t,h as s,F as n}from"./p-f027b047.js";const e=class{constructor(s){t(this,s);this.editor=undefined;this.forceUpdateCounter=undefined;this.toggleFullscreen=null;this.showCharCount=true}render(){const t=this.editor.storage.characterCount.characters();return s(n,null,this.showCharCount?s("span",null,t," character",t>1?"s":"","."):s("div",null),this.toggleFullscreen&&s("button",{id:"fullscreen-button",onClick:this.toggleFullscreen},"Toggle Fullscreen"))}};export{e as tiptap_editor_footer};
|
||||
//# sourceMappingURL=p-424dab77.entry.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
import{b as e}from"./p-b80ff9a8.js";import"./p-f027b047.js";import"./p-0d1d1366.js";
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var o=(e,o,i,a)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let l of n(o))if(!s.call(e,l)&&l!==i)t(e,l,{get:()=>o[l],enumerable:!(a=r(o,l))||a.enumerable})}return e};var i=(e,t,r)=>(o(e,t,"default"),r&&o(r,t,"default"));var a={};i(a,e);var l={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:a.languages.IndentAction.Indent}}],folding:{offSide:true,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}};var c={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{l as conf,c as language};
|
||||
//# sourceMappingURL=p-4699db89.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
import{conf as e,language as t}from"./p-e3cc72be.js";import"./p-b80ff9a8.js";import"./p-f027b047.js";import"./p-0d1d1366.js";
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/var s=e;var o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:t.operators,symbols:t.symbols,escapes:t.escapes,digits:t.digits,octaldigits:t.octaldigits,binarydigits:t.binarydigits,hexdigits:t.hexdigits,regexpctl:t.regexpctl,regexpesc:t.regexpesc,tokenizer:t.tokenizer};export{s as conf,o as language};
|
||||
//# sourceMappingURL=p-8ca4033a.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
import{r as t,h as i}from"./p-f027b047.js";import{P as e,a as s,r as n,q as o,E as r}from"./p-0d1d1366.js";class h{constructor({editor:t,element:i,view:e,tippyOptions:s={},shouldShow:n}){this.preventHide=false;this.shouldShow=({view:t,state:i})=>{const{selection:e}=i;const{$anchor:s,empty:n}=e;const o=s.depth===1;const r=s.parent.isTextblock&&!s.parent.type.spec.code&&!s.parent.textContent;if(!t.hasFocus()||!n||!o||!r||!this.editor.isEditable){return false}return true};this.mousedownHandler=()=>{this.preventHide=true};this.focusHandler=()=>{setTimeout((()=>this.update(this.editor.view)))};this.blurHandler=({event:t})=>{var i;if(this.preventHide){this.preventHide=false;return}if((t===null||t===void 0?void 0:t.relatedTarget)&&((i=this.element.parentNode)===null||i===void 0?void 0:i.contains(t.relatedTarget))){return}this.hide()};this.tippyBlurHandler=t=>{this.blurHandler({event:t})};this.editor=t;this.element=i;this.view=e;if(n){this.shouldShow=n}this.element.addEventListener("mousedown",this.mousedownHandler,{capture:true});this.editor.on("focus",this.focusHandler);this.editor.on("blur",this.blurHandler);this.tippyOptions=s;this.element.remove();this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options;const i=!!t.parentElement;if(this.tippy||!i){return}this.tippy=n(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:true,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions});if(this.tippy.popper.firstChild){this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler)}}update(t,i){var e,s,n;const{state:r}=t;const{doc:h,selection:l}=r;const{from:u,to:d}=l;const c=i&&i.doc.eq(h)&&i.selection.eq(l);if(c){return}this.createTooltip();const a=(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:t,state:r,oldState:i});if(!a){this.hide();return}(s=this.tippy)===null||s===void 0?void 0:s.setProps({getReferenceClientRect:((n=this.tippyOptions)===null||n===void 0?void 0:n.getReferenceClientRect)||(()=>o(t,u,d))});this.show()}show(){var t;(t=this.tippy)===null||t===void 0?void 0:t.show()}hide(){var t;(t=this.tippy)===null||t===void 0?void 0:t.hide()}destroy(){var t,i;if((t=this.tippy)===null||t===void 0?void 0:t.popper.firstChild){this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler)}(i=this.tippy)===null||i===void 0?void 0:i.destroy();this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:true});this.editor.off("focus",this.focusHandler);this.editor.off("blur",this.blurHandler)}}const l=t=>new e({key:typeof t.pluginKey==="string"?new s(t.pluginKey):t.pluginKey,view:i=>new h({view:i,...t})});r.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){if(!this.options.element){return[]}return[l({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]}});var u=undefined&&undefined.__rest||function(t,i){var e={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&i.indexOf(s)<0)e[s]=t[s];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n<s.length;n++){if(i.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n]))e[s[n]]=t[s[n]]}return e};const d=class{constructor(i){t(this,i);this.menuProps=undefined;this.editor=undefined;this.element=undefined}componentDidLoad(){if(!Boolean(this.element)||this.editor.isDestroyed){return}const{pluginKey:t="floatingMenu",tippyOptions:i={},shouldShow:e=null}=this.menuProps;const s=l({pluginKey:t,editor:this.editor,element:this.element,tippyOptions:Object.assign({placement:"left",getReferenceClientRect:()=>{const t=this.editor.view.state.selection.$anchor;const i=t.pos-t.parentOffset;return o(this.editor.view,i,i)}},i),shouldShow:e!==null&&e!==void 0?e:({view:t,state:i})=>{const{selection:e}=i;const{$anchor:s,empty:n}=e;const o=s.depth===1;return!(!t.hasFocus()||!n||!o)}});this.editor.registerPlugin(s)}render(){const t=[{icon:"ci-plus",title:"Add",action:()=>{}},{icon:"ci-more_vertical",title:"Click to tune",action:()=>{}}];return i("div",{ref:t=>this.element=t,class:"floating-menu",style:{visibility:"hidden"}},t.map(((t,e)=>{const s=t,{isHidden:n,type:o}=s,r=u(s,["isHidden","type"]);if(n&&n()){return}return o==="divider"?i("div",{class:"divider",key:e}):i("tiptap-menu-item",{itemProps:Object.assign({},r),key:e})})))}};export{d as tiptap_floating_menu};
|
||||
//# sourceMappingURL=p-c25de211.entry.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
import{b as e}from"./p-b80ff9a8.js";import"./p-f027b047.js";import"./p-0d1d1366.js";
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var l=(e,l,n,a)=>{if(l&&typeof l==="object"||typeof l==="function"){for(let d of r(l))if(!o.call(e,d)&&d!==n)t(e,d,{get:()=>l[d],enumerable:!(a=i(l,d))||a.enumerable})}return e};var n=(e,t,i)=>(l(e,t,"default"),i&&l(i,t,"default"));var a={};n(a,e);var d=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${d.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]};var u={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{s as conf,u as language};
|
||||
//# sourceMappingURL=p-c2b7d374.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
import{b as e}from"./p-b80ff9a8.js";import"./p-f027b047.js";import"./p-0d1d1366.js";
|
||||
/*!-----------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773)
|
||||
* Released under the MIT license
|
||||
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
||||
*-----------------------------------------------------------------------------*/var t=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var i=(e,i,r,m)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let l of a(i))if(!o.call(e,l)&&l!==r)t(e,l,{get:()=>i[l],enumerable:!(m=n(i,l))||m.enumerable})}return e};var r=(e,t,n)=>(i(e,t,"default"),n&&i(n,t,"default"));var m={};r(m,e);var l={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:m.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:m.languages.IndentAction.Indent}}]};var c={defaultToken:"",tokenPostfix:".xml",ignoreCase:true,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{l as conf,c as language};
|
||||
//# sourceMappingURL=p-cd03f47c.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
import{p as e,b as o}from"./p-fa667546.js";export{s as setNonce}from"./p-fa667546.js";import"./p-7646c878.js";const t=()=>{const o=import.meta.url;const t={};if(o!==""){t.resourcesUrl=new URL(".",o).href}return e(t)};t().then((e=>o([["p-2c8ba6fc",[[0,"tiptap-floating-menu",{menuProps:[16],editor:[16],element:[32]}]]],["p-be8826ab",[[0,"tiptap-editor-footer",{editor:[16],forceUpdateCounter:[2,"force-update-counter"],toggleFullscreen:[16],showCharCount:[4,"show-char-count"]}]]],["p-85eb65d7",[[1,"tiptap-editor",{createInput:[4,"create-input"],uploadUrl:[1,"upload-url"],placeholder:[1],fullscreenable:[4],resizable:[4],exposeEditor:[4,"expose-editor"],size:[1],hideMenubar:[4,"hide-menubar"],menubarMode:[1,"menubar-mode"],bubbleMenu:[4,"bubble-menu"],collaborative:[4],hocuspocus:[1],docName:[1,"doc-name"],username:[1],userColor:[1,"user-color"],editor:[32],forceUpdateCounter:[32],isFullscreen:[32],isMonaco:[32]}],[0,"tiptap-bubble-menu",{menuProps:[16],editor:[16],disabled:[4],element:[32]}],[0,"tiptap-menubar",{editor:[16],menubarMode:[2,"menubar-mode"],forceUpdateCounter:[2,"force-update-counter"],states:[8],toggleMonaco:[16],toggleFullscreen:[16]}],[0,"monaco-editor",{options:[8],initialValue:[1,"initial-value"],tiptapEditor:[16],updateInputValue:[16],setFocus:[64],getValue:[64]}],[0,"tiptap-editor-content",{editor:[16]},[[2,"click","handleClick"]]],[0,"tiptap-menu-item",{itemProps:[8,"item-props"],menubarMode:[2,"menubar-mode"]}]]]],e)));
|
||||
import{p as e,b as o}from"./p-f027b047.js";export{s as setNonce}from"./p-f027b047.js";import"./p-0ac27715.js";const t=()=>{const o=import.meta.url;const t={};if(o!==""){t.resourcesUrl=new URL(".",o).href}return e(t)};t().then((e=>o([["p-c25de211",[[0,"tiptap-floating-menu",{menuProps:[16],editor:[16],element:[32]}]]],["p-424dab77",[[0,"tiptap-editor-footer",{editor:[16],forceUpdateCounter:[2,"force-update-counter"],toggleFullscreen:[16],showCharCount:[4,"show-char-count"]}]]],["p-38ad54cb",[[1,"tiptap-editor",{name:[1],createInput:[4,"create-input"],uploadUrl:[1,"upload-url"],placeholder:[1],fullscreenable:[4],resizable:[4],exposeEditor:[4,"expose-editor"],size:[1],hideMenubar:[4,"hide-menubar"],menubarMode:[1,"menubar-mode"],bubbleMenu:[4,"bubble-menu"],collaborative:[4],hocuspocus:[1],docName:[1,"doc-name"],username:[1],userColor:[1,"user-color"],editor:[32],forceUpdateCounter:[32],isFullscreen:[32],isMonaco:[32],getHTML:[64],focusEditor:[64],blurEditor:[64]}],[2,"tiptap-bubble-menu",{menuProps:[16],editor:[16],disabled:[4],element:[32]}],[1,"tiptap-menubar",{editor:[16],menubarMode:[2,"menubar-mode"],forceUpdateCounter:[2,"force-update-counter"],states:[8],toggleMonaco:[16],toggleFullscreen:[16]}],[0,"monaco-editor",{options:[8],initialValue:[1,"initial-value"],tiptapEditor:[16],updateInputValue:[16],setFocus:[64],getValue:[64]}],[1,"tiptap-editor-content",{editor:[16]},[[2,"click","handleClick"]]],[2,"tiptap-menu-item",{itemProps:[8,"item-props"],menubarMode:[2,"menubar-mode"]}]]]],e)));
|
||||
//# sourceMappingURL=tiptap-component.esm.js.map
|
||||
Reference in New Issue
Block a user