diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index 7cac226..787e170 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -1,36 +1,34 @@ name: Docker dev on: - push: - branches: - - 'dev' + push: + branches: + - "dev" jobs: - build: - name: 'Build' - runs-on: ubuntu-latest - steps: - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + build: + name: "Build" + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - - name: "Build:checkout" - uses: actions/checkout@v3 + - name: "Build:checkout" + uses: actions/checkout@v3 - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ProjectSegfault - password: ${{ secrets.ACCESS_TOKEN }} + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ProjectSegfault + password: ${{ secrets.ACCESS_TOKEN }} - - name: 'Build:dockerimage' - uses: docker/build-push-action@v3 - with: - tags: ghcr.io/projectsegfault/website:dev - context: "." - push: true - no-cache: true \ No newline at end of file + - name: "Build:dockerimage" + uses: docker/build-push-action@v3 + with: + tags: ghcr.io/projectsegfault/website:dev + context: "." + push: true + no-cache: true diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5bca3ab..7eceb2c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,36 +1,34 @@ name: Docker on: - push: - branches: - - 'master' + push: + branches: + - "master" jobs: - build: - name: 'Build' - runs-on: ubuntu-latest - steps: - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + build: + name: "Build" + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - - name: "Build:checkout" - uses: actions/checkout@v3 + - name: "Build:checkout" + uses: actions/checkout@v3 - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ProjectSegfault - password: ${{ secrets.ACCESS_TOKEN }} + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ProjectSegfault + password: ${{ secrets.ACCESS_TOKEN }} - - name: 'Build:dockerimage' - uses: docker/build-push-action@v3 - with: - tags: ghcr.io/projectsegfault/website:latest - context: "." - push: true - no-cache: true \ No newline at end of file + - name: "Build:dockerimage" + uses: docker/build-push-action@v3 + with: + tags: ghcr.io/projectsegfault/website:latest + context: "." + push: true + no-cache: true diff --git a/README.md b/README.md index 5c37599..e66b90c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Live at [projectsegfau.lt](https://projectsegfau.lt). - Install [node.js](https://nodejs.org). - Install [pnpm](https://pnpm.io/). - Learn [Svelte](https://svelte.dev). -- Add the environment variables from the [environment variables section](#environment-variables). +- Add the environment variables from the [environment variables section](#environment-variables). ### Running a dev server. @@ -37,13 +37,14 @@ If you want to run the website locally in production follow the steps in [develo The website has the following **mandatory** environment variables -| Name | Description | -|:------------------ |:------------------------- | -| AUTH_CLIENT_ID | Authentik client ID | -| AUTH_CLIENT_SECRET | Authentik client secret | -| AUTH_ISSUER | Authentication issuer URL | -| AUTH_TRUST_HOST | Your domain | -| AUTH_SECRET | Random 32 char secret | -| GHOST_URL | Your Ghost CMS URL | -| GHOST_API_KEY | Your Ghost CMS API key | -| ORIGIN | Your domain | \ No newline at end of file +| Name | Description | +| :----------------- | :----------------------------------| +| AUTH_CLIENT_ID | Authentik client ID | +| AUTH_CLIENT_SECRET | Authentik client secret | +| AUTH_ISSUER | Authentication issuer URL | +| AUTH_TRUST_HOST | Your domain | +| AUTH_SECRET | Random 32 char secret | +| GHOST_URL | Your Ghost CMS URL | +| GHOST_API_KEY | Your Ghost CMS API key | +| KUMA_URL | Your Uptime Kuma announcements URL | +| ORIGIN | Your domain | diff --git a/compose.yml b/compose.yml index cb501bd..e43d826 100644 --- a/compose.yml +++ b/compose.yml @@ -8,4 +8,4 @@ services: # context: . # dockerfile: Dockerfile ports: - - "127.0.0.1:1339:3000" \ No newline at end of file + - "127.0.0.1:1339:3000" diff --git a/src/app.css b/src/app.css index 9828ee3..a0bb872 100644 --- a/src/app.css +++ b/src/app.css @@ -4,7 +4,8 @@ font-display: swap; } -html, html.light { +html, +html.light { --accent: #00a584; --accent-translucent: #00a58498; --font-primary: "JetBrains Mono", monospace; @@ -74,4 +75,4 @@ details { .button { @apply px-2 py-1 bg-accent text-primary rounded no-underline flex flex-row items-center gap-2; -} \ No newline at end of file +} diff --git a/src/app.html b/src/app.html index cdc364b..c02c1d5 100644 --- a/src/app.html +++ b/src/app.html @@ -2,8 +2,14 @@
- - + + %sveltekit.head% diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 9949933..97c6008 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -6,7 +6,14 @@ import type { Profile } from "@auth/core/types"; import { redirect, type Handle } from "@sveltejs/kit"; import { sequence } from "@sveltejs/kit/hooks"; -const hasAuth = !env.AUTH_CLIENT_ID || !env.AUTH_CLIENT_SECRET || !env.AUTH_ISSUER || !env.AUTH_TRUST_HOST || !env.AUTH_SECRET ? false : true; +const hasAuth = + !env.AUTH_CLIENT_ID || + !env.AUTH_CLIENT_SECRET || + !env.AUTH_ISSUER || + !env.AUTH_TRUST_HOST || + !env.AUTH_SECRET + ? false + : true; export const handle: Handle = sequence( //@ts-ignore @@ -19,26 +26,28 @@ export const handle: Handle = sequence( }) as Provider