diff --git a/.env.example b/.env.example index ed851b9..c25e14d 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,3 @@ RV_API_URL=https://api.revanced.app -RV_GOOGLE_TAG_MANAGER_ID= \ No newline at end of file +RV_GOOGLE_TAG_MANAGER_ID= +RV_DMCA_GUID= \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2e7fb1a..0f8bde9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,10 @@ jobs: uses: actions/checkout@v4 - name: Build + env: + RV_API_URL: ${{ vars.RV_API_URL }} + RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }} + RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }} run: | npm i npm run build diff --git a/src/layout/Footer/FooterHost.svelte b/src/layout/Footer/FooterHost.svelte index 695d551..62d4061 100644 --- a/src/layout/Footer/FooterHost.svelte +++ b/src/layout/Footer/FooterHost.svelte @@ -8,7 +8,20 @@ import Query from '$lib/components/Query.svelte'; import FooterSection from './FooterSection.svelte'; + import { RV_DMCA_GUID } from '$env/static/public'; + import { onMount } from 'svelte'; + const aboutQuery = createQuery(['about'], queries.about); + + onMount(() => { + // DMCA Protection Badge + var c = document.createElement('link'); + c.type = 'text/css'; + c.rel = 'stylesheet'; + c.href = 'https://images.dmca.com/badges/dmca.css?ID=' + RV_DMCA_GUID; + var h = document.getElementsByTagName('head')[0]; + h.appendChild(c); + }); @@ -64,15 +77,28 @@ - - {#if data} -