work in progress: data processing functionality
This commit is contained in:
parent
126740ef14
commit
8dee4a3997
2 changed files with 10 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue