Some Code Cleanup

This commit is contained in:
2023-12-25 21:54:40 +01:00
parent a2687083e0
commit 3108d9bf20
61 changed files with 305 additions and 247 deletions

View File

@@ -19,10 +19,10 @@
<script lang="ts">
import {createEventDispatcher} from "svelte";
import {schemRepo} from "../repo/repo";
import {schemRepo} from "@repo/repo";
import {Modal, Spinner} from "flowbite-svelte";
import SchematicInfoModal from "./SchematicInfoModal.svelte";
import type {Player} from "../types/data.ts";
import type {Player} from "@type/data.ts";
const dispatch = createEventDispatcher();

View File

@@ -21,10 +21,10 @@
import {astroI18n, t} from "astro-i18n";
import {CheckSolid, XCircleOutline} from "flowbite-svelte-icons";
import {Modal} from "flowbite-svelte";
import type {SchematicInfo} from "../types/schem.ts";
import type {SchematicInfo} from "@type/schem.ts";
import {createEventDispatcher} from "svelte";
import {schemRepo} from "../repo/repo";
import type {Player} from "../types/data.ts";
import {schemRepo} from "@repo/repo";
import type {Player} from "@type/data.ts";
import dayjs from "dayjs";
const dispatch = createEventDispatcher();

View File

@@ -28,12 +28,12 @@
InfoCircleOutline
} from "flowbite-svelte-icons";
import SchematicListTile from "./SchematicListTile.svelte";
import {Breadcrumb, BreadcrumbItem, Pagination, Tooltip} from "flowbite-svelte";
import {Breadcrumb, BreadcrumbItem, Tooltip} from "flowbite-svelte";
import {createEventDispatcher} from "svelte";
import type {SchematicList} from "../types/schem.ts";
import type {SchematicList} from "@type/schem.ts";
import SchematicInfo from "./SchematicInfo.svelte";
import UploadModal from "./UploadModal.svelte";
import type {Player} from "../types/data.ts";
import type {Player} from "@type/data.ts";
import SWButton from "../styled/SWButton.svelte";
const dispatch = createEventDispatcher();

View File

@@ -20,8 +20,8 @@
<script lang="ts">
import {astroI18n, t} from "astro-i18n";
import {CheckSolid, FileOutline, FolderOutline, XCircleOutline} from "flowbite-svelte-icons";
import type {Schematic} from "../types/schem.ts";
import type {Player} from "../types/data.ts";
import type {Schematic} from "@type/schem.ts";
import type {Player} from "@type/data.ts";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";

View File

@@ -18,8 +18,8 @@
-->
<script lang="ts">
import type {Player} from "../types/data.ts";
import {statsRepo} from "../repo/repo.ts";
import type {Player} from "@type/data.ts";
import {statsRepo} from "@repo/repo.ts";
import {astroI18n, t} from "astro-i18n"
export let user: Player;

View File

@@ -19,7 +19,7 @@
<script lang="ts">
import {Modal} from "flowbite-svelte";
import {schemRepo} from "../repo/repo.ts";
import {schemRepo} from "@repo/repo.ts";
import {createEventDispatcher} from "svelte";
const dispatch = createEventDispatcher();

View File

@@ -19,9 +19,9 @@
<script lang="ts">
import {t} from "astro-i18n";
import type {Player} from "../types/data.ts";
import {authRepo, tokenStore} from "../repo/repo.ts";
import {l} from "../../util/util.ts";
import type {Player} from "@type/data.ts";
import {authRepo, tokenStore} from "@repo/repo.ts";
import {l} from "@utils/util.ts";
import Statistics from "./Statistics.svelte";
export let user: Player;