diff --git a/simple.xqm b/simple.xqm new file mode 100644 index 0000000..c98233b --- /dev/null +++ b/simple.xqm @@ -0,0 +1,4 @@ +module namespace _='apb.test'; +declare function _:A($a){ + $a+2 +}; \ No newline at end of file diff --git a/src/vue-poc/api.xqm b/src/vue-poc/api.xqm index d48c547..96fc3f2 100644 --- a/src/vue-poc/api.xqm +++ b/src/vue-poc/api.xqm @@ -70,6 +70,7 @@ something } }; + (:~ : Returns wadl. :) diff --git a/src/vue-poc/components/vue-ace.vue b/src/vue-poc/components/vue-ace.vue index 3054beb..711eb27 100644 --- a/src/vue-poc/components/vue-ace.vue +++ b/src/vue-poc/components/vue-ace.vue @@ -25,6 +25,7 @@ event fired cmd outline beforeContent: '', aceSettings:{ theme: "github", + themeDark: "chaos", keybinding: "ace", fontsize: 16, enableSnippets:true, @@ -88,8 +89,14 @@ event fired cmd outline }]); }, + setTheme(){ + var theme=this.$vuetify.theme.dark ? this.aceSettings.themeDark : this.aceSettings.theme; + this.editor.setTheme(`ace/theme/${theme}`) + }, + applySettings(aceSettings){ - this.editor.setTheme(`ace/theme/${aceSettings.theme}`) + var theme=this.$vuetify.theme.dark?aceSettings.themeDark:aceSettings.theme; + this.editor.setTheme(`ace/theme/${theme}`) //this.editor.setKeyboardHandler(`ace/keyboard//${aceSettings.keybinding}`) this.editor.setFontSize(parseInt(aceSettings.fontsize,10)) this.editor.setOptions({ @@ -102,6 +109,11 @@ event fired cmd outline } }, + watch: { + // whenever theme changes, this function will run + "$vuetify.theme.dark": function (newState) {this.setTheme()} + }, + mounted () { const mode = this.mode || 'text' const wrap = this.wrap || false diff --git a/src/vue-poc/core.js b/src/vue-poc/core.js index efacd1c..da7469e 100644 --- a/src/vue-poc/core.js +++ b/src/vue-poc/core.js @@ -59,6 +59,7 @@ var Settings = { "settings/ace": { theme: "github", + themeDark: "chaos", keybinding: "ace", fontsize: 16, enableSnippets:true, @@ -86,12 +87,12 @@ return $a `}, "edit/currentId": "?", "images/thumbtask":` - + Some Text here - + diff --git a/src/vue-poc/data/vue-poc/entities/basexlogfile.xml b/src/vue-poc/data/vue-poc/entities/basexlogfile.xml index b4e6d74..7b6cb7b 100644 --- a/src/vue-poc/data/vue-poc/entities/basexlogfile.xml +++ b/src/vue-poc/data/vue-poc/entities/basexlogfile.xml @@ -2,6 +2,10 @@ saved BaseX log entries in the vue-poc database + + log date + text()!fn:replace(.,".*(\d{4}-\d{2}-\d{2}).*","$1") + file name . diff --git a/src/vue-poc/data/vue-poc/entities/namespace.xml b/src/vue-poc/data/vue-poc/entities/namespace.xml index df2d585..bf08604 100644 --- a/src/vue-poc/data/vue-poc/entities/namespace.xml +++ b/src/vue-poc/data/vue-poc/entities/namespace.xml @@ -1,5 +1,6 @@ An XML namespace + namespace @@ -11,13 +12,13 @@ about the namespace - description + qns:description xmlns description - collection("vue-poc")/namespaces/namespace + db:open("vue-poc","namespaces.xml")/qns:namespaces/qns:namespace \ No newline at end of file diff --git a/src/vue-poc/data/vue-poc/namespaces.xml b/src/vue-poc/data/vue-poc/namespaces.xml index 3367168..29c4a55 100644 --- a/src/vue-poc/data/vue-poc/namespaces.xml +++ b/src/vue-poc/data/vue-poc/namespaces.xml @@ -1,5 +1,5 @@ - + XML core features diff --git a/src/vue-poc/expath-pkg.xml b/src/vue-poc/expath-pkg.xml index 2ac83f9..059c044 100644 --- a/src/vue-poc/expath-pkg.xml +++ b/src/vue-poc/expath-pkg.xml @@ -2,5 +2,5 @@ abbrev="vue-poc" version="0.0.4" spec="1.0"> vue-poc test of vue.js. - + diff --git a/src/vue-poc/features/adminlog/logarchive.vue b/src/vue-poc/features/adminlog/basexlogdate.vue similarity index 79% rename from src/vue-poc/features/adminlog/logarchive.vue rename to src/vue-poc/features/adminlog/basexlogdate.vue index f18b47a..994d911 100644 --- a/src/vue-poc/features/adminlog/logarchive.vue +++ b/src/vue-poc/features/adminlog/basexlogdate.vue @@ -1,8 +1,5 @@ - -