From 744468d63108b8761cf7a20f7280e0f14997d67a Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 7 Nov 2019 13:07:42 +0000 Subject: [PATCH] vuetify 2.1.9 --- simple.xqm | 4 + src/vue-poc/api.xqm | 1 + src/vue-poc/components/vue-ace.vue | 14 +- src/vue-poc/core.js | 5 +- .../data/vue-poc/entities/basexlogfile.xml | 4 + .../data/vue-poc/entities/namespace.xml | 5 +- src/vue-poc/data/vue-poc/namespaces.xml | 2 +- src/vue-poc/expath-pkg.xml | 2 +- .../{logarchive.vue => basexlogdate.vue} | 27 +- .../{logdate.vue => basexlogdate1.vue} | 10 +- src/vue-poc/features/images/images.vue | 4 - src/vue-poc/features/images/images.xqm | 3 +- src/vue-poc/features/model/entity1.vue | 14 +- .../{model => namespaces}/namespace.vue | 0 .../{model => namespaces}/namespace1.vue | 5 +- .../features/namespaces/namespaces.xqm | 28 + src/vue-poc/features/settings/acesettings.vue | 11 +- .../features/tasks/model.build/model.vue | 3 +- .../features/tasks/model.build/tx-model.xq | 2 +- src/vue-poc/features/thumbnail/thumbnail.vue | 103 +-- src/vue-poc/features/thumbnail/thumbnail.xqm | 8 +- src/vue-poc/lib/dice.xqm | 2 +- src/vue-poc/lib/vue-compile/smoke-jsoup.xq | 2 + src/vue-poc/lib/vue-compile/smoke.xq | 22 +- src/vue-poc/lib/webutils.xqm | 4 +- src/vue-poc/models.gen.xqm | 18 +- src/vue-poc/package.json | 4 +- src/vue-poc/router.js | 5 +- src/vue-poc/static/app-gen.js | 592 ++++++++++-------- src/vue-poc/static/app.html | 8 +- 30 files changed, 547 insertions(+), 365 deletions(-) create mode 100644 simple.xqm rename src/vue-poc/features/adminlog/{logarchive.vue => basexlogdate.vue} (79%) rename src/vue-poc/features/adminlog/{logdate.vue => basexlogdate1.vue} (93%) rename src/vue-poc/features/{model => namespaces}/namespace.vue (100%) rename src/vue-poc/features/{model => namespaces}/namespace1.vue (88%) create mode 100644 src/vue-poc/features/namespaces/namespaces.xqm 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 @@ - -