Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/lib/components/common/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<script lang="ts">
import { resolve } from "$app/paths";
import NowItFuckingCuts from "$lib/images/nowitfuckingcuts.gif";
const currentYear = $state(new SvelteDate().getFullYear());
import { m } from "$lib/paraglide/messages.js";
import { SvelteDate } from "svelte/reactivity";
</script>

<footer>
<p>
1995-{currentYear}
<a href={resolve("/")}><strong>hardcore.lt</strong></a>
| {m.powered_by()}
rotten since 1995 | {m.powered_by()}
<a href="https://github.com/execut4ble/vilnius-hardcore"
><strong>chebrytė</strong></a
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
eventInsertSchema,
eventUpdateSchema,
} from "$lib/server/db/validations";
import { uploadImageAction } from "./fileUpload";
import { uploadImageAction } from "./file-upload.actions";
import { z } from "zod";

export const eventActions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Readable } from "node:stream";
import type { ReadableStream } from "node:stream/web";
import fs from "node:fs";
import { pipeline } from "node:stream/promises";
import { db } from "../server/db";
import { db } from "../db";
import * as table from "$lib/server/db/schema";
import { and, eq, ne } from "drizzle-orm";

Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { db } from "$lib/server/db";
import { count, sql } from "drizzle-orm";
import * as table from "$lib/server/db/schema";
import { eq, desc } from "drizzle-orm";
import { postActions } from "$lib/formActions/postActions";
import { postActions } from "$lib/server/actions/post.actions";
import type { PostsArray } from "$lib/types";
import { env } from "$env/dynamic/private";

Expand Down
4 changes: 2 additions & 2 deletions src/routes/blog/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { db } from "$lib/server/db";
import { eq } from "drizzle-orm";
import * as table from "$lib/server/db/schema";
import { error } from "@sveltejs/kit";
import { postActions } from "$lib/formActions/postActions";
import { commentActions } from "$lib/formActions/commentActions";
import { postActions } from "$lib/server/actions/post.actions";
import { commentActions } from "$lib/server/actions/comment.actions";
import type { PostsArray } from "$lib/types";
import { loadPostComments } from "$lib/server/db/queries/comments";
import { env } from "$env/dynamic/private";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/events/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { count, sql } from "drizzle-orm";
import type { PageServerLoad, Actions } from "./$types";
import { db } from "$lib/server/db";
import * as table from "$lib/server/db/schema";
import { eventActions } from "$lib/formActions/eventActions";
import { eventActions } from "$lib/server/actions/event.actions";
import { eq } from "drizzle-orm";
import { env } from "$env/dynamic/private";

Expand Down
4 changes: 2 additions & 2 deletions src/routes/events/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { db } from "$lib/server/db";
import { eq } from "drizzle-orm";
import * as table from "$lib/server/db/schema";
import { error } from "@sveltejs/kit";
import { eventActions } from "$lib/formActions/eventActions";
import { commentActions } from "$lib/formActions/commentActions";
import { eventActions } from "$lib/server/actions/event.actions";
import { commentActions } from "$lib/server/actions/comment.actions";
import { loadEventComments } from "$lib/server/db/queries/comments";
import { env } from "$env/dynamic/private";

Expand Down
2 changes: 1 addition & 1 deletion src/routes/images/[image]/+server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from "path";
import fs from "fs";
import type { RequestHandler } from "./$types";
import { FILES_DIR } from "$lib/formActions/fileUpload";
import { FILES_DIR } from "$lib/server/actions/file-upload.actions";

export const GET: RequestHandler = ({ params }) => {
const filePath = path.normalize(path.join(FILES_DIR, params.image));
Expand Down
Loading