Updated CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Dominic Grimm 2022-02-13 09:45:14 +01:00
parent c6b5ca3fc2
commit 8f94f6fee9
4 changed files with 12 additions and 16 deletions

View file

@ -69,11 +69,6 @@ type: docker
name: frontend name: frontend
steps: steps:
- name: prettier
image: elnebuloso/prettier
commands:
- cd docker/frontend/
- prettier --ignore-path .gitignore --check --plugin-search-dir=. .
- name: build - name: build
image: tmaier/docker-compose image: tmaier/docker-compose
volumes: volumes:

View file

@ -9,11 +9,13 @@ declare namespace App {
}; };
} }
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Platform {} interface Platform {}
interface Session { interface Session {
user: Locals.user; user: Locals.user;
} }
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Stuff {} interface Stuff {}
} }

View file

@ -1,13 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="description" content="" /> <meta name="description" content="" />
<link rel="icon" href="%svelte.assets%/favicon.png" /> <link rel="icon" href="%svelte.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head% %svelte.head%
</head> </head>
<body> <body>
<div>%svelte.body%</div> <div>%svelte.body%</div>
</body> </body>
</html> </html>

View file

@ -1,7 +1,6 @@
<script lang="ts" context="module"> <script lang="ts" context="module">
export function load({ session }: { session: App.Session }) { export function load({ session }: { session: App.Session }) {
if (!session.user.token) { if (!session.user.token) {
console.log("trest");
return { return {
status: 302, status: 302,
redirect: "/login", redirect: "/login",