-
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.
Merge branch 'alpha' into dependabot/npm_and_yarn/apps/template/svelt…
…ejs/adapter-vercel-5.1.0
- Loading branch information
Showing
621 changed files
with
20,347 additions
and
4,939 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Dependabot auto-approve | ||
on: pull_request_target | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Dependabot metadata | ||
id: metadata | ||
uses: dependabot/fetch-metadata@v1.6.0 | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Enable auto-merge for Dependabot PRs | ||
run: gh pr merge --auto --squash "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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,14 +1,14 @@ | ||
{ | ||
"$schema": "https://shadcn-svelte.com/schema.json", | ||
"style": "default", | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/app.pcss", | ||
"baseColor": "slate" | ||
}, | ||
"aliases": { | ||
"components": "$lib/components", | ||
"utils": "$lib/utils" | ||
}, | ||
"typescript": true | ||
} | ||
"$schema": "https://shadcn-svelte.com/schema.json", | ||
"style": "default", | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/app.pcss", | ||
"baseColor": "slate" | ||
}, | ||
"aliases": { | ||
"components": "$lib/components", | ||
"utils": "$lib/utils" | ||
}, | ||
"typescript": true | ||
} |
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
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,32 @@ | ||
import { authenticateUser } from "$lib/utils"; | ||
import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from "$env/static/public"; | ||
import { createSupabaseServerClient } from "@supabase/auth-helpers-sveltekit"; | ||
|
||
import type { Handle } from "@sveltejs/kit"; | ||
|
||
export const handle: Handle = async ({ event, resolve }) => { | ||
authenticateUser(event); | ||
|
||
event.locals.supabase = createSupabaseServerClient({ | ||
supabaseUrl: PUBLIC_SUPABASE_URL, | ||
supabaseKey: PUBLIC_SUPABASE_ANON_KEY, | ||
event | ||
}); | ||
|
||
/** | ||
* a little helper that is written for convenience so that instead | ||
* of calling `const { data: { session } } = await supabase.auth.getSession()` | ||
* you just call this `await getSession()` | ||
*/ | ||
event.locals.getSession = async () => { | ||
const { | ||
data: { session } | ||
} = await event.locals.supabase.auth.getSession(); | ||
return session; | ||
}; | ||
return await resolve(event, { | ||
filterSerializedResponseHeaders(name) { | ||
return name === "content-range"; | ||
} | ||
}); | ||
}; |
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,11 +1,10 @@ | ||
import { type Node, type Edge } from '@xyflow/svelte'; | ||
import { supabase } from "$lib/supabase"; | ||
import type { TablesInsert } from "$lib/supabase.types"; | ||
|
||
import { supabase } from '$lib/supabase'; | ||
|
||
export async function saveMaeveNodes(data: { user_id: string; nodes: Node[]; edges: Edge[] }) { | ||
return supabase.from('maeve_nodes').upsert(data); | ||
export async function saveMaeveNodes(data: TablesInsert<"maeve_nodes">) { | ||
return supabase.from("maeve_nodes").upsert(data); | ||
} | ||
|
||
export async function getMeaveNodes(userId: string) { | ||
return supabase.from('maeve_nodes').select('*').eq('user_id', userId).single(); | ||
export async function getMaeveNodes(userId: string) { | ||
return await supabase.from("maeve_nodes").select("*").eq("user_id", userId); | ||
} |
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,83 @@ | ||
<script lang="ts"> | ||
import { page } from "$app/stores"; | ||
import { | ||
Paperclip, | ||
Receipt, | ||
PencilRuler, | ||
PlusCircle, | ||
PieChart, | ||
Building, | ||
Table, | ||
ScrollText | ||
} from "lucide-svelte"; | ||
import type { SvelteComponent } from "svelte"; | ||
</script> | ||
|
||
<!-- Static sidebar for desktop --> | ||
<div class="hidden h-full overflow-y-clip lg:z-50 lg:flex lg:w-72 lg:flex-col"> | ||
<!-- Sidebar component, swap this element with another sidebar if you like --> | ||
<div | ||
class="m-4 flex grow flex-col gap-y-5 overflow-hidden rounded-2xl border bg-primary-900/20 px-6 pb-6 text-white" | ||
> | ||
<div class="flex h-16 shrink-0 items-center px-2 pt-6"> | ||
<a href="https://flowbite.com" class="mr-4 flex place-items-center space-x-2"> | ||
<Logo color="accent" /> | ||
<span class="self-center whitespace-nowrap text-2xl font-semibold dark:text-white">Oak</span | ||
> | ||
</a> | ||
</div> | ||
<nav class="flex flex-col pt-0 sm:mt-0 sm:pt-0"> | ||
<ul role="list" class="flex list-none flex-col gap-y-0 pl-0 sm:mt-0 sm:pl-0"> | ||
<li class="my-0 pl-0 sm:my-0 sm:pl-0"> | ||
{#each navigations as { name, items }} | ||
<ul role="list" class=" mb-6 list-none gap-4 pl-0 sm:mb-8 sm:pl-0"> | ||
<p class="m-0 px-2 pb-2 text-xs font-semibold sm:m-0">{name}</p> | ||
{#each items as { name, href, icon, current, pendingCount }} | ||
<li class="m-0 pl-0 sm:m-0 sm:pl-0"> | ||
<!-- Current: "bg-gray-800 text-primary-foreground", Default: "text-gray-400 hover:text-primary-foreground hover:bg-gray-800" --> | ||
<a | ||
href={"/home/" + href} | ||
class="group flex gap-x-3 rounded-md p-2 text-sm font-semibold transition transition-colors transition-transform hover:translate-x-2 hover:scale-[1.04] {$page.url.pathname.includes( | ||
href | ||
) | ||
? 'bg-accent/90 text-accent-foreground hover:bg-accent ' | ||
: 'text-primary-foreground opacity-100 hover:text-accent'}" | ||
> | ||
<LucideIcon name={icon} /> | ||
{name} | ||
{#if pendingCount} | ||
<span | ||
class="ml-auto rounded-full bg-accent px-2 py-1 text-xs font-semibold text-accent-foreground" | ||
> | ||
{pendingCount} | ||
</span> | ||
{/if} | ||
</a> | ||
</li> | ||
{/each} | ||
</ul> | ||
{/each} | ||
</li> | ||
<li class="mt-auto pl-0 sm:mt-auto sm:pl-0"> | ||
<ul role="list" class=" m-0 list-none pl-0 sm:m-0 sm:pl-0"> | ||
{#each bottomNavigation as { name, href, icon, current }} | ||
<li class="pb-0 pl-0 sm:pl-0"> | ||
<a | ||
href={"/home/" + href} | ||
class="group flex gap-x-3 rounded-md p-2 text-sm font-semibold transition transition-colors transition-transform hover:translate-x-2 hover:scale-[1.04] {$page.url.pathname.includes( | ||
href | ||
) | ||
? 'bg-accent/90 text-accent-foreground hover:bg-accent ' | ||
: 'text-primary-foreground opacity-100 hover:text-accent'}" | ||
> | ||
<LucideIcon name={icon} /> | ||
{name} | ||
</a> | ||
</li> | ||
{/each} | ||
</ul> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> |
Oops, something went wrong.