From 9a16c4b560248e0d6f1567d9b509ef2b2596bfe6 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 27 Dec 2023 19:16:54 +0100 Subject: [PATCH] Some Code Cleanup --- package.json | 2 - pnpm-lock.yaml | 14 ------ src/components/Dashboard.svelte | 3 +- src/components/EloTable.svelte | 2 +- src/components/FightStatistics.svelte | 2 +- src/components/Login.svelte | 3 +- src/components/admin/pages/Edit.svelte | 2 +- src/components/admin/pages/Event.svelte | 2 +- src/components/admin/pages/Generate.svelte | 2 +- src/components/admin/pages/Home.svelte | 3 +- src/components/admin/pages/Perms.svelte | 2 +- src/components/admin/pages/edit/Editor.svelte | 2 +- .../admin/pages/event/EventEdit.svelte | 3 +- .../admin/pages/event/FightCard.svelte | 2 +- .../admin/pages/event/FightList.svelte | 3 +- .../event/modals/CreateFightModal.svelte | 2 +- .../pages/event/modals/FightEditModal.svelte | 3 +- .../pages/generate/GroupGenerator.svelte | 2 +- .../admin/pages/home/CreateEventModal.svelte | 2 +- src/components/dashboard/SchematicInfo.svelte | 2 +- .../dashboard/SchematicInfoModal.svelte | 2 +- src/components/dashboard/Statistics.svelte | 2 +- src/components/dashboard/UploadModal.svelte | 2 +- src/components/dashboard/UserInfo.svelte | 3 +- src/components/repo/auth.ts | 7 ++- src/components/repo/data.ts | 7 ++- src/components/repo/event.ts | 5 ++- src/components/repo/fight.ts | 9 ++-- src/components/repo/page.ts | 7 ++- src/components/repo/perms.ts | 5 ++- src/components/repo/repo.ts | 44 +++++-------------- src/components/repo/schem.ts | 7 ++- src/components/repo/stats.ts | 7 ++- src/components/stores/stores.ts | 4 +- src/pages/announcements/[...slug].astro | 4 +- src/pages/dashboard.astro | 5 +-- src/pages/login.astro | 5 +-- steamwarci.yml | 9 +--- 38 files changed, 87 insertions(+), 105 deletions(-) diff --git a/package.json b/package.json index 678a51f..3992b4c 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "@astrojs/tailwind": "^5.0.4", "@astropub/icons": "^0.2.0", "@types/color": "^3.0.6", - "@types/crypto-js": "^4.2.1", "@types/node": "^20.10.5", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.15.0", @@ -52,7 +51,6 @@ "chartjs-adapter-dayjs-4": "^1.0.4", "chartjs-adapter-moment": "^1.0.1", "color": "^4.2.3", - "crypto-js": "^4.2.0", "dayjs": "^1.11.10", "easymde": "^2.18.0", "flowbite": "^1.8.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 60e00df..d9b4e45 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,9 +38,6 @@ dependencies: color: specifier: ^4.2.3 version: 4.2.3 - crypto-js: - specifier: ^4.2.0 - version: 4.2.0 dayjs: specifier: ^1.11.10 version: 1.11.10 @@ -85,9 +82,6 @@ devDependencies: '@types/color': specifier: ^3.0.6 version: 3.0.6 - '@types/crypto-js': - specifier: ^4.2.1 - version: 4.2.1 '@types/node': specifier: ^20.10.5 version: 20.10.5 @@ -1083,10 +1077,6 @@ packages: '@types/color-convert': 2.0.3 dev: true - /@types/crypto-js@4.2.1: - resolution: {integrity: sha512-FSPGd9+OcSok3RsM0UZ/9fcvMOXJ1ENE/ZbLfOPlBWj7BgXtEAM8VYfTtT760GiLbQIMoVozwVuisjvsVwqYWw==} - dev: true - /@types/debug@4.1.12: resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} dependencies: @@ -1975,10 +1965,6 @@ packages: shebang-command: 2.0.0 which: 2.0.2 - /crypto-js@4.2.0: - resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==} - dev: false - /css-declaration-sorter@7.1.1(postcss@8.4.32): resolution: {integrity: sha512-dZ3bVTEEc1vxr3Bek9vGwfB5Z6ESPULhcRvO472mfjVnj8jRcTnKO8/JTczlvxM10Myb+wBM++1MtdO76eWcaQ==} engines: {node: ^14 || ^16 || >=18} diff --git a/src/components/Dashboard.svelte b/src/components/Dashboard.svelte index 8331297..7d9ec38 100644 --- a/src/components/Dashboard.svelte +++ b/src/components/Dashboard.svelte @@ -19,9 +19,10 @@ diff --git a/src/pages/login.astro b/src/pages/login.astro index 111149e..0c25b6a 100644 --- a/src/pages/login.astro +++ b/src/pages/login.astro @@ -7,11 +7,10 @@ import localBau from "@images/2023-10-08_20.43.43.png"; --- - diff --git a/steamwarci.yml b/steamwarci.yml index d87b428..9f5143e 100644 --- a/steamwarci.yml +++ b/steamwarci.yml @@ -1,8 +1,3 @@ -setup: - - "echo 'PUBLIC_API_SERVER=https://steamwar.de/eventplanner-api/ -PUBLIC_SECRET=mae6eeheeT4Quain' > .env" - build: - - "pnpm run ci" - -artifacts: + - "echo 'PUBLIC_API_SERVER=https://steamwar.de/eventplanner-api/" + - "pnpm run ci" \ No newline at end of file