/* * app.ts * Copyright (C) 2024 veypi * 2024-10-23 15:35 * Distributed under terms of the GPL license. */ import cfg from "../cfg"; import v from "./v2dom"; export default () => v({ class: 'voa-apps', children: [ v('voa-apps-header', [v('voa-apps-title', 'ζˆ‘ηš„εΊ”η”¨')]), v('voa-apps-body', [ [cfg.myapps, (data) => v('voa-app-box', [v('span', () => data.name)])], v('div', '222'), [cfg.myapps, (data) => v('voa-app-box', () => data.name)], v({ typ: 'div', innerHtml: 'add', vbind: [cfg.myapps[0], 'name'], onclick: () => { cfg.myapps.splice(0, 1) cfg.myapps.push({ name: new Date().toLocaleString() }) } }) ]) ] })