diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-03 15:56:58 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-03 15:56:58 -0300 |
commit | 459c1994e6d20c26c24254ae0cb36aa66926a5cb (patch) | |
tree | 7dbff4d0217c3a73c34dbcac54dbcbd8b7976fb5 | |
parent | 075903d4dd794eacf6b5517e689d28c0c4a4e8e4 (diff) |
fix reference to css resources
-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 { |