diff --git a/src/vue-poc/features/collection/files.vue b/src/vue-poc/features/collection/files.vue index 4ed170e..a04be18 100644 --- a/src/vue-poc/features/collection/files.vue +++ b/src/vue-poc/features/collection/files.vue @@ -30,7 +30,25 @@ + + + + more_vert + + + + Invoke + + + + todo + + + todo + + + diff --git a/src/vue-poc/features/edit/edit.vue b/src/vue-poc/features/edit/edit.vue index 4e37196..b383312 100644 --- a/src/vue-poc/features/edit/edit.vue +++ b/src/vue-poc/features/edit/edit.vue @@ -38,6 +38,7 @@ navigate_next + star diff --git a/src/vue-poc/features/tasks/rxq-tasks.xqm b/src/vue-poc/features/tasks/rxq-tasks.xqm new file mode 100644 index 0000000..182e761 --- /dev/null +++ b/src/vue-poc/features/tasks/rxq-tasks.xqm @@ -0,0 +1,18 @@ +(:~ + : tasks + :) +module namespace vue-rest = 'quodatum:vue.tasks'; + +(:~ + : list tasks + :) +declare +%rest:GET %rest:path("/vue-poc/api/tasks/list") +%rest:produces("application/json") +%output:method("json") +function vue-rest:tasks() +{ + let $a:=42 + return hello tasks +}; + diff --git a/src/vue-poc/features/tasks/tasks.vue b/src/vue-poc/features/tasks/tasks.vue index 9ff378a..8661df9 100644 --- a/src/vue-poc/features/tasks/tasks.vue +++ b/src/vue-poc/features/tasks/tasks.vue @@ -22,7 +22,10 @@ }, methods:{ getTasks(){ - alert("get tasks") + HTTP.get("tasks/list") + .then(r=>{ + alert("tasks http") + }) } }, created(){ diff --git a/src/vue-poc/features/tasks/vue-compile/vuecompile.vue b/src/vue-poc/features/tasks/vue-compile/vuecompile.vue index c006881..7fb16d1 100644 --- a/src/vue-poc/features/tasks/vue-compile/vuecompile.vue +++ b/src/vue-poc/features/tasks/vue-compile/vuecompile.vue @@ -61,6 +61,7 @@ this.waiting=false this.snackbar={show:true,msg:r.data.msg,context:"success"} console.log(r.data) + settings.setItem('tasks/vuecompile',this.params) }) .catch(error=>{ this.waiting=false @@ -68,6 +69,12 @@ console.log(error); }); } + }, + created: function () { + settings.getItem('tasks/vuecompile') + .then((v)=>{ + if(v)this.params=v + }) }, computed:{ code(){return 'code here'} diff --git a/src/vue-poc/lib/history.xqm b/src/vue-poc/lib/history.xqm new file mode 100644 index 0000000..d772e21 --- /dev/null +++ b/src/vue-poc/lib/history.xqm @@ -0,0 +1,15 @@ +xquery version "3.1"; +module namespace hlog = 'quodatum.data.history'; +declare namespace hist="urn:quodatum:vue-poc.history"; +declare variable $hlog:doc as element(hist:history):=db:open("vue-poc","/history.xml")/hist:history; + +declare +%updating +function hlog:save($item as element(*)) +{ +let $id:=$hlog:doc/@next-id/string(.) +let $n:={$item} +return (insert node $n into $hlog:doc, + replace value of node $hlog:doc/@next-id with number($id)+1 + ) +}; diff --git a/src/vue-poc/static/app-gen.js b/src/vue-poc/static/app-gen.js index 6668c27..9f25e52 100644 --- a/src/vue-poc/static/app-gen.js +++ b/src/vue-poc/static/app-gen.js @@ -1,4 +1,4 @@ -// generated 2017-09-14T21:51:22.679+01:00 +// generated 2017-09-15T20:50:14.366+01:00 Vue.component('qd-fullscreen',{template:` {{ fullscreenIcon }} @@ -819,6 +819,7 @@ Vue.filter('round', function(value, decimals) { this.waiting=false this.snackbar={show:true,msg:r.data.msg,context:"success"} console.log(r.data) + settings.setItem('tasks/vuecompile',this.params) }) .catch(error=>{ this.waiting=false @@ -826,6 +827,12 @@ Vue.filter('round', function(value, decimals) { console.log(error); }); } + }, + created: function () { + settings.getItem('tasks/vuecompile') + .then((v)=>{ + if(v)this.params=v + }) }, computed:{ code(){return 'code here'} @@ -855,7 +862,10 @@ Vue.filter('round', function(value, decimals) { }, methods:{ getTasks(){ - alert("get tasks") + HTTP.get("tasks/list") + .then(r=>{ + alert("tasks http") + }) } }, created(){ @@ -2322,6 +2332,7 @@ created(){ navigate_next + star @@ -2602,7 +2613,25 @@ created(){ + + + + more_vert + + + + Invoke + + + + todo + + + todo + + +