+
+ {{image.name}}
#{{image.keywords}}
-
- place
-
+
+ place
+
+
+
+
+ search
+
+
+
+
+
+
+
-
{{image.id}}
+
check_circle
@@ -4084,31 +4104,17 @@ const Imagesfilter=Vue.extend({template:`
);
// src: file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/images/ireport.vue
-const Report=Vue.extend({template:`
-
-
-
- arrow_back
-
- Settings
-
-
-
-
-
-
-
-
- {{ report | pretty }}
-
-
-
-
- `,
+const Report=Vue.extend({template:`
+
+arrow_back Settings
+
+
+ - DB: {{ report.imagedb }}
+ - db
+
+
+ {{ report | pretty }}
+ `,
data: ()=>({
busy: false,
@@ -4138,17 +4144,14 @@ const Report=Vue.extend({template:`
// src: file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/images/keywords.vue
const Keywords=Vue.extend({template:`
-
-
-
- arrow_back
-
- click to show
-
-
+
+
+ arrow_back
+
+ click to show
+
- this.q=''">
-
+ this.q=''">
@@ -4166,7 +4169,6 @@ const Keywords=Vue.extend({template:`
-
`,
data: ()=>({
@@ -4243,14 +4245,17 @@ const Job=Vue.extend({template:`
lock{{ jobstate.writes }}
lock{{ jobstate.reads }}
+
account_circle
{{ jobstate.user }}
+
timer
{{ jobstate.duration }}
+
refresh
@@ -4405,6 +4410,93 @@ const Jobs=Vue.extend({template:`
);
+// src: file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/job/services.vue
+const Services=Vue.extend({template:`
+
+
+
+
+ Stop
+
+ add
+
+
+
+ {{ autorefresh?'refresh':'arrow_downward' }}
+
+
+
+
+
+
+ |
+ {{props.item.id}} |
+ {{ props.item.running }}
+ | {{ props.item.interval }} |
+ {{ props.item['base-uri'] }} |
+ {{ props.item.query }} |
+
+
+
+ `,
+
+ data: function(){
+ return {
+ headers: [
+ {
+ text: 'Job id',
+ left: true,
+ value: 'id'
+ },
+ { text: 'Running', value: 'running' },
+ { text: 'Interval', value: 'interval' },
+ { text: 'Base-uri', value: 'base-uri' },
+ { text: 'Query', value: 'query' },
+
+ ],
+ items:[
+ ],
+ selected: [],
+ search: "",
+ loading: false,
+ autorefresh: true,
+ timer:null
+ }
+ },
+ methods:{
+ load(){
+ this.loading= true
+ HTTP.get("data/service",{params:{q:this.q}})
+ .then(r=>{
+ this.items= r.data.items
+ this.loading= false
+ if(this.autorefresh) this.timer=setTimeout(()=>{ this.load() }, 10000);
+ })
+
+ },
+ stop(){
+ var s=this.selected.map((j)=>{return j.id}).join(",")
+ console.log("AAA",this.selected)
+ alert(s)
+ }
+ },
+ computed: {
+ // a computed getter
+ noSelection: function () {
+ // `this` points to the vm instance
+ return this.selected.length==0
+ },
+ },
+ created(){
+ this.load()
+ },
+ beforeDestroy(){
+ if(this.timer) clearTimeout(this.timer);
+ }
+}
+
+ );
+
// src: file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/login/login.vue
const Login=Vue.extend({template:`
@@ -4551,8 +4643,11 @@ const Documentation=Vue.extend({template:`
- {{ item.id }}
- {{ item.name }}
+
+ {{ item.name }}
+
+ {{ item.id }}
+ {{ item.created | formatDate }}
go
@@ -4573,9 +4668,11 @@ const Documentation=Vue.extend({template:`
},
methods:{
get() {
+ this.loading=true;
HTTP.get('xqdocjob')
.then((res) => {
this.items = res.data;
+ this.loading=false;
});
},
doEdit(item){
@@ -4615,7 +4712,7 @@ const Entity=Vue.extend({template:`
-
+
@@ -4627,12 +4724,13 @@ const Entity=Vue.extend({template:`
{{ props.item.description }}
-
+
+ Fields
{{ props.item.nfields }}
Fields
-
+
@@ -5546,7 +5644,7 @@ const Dicetest=Vue.extend({template:`
Read json data for 1st page for entity.
-
+
@@ -5569,10 +5667,10 @@ const Dicetest=Vue.extend({template:`
|
- {{ url && url.name }}
+ {{ entity && entity.name }}
|
-
+
Read compare_arrows
|
@@ -5617,7 +5715,7 @@ const Dicetest=Vue.extend({template:`
return {
getValues: new perfStat(),
repeat: {get:false},
- url: null,
+ entity: null,
counter: 0,
result: null,
entities: null
@@ -5627,8 +5725,8 @@ const Dicetest=Vue.extend({template:`
get(){
var _start = performance.now();
- console.log("FFFFF"," "+ this.url.parentlink)
- HTTP.get(this.url.parentlink,axios_json)
+ console.log("entity:", this.entity)
+ HTTP.get(this.entity.datalink,axios_json)
.then(r=>{
var elapsed=Math.floor(performance.now() - _start);
this.counter++;
@@ -7234,6 +7332,7 @@ const router = new VueRouter({
{ path: 'jobs', name:"jobs", component: Jobs, meta:{title:"Jobs running"} },
{ path: 'jobs/:job', name:"jobShow", component: Job, props: true, meta:{title:"Job Status"} },
+ { path: 'services', component: Services, meta:{title:"Services"} },
{ path: 'upload', component: Upload,meta:{title:"Upload"} },
{ path: 'settings', component: Basexsettings,meta:{title:"BaseX settings"} },
@@ -7467,7 +7566,8 @@ const Vuepoc=Vue.extend({template:`
text: 'Server' ,
model: false,
children: [
- {href: '/server/jobs',text: 'Running jobs',icon: 'dashboard'},
+ {href: '/server/jobs',text: 'Running jobs',icon: 'dashboard'},
+ {href: '/server/services',text: 'Services',icon: 'dashboard'},
{href: '/server/logs',text: 'Server logs',icon: 'dns'},
{href: '/server/users',text: 'Users',icon: 'supervisor_account'},
{href: '/server/repo',text: 'Server code repository',icon: 'local_library'},
diff --git a/src/vue-poc/static/app.html b/src/vue-poc/static/app.html
index 87dbc99..57c80ec 100644
--- a/src/vue-poc/static/app.html
+++ b/src/vue-poc/static/app.html
@@ -10,7 +10,7 @@
-
+
@@ -34,15 +34,15 @@
-
-
-
+
+
+
-
-
-
-
+
+
+
+