This commit is contained in:
parent
c6b5ca3fc2
commit
8f94f6fee9
4 changed files with 12 additions and 16 deletions
|
@ -69,11 +69,6 @@ type: docker
|
|||
name: frontend
|
||||
|
||||
steps:
|
||||
- name: prettier
|
||||
image: elnebuloso/prettier
|
||||
commands:
|
||||
- cd docker/frontend/
|
||||
- prettier --ignore-path .gitignore --check --plugin-search-dir=. .
|
||||
- name: build
|
||||
image: tmaier/docker-compose
|
||||
volumes:
|
||||
|
|
2
docker/frontend/src/app.d.ts
vendored
2
docker/frontend/src/app.d.ts
vendored
|
@ -9,11 +9,13 @@ declare namespace App {
|
|||
};
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface Platform {}
|
||||
|
||||
interface Session {
|
||||
user: Locals.user;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface Stuff {}
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="description" content="" />
|
||||
<link rel="icon" href="%svelte.assets%/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%svelte.head%
|
||||
</head>
|
||||
<body>
|
||||
<div>%svelte.body%</div>
|
||||
</body>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="description" content="" />
|
||||
<link rel="icon" href="%svelte.assets%/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%svelte.head%
|
||||
</head>
|
||||
<body>
|
||||
<div>%svelte.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<script lang="ts" context="module">
|
||||
export function load({ session }: { session: App.Session }) {
|
||||
if (!session.user.token) {
|
||||
console.log("trest");
|
||||
return {
|
||||
status: 302,
|
||||
redirect: "/login",
|
||||
|
|
Loading…
Reference in a new issue