-
-
-
-
-
-
-
-
-
- Phasellus ut pulvinar nisl.
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer dignissim odio orci, in volutpat nunc lacinia et. Phasellus ut dictum nibh. Donec hendrerit nunc sed elit porttitor, in efficitur arcu hendrerit.
- Aenean erat est, maximus id congue ut, venenatis eu nibh. Vivamus vitae varius erat, eu tempor urna. Aenean viverra sed erat sed viverra. Fusce vulputate, mauris eget hendrerit venenatis, eros felis rutrum orci, in commodo mauris elit sit amet arcu.
-
-
-
-
-
-
-
-
-
-
-
-
Loved by providers
-
- Providers use Stocklet to sell their products with confidence.
-
-
-
- “Vivamus sit amet est eu urna lobortis cursus sed at odio.”
-
-
-
-
John Doe
-
CEO, Acme Inc.
-
-
-
-
-
- “Aliquam velit augue, varius quis est ac, interdum tincidunt lorem.”
-
-
-
-
Jane Doe
-
Product Lead, Wayne Industries.
-
-
-
-
-
- “Aliquam a lobortis nisi. Nullam varius a diam nec vulputate.”
-
-
-
-
Alice Wonderland
-
Managing Directory, E Corp.
-
-
-
-
-
-
-
-
-
+
+
Homepage
diff --git a/web/src/routes/orders/[id]/+page.svelte b/web/src/routes/orders/[id]/+page.svelte
new file mode 100644
index 0000000..21122cf
--- /dev/null
+++ b/web/src/routes/orders/[id]/+page.svelte
@@ -0,0 +1,7 @@
+
+
+
Order ID: {data.id}
\ No newline at end of file
diff --git a/web/src/routes/orders/[id]/+page.ts b/web/src/routes/orders/[id]/+page.ts
new file mode 100644
index 0000000..12a0e43
--- /dev/null
+++ b/web/src/routes/orders/[id]/+page.ts
@@ -0,0 +1,7 @@
+import type { PageLoad } from './$types';
+
+export const load: PageLoad = ({ params }) => {
+ return {
+ id: params.id
+ };
+};
\ No newline at end of file
diff --git a/web/src/routes/products/[id]/+page.svelte b/web/src/routes/products/[id]/+page.svelte
new file mode 100644
index 0000000..ac264e3
--- /dev/null
+++ b/web/src/routes/products/[id]/+page.svelte
@@ -0,0 +1,7 @@
+
+
+
Product ID: {data.id}
\ No newline at end of file
diff --git a/web/src/routes/products/[id]/+page.ts b/web/src/routes/products/[id]/+page.ts
new file mode 100644
index 0000000..39a8737
--- /dev/null
+++ b/web/src/routes/products/[id]/+page.ts
@@ -0,0 +1,10 @@
+// import { error } from '@sveltejs/kit';
+import type { PageLoad } from './$types';
+
+export const load: PageLoad = ({ params }) => {
+ return {
+ id: params.id
+ };
+
+ // error(404, 'Product not found');
+};
\ No newline at end of file
diff --git a/web/src/stores/auth.ts b/web/src/stores/auth.ts
new file mode 100644
index 0000000..c0c7d6e
--- /dev/null
+++ b/web/src/stores/auth.ts
@@ -0,0 +1,28 @@
+import { writable } from 'svelte/store';
+import type { components } from "$lib/api/schema";
+
+type AuthStore = {
+ profile: components["schemas"]["v1User"] | null;
+ tokens: components["schemas"]["v1AuthToken"] | null;
+ isLoading: boolean;
+};
+
+const INITIAL_AUTH_STATE: AuthStore = {
+ profile: null,
+ tokens: null,
+ isLoading: false
+};
+
+export const authState = writable
(INITIAL_AUTH_STATE);
+
+export function setTokens(value: components["schemas"]["v1AuthToken"]): void {
+ authState.update((currentState) => {
+ return { ...currentState, tokens: value }
+ });
+}
+
+export function setProfile(value: components["schemas"]["v1User"]): void {
+ authState.update((currentState) => {
+ return { ...currentState, profile: value }
+ });
+}
\ No newline at end of file
diff --git a/web/src/stores/cart.ts b/web/src/stores/cart.ts
new file mode 100644
index 0000000..e69de29