From b2323081234b8635681062d7737daabd7ab837a9 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 24 Nov 2025 16:41:59 +0100 Subject: add modules to importmap --- static/pages/index.js | 5 +++++ static/pages/login/index.js | 3 +-- static/pages/main/index.js | 3 +-- static/pages/settings/index.js | 6 ++---- 4 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 static/pages/index.js (limited to 'static/pages') 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 { -- cgit v1.2.3-70-g09d2