Skip to content

Commit

Permalink
Merge pull request #62 from SkyCryptWebsite/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGigi authored Dec 27, 2024
2 parents 6704501 + 79e2595 commit 1227245
Show file tree
Hide file tree
Showing 823 changed files with 1,333 additions and 711 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@sveltejs/kit": "^2.15.0",
"@sveltejs/kit": "^2.15.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@types/compression": "^1.7.5",
"@types/eslint": "^9.6.1",
Expand Down Expand Up @@ -54,7 +54,8 @@
"tslib": "^2.8.1",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.5"
"vaul-svelte": "1.0.0-next.3",
"vite": "^6.0.6"
},
"type": "module",
"dependencies": {
Expand Down
374 changes: 89 additions & 285 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,33 @@
/* For preview to work you need to have the naumovs.color-highlight extension installed */

@layer base {
:root,
.dark {
:root {
/* Icon Green (used for Skill Icons, Underlines etc.) */
--icon: 142 90% 42%;
/* --icon: 142 90% 42%; */
/* Preview: hsl(142, 90%, 42%) */

/* Link Green (used for Links, Unclaimed Slayers, Crafted Minions etc.) */
--link: 139 91% 48%;
/* --link: 139 91% 48%; */
/* Preview: hsl(139, 91%, 48%) */

/* Hover Green (used only for link hovers) */
--hover: 147 93% 49%;
/* --hover: 147 93% 49%; */
/* Preview: hsl(147, 93%, 49%) */

/* Skill Bar Green (used for Skill Progress Bars) */
--skillbar: 146 88% 35%;
/* --skillbar: 146 88% 35%; */
/* Preview: hsl(146, 88%, 35%) */

/* Maxed Bar Gold (used for Maxed Progress Bars) */
--maxedbar: 40 84% 44%;
/* --maxedbar: 40 84% 44%; */
/* Preview: hsl(40, 84%, 44%) */

/* Maxed Gold (used for Maxed things etc.) */
--maxed: 40 88% 46%;
/* --maxed: 40 88% 46%; */
/* Preview: hsl(40, 88%, 46%) */

/* Golden Text (used for Golden Text) */
--gold: 39 98% 61%;
/* --gold: 39 98% 61%; */
/* Preview: hsl(39, 98%, 61%) */

/* Most of the text */
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="nice-colors-auto overflow-x-hidden scroll-smooth bg-[#121212] bg-[url('/img/bg.webp')] bg-cover bg-fixed bg-center bg-no-repeat text-white">
<html lang="en" class="data-[mode=dark]:nice-colors-light data-[mode=light]:nice-colors-dark data-[mode=light]:light overflow-x-hidden scroll-smooth bg-[#121212] bg-cover bg-fixed bg-center bg-no-repeat text-white [background-image:--bg-url]" data-theme="default" data-mode="dark">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
Expand Down
9 changes: 3 additions & 6 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import { updateItems } from "$constants/update-items";
import { init as resourcesInit } from "$lib/server/custom_resources";
import { indexCollectons } from "$lib/server/db/mongo/index-collections";
import { intializeNEURepository, parseNEURepository } from "$lib/server/helper/NotEnoughUpdates/parseNEURepository";
import { updateNotEnoughUpdatesRepository } from "$lib/server/helper/NotEnoughUpdates/updateNEURepository";
import type { ServerInit } from "@sveltejs/kit";
import { getPrices } from "skyhelper-networth";
import { startMongo } from "./lib/server/db/mongo";
import { startRedis } from "./lib/server/db/redis";

export const init: ServerInit = async () => {
console.log("[SkyCrypt] Starting...");
await resourcesInit();
resourcesInit();

await startMongo()?.then(() => {
console.log("[MONGO] MongoDB succeesfully connected");
Expand All @@ -26,10 +25,8 @@ export const init: ServerInit = async () => {
console.log("[REDIS] Redis succeesfully connected");
});

await intializeNEURepository().then(() => {
updateNotEnoughUpdatesRepository().then(async () => {
await parseNEURepository();
});
await intializeNEURepository().then(async () => {
parseNEURepository();
});

await getPrices().then(() => {
Expand Down
165 changes: 0 additions & 165 deletions src/lib/components/Header.svelte

This file was deleted.

Loading

0 comments on commit 1227245

Please sign in to comment.