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 new file mode 100644 index 000000000..ab6b25ded Binary files /dev/null and b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.eot differ 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 new file mode 100644 index 000000000..824be10fa Binary files /dev/null and b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.ttf differ 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 new file mode 100644 index 000000000..7e087c1de Binary files /dev/null and b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff differ 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 new file mode 100644 index 000000000..b5caa4ddc Binary files /dev/null and b/packages/anastasis-webui/src/scss/fonts/materialdesignicons-webfont-4.9.95.woff2 differ 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 {