Skip to content

Commit 6929e72

Browse files
Fix style and clean up unused code
The changes appear to be mainly cleanup work across multiple files, including: - Standardizing Docker stage syntax to uppercase "AS" - Removing redundant CSS - Destructuring event props in a loop - Cleaning up unused imports - Adding alt text to images
1 parent 65210d7 commit 6929e72

File tree

7 files changed

+11
-36
lines changed

7 files changed

+11
-36
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-bullseye as base
1+
FROM node:20-bullseye AS base
22

33
ARG PUBLIC_APPWRITE_ENDPOINT
44
ENV PUBLIC_APPWRITE_ENDPOINT ${PUBLIC_APPWRITE_ENDPOINT}
@@ -60,13 +60,13 @@ COPY pnpm-lock.yaml pnpm-lock.yaml
6060
RUN npm i -g corepack@latest
6161
RUN corepack enable
6262

63-
FROM base as build
63+
FROM base AS build
6464

6565
COPY . .
6666
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
6767
RUN NODE_OPTIONS=--max_old_space_size=16384 pnpm run build
6868

69-
FROM base as final
69+
FROM base AS final
7070

7171
# Install fontconfig
7272
COPY ./local-fonts /usr/share/fonts

src/lib/components/PreFooter.svelte

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,29 +135,16 @@
135135
flex-basis: 5rem !important;
136136
}
137137
138-
.web-strip-plans-item-wrapper {
139-
gap: 2.65rem;
140-
}
141-
142138
@media (min-width: 1024px) and (max-width: 1224px) {
143139
.web-strip-plans-info {
144140
flex-basis: 1rem !important;
145141
}
146-
147-
.web-strip-plans-item-wrapper {
148-
gap: 1.25rem !important;
149-
inline-size: 100% !important;
150-
}
151142
}
152143
153144
@media (max-width: 1024px) {
154145
.web-strip-plans-info {
155146
flex-basis: 3rem !important;
156147
}
157-
158-
.web-strip-plans-item-wrapper {
159-
gap: 1.25rem !important;
160-
}
161148
}
162149
163150
.web-pre-footer-bg {

src/routes/(init)/init/(components)/event-carousel.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@
9898
on:emblaInit={onEmblaInit}
9999
>
100100
<div class="embla__container flex">
101-
{#each events as _}
101+
{#each events as { poster, title }}
102102
<div
103103
class="embla__slide bg-card/90 mr-4 min-w-0 [flex:0_0_33%] items-center rounded-lg p-4"
104104
>
105-
<img src={_.poster} class="m-auto rounded-t" />
106-
<h3 class="mt-0.5 text-base font-medium">{_.title}</h3>
105+
<img alt={title} src={poster} class="m-auto rounded-t" />
106+
<h3 class="mt-0.5 text-base font-medium">{title}</h3>
107107
</div>
108108
{/each}
109109
</div>

src/routes/(init)/init/(utils)/contributions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { APPWRITE_DB_INIT_ID, APPWRITE_COL_INIT_ID } from '$env/static/private';
2-
import { DOMParser, parseHTML } from 'linkedom';
3-
4-
import type { TicketData } from './tickets';
1+
import { APPWRITE_COL_INIT_ID, APPWRITE_DB_INIT_ID } from '$env/static/private';
2+
import { parseHTML } from 'linkedom';
53
import { z } from 'zod';
64
import { createInitServerClient } from './appwrite';
5+
import type { TicketData } from './tickets';
76

87
const contributionsSchema = z.array(z.array(z.number()));
98
export type ContributionsMatrix = z.infer<typeof contributionsSchema>;

src/routes/(init)/init/+page.server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { redirect, type Action, type Actions } from '@sveltejs/kit';
1+
import { redirect, type Actions } from '@sveltejs/kit';
22
import { getTicketByUser } from './(utils)/tickets';
3-
import { OAuthProvider } from 'appwrite';
4-
import { Account, Client } from 'node-appwrite';
5-
import { PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT_INIT_ID } from '$env/static/public';
63
import { loginGithub } from './(utils)/auth';
74

85
export const prerender = false;

src/routes/products/messaging/+page.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
import { FooterNav, MainFooter, PreFooter } from '$lib/components';
33
import Main from '$lib/layouts/Main.svelte';
4-
import { DEFAULT_DESCRIPTION, DEFAULT_HOST } from '$lib/utils/metadata';
4+
import { DEFAULT_HOST } from '$lib/utils/metadata';
55
import { TITLE_SUFFIX } from '$routes/titles';
66
import Draft from './(components)/Draft.svelte';
77
import Schedule from './(components)/Schedule.svelte';
@@ -719,9 +719,6 @@ messaging.create_email(
719719
@media (max-width: 500px) {
720720
flex-direction: column;
721721
gap: 1rem;
722-
& a {
723-
width: 100%;
724-
}
725722
}
726723
}
727724

src/routes/threads/+page.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,5 @@
238238
color: hsl(var(--web-color-primary));
239239
text-align: center;
240240
}
241-
242-
button {
243-
margin-block-start: 1.5rem;
244-
margin-inline: auto;
245-
}
246241
}
247242
</style>

0 commit comments

Comments
 (0)