diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9010689..20e3d92 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -6,7 +6,6 @@ permissions: on: push: branches: - - main - master jobs: @@ -24,7 +23,7 @@ jobs: echo "IMAGE_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -42,12 +41,12 @@ jobs: run: | docker buildx build \ --platform linux/amd64,linux/arm64 \ - --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-client:$BRANCH \ + --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-client:alpha \ --output "type=registry" ./client/ - name: Build server images run: | docker buildx build \ --platform linux/amd64,linux/arm64 \ - --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-server:$BRANCH \ + --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-server:alpha \ --output "type=registry" ./server/ diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index e442a53..dc0a888 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -42,6 +42,7 @@ jobs: docker buildx build \ --platform linux/amd64,linux/arm64 \ --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-client:$TAG \ + --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-client:master \ --output "type=registry" ./client/ - name: Build server images @@ -49,4 +50,5 @@ jobs: docker buildx build \ --platform linux/amd64,linux/arm64 \ --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-server:$TAG \ + --tag ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME-server:master \ --output "type=registry" ./server/ diff --git a/client/public/img/citadel-logo.jpg b/client/public/img/citadel-logo.jpg new file mode 100644 index 0000000..ad7e80a Binary files /dev/null and b/client/public/img/citadel-logo.jpg differ diff --git a/client/public/img/umbrel-logo.jpg b/client/public/img/umbrel-logo.jpg new file mode 100644 index 0000000..3c7b274 Binary files /dev/null and b/client/public/img/umbrel-logo.jpg differ diff --git a/client/src/components/alert/Alerts.svelte b/client/src/components/alert/Alerts.svelte index be1e445..8d577ea 100644 --- a/client/src/components/alert/Alerts.svelte +++ b/client/src/components/alert/Alerts.svelte @@ -6,6 +6,7 @@ import ByMononaut from './ByMononaut.svelte' import HeroMsg from './Hero.svelte' import SponsoredMsg from './Sponsored.svelte' import GenericAlert from './GenericAlert.svelte' +import GenericAlertv2 from './GenericAlertv2.svelte' import { fly } from 'svelte/transition' const components = { @@ -13,15 +14,17 @@ const components = { "sponsored-by": SponsoredMsg, // "be-a-hero": BeAHero, "thank-you-hero": HeroMsg, - msg: GenericAlert + msg: GenericAlert, + msg2: GenericAlertv2, } let ready $: { ready = { mononaut: true, - "sponsored-by": SponsoredMsg, + "sponsored-by": true, "thank-you-hero": $haveSupporters ? HeroMsg : null, - msg: GenericAlert + msg: true, + msg2: true, } } @@ -49,7 +52,7 @@ $: { } function processAlert (alert) { - if (alert && alert.type && components[alert.type] && ready[alert.type]) { + if (alert && alert.type && components[alert.type] && ready[alert.type] && (!alert.publicOnly || config.public)) { if (!sequences[alert.key]) sequences[alert.key] = 0 return { ...alert, diff --git a/client/src/components/alert/GenericAlertv2.svelte b/client/src/components/alert/GenericAlertv2.svelte new file mode 100644 index 0000000..d06f3b4 --- /dev/null +++ b/client/src/components/alert/GenericAlertv2.svelte @@ -0,0 +1,108 @@ + + +
+

+ {@html msg } +

+

+ {@html shortmsg || msg } +

+
+ {#each displayImgs as img} + {#if img.href } + + {img.name} + + {:else} + {img.name} + {/if} + {/each} +
+
+ +