diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-24 16:41:59 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-24 16:41:59 +0100 |
| commit | b2323081234b8635681062d7737daabd7ab837a9 (patch) | |
| tree | b4385a3bbdeb461c1bce00b9d8b01d50cd595529 /static/pages | |
| parent | 4b6e37397d3a9a80db0c20484b712175c7b9c9c7 (diff) | |
add modules to importmap
Diffstat (limited to 'static/pages')
| -rw-r--r-- | static/pages/index.js | 5 | ||||
| -rw-r--r-- | static/pages/login/index.js | 3 | ||||
| -rw-r--r-- | static/pages/main/index.js | 3 | ||||
| -rw-r--r-- | static/pages/settings/index.js | 6 |
4 files changed, 9 insertions, 8 deletions
diff --git a/static/pages/index.js b/static/pages/index.js new file mode 100644 index 0000000..56b0848 --- /dev/null +++ b/static/pages/index.js @@ -0,0 +1,5 @@ +export ImageViewer from './image-viewer/index.js'; +export LoginView from './login/index.js'; +export MainView from './main/index.js'; +export SettingsView from './settings/index.js'; +export ShuffleView from './shuffle/index.js'; diff --git a/static/pages/login/index.js b/static/pages/login/index.js index 80bacb0..984d001 100644 --- a/static/pages/login/index.js +++ b/static/pages/login/index.js @@ -1,8 +1,7 @@ +import icons from 'icons'; import * as sfw from 'sfw'; const { Div, Label, H1: Title, Input, Button } = sfw.element.native; -import icons from '../../icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class LoginView extends sfw.element.Container { diff --git a/static/pages/main/index.js b/static/pages/main/index.js index 9bf0aae..8c0cac1 100644 --- a/static/pages/main/index.js +++ b/static/pages/main/index.js @@ -1,8 +1,7 @@ +import icons from 'icons'; import * as sfw from 'sfw'; const { Div, Input } = sfw.element.native; -import icons from '/icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class MainView extends sfw.element.Container { diff --git a/static/pages/settings/index.js b/static/pages/settings/index.js index 4924f8b..c46987b 100644 --- a/static/pages/settings/index.js +++ b/static/pages/settings/index.js @@ -1,13 +1,11 @@ +import icons from 'icons'; +import * as api from 'api'; import * as sfw from 'sfw'; const { Div, Img } = sfw.element.native; -import * as api from '../../api/index.js'; - import Editable from '../../widgets/editable/index.js'; import PasswordDialog from '../../widgets/password-dialog/index.js'; -import icons from '../../icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class SettingsView extends sfw.element.Container { |