change oauth link
This commit is contained in:
parent
59a33754e2
commit
0d29d59937
2 changed files with 8 additions and 4 deletions
|
@ -1,9 +1,11 @@
|
||||||
# stereo.cat frontend
|
# stereo.cat frontend
|
||||||
|
|
||||||
written in typescript with qwik
|
written in typescript with qwik & bun
|
||||||
|
|
||||||
## running in dev env
|
## development
|
||||||
```
|
https://bun.sh/docs/installation
|
||||||
|
|
||||||
|
```bash
|
||||||
git clone https://git.iwakura.rip/stereo.cat/frontend.git
|
git clone https://git.iwakura.rip/stereo.cat/frontend.git
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
bun install
|
bun install
|
||||||
|
@ -11,4 +13,5 @@ bun dev
|
||||||
```
|
```
|
||||||
|
|
||||||
## disclaimer
|
## disclaimer
|
||||||
|
|
||||||
All graphic assets belonging to stereo.cat may not be used in unofficial instances, forks or versions of our software. Please replace them if you are hosting our software yourself, they can be found in the ``public`` folder in this repository. More information (like the full license) can be found [here](https://git.iwakura.rip/stereo.cat/public)
|
All graphic assets belonging to stereo.cat may not be used in unofficial instances, forks or versions of our software. Please replace them if you are hosting our software yourself, they can be found in the ``public`` folder in this repository. More information (like the full license) can be found [here](https://git.iwakura.rip/stereo.cat/public)
|
||||||
|
|
|
@ -6,13 +6,14 @@ import File from "~/components/dashboard/File";
|
||||||
import { SolarUploadLinear, SvgSpinnersBarsRotateFade } from "~/components/misc/Icons";
|
import { SolarUploadLinear, SvgSpinnersBarsRotateFade } from "~/components/misc/Icons";
|
||||||
import { useNanostore$ } from "~/hooks/nanostores";
|
import { useNanostore$ } from "~/hooks/nanostores";
|
||||||
import { api } from "~/lib/api";
|
import { api } from "~/lib/api";
|
||||||
|
import { OAUTH_LINK } from "~/lib/constants";
|
||||||
import { areFilesLoaded, dashboardFiles } from "~/lib/stores";
|
import { areFilesLoaded, dashboardFiles } from "~/lib/stores";
|
||||||
import { StereoFile } from "~/lib/types";
|
import { StereoFile } from "~/lib/types";
|
||||||
|
|
||||||
export const useAuthCheck = routeLoader$(({ cookie, redirect: r }) => {
|
export const useAuthCheck = routeLoader$(({ cookie, redirect: r }) => {
|
||||||
const jwt = cookie.get("jwt");
|
const jwt = cookie.get("jwt");
|
||||||
if (jwt) return {};
|
if (jwt) return {};
|
||||||
throw r(302, "/");
|
throw r(302, OAUTH_LINK);
|
||||||
});
|
});
|
||||||
|
|
||||||
export default component$(() => {
|
export default component$(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue