diff --git a/src/vue-poc/api.xqm b/src/vue-poc/api.xqm index 6923a31..cb877d7 100644 --- a/src/vue-poc/api.xqm +++ b/src/vue-poc/api.xqm @@ -50,6 +50,22 @@ function vue-api:search($q ) return dice:response($items,$entity,web:dice()) }; +(:~ + : Returns data results + :) +declare +%rest:path("/vue-poc/api/data/{$entity}") +%rest:query-param("q", "{$q}") +%rest:produces("application/json") +%output:method("json") +function vue-api:data($entity as xs:string,$q ) +{ + let $entity:=$entity:list($entity) + let $items:=$entity("data")() + + return dice:response($items,$entity,web:dice()) +}; + (:~ : Returns test list for select. :) diff --git a/src/vue-poc/app.vue b/src/vue-poc/app.vue index 5521056..9b14bef 100644 --- a/src/vue-poc/app.vue +++ b/src/vue-poc/app.vue @@ -34,7 +34,7 @@ - + @@ -43,19 +43,7 @@ - - + @@ -75,13 +63,25 @@ - {{ $notification.unseen }} notifications + + + more_vert + + + + Full screen + + + + + + @@ -99,8 +99,7 @@ diff --git a/src/vue-poc/components/qd-search.vue b/src/vue-poc/components/qd-search.vue new file mode 100644 index 0000000..14dee72 --- /dev/null +++ b/src/vue-poc/components/qd-search.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/src/vue-poc/components/qd-table.vue b/src/vue-poc/components/qd-table.vue index 809b65a..b96796d 100644 --- a/src/vue-poc/components/qd-table.vue +++ b/src/vue-poc/components/qd-table.vue @@ -23,7 +23,7 @@ class="elevation-1" no-data-text="No users found @todo" > -