Files
dees-wcctools/html/index.ts

34 lines
735 B
TypeScript
Raw Normal View History

2020-11-26 02:59:46 +00:00
// dees tools
2023-10-08 13:11:00 +02:00
import * as deesWccTools from '../ts_web/index.js';
import * as deesDomTools from '@design.estate/dees-domtools';
2020-11-26 02:59:46 +00:00
// elements, views and pages
2023-10-08 13:11:00 +02:00
import * as elements from '../test/elements/index.js';
import * as views from '../test/views/index.js';
2023-10-08 13:11:00 +02:00
import * as pages from '../test/pages/index.js';
2020-11-26 02:59:46 +00:00
// Sections-based API with Views
deesWccTools.setupWccTools({
sections: [
{
name: 'Pages',
type: 'pages',
items: pages,
},
{
name: 'Views',
type: 'elements',
items: views,
icon: 'web',
},
{
name: 'Elements',
type: 'elements',
items: elements,
sort: ([a], [b]) => a.localeCompare(b),
},
],
});
2020-11-26 02:59:46 +00:00
deesDomTools.elementBasic.setup();