Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/SkyCrypt.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lib/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
});
</script>

<ScrollAreaPrimitive type="always" class="navbar group sticky! top-[calc(3rem+env(safe-area-inset-top,0))] z-20 overflow-clip" data-pinned={pinned} bind:ref={navbarElement} orientation="horizontal">
<ScrollAreaPrimitive type="always" class="navbar group sticky! top-[env(safe-area-inset-top,0)] z-20 overflow-clip" data-pinned={pinned} bind:ref={navbarElement} orientation="horizontal">
{#snippet viewportChildren()}
<div class="flex! flex-nowrap items-center gap-2 pb-2 font-semibold whitespace-nowrap text-text/80">
<div class="absolute bottom-1.75 z-1 h-0.5 w-[calc(100%+0.5rem)] bg-icon"></div>
Expand Down
11 changes: 3 additions & 8 deletions src/lib/layouts/stats/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,11 @@
{/if}
</div>

<!--
<div class={cn("fixed top-0 right-0 min-h-dvh w-full @[75rem]/parent:w-[calc(100%-30vw)]", $performanceMode ? "bg-background-grey" : "backdrop-blur-lg group-data-[mode=dark]/html:backdrop-brightness-50 group-data-[mode=light]/html:backdrop-brightness-100")}></div>
<main data-vaul-drawer-wrapper class="@container relative mx-auto mt-12 @[75rem]/parent:ml-[30vw]">
-->
<main data-vaul-drawer-wrapper class="@container relative mx-auto @[75rem]/parent:ml-[30vw]">
{#if getProfileContext().current}
<div class="space-y-5 p-4 @[75rem]/parent:p-8">
<PlayerProfile />
<Skills />
<Stats />
<AdditionalStats />
</div>

<Navbar>
<Sections />
</Navbar>
Expand Down
1 change: 1 addition & 0 deletions src/lib/sections/Sections.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import { Tabs } from "bits-ui";

const COMPONENTS = {
Overview: () => import("$lib/sections/stats/Overview.svelte"),
Gear: () => import("$lib/sections/stats/Gear.svelte"),
Accessories: () => import("$lib/sections/stats/Accessories.svelte"),
Pets: () => import("$lib/sections/stats/Pets.svelte"),
Expand Down
27 changes: 14 additions & 13 deletions src/lib/sections/constants.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import type { SectionID } from "$lib/sections/types";

export const sections: SectionID[] = [
{ id: 0, name: "Gear" },
{ id: 1, name: "Accessories" },
{ id: 2, name: "Pets" },
{ id: 3, name: "Inventory" },
{ id: 4, name: "Skills" },
{ id: 5, name: "Dungeons" },
{ id: 6, name: "Slayer" },
{ id: 7, name: "Minions" },
{ id: 8, name: "Bestiary" },
{ id: 9, name: "Collections" },
{ id: 10, name: "Crimson_Isle" },
{ id: 11, name: "Rift" },
{ id: 12, name: "Misc" }
{ id: 0, name: "Overview" },
{ id: 1, name: "Gear" },
{ id: 2, name: "Accessories" },
{ id: 3, name: "Pets" },
{ id: 4, name: "Inventory" },
{ id: 5, name: "Skills" },
{ id: 6, name: "Dungeons" },
{ id: 7, name: "Slayer" },
{ id: 8, name: "Minions" },
{ id: 9, name: "Bestiary" },
{ id: 10, name: "Collections" },
{ id: 11, name: "Crimson_Isle" },
{ id: 12, name: "Rift" },
{ id: 13, name: "Misc" }
];
16 changes: 16 additions & 0 deletions src/lib/sections/stats/Overview.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script lang="ts">
import Skills from "$lib/layouts/stats/Skills.svelte";
import Section from "$lib/components/Section.svelte";
import Stats from "$lib/layouts/stats/Stats.svelte";
import AdditionalStats from "$lib/layouts/stats/AdditionalStats.svelte";

let { order }: { order: number } = $props();
</script>

<Section id="Overview" {order}>
<div class="space-y-5">
<Skills/>
<Stats />
<AdditionalStats />
</div>
</Section>
2 changes: 1 addition & 1 deletion src/lib/sections/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Component } from "svelte";

export type SectionName = "Gear" | "Accessories" | "Pets" | "Inventory" | "Skills" | "Dungeons" | "Slayer" | "Minions" | "Bestiary" | "Collections" | "Crimson_Isle" | "Rift" | "Misc";
export type SectionName = "Overview" | "Gear" | "Accessories" | "Pets" | "Inventory" | "Skills" | "Dungeons" | "Slayer" | "Minions" | "Bestiary" | "Collections" | "Crimson_Isle" | "Rift" | "Misc";

export type SectionComponents = Record<SectionName, Promise<{ default: Component }> | null>;
export type SectionComponentsEager = Record<SectionName, Component | null>;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/stores/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import type { SectionID } from "$lib/sections/types";
import { persisted } from "svelte-persisted-store";

export const sectionOrderPreferences = persisted<SectionID[]>("sectionOrderPreferences", sections);
export const performanceMode = persisted<boolean>("performanceMode", false);
export const performanceMode = persisted<boolean>("performanceMode", true);
export const keybind = persisted<string>("keybind", "/");
export const showGlint = persisted<boolean>("showGlint", true);
export const showGlint = persisted<boolean>("showGlint", false);
export const rainbowEnchantments = persisted<boolean>("rainbowEnchantments", false);

// Check for invalid section order and reset if found
Expand Down
6 changes: 4 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@
<PerformanceMode />
{/if}

<div class="pointer-events-none fixed inset-0 z-[-1] h-dvh w-screen [background-image:var(--bg-url)] bg-cover bg-scroll bg-center bg-no-repeat"></div>
<!--
<div class="pointer-events-none fixed inset-0 z-[-1] h-dvh w-screen [background-image:var(&#45;&#45;bg-url)] bg-cover bg-scroll bg-center bg-no-repeat"></div>
-->

<Header />
<!--<Header />-->

<Tooltip.Provider delayDuration={0}>
{@render children()}
Expand Down