diff --git a/src/vue-poc/features/collection/files.vue b/src/vue-poc/features/collection/files.vue index 01799b9..4ed170e 100644 --- a/src/vue-poc/features/collection/files.vue +++ b/src/vue-poc/features/collection/files.vue @@ -4,7 +4,7 @@ - + {{icon}} @@ -15,17 +15,22 @@ - - search - search - + + + - - - view_module + + + + + + + + + @@ -46,7 +51,7 @@ modified: {{ item.modified | formatDate}} size: {{ item.size | readablizeBytes}} - + info @@ -96,7 +101,7 @@ diff --git a/src/vue-poc/features/tasks/vue-compile/vuecompile.vue b/src/vue-poc/features/tasks/vue-compile/vuecompile.vue index f0541e6..c006881 100644 --- a/src/vue-poc/features/tasks/vue-compile/vuecompile.vue +++ b/src/vue-poc/features/tasks/vue-compile/vuecompile.vue @@ -16,7 +16,7 @@ - + diff --git a/src/vue-poc/features/tasks/xqdoc/xqdoc.vue b/src/vue-poc/features/tasks/xqdoc/xqdoc.vue index abf1de1..a7f4300 100644 --- a/src/vue-poc/features/tasks/xqdoc/xqdoc.vue +++ b/src/vue-poc/features/tasks/xqdoc/xqdoc.vue @@ -17,13 +17,13 @@ - + - + diff --git a/src/vue-poc/static/app-gen.js b/src/vue-poc/static/app-gen.js index 6a17c8a..6668c27 100644 --- a/src/vue-poc/static/app-gen.js +++ b/src/vue-poc/static/app-gen.js @@ -1,4 +1,4 @@ -// generated 2017-09-13T16:57:35.141+01:00 +// generated 2017-09-14T21:51:22.679+01:00 Vue.component('qd-fullscreen',{template:` {{ fullscreenIcon }} @@ -626,11 +626,11 @@ Vue.filter('round', function(value, decimals) { - + - + @@ -698,11 +698,11 @@ Vue.filter('round', function(value, decimals) { - + - + @@ -781,7 +781,7 @@ Vue.filter('round', function(value, decimals) { - + @@ -835,27 +835,32 @@ Vue.filter('round', function(value, decimals) { ); const Task=Vue.extend({template:` -

Tasks

+

Available Tasks

    -
  • - model -
  • -
  • - xqdoc -
  • -
  • - vue compile +
  • +
`, - data: function(){ + data(){ return { - message: 'Hello Vue.js!', - q:this.$route.query.q + tasks: [ + {to: "tasks/model", text: "model"}, + {to: "tasks/xqdoc", text: "xqdoc"}, + {to: "tasks/vuecompile", text: "vue compile"} + ] } - } + }, + methods:{ + getTasks(){ + alert("get tasks") + } + }, + created(){ + this.getTasks() + } } ); @@ -1479,6 +1484,59 @@ created(){ } } + ); + const Home=Vue.extend({template:` + + + +
VUE-POC
+ + + + account_circle + close + + + edit + + + add + + + delete + + +
+ + + +

+ links +

+
+ + add + REPLACED + +
+
+ `, + + data: function(){ + return { + fab: false + } + } + } + ); const Tabs=Vue.extend({template:` @@ -2519,7 +2577,7 @@ created(){ - + {{icon}} @@ -2530,16 +2588,21 @@ created(){ - - search - search - + + + - - - view_module + + + + + + + + + @@ -2560,7 +2623,7 @@ created(){ modified: {{ item.modified | formatDate}} size: {{ item.size | readablizeBytes}} - + info @@ -2609,7 +2672,7 @@ created(){ props:["protocol"], - data: function(){ + data(){ return { url: "", folders: [], @@ -2617,7 +2680,22 @@ created(){ q: "", busy: false, showInfo: false, - selected: null + selected: null, + buttons: [ + {method: this.todo, icon: "view_quilt"}, + {method: this.add, icon: "add"}, + {method: this.todo, icon: "refresh"}, + {method: this.todo, icon: "sort"}, + {method: this.todo, icon: "select_all"} +], +selopts: [ + {method: this.todo, icon: "delete"}, + {method: this.todo, icon: "content_copy"}, + {method: this.todo, icon: "content_cut"}, + {method: this.todo, icon: "text_format"}, + {method: this.todo, icon: "info"}, + {method: this.todo, icon: "share"} +] } }, methods:{ @@ -2643,7 +2721,13 @@ created(){ }); }, - + action(b){ + alert(b.icon) + b.method() + }, + add(){ + alert("add") + }, setfilter(){ console.log("TODO",this.q) this.$router.push({ query: {url:this.url,q:this.q }}) @@ -2660,8 +2744,8 @@ created(){ this.$router.push({ name: 'jobShow', params: {job:job }}) }) }, - search(){ - alert("search") + todo(){ + alert("todo") } }, computed: { @@ -2737,58 +2821,6 @@ created(){ } } - ); - const Home=Vue.extend({template:` - - - -
VUE-POC
- - - - account_circle - close - - - edit - - - add - - - delete - - -
- - - -

- links -

- - - add - REPLACED - -
-
- `, - - data: function(){ - return { - fab: false - } - } - } - ); const About=Vue.extend({template:` diff --git a/src/vue-poc/static/app.html b/src/vue-poc/static/app.html index 622841f..bb50946 100644 --- a/src/vue-poc/static/app.html +++ b/src/vue-poc/static/app.html @@ -9,7 +9,7 @@ Vue Router Test - + @@ -35,7 +35,7 @@ - +