-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
727 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `public_assets` ( | ||
`file_name` text PRIMARY KEY NOT NULL, | ||
`type` text NOT NULL, | ||
`blob` blob NOT NULL | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"version": "6", | ||
"dialect": "sqlite", | ||
"id": "d18f7878-d194-4bdd-971d-79e9645dc74c", | ||
"prevId": "f3c55a7a-8bd7-451f-b5c2-ad2370a0829c", | ||
"tables": { | ||
"email_addresses": { | ||
"name": "email_addresses", | ||
"columns": { | ||
"email_id": { | ||
"name": "email_id", | ||
"type": "integer", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": true | ||
}, | ||
"user_id": { | ||
"name": "user_id", | ||
"type": "text(26)", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"email_address": { | ||
"name": "email_address", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"is_verified": { | ||
"name": "is_verified", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false, | ||
"default": "0" | ||
} | ||
}, | ||
"indexes": { | ||
"email_addresses_email_address_unique": { | ||
"name": "email_addresses_email_address_unique", | ||
"columns": ["email_address"], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": { | ||
"email_addresses_user_id_users_id_fk": { | ||
"name": "email_addresses_user_id_users_id_fk", | ||
"tableFrom": "email_addresses", | ||
"tableTo": "users", | ||
"columnsFrom": ["user_id"], | ||
"columnsTo": ["id"], | ||
"onDelete": "cascade", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"public_assets": { | ||
"name": "public_assets", | ||
"columns": { | ||
"file_name": { | ||
"name": "file_name", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"type": { | ||
"name": "type", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"blob": { | ||
"name": "blob", | ||
"type": "blob", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"user_aliases": { | ||
"name": "user_aliases", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "integer", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": true | ||
}, | ||
"user_ref": { | ||
"name": "user_ref", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"alias_name": { | ||
"name": "alias_name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": { | ||
"user_aliases_user_ref_users_id_fk": { | ||
"name": "user_aliases_user_ref_users_id_fk", | ||
"tableFrom": "user_aliases", | ||
"tableTo": "users", | ||
"columnsFrom": ["user_ref"], | ||
"columnsTo": ["id"], | ||
"onDelete": "cascade", | ||
"onUpdate": "no action" | ||
} | ||
}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
}, | ||
"users": { | ||
"name": "users", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "text", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"autoincrement": false | ||
}, | ||
"display_name": { | ||
"name": "display_name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"autoincrement": false | ||
}, | ||
"username": { | ||
"name": "username", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"autoincrement": false | ||
} | ||
}, | ||
"indexes": { | ||
"users_username_unique": { | ||
"name": "users_username_unique", | ||
"columns": ["username"], | ||
"isUnique": true | ||
} | ||
}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": {} | ||
} | ||
}, | ||
"enums": {}, | ||
"_meta": { | ||
"schemas": {}, | ||
"tables": {}, | ||
"columns": {} | ||
}, | ||
"internal": { | ||
"indexes": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/lib/components/account/account-header-component.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script lang="ts"> | ||
import { User } from "lucide-svelte"; | ||
import * as Avatar from "@/ui/avatar"; | ||
import * as DropdownMenu from "@/ui/dropdown-menu"; | ||
import { goto } from "$app/navigation"; | ||
</script> | ||
|
||
<DropdownMenu.Root> | ||
<DropdownMenu.Trigger> | ||
<Avatar.Root> | ||
<Avatar.Image | ||
src="https://cdn.d3rpp.dev/haaaaaaaa" | ||
alt="Profile Photo" | ||
/> | ||
<Avatar.Fallback><User /></Avatar.Fallback> | ||
</Avatar.Root> | ||
</DropdownMenu.Trigger> | ||
<DropdownMenu.Content align="end"> | ||
<DropdownMenu.Item onclick={() => goto("/auth/login")}> | ||
Login | ||
</DropdownMenu.Item> | ||
<DropdownMenu.Item onclick={() => goto("/auth/sign-up")}> | ||
Sign Up | ||
</DropdownMenu.Item> | ||
</DropdownMenu.Content> | ||
</DropdownMenu.Root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as AccountHeaderComponent } from "./account-header-component.svelte"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script lang="ts"> | ||
import ThemeToggle from "@/theme-toggle.svelte"; | ||
</script> | ||
|
||
<footer class="border-t border-border/40 bg-background/95"> | ||
<div | ||
class="hidden h-24 max-w-screen-2xl px-4 md:flex md:flex-row md:items-center md:justify-end" | ||
> | ||
<ThemeToggle /> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as LandingFooter } from "./landing-footer.svelte"; | ||
export { default as AppFooter } from "./app-footer.svelte"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script lang="ts"> | ||
import ThemeToggle from "@/theme-toggle.svelte"; | ||
</script> | ||
|
||
<footer class="border-t border-border/40 bg-background/95"> | ||
<div | ||
class="hidden h-24 max-w-screen-2xl px-4 md:flex md:flex-row md:items-center md:justify-end" | ||
> | ||
<ThemeToggle /> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
<script lang="ts"> | ||
import { cn } from "$lib/utils"; | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
const { | ||
class: className, | ||
children, | ||
}: HTMLAttributes<HTMLDivElement> = $props(); | ||
</script> | ||
|
||
<!-- | ||
@component | ||
This is a reusable `<main>` tag, it has all of the classes to be nice and | ||
usable and can be expanded later to also work on mobile. | ||
--> | ||
|
||
<main class="mx-auto max-w-screen-2xl py-4"> | ||
<slot /> | ||
<main class={cn("mx-auto max-w-screen-2xl py-4", className)}> | ||
{#if children} | ||
{@render children()} | ||
{/if} | ||
</main> |
Oops, something went wrong.