diff --git a/assets/js/common.ts b/assets/js/common.ts index 21a37d4..59b73b6 100644 --- a/assets/js/common.ts +++ b/assets/js/common.ts @@ -10,7 +10,7 @@ type confdata = { } export function config (api, polling): confdata { - const pu = `${api.path}/${polling.msgbase.join('/')}` + const pu = polling ? `${api.path}/${polling.msgbase.join('/')}` : '' const urlparams = new URL(location.href).searchParams return { apiurl: api.path, pollurl: pu, itemid: urlparams.get('id') } } @@ -39,7 +39,11 @@ export const pvapp = { // appdata method definitions -function save(value: string) { +function save() { + let value = '' + for (const k of Object.keys(this.data)) { + value += `${k}: ${this.data[k]}, ` + } this.output += '\n' + value console.log('save:', value) } diff --git a/assets/js/settings.ts b/assets/js/settings.ts index 7e11dc8..9ca03f5 100644 --- a/assets/js/settings.ts +++ b/assets/js/settings.ts @@ -2,10 +2,11 @@ export const api = { path: '/api' } -export const polling = { +export const polling = null // suppress polling + +/*export const polling = { msgbase: ['system', 'poll', 'service', 'pclt-0001'] //msgbase: ['system', 'poll', 'session'] //msgbase: ['system', 'poll', 'interaction'] -} +}*/ -// export const polling = null // suppress polling