|
5 | 5 | import './component/button/ButtonElement'; |
6 | 6 | import './component/button/ButtonGroupElement'; |
7 | 7 | import './component/button/CloseButtonElement'; |
| 8 | +import './component/badge/BadgeElement'; |
8 | 9 | import './component/icon/IconElement'; |
9 | 10 | import './component/nav/NavBarElement'; |
10 | 11 |
|
11 | | -// Core |
12 | | -import Provider from './core/Provider'; |
13 | | -import Event from './core/event'; |
14 | | - |
15 | 12 | // CSS |
16 | 13 | import './css/core.css'; |
17 | 14 | import './css/document.css'; |
18 | 15 |
|
19 | | -// Test |
20 | | -window.addEventListener('load', () => { |
21 | | - new EventSource('/esbuild').addEventListener('change', () => location.reload()); |
22 | | - |
23 | | - // Button Group |
24 | | - document.querySelector('wc-button-group').addEventListener(Event.EVENT_CLICK, (evt) => { |
25 | | - console.log("Button Group Click",evt.detail); |
26 | | - }); |
27 | | - |
28 | | - // Card |
29 | | - document.querySelector('.wc-card').addEventListener(Event.EVENT_CLICK, (evt) => { |
30 | | - console.log("Card Click",evt.detail); |
31 | | - }); |
32 | | - |
33 | | - // Provider |
34 | | - var p = new Provider("http://localhost:8000/"); |
35 | | - p.addEventListener(Event.EVENT_ERROR,(evt) => { |
36 | | - console.log("Got error:",evt); |
37 | | - }); |
38 | | - p.addEventListener(Event.EVENT_START,(evt) => { |
39 | | - console.log("START",evt.detail); |
40 | | - }); |
41 | | - p.addEventListener(Event.EVENT_DONE,(evt) => { |
42 | | - console.log("DONE",evt.detail); |
43 | | - }); |
44 | | - p.fetch("/", {}, 5000); |
45 | | -}); |
| 16 | +import './esbuild.js'; |
| 17 | +import './test.js'; |
0 commit comments