-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bring Staging up to date with Main (#143) * Merge Staging into Main (#139) * news carousel adjustments * adjust explore and tag pages * work header fixes * profile header updates * adjust profile home page * sizes down work stats on smaller displays * adjusting works and blogs lists * Update +layout.svelte * adding optimizations to section list * Update +page.svelte * Update +page.svelte * Feat/email and recovery (#136) * feat: password resets and email confirmations * updating controllers with confirmation guard * API routes for features now in place * password resets are in * email confirmations are now in * update readme * Feat/work and comments features (#138) * Feat/fixing profile forms (#142) * chore: add beta badge to nav * chore: fix display of beta badge * chore: update about panel and version * adding placeholder for messages panel * profile forms now work * fix: redirect approval/rejection notifications to their intended recipient * adding links form to profile setitngs * feat: adding links to profile pages * fix: address issue with layout of admin badge on mobile * chore: adds unique constraint to the approval queue (#123) adds a `UNIQUE` constraint to the approval queue table on `work_id`, guaranteeing that works can only ever be submitted to the queue once. closes #78 * fix: testing new method of obtaining client IP address * Update Functions.swift * Update Functions.swift * fix: addresses issues with pagination on profile pages * fix: address issue of width on mobile devices for profile pages * fix: remove more tags button when less than 2 tags * fix: one last fix for tags display * fix: make sure transactions are actually being committed * fix: pagination on works and blogs pages * Update version.ts * Update Paginator.svelte * Update version.ts * [FIX] Addresses access token expiry issue (#152) * fix: include parent tags when fetching approval queue * fix: addresses issue with sessions expiring early * chore: remove debug lines * feat: update site version * feat: adding svelte query
- Loading branch information
Showing
21 changed files
with
157 additions
and
156 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 was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
export * from './http-service'; | ||
export { BASE_URL } from './base-url'; | ||
export type { ResponseError } from './response-error'; | ||
export * from "./http-service"; | ||
export { BASE_URL } from "./base-url"; | ||
export type { ResponseError } from "./response-error"; | ||
export { queryClient } from "./query-client"; |
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,10 @@ | ||
import { browser } from "$app/environment"; | ||
import { QueryClient } from "@tanstack/svelte-query"; | ||
|
||
export const queryClient = new QueryClient({ | ||
defaultOptions: { | ||
queries: { | ||
enabled: browser | ||
} | ||
} | ||
}); |
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 |
---|---|---|
|
@@ -49,7 +49,7 @@ | |
initialValues: { | ||
email: "", | ||
password: "", | ||
rememberMe: false | ||
rememberMe: true | ||
} | ||
}); | ||
</script> | ||
|
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 +1 @@ | ||
export const VERSION = "v1.0.0-beta.3"; | ||
export const VERSION = "v1.0.0-beta.4"; |
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,5 +1,24 @@ | ||
import type { LayoutServerLoad } from "./$types"; | ||
import { postReqServer, type ServerResponseError } from "$lib/server"; | ||
import type { RefreshPackage, SessionInfo } from "$lib/models/accounts"; | ||
|
||
export const load: LayoutServerLoad = async ({ locals }): Promise<{ hasKey: boolean }> => { | ||
return { hasKey: !!locals.user }; | ||
export const load: LayoutServerLoad = async ({ cookies }): Promise<{ token: string | null }> => { | ||
const accountId = cookies.get("accountId"); | ||
const refreshToken = cookies.get("refreshToken"); | ||
|
||
if (accountId && refreshToken) { | ||
const info: SessionInfo = { | ||
accountId: accountId, | ||
refreshToken: refreshToken | ||
}; | ||
const response = await postReqServer<RefreshPackage>(`/auth/refresh`, info); | ||
if ((response as ServerResponseError).statusCode) { | ||
return { token: null }; | ||
} else { | ||
const result = response as RefreshPackage; | ||
return { token: result.accessToken }; | ||
} | ||
} else { | ||
return { token: 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
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 |
---|---|---|
|
@@ -315,11 +315,6 @@ | |
svelte-hmr "^0.15.1" | ||
vitefu "^0.2.3" | ||
|
||
"@sveltestack/svelte-query@^1.6.0": | ||
version "1.6.0" | ||
resolved "https://registry.yarnpkg.com/@sveltestack/svelte-query/-/svelte-query-1.6.0.tgz#d175863557a7abe6a8dcb0da2080a9f43ae8d1d1" | ||
integrity sha512-C0wWuh6av1zu3Pzwrg6EQmX3BhDZQ4gMAdYu6Tfv4bjbEZTB00uEDz52z92IZdONh+iUKuyo0xRZ2e16k2Xifg== | ||
|
||
"@tailwindcss/aspect-ratio@^0.4.2": | ||
version "0.4.2" | ||
resolved "https://registry.yarnpkg.com/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.2.tgz#9ffd52fee8e3c8b20623ff0dcb29e5c21fb0a9ba" | ||
|
@@ -347,6 +342,18 @@ | |
lodash.merge "^4.6.2" | ||
postcss-selector-parser "6.0.10" | ||
|
||
"@tanstack/[email protected]": | ||
version "4.24.6" | ||
resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-4.24.6.tgz#8f102bc922308f0c6c5ddea34fe253688314265a" | ||
integrity sha512-Tfru6YTDTCpX7dKVwHp/sosw/dNjEdzrncduUjIkQxn7n7u+74HT2ZrGtwwrU6Orws4x7zp3FKRqBPWVVhpx9w== | ||
|
||
"@tanstack/svelte-query@^4.24.6": | ||
version "4.24.6" | ||
resolved "https://registry.yarnpkg.com/@tanstack/svelte-query/-/svelte-query-4.24.6.tgz#028c370e0d223b76ae183cb22409b3c6b2ed5ec6" | ||
integrity sha512-bBA2r8iH6jKy/oq4JDMRt3WOzZWuvIvRvXU9dE8RmtMZfm42yRcDBd7zNmoo8kNlNvhuLulx8zVh9B9mE++Bsw== | ||
dependencies: | ||
"@tanstack/query-core" "4.24.6" | ||
|
||
"@tiptap/core@^2.0.0-beta.199": | ||
version "2.0.0-beta.202" | ||
resolved "https://registry.yarnpkg.com/@tiptap/core/-/core-2.0.0-beta.202.tgz#be4c6a200e81875c552e1cc15ae9c6cdd86c37c2" | ||
|
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
Oops, something went wrong.