Skip to content

Commit c4c3ba7

Browse files
authored
chore: Merge branch dev to main (#231)
2 parents 57d2915 + a5825b0 commit c4c3ba7

File tree

16 files changed

+135
-114
lines changed

16 files changed

+135
-114
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: Deploy
22

3-
on: [pull_request, push]
4-
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- dev
9+
pull_request:
10+
branches:
11+
- dev
512
jobs:
613
deploy:
714
runs-on: ubuntu-latest
@@ -24,7 +31,7 @@ jobs:
2431
with:
2532
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2633
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
27-
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
34+
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
2835
directory: public
2936
id: publish
3037

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Open a PR to main
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
workflow_dispatch:
8+
9+
env:
10+
MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main`
11+
12+
jobs:
13+
pull-request:
14+
name: Open pull request
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Open pull request
21+
uses: repo-sync/pull-request@v2
22+
with:
23+
destination_branch: 'main'
24+
pr_title: 'chore: ${{ env.MESSAGE }}'
25+
pr_body: 'This pull request will ${{ env.MESSAGE }}.'
26+
pr_draft: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"eslint": "^8.56.0",
2222
"eslint-config-prettier": "^9.1.0",
2323
"eslint-plugin-svelte": "^2.35.1",
24+
"fuse.js": "^7.0.0",
2425
"imagetools-core": "^6.0.3",
2526
"prettier": "^3.1.1",
2627
"prettier-plugin-svelte": "^3.1.2",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/layout/Footer/FooterHost.svelte

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,6 @@
163163
margin-top: 1rem;
164164
}
165165
166-
ul {
167-
display: flex;
168-
gap: 1rem;
169-
flex-direction: column;
170-
width: max-content;
171-
}
172-
173166
@media screen and (max-width: 1050px) {
174167
.footer-top {
175168
flex-direction: column;

src/layout/Hero/SocialButton.svelte

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
<script lang="ts">
22
import type { Social } from '$lib/types';
3-
export let social = '';
4-
export let data: Social[];
3+
export let social: Social;
54
</script>
65

7-
<a
8-
href={data.find((jsonSocial) => jsonSocial.name.toLowerCase() === social.toLowerCase())?.url}
9-
rel="noreferrer"
10-
target="_blank"
11-
>
6+
<a href={social.url} rel="noreferrer" target="_blank">
127
<div>
13-
<img src="socials/{social}.svg" alt={social} />
8+
<img src="socials/{social.name.toLowerCase()}.svg" alt={social.name} />
149
</div>
1510
</a>
1611

src/layout/Hero/SocialHost.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
<div class="social-host">
1111
<Query {query} let:data>
1212
{#if data}
13-
<SocialButton social="github" data={data.socials} />
14-
<SocialButton social="discord" data={data.socials} />
15-
<SocialButton social="reddit" data={data.socials} />
16-
<SocialButton social="telegram" data={data.socials} />
13+
{#each data.socials.filter((s) => s.name != 'Website') as social}
14+
<SocialButton {social} />
15+
{/each}
1716
{/if}
1817
</Query>
1918
</div>
@@ -36,6 +35,7 @@
3635
left: 0;
3736
width: 100%;
3837
display: flex;
38+
flex-wrap: wrap;
3939
justify-content: center;
4040
}
4141
}

src/lib/components/Dialogue.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts">
22
import { fade } from 'svelte/transition';
33
import { quadInOut } from 'svelte/easing';
4-
import { disableScrollHandling } from '$app/navigation';
54
export let modalOpen = false;
65
export let fullscreen = false;
76
export let notDismissible = false;

src/lib/components/Search.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
77
export let title: string;
88
export let searchTerm: string | null;
9-
export let searchTermFiltered: string | undefined;
9+
export let displayedTerm: string | undefined;
1010
1111
function clear() {
1212
searchTerm = '';
13-
searchTermFiltered = '';
13+
displayedTerm = '';
1414
1515
const url = new URL($page.url);
1616
url.searchParams.delete('s');

src/routes/+layout.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import { derived } from 'svelte/store';
1010
import { onMount } from 'svelte';
1111
import { browser } from '$app/environment';
12-
import { page } from '$app/stores';
1312
1413
import { QueryClient } from '@tanstack/query-core';
1514
import { persistQueryClient } from '@tanstack/query-persist-client-core';

0 commit comments

Comments
 (0)