diff options
Diffstat (limited to 'packages/anastasis-webui')
-rw-r--r-- | packages/anastasis-webui/src/main.ts | 29 | ||||
-rw-r--r-- | packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.eot | bin | 0 -> 844600 bytes | |||
-rw-r--r-- | packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.ttf | bin | 0 -> 844380 bytes | |||
-rw-r--r-- | packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff | bin | 0 -> 404384 bytes | |||
-rw-r--r-- | packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff2 | bin | 0 -> 283040 bytes | |||
-rw-r--r-- | packages/anastasis-webui/src/scss/fonts/nunito.css | 2 | ||||
-rw-r--r-- | packages/anastasis-webui/src/scss/main.scss | 6 |
7 files changed, 33 insertions, 4 deletions
diff --git a/packages/anastasis-webui/src/main.ts b/packages/anastasis-webui/src/main.ts new file mode 100644 index 000000000..ee839bc4e --- /dev/null +++ b/packages/anastasis-webui/src/main.ts @@ -0,0 +1,29 @@ +import { setupI18n } from "@gnu-taler/taler-util"; +import { h, render } from "preact"; +import App from "./components/app"; +//import "./scss/main.scss"; + +export default App; + +function main(): void { + try { + const container = document.getElementById("container"); + if (!container) { + throw Error("container not found, can't mount page contents"); + } + render(h(App, {}), container); + } catch (e) { + console.error("got error", e); + if (e instanceof Error) { + document.body.innerText = `Fatal error: "${e.message}". Please report this bug at https://bugs.gnunet.org/.`; + } + } +} + +// setupI18n("en", strings); + +if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", main); +} else { + main(); +} diff --git a/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.eot b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.eot Binary files differnew file mode 100644 index 000000000..ab6b25ded --- /dev/null +++ b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.eot diff --git a/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.ttf b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.ttf Binary files differnew file mode 100644 index 000000000..824be10fa --- /dev/null +++ b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.ttf diff --git a/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff Binary files differnew file mode 100644 index 000000000..7e087c1de --- /dev/null +++ b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff diff --git a/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff2 b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff2 Binary files differnew file mode 100644 index 000000000..b5caa4ddc --- /dev/null +++ b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff2 diff --git a/packages/anastasis-webui/src/scss/fonts/nunito.css b/packages/anastasis-webui/src/scss/fonts/nunito.css index ab30db36b..b49ec54ac 100644 --- a/packages/anastasis-webui/src/scss/fonts/nunito.css +++ b/packages/anastasis-webui/src/scss/fonts/nunito.css @@ -18,5 +18,5 @@ font-family: 'Nunito'; font-style: normal; font-weight: 400; - src: url(./XRXV3I6Li01BKofINeaE.ttf) format('truetype'); + src: url(./fonts/XRXV3I6Li01BKofINeaE.ttf) format('truetype'); } diff --git a/packages/anastasis-webui/src/scss/main.scss b/packages/anastasis-webui/src/scss/main.scss index 9311fbba0..69a490905 100644 --- a/packages/anastasis-webui/src/scss/main.scss +++ b/packages/anastasis-webui/src/scss/main.scss @@ -44,12 +44,12 @@ @import "custom-calendar"; @import "loading"; -@import "fonts/nunito.css"; -@import "icons/materialdesignicons-4.9.95.min.css"; +@import "fonts/nunito"; +@import "icons/materialdesignicons-4.9.95.min"; $tooltip-color: red; -@import "../../node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip.min.css"; +@import "node_modules/@creativebulma/bulma-tooltip/dist/bulma-tooltip"; // @import "../../node_modules/bulma-timeline/dist/css/bulma-timeline.min.css"; .notification { |