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/widgets/editable/index.js | 3 +-- static/widgets/image/index.js | 3 +-- static/widgets/index.js | 6 ++++++ static/widgets/month-select/index.js | 3 +-- static/widgets/password-dialog/index.js | 6 ++---- static/widgets/search/index.js | 3 +-- 6 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 static/widgets/index.js (limited to 'static/widgets') diff --git a/static/widgets/editable/index.js b/static/widgets/editable/index.js index 0c93c4e..116946f 100644 --- a/static/widgets/editable/index.js +++ b/static/widgets/editable/index.js @@ -1,8 +1,7 @@ +import icons from 'icons'; import * as sfw from 'sfw'; const { Div, Label, Input } = sfw.element.native; -import icons from '../../icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class Editable extends sfw.element.Container { diff --git a/static/widgets/image/index.js b/static/widgets/image/index.js index 7111ec7..202494b 100644 --- a/static/widgets/image/index.js +++ b/static/widgets/image/index.js @@ -1,8 +1,7 @@ +import * as api from 'api'; import * as sfw from 'sfw'; const { Div, Img } = sfw.element.native; -import * as api from '../../api/index.js'; - const css = await sfw.css(import.meta.url, './index.css') export default class Image extends sfw.element.Container { diff --git a/static/widgets/index.js b/static/widgets/index.js new file mode 100644 index 0000000..c468f34 --- /dev/null +++ b/static/widgets/index.js @@ -0,0 +1,6 @@ +export Editable from './editable/index.js'; +export Image from './image/index.js'; +export MonthSelect from './month-select/index.js'; +export PasswordDialog from './password-dialog/index.js'; +export Search from './search/index.js'; +export UploadBar from './upload-bar/index.js'; diff --git a/static/widgets/month-select/index.js b/static/widgets/month-select/index.js index d23469d..6ffbac2 100644 --- a/static/widgets/month-select/index.js +++ b/static/widgets/month-select/index.js @@ -1,8 +1,7 @@ +import icons from 'icons'; import * as sfw from 'sfw'; const { Div } = sfw.element.native; -import icons from '../../icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class MonthSelect extends sfw.element.Container { diff --git a/static/widgets/password-dialog/index.js b/static/widgets/password-dialog/index.js index 334e02d..6dbba12 100644 --- a/static/widgets/password-dialog/index.js +++ b/static/widgets/password-dialog/index.js @@ -1,10 +1,8 @@ +import * as api from 'api'; +import icons from 'icons'; import * as sfw from 'sfw'; const { Div, Input } = sfw.element.native; -import * as api from '../../api/index.js'; - -import icons from '../../icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class PasswordDialog extends sfw.element.Container { diff --git a/static/widgets/search/index.js b/static/widgets/search/index.js index 324141b..1a367f3 100644 --- a/static/widgets/search/index.js +++ b/static/widgets/search/index.js @@ -1,8 +1,7 @@ +import icons from 'icons'; import * as sfw from 'sfw'; const { Div, Input, Button } = sfw.element.native; -import icons from '../../icons/index.js'; - const css = await sfw.css(import.meta.url, './index.css'); export default class Search extends sfw.element.Container { -- cgit v1.2.3-70-g09d2