Skip to content

Commit

Permalink
chore: publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHerber committed Jan 15, 2025
1 parent 2d31201 commit 56735fa
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 86 deletions.
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="D2R Reimagined Mod Project">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/">
<script type="module" crossorigin src="/assets/index-B3fG7b_t.js"></script>
<script type="module" crossorigin src="/assets/index-B0bmGqGX.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-v-dMPtui.css">
</head>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { C as CustomElement, w as watch, c as customElement, b as bindable } from "./index-B3fG7b_t.js";
import { C as CustomElement, w as watch, c as customElement, b as bindable } from "./index-B0bmGqGX.js";
import { d as debounce } from "./debounce-ZwsFz6hU.js";
const name = "cube-recipes";
const template = '<template>\n <h3 class="text-center my-4">\n ${recipes.length} Recipes Found\n </h3>\n <div class="search my-2 text-center">\n <form>\n <label>Search Recipes</label><br>\n <input type="text" value.bind="search" />\n </form>\n </div>\n <div class="row gy-5 px-5 text-center">\n <div class="col-12 col-md-6 col-xxl-4" repeat.for="recipe of recipes">\n <div class="card bg-dark p-2">\n <div class="unique-text">\n ${recipe.Description}\n </div>\n <div class="description" innerhtml.bind="recipe.Input | cubeInputs"></div>\n\n <div class="unique-text">\n = <br>\n ${recipe.Output}\n </div>\n </div>\n </div>\n </div>\n</template>';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { C as CustomElement, c as customElement } from "./index-B3fG7b_t.js";
import { C as CustomElement, c as customElement } from "./index-B0bmGqGX.js";
const name = "home";
const template = '<template>\n <div class="container mt-5">\n Our mission is to provide a Diablo II experience that is both familiar and new. We aim to keep the core gameplay of Diablo II intact while adding new features and content to the game. We want to provide a fresh experience for players who have played Diablo II for years, while also providing a fun and engaging experience for new players.\n <br><br>\n Everything we do, regardless if that is the D2R Files themselves or any of the tooling we build, is open source. We believe that the community should have the ability to see and modify the code that runs the mod. We also believe that the community should have the ability to contribute to the mod and help shape its future.\n <br><br>\n Want to be apart of this mission? Join our Discord Server <a href="https://discord.gg/9zZkYrSA8C">https://discord.gg/9zZkYrSA8C</a> for more information on contributing and collaborating.\n </div>\n</template>';
const dependencies = [];
Expand Down
12 changes: 6 additions & 6 deletions docs/assets/index-B3fG7b_t.js → docs/assets/index-B0bmGqGX.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cube-recipes-CgHDAMdZ.js","assets/debounce-ZwsFz6hU.js","assets/cube-recipes-k8ooAsY7.css","assets/uniques-U8IBpIOy.js","assets/sets-fcfCZ2Nb.js","assets/runewords-DT8AjjDY.js"])))=>i.map(i=>d[i]);
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cube-recipes-BDvr1pVs.js","assets/debounce-ZwsFz6hU.js","assets/cube-recipes-k8ooAsY7.css","assets/uniques-Df_Wy8LU.js","assets/sets-B0PhdXyV.js","assets/runewords-DlUXDkHd.js"])))=>i.map(i=>d[i]);
(function polyfill() {
const relList = document.createElement("link").relList;
if (relList && relList.supports && relList.supports("modulepreload")) {
Expand Down Expand Up @@ -40303,27 +40303,27 @@ _App_decorators = [customElement(__au2ViewDef), route({
routes: [
{
path: "",
component: __vitePreload(() => import("./home-D-Ns3mEn.js"), true ? [] : void 0),
component: __vitePreload(() => import("./home-BhEGXlKY.js"), true ? [] : void 0),
title: "Home"
},
{
path: "cube-recipes",
component: __vitePreload(() => import("./cube-recipes-CgHDAMdZ.js"), true ? __vite__mapDeps([0,1,2]) : void 0),
component: __vitePreload(() => import("./cube-recipes-BDvr1pVs.js"), true ? __vite__mapDeps([0,1,2]) : void 0),
title: "Cube Recipes"
},
{
path: "uniques",
component: __vitePreload(() => import("./uniques-U8IBpIOy.js"), true ? __vite__mapDeps([3,1]) : void 0),
component: __vitePreload(() => import("./uniques-Df_Wy8LU.js"), true ? __vite__mapDeps([3,1]) : void 0),
title: "Uniques"
},
{
path: "sets",
component: __vitePreload(() => import("./sets-fcfCZ2Nb.js"), true ? __vite__mapDeps([4,1]) : void 0),
component: __vitePreload(() => import("./sets-B0PhdXyV.js"), true ? __vite__mapDeps([4,1]) : void 0),
title: "Sets"
},
{
path: "runewords",
component: __vitePreload(() => import("./runewords-DT8AjjDY.js"), true ? __vite__mapDeps([5,1]) : void 0),
component: __vitePreload(() => import("./runewords-DlUXDkHd.js"), true ? __vite__mapDeps([5,1]) : void 0),
title: "Runewords"
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { C as CustomElement, w as watch, c as customElement, b as bindable } from "./index-B3fG7b_t.js";
import { C as CustomElement, w as watch, c as customElement, b as bindable } from "./index-B0bmGqGX.js";
import { d as debounce } from "./debounce-ZwsFz6hU.js";
const name = "runewords";
const template = '<template>\n <h3 class="text-center my-4">\n ${filteredRunewords.length} Runewords Found\n </h3>\n <div class="container">\n <div class="row align-content-center justify-content-center text-center mb-5">\n <div class="col-12 col-md-4 col-lg-3">\n <div class="au-select mb-2">\n <moo-select\n class="w-100"\n label="Select Socket Count"\n options.bind="amounts"\n class="standard-betsy-select"\n value.bind="selectedAmount"\n ></moo-select>\n </div>\n </div>\n <div class="col-12 col-md-4 col-lg-3">\n <div class="au-select mb-2">\n <moo-select\n class="w-100"\n label="Select Type"\n options.bind="types"\n class="standard-betsy-select"\n value.bind="selectedType"\n ></moo-select>\n </div>\n </div>\n <div class="col-12 col-md-4 col-lg-3">\n <div class="mb-2">\n <moo-text-field\n class="w-100"\n label="Search Runewords"\n type="text"\n value.bind="search"\n ></moo-text-field>\n </div>\n </div>\n <div class="col-12 col-md-4 col-lg-3">\n <div class="mb-2">\n <moo-text-field\n class="w-100"\n label="Runes"\n type="text"\n value.bind="searchRunes"\n ></moo-text-field>\n </div>\n </div>\n </div>\n </div>\n <div class="row gy-5 px-5 text-center">\n <div class="col-12 col-md-6 col-xxl-4" repeat.for="runeword of filteredRunewords">\n <div class="card bg-dark p-2">\n <div class="unique-text fs-4 mb-1">\n ${runeword.Name}\n </div>\n <div class="combo">\n <span repeat.for="rune of runeword.Runes">\n ${removeRuneFromName(rune.Name)} ${$index + 1 !== runeword.Runes.length ? \' + \' : \'\'}\n </span>\n </div>\n <div class="types py-2">\n <span repeat.for="type of runeword.Types">\n ${transformTypeName(type.Name)} ${$index + 1 !== runeword.Types.length ? \' or \' : \'\'}\n </span>\n </div>\n <div class="requirement" if.bind="runeword.RequiredLevel > 0">\n Level ${runeword.RequiredLevel} Required\n </div>\n <div class="mt-2">\n <div class="enhanced" repeat.for="property of runeword.Properties">\n ${property.PropertyString}\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n';
const template = '<template>\n <h3 class="text-center my-4">\n ${filteredRunewords.length} Runewords Found\n </h3>\n <div class="container">\n <div class="row align-content-center justify-content-center text-center mb-5">\n <div class="col-12 col-md-4 col-lg-3">\n <div class="au-select mb-2">\n <moo-select\n class="w-100"\n label="Select Socket Count"\n options.bind="amounts"\n class="standard-betsy-select"\n value.bind="selectedAmount"\n ></moo-select>\n </div>\n </div>\n <div class="col-12 col-md-4 col-lg-3">\n <div class="au-select mb-2">\n <moo-select\n class="w-100"\n label="Select Type"\n options.bind="types"\n class="standard-betsy-select"\n value.bind="selectedType"\n ></moo-select>\n <moo-checkbox checked.bind="exclusiveType" id="exclusiveType">Exact type only</moo-checkbox>\n </div>\n </div>\n <div class="col-12 col-md-4 col-lg-3">\n <div class="mb-2">\n <moo-text-field\n class="w-100"\n label="Search Runewords"\n type="text"\n value.bind="search"\n ></moo-text-field>\n </div>\n </div>\n <div class="col-12 col-md-4 col-lg-3">\n <div class="mb-2">\n <moo-text-field\n class="w-100"\n label="Runes"\n type="text"\n value.bind="searchRunes"\n ></moo-text-field>\n </div>\n </div>\n </div>\n </div>\n <div class="row gy-5 px-5 text-center">\n <div class="col-12 col-md-6 col-xxl-4" repeat.for="runeword of filteredRunewords">\n <div class="card bg-dark p-2">\n <div class="unique-text fs-4 mb-1">\n ${runeword.Name}\n </div>\n <div class="combo">\n <span repeat.for="rune of runeword.Runes">\n ${removeRuneFromName(rune.Name)} ${$index + 1 !== runeword.Runes.length ? \' + \' : \'\'}\n </span>\n </div>\n <div class="types py-2">\n <span repeat.for="type of runeword.Types">\n ${transformTypeName(type.Name)} ${$index + 1 !== runeword.Types.length ? \' or \' : \'\'}\n </span>\n </div>\n <div class="requirement" if.bind="runeword.RequiredLevel > 0">\n Level ${runeword.RequiredLevel} Required\n </div>\n <div class="mt-2">\n <div class="enhanced" repeat.for="property of runeword.Properties">\n ${property.PropertyString}\n </div>\n </div>\n </div>\n </div>\n </div>\n</template>\n';
const dependencies = [];
const bindables = {};
let _e;
Expand Down Expand Up @@ -17454,45 +17454,50 @@ var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
var _selectedAmountChanged_dec, _selectedTypeChanged_dec, _handleSearchChanged_dec, _handleSearchRunesChanged_dec, _searchRunes_dec, _search_dec, _Runewords_decorators, _init;
_Runewords_decorators = [customElement(__au2ViewDef)], _search_dec = [bindable], _searchRunes_dec = [bindable], _handleSearchRunesChanged_dec = [watch("searchRunes")], _handleSearchChanged_dec = [watch("search")], _selectedTypeChanged_dec = [watch("selectedType")], _selectedAmountChanged_dec = [watch("selectedAmount")];
var _handleExclusiveTypeChanged_dec, _selectedAmountChanged_dec, _selectedTypeChanged_dec, _handleSearchChanged_dec, _handleSearchRunesChanged_dec, _exclusiveType_dec, _searchRunes_dec, _search_dec, _Runewords_decorators, _init;
_Runewords_decorators = [customElement(__au2ViewDef)], _search_dec = [bindable], _searchRunes_dec = [bindable], _exclusiveType_dec = [bindable], _handleSearchRunesChanged_dec = [watch("searchRunes")], _handleSearchChanged_dec = [watch("search")], _selectedTypeChanged_dec = [watch("selectedType")], _selectedAmountChanged_dec = [watch("selectedAmount")], _handleExclusiveTypeChanged_dec = [watch("exclusiveType")];
class Runewords {
constructor() {
__runInitializers(_init, 5, this);
__publicField(this, "runewords", json);
__publicField(this, "search", __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
__publicField(this, "searchRunes", __runInitializers(_init, 12, this)), __runInitializers(_init, 15, this);
__publicField(this, "exclusiveType", __runInitializers(_init, 16, this)), __runInitializers(_init, 19, this);
__publicField(this, "_debouncedSearchItem");
__publicField(this, "filteredRunewords", []);
__publicField(this, "types", [
{ value: void 0, label: "Any" },
{ value: "Armor", label: "Armor" },
{ value: "Helm", label: "Helm" },
{ value: "Polearm", label: "Polearm" },
{ value: "Any Shield", label: "Any Shield" },
{ value: "Barbarian Item", label: "Barbarian Item" },
{ value: "Circlet", label: "Circlet" },
{ value: "Missile Weapon", label: "Missile Weapon" },
{ value: "Melee Weapon", label: "Melee Weapon" },
{ value: "Weapon", label: "Weapon" },
{ value: "Wand", label: "Wand" },
{ value: "Orb", label: "Orb" },
{ value: "Sword", label: "Sword" },
{ value: "Axe", label: "Axe" },
{ value: "Amazon Bow", label: "Amazon Bow" },
{ value: "Amazon Spear", label: "Amazon Spear" },
{ value: "Spear", label: "Spear" },
{ value: "Staff", label: "Staff" },
{ value: "Mace", label: "Mace" },
{ value: "Hammer", label: "Hammer" },
{ value: "Paladin Item", label: "Paladin Item" },
{ value: "Hand to Hand", label: "Hand to Hand" },
{ value: "Club", label: "Club" },
{ value: "Any Armor", label: "Any Armor" },
{ value: "Scepter", label: "Scepter" },
{ value: "Druid Item", label: "Druid Item" },
{ value: "Necromancer Item", label: "Necro Shield" }
// Parent types
{ label: "-", value: [] },
{ label: "Any Armor", value: ["Armor", "Any Armor"] },
{ label: "Any Helm", value: ["Helm"] },
{ label: "Any Weapon", value: ["Weapon"] },
{ label: "Any Melee Weapon", value: ["Melee Weapon", "Weapon"] },
{ label: "Any Missile Weapon", value: ["Missile Weapon", "Weapon"] },
{ label: "Any Shield", value: ["Any Shield"] },
// Specific weapon types
{ label: "Axe", value: ["Axe", "Melee Weapon", "Weapon"] },
{ label: "Club", value: ["Club", "Melee Weapon", "Weapon"] },
{ label: "Hammer", value: ["Hammer", "Melee Weapon", "Weapon"] },
{ label: "Hand to Hand", value: ["Hand to Hand", "Melee Weapon", "Weapon"] },
{ label: "Mace", value: ["Mace", "Melee Weapon", "Weapon"] },
{ label: "Orb", value: ["Orb"] },
{ label: "Polearm", value: ["Polearm", "Melee Weapon", "Weapon"] },
{ label: "Scepter", value: ["Scepter", "Melee Weapon", "Weapon"] },
{ label: "Staff", value: ["Staff", "Melee Weapon", "Weapon"] },
{ label: "Spear", value: ["Spear", "Melee Weapon", "Weapon"] },
{ label: "Sword", value: ["Sword", "Melee Weapon", "Weapon"] },
{ label: "Wand", value: ["Wand", "Melee Weapon", "Weapon"] },
// Specific armor types
{ label: "Circlet", value: ["Circlet", "Helm"] },
// Class specific types
{ label: "Amazon Bow", value: ["Amazon Bow", "Missile Weapon", "Weapon"] },
{ label: "Amazon Spear", value: ["Amazon Spear", "Spear", "Melee Weapon", "Weapon"] },
{ label: "Necromancer Shield", value: ["Necromancer Item", "Any Shield"] },
{ label: "Barbarian Item", value: ["Barbarian Item"] },
{ label: "Paladin Item", value: ["Paladin Item"] },
{ label: "Druid Item", value: ["Druid Item"] }
]);
__publicField(this, "selectedType");
__publicField(this, "amounts", [
{ value: void 0, label: "Any" },
{ value: 2, label: "2 Sockets" },
Expand All @@ -17501,7 +17506,6 @@ class Runewords {
{ value: 5, label: "5 Sockets" },
{ value: 6, label: "6 Sockets" }
]);
__publicField(this, "selectedType");
__publicField(this, "selectedAmount");
}
attached() {
Expand All @@ -17528,15 +17532,21 @@ class Runewords {
this._debouncedSearchItem();
}
}
handleExclusiveTypeChanged() {
if (this._debouncedSearchItem) {
this._debouncedSearchItem();
}
}
normalizeRuneName(name2) {
return name2.replace(/ rune$/i, "").trim().toLowerCase();
}
updateList() {
let filteringRunewords = this.runewords;
if (this.selectedType) {
if (this.selectedType?.length > 0) {
const selectedType = this.exclusiveType ? [this.selectedType[0]] : this.selectedType;
filteringRunewords = filteringRunewords.filter((x) => {
for (const type of x.Types) {
if (type.Index === this.selectedType || type.Index === "Merc Equip" && this.selectedType === "Helm") {
if (selectedType.includes(type.Index) || type.Index === "Merc Equip" && selectedType.includes("Helm")) {
return true;
}
}
Expand Down Expand Up @@ -17566,7 +17576,7 @@ class Runewords {
});
}
if (this.searchRunes) {
const inputRuneList = this.searchRunes.split(" ").map((rune) => rune.trim()).filter((rune) => rune.length > 0);
const inputRuneList = this.searchRunes.split(" ").map((rune) => rune.trim().toLowerCase()).filter((rune) => rune.length > 0);
found = found.filter((runeword) => {
const runewordRuneNames = runeword.Runes.map((rune) => this.normalizeRuneName(rune.Name));
return inputRuneList.every(
Expand All @@ -17593,8 +17603,10 @@ __decorateElement(_init, 1, "handleSearchRunesChanged", _handleSearchRunesChange
__decorateElement(_init, 1, "handleSearchChanged", _handleSearchChanged_dec, Runewords);
__decorateElement(_init, 1, "selectedTypeChanged", _selectedTypeChanged_dec, Runewords);
__decorateElement(_init, 1, "selectedAmountChanged", _selectedAmountChanged_dec, Runewords);
__decorateElement(_init, 1, "handleExclusiveTypeChanged", _handleExclusiveTypeChanged_dec, Runewords);
__decorateElement(_init, 5, "search", _search_dec, Runewords);
__decorateElement(_init, 5, "searchRunes", _searchRunes_dec, Runewords);
__decorateElement(_init, 5, "exclusiveType", _exclusiveType_dec, Runewords);
Runewords = __decorateElement(_init, 0, "Runewords", _Runewords_decorators, Runewords);
__runInitializers(_init, 1, Runewords);
export {
Expand Down
Loading

0 comments on commit 56735fa

Please sign in to comment.