fix reference to css resources
This commit is contained in:
parent
075903d4dd
commit
459c1994e6
29
packages/anastasis-webui/src/main.ts
Normal file
29
packages/anastasis-webui/src/main.ts
Normal file
@ -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();
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -18,5 +18,5 @@
|
|||||||
font-family: 'Nunito';
|
font-family: 'Nunito';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: url(./XRXV3I6Li01BKofINeaE.ttf) format('truetype');
|
src: url(./fonts/XRXV3I6Li01BKofINeaE.ttf) format('truetype');
|
||||||
}
|
}
|
||||||
|
@ -44,12 +44,12 @@
|
|||||||
@import "custom-calendar";
|
@import "custom-calendar";
|
||||||
@import "loading";
|
@import "loading";
|
||||||
|
|
||||||
@import "fonts/nunito.css";
|
@import "fonts/nunito";
|
||||||
@import "icons/materialdesignicons-4.9.95.min.css";
|
@import "icons/materialdesignicons-4.9.95.min";
|
||||||
|
|
||||||
$tooltip-color: red;
|
$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";
|
// @import "../../node_modules/bulma-timeline/dist/css/bulma-timeline.min.css";
|
||||||
|
|
||||||
.notification {
|
.notification {
|
||||||
|
Loading…
Reference in New Issue
Block a user