Skip to content

Commit

Permalink
fix(imports): update imports for server
Browse files Browse the repository at this point in the history
  • Loading branch information
Zickles committed Jun 13, 2024
1 parent 65710e8 commit 541df2a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/server/stats/accessories.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as constants from "$constants/constants";
import * as helper from "$lib/helper";
import { itemSorter } from "$lib/server/stats/processing";
import { itemSorter } from "$lib/server/stats/items/processing";
import type { Accessories, Accessory, AccessoryRarities, Member, ProcessedItem } from "$types/global";
import { getMissingAccessories } from "$lib/stats/missing";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getTexture } from "$lib/custom_resources";
import { getItemNetworth } from "skyhelper-networth";

import * as constants from "../../constants/constants";
import * as constants from "$constants/constants";
import minecraftData from "minecraft-data";
import * as helper from "$lib/helper";
const mcData = minecraftData("1.8.9");
Expand Down
5 changes: 3 additions & 2 deletions src/lib/stats/collections.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { Collections, Member, Profile } from "$types/global";
import * as constants from "$constants/constants";
import { COLLECTIONS } from "$lib/server/constants/update-collections";

export function getCollection(userProfile: Member, profile: Profile, collection: string) {
let collectionData;
for (const value of constants.COLLECTIONS.values()) {
for (const value of COLLECTIONS.values()) {
if (value.items === undefined || value.items.find((a) => a.id === collection) === undefined) {
continue;
}
Expand Down Expand Up @@ -44,7 +45,7 @@ export function getCollection(userProfile: Member, profile: Profile, collection:

export function getCollections(userProfile: Member, profile: Profile) {
const output = { categories: {} } as Collections;
for (const [category, categoryData] of constants.COLLECTIONS) {
for (const [category, categoryData] of COLLECTIONS) {
output.categories[category] = {
name: categoryData.name,
texture: "/api/item/" + constants.COLLECTION_ICONS[category],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stats/items.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import type { Items, Member, ProcessedItem } from "$types/global";
import { processItems } from "$lib/stats/items/processing";
import { processItems } from "$lib/server/stats/items/processing";
import { getWardrobe } from "$lib/stats/items/wardrobe";
import { getArmor } from "$lib/stats/items/armor";
import { getEquipment } from "$lib/stats/items/equipment";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stats/items/category.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { itemSorter } from "$lib/stats/items/processing";
import { itemSorter } from "$lib/server/stats/items/processing";
import * as constants from "$constants/constants";
import * as helper from "$lib/helper";
import type { ProcessedItem } from "$types/stats";
Expand Down

0 comments on commit 541df2a

Please sign in to comment.