Skip to content

Commit

Permalink
WIP: rename /static/ to /unrestricted/
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Dec 18, 2024
1 parent 180c69a commit 163438f
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/components/Content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { StateController } from "@lit-app/state";
import { portalState } from "../state/portal-state.ts";
import { tokenState } from "../state/token-state.ts";
import { theme } from "../utils/theme.ts";
import "./static/content/Contact.ts";
import "./static/content/Imprint.ts";
import "./static/content/Legal.ts";
import "./unrestricted/content/Contact.ts";
import "./unrestricted/content/Imprint.ts";
import "./unrestricted/content/Legal.ts";

@customElement("bkd-content")
@localized()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import "./content/Legal.ts";

portalState.init();

@customElement("bkd-content-static")
@customElement("bkd-content-unrestricted")
@localized()
export class ContentStatic extends LitElement {
export class ContentUnrestricted extends LitElement {
static styles = [
theme,
css`
Expand Down Expand Up @@ -99,6 +99,6 @@ export class ContentStatic extends LitElement {

declare global {
interface HTMLElementTagNameMap {
"bkd-content-static": ContentStatic;
"bkd-content-unrestricted": ContentUnrestricted;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { customElement } from "lit/decorators.js";
import { localized, msg } from "@lit/localize";
import { theme } from "../../utils/theme.ts";

@customElement("bkd-header-static")
@customElement("bkd-header-unrestricted")
@localized()
export class HeaderStatic extends LitElement {
export class HeaderUnrestricted extends LitElement {
static styles = [
theme,
css`
Expand Down Expand Up @@ -88,6 +88,6 @@ export class HeaderStatic extends LitElement {

declare global {
interface HTMLElementTagNameMap {
"bkd-header-static": HeaderStatic;
"bkd-header-unrestricted": HeaderUnrestricted;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
fontFaces,
registerLightDomStyles,
theme,
} from "../../utils/theme";
import "../Footer";
import "./ContentStatic";
import "./HeaderStatic";
} from "../../utils/theme.ts";
import "../Footer.ts";
import "./ContentUnrestricted.ts";
import "./HeaderUnrestricted.ts";

portalState.init();

Expand All @@ -25,9 +25,9 @@ registerLightDomStyles(
`.toString(),
);

@customElement("bkd-portal-static")
@customElement("bkd-portal-unrestricted")
@localized()
export class PortalStatic extends LitElement {
export class PortalUnrestricted extends LitElement {
static styles = [
theme,
css`
Expand All @@ -40,7 +40,7 @@ export class PortalStatic extends LitElement {
margin: 0 auto;
}
bkd-content-static {
bkd-content-unrestricted {
flex: auto;
}
`,
Expand All @@ -54,15 +54,15 @@ export class PortalStatic extends LitElement {

render() {
return html`
<bkd-header-static></bkd-header-static>
<bkd-content-static></bkd-content-static>
<bkd-header-unrestricted></bkd-header-unrestricted>
<bkd-content-unrestricted></bkd-content-unrestricted>
<bkd-footer></bkd-footer>
`;
}
}

declare global {
interface HTMLElementTagNameMap {
"bkd-portal-static": PortalStatic;
"bkd-portal-unrestricted": PortalUnrestricted;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/static.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/unrestricted.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./components/unrestricted/PortalUnrestricted.ts";
4 changes: 2 additions & 2 deletions static/index.html → unrestricted/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
content="Schulverwaltungsapplikation des Kantons Bern"
/>
<link rel="stylesheet" href="../src/index.css" />
<script type="module" src="/src/static.ts"></script>
<script type="module" src="/src/unrestricted.ts"></script>
</head>
<body>
<bkd-portal-static></bkd-portal-static>
<bkd-portal-unrestricted></bkd-portal-unrestricted>
</body>
</html>
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineConfig({
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
admin: resolve(__dirname, "static/index.html"),
unrestricted: resolve(__dirname, "unrestricted/index.html"),
},
},
},
Expand Down

0 comments on commit 163438f

Please sign in to comment.