Skip to content

Commit

Permalink
v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
shonya3 committed Apr 14, 2023
1 parent 44066eb commit a29b345
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "divicards",
"private": true,
"version": "0.1.3",
"version": "0.1.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "divicards",
"version": "0.1.3"
"version": "0.1.4"
},
"tauri": {
"allowlist": {
Expand Down
12 changes: 6 additions & 6 deletions src/components/DivTable/DivTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ const nf = new Intl.NumberFormat('ru', { maximumFractionDigits: 0 });
const props = defineProps<{ records: WeightedCardRecord[] }>();
const nameQuery = ref('');
const minPrice = ref(0);
const hideZeroStackSize = ref(true);
const hideZeroTotal = ref(false);
const filteredRecords = computed(() => {
return props.records.slice().filter(({ name, calculated, stackSize }) => {
if (hideZeroStackSize.value) {
if (stackSize == 0) return false;
return props.records.slice().filter(({ name, calculated, total }) => {
if (hideZeroTotal.value) {
if (total == 0) return false;
}
return (
Expand Down Expand Up @@ -78,8 +78,8 @@ onMounted(() => {
<img width="20" height="20" class="chaos-img" src="/chaos.png" alt="chaos" />
</label>
<div style="display: flex; gap: 0.8rem">
<span>hide names with zero stack size</span>
<input type="checkbox" name="" id="" v-model="hideZeroStackSize" />
<span>hide names with zero total</span>
<input type="checkbox" name="" id="" v-model="hideZeroTotal" />
</div>
<!-- <div>download filtered file</div> -->
</header>
Expand Down
1 change: 0 additions & 1 deletion src/components/FileCard/FileCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import NotCardsList from './NotCardsList/NotCardsList.vue';
export interface Contents {
fileContent: FileContents;
file: File;
selected: boolean | null;
id: string;
valid: boolean;
Expand Down
3 changes: 1 addition & 2 deletions src/components/FileCard/dummy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Contents } from '../../types';

import { Contents } from './FileCard.vue';
import fileCardPropsJson from './fileCardProps.json' assert { type: 'json' };

export const fileCardProps: Contents = fileCardPropsJson;
2 changes: 1 addition & 1 deletion src/components/FileCard/fileCardProps.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "b703a5bf-9a01-40f2-91b5-41498847aeea",
"fileContent": {
"text": "stackSize,name,calculated,total\n17,Merciless Armament,1.99,33.83\n173,The Penitent,1.0,173.0\n36,The Bones,1.0,36.0\n29,The Enthusiasts,2.0,58.0\n0,The Greatest Intentions,12.44,0.0\n6,The Sacrifice,20.0,120.0\n15,Pride of the First Ones,8.0,120.0\n51,The Traitor,2.0,102.0\n132,The Porcupine,1.88,248.16\n3,Beauty Through Death,13.61,40.829998\n21,Divine Justice,2.0,42.0\n16,The Road to Power,3.0,48.0\n153,The Surgeon,1.0,153.0\n91,The Formless Sea,1.26,114.659996\n293,The Journalist,1.0,293.0\n165,The Rabid Rhoa,1.0,165.0\n47,Sambodhi's Wisdom,1.0,47.0\n5,The Progeny of Lunaris,5.0,25.0\n2,Choking Guilt,428.09,856.18\n4,The Aspirant,10.0,40.0\n5,The Eternal War,6.22,31.099998\n88,Forbidden Power,1.0,88.0\n1376,Rain of Chaos,1.0,1376.0\n108,Azure Rage,1.0,108.0\n31,The Spoiled Prince,1.37,42.47\n450,The Catalyst,1.0,450.0\n212,The Master Artisan,1.0,212.0\n69,Death,2.0,138.0\n281,Vinia's Token,1.37,384.97\n19,Peaceful Moments,3.0,57.0\n46,The Landing,2.0,92.0\n49,The Primordial,1.0,49.0\n0,The Sustenance,6.0,0.0\n254,The Void,2.0,508.0\n56,The Deal,2.0,112.0\n127,The Valkyrie,2.0,254.0\n5,Altered Perception,10.0,50.0\n186,The Endurance,1.0,186.0\n121,The Jeweller's Boon,1.0,121.0\n220,The Adventuring Spirit,1.0,220.0\n1,A Familiar Call,7.0,7.0\n25,Haunting Shadows,4.28,107.00001\n237,The Demoness,1.0,237.0\n77,The Oath,1.0,77.0\n31,The Siren,2.0,62.0\n39,The Spark and the Flame,1.61,62.79\n51,The Card Sharp,2.0,102.0\n5,The White Knight,3.99,19.95\n2,Unrequited Love,5307.75,10615.5\n195,Gemcutter's Promise,1.0,195.0\n0,Love Through Ice,933.76,0.0\n146,The Union,1.0,146.0\n219,A Sea of Blue,2.0,438.0\n69,Heterochromia,1.0,69.0\n172,Hubris,1.0,172.0\n0,The Awakened,5.0,0.0\n121,The Watcher,1.0,121.0\n170,The Wolf,1.0,170.0\n2,The Fiend,1743.98,3487.96\n3,Wealth and Power,181.98,545.94\n1,The Astromancer,15.0,15.0\n35,Echoes of Love,2.0,70.0\n5,The Rabbit's Foot,7.0,35.0\n33,Lachrymal Necrosis,2.69,88.770004\n17,The Thaumaturgist,5.0,85.0\n31,The Wind,1.0,31.0\n9,Rebirth,3.0,27.0\n4,Succor of the Sinless,150.0,600.0\n13,Gemcutter's Mercy,17.24,224.12\n13,The Throne,4.0,52.0\n5,Draped in Dreams,5.0,25.0\n674,The King's Blade,1.0,674.0\n19,The Shepherd's Sandals,3.0,57.0\n30,Deathly Designs,3.0,90.0\n3,The Shieldbearer,758.25,2274.75\n268,Imperial Legacy,0.44,117.92\n293,The Arena Champion,1.0,293.0\n76,The Admirer,1.0,76.0\n27,The Jester,2.0,54.0\n32,Abandoned Wealth,5.0,160.0\n109,Blind Venture,1.0,109.0\n31,Azyran's Reward,4.0,124.0\n57,Buried Treasure,1.0,57.0\n234,The Chains that Bind,1.0,234.0\n10,The Life Thief,1.2,12.0\n183,The Tower,1.0,183.0\n80,The Easy Stroll,2.0,160.0\n52,The Encroaching Darkness,1.0,52.0\n0,The Apothecary,9553.95,0.0\n5,Remembrance,10.0,50.0\n331,The Hermit,1.0,331.0\n229,Assassin's Favour,1.0,229.0\n148,The Wolf's Shadow,1.0,148.0\n39,The Lord of Celebration,2.0,78.0\n2,The Demon,2858.14,5716.28\n16,Bijoux,5.0,80.0\n67,Dying Anguish,1.0,67.0\n27,The Craving,2.0,54.0\n28,Disdain,2.0,56.0\n9,Lethean Temptation,5.0,45.0\n15,Harmony of Souls,2.09,31.349998\n328,The Sword King's Salute,1.0,328.0\n446,Three Faces in the Dark,1.0,446.0\n0,The Iron Bard,0.0,0.0\n136,The Calling,1.0,136.0\n27,The Realm,1.0,27.0\n231,Boon of Justice,1.0,231.0\n5,Winter's Embrace,15.0,75.0\n278,Rain Tempter,1.0,278.0\n7,Dark Dreams,3.0,21.0\n0,Vile Power,0.0,0.0\n2,The Vast,9.25,18.5\n80,The Fox,1.0,80.0\n26,Baited Expectations,1.03,26.779999\n5,The Eye of Terror,8.0,40.0\n41,The Conduit,3.78,154.98\n33,Light and Truth,1.97,65.01\n28,The Professor,3.0,84.0\n125,Society's Remorse,1.0,125.0\n210,The Sigil,1.0,210.0\n255,The Warden,1.0,255.0\n412,The Gemcutter,1.0,412.0\n13,Bowyer's Dream,2.0,26.0\n16,Doryani's Epiphany,107.97,1727.52\n198,Lucky Connections,1.0,198.0\n5,The Gulf,25.0,125.0\n240,Turn the Other Cheek,1.0,240.0\n5,The World Eater,3.73,18.65\n0,Friendship,0.0,0.0\n80,The Deceiver,1.0,80.0\n11,The Queen,2.0,22.0\n165,The Battle Born,1.0,165.0\n175,The Inventor,1.97,344.75\n7,A Fate Worse Than Death,45.0,315.0\n101,The One With All,1.0,101.0\n101,The Wilted Rose,1.96,197.96\n95,The Scavenger,1.0,95.0\n14,Pride Before the Fall,2.0,28.0\n253,Thunderous Skies,1.0,253.0\n190,Time-Lost Relic,1.0,190.0\n276,Humility,1.0,276.0\n112,The Betrayal,1.17,131.04\n19,The Cacophony,2.0,38.0\n126,Coveted Possession,1.0,126.0\n108,Left to Fate,1.65,178.2\n25,Chasing Risk,4.0,100.0\n292,Prosperity,1.0,292.0\n49,Treasure Hunter,1.0,49.0\n40,The Celestial Justicar,1.13,45.2\n81,Lingering Remnants,1.0,81.0\n16,A Modest Request,10.0,160.0\n2,Prometheus' Armoury,3.0,6.0\n64,The Heroic Shot,2.0,128.0\n29,The King's Heart,2.0,58.0\n29,The Seeker,4.0,116.0\n122,Cursed Words,1.0,122.0\n21,The Chosen,10.0,210.0\n702,The Scholar,1.0,702.0\n226,The Wrath,1.0,226.0\n0,A Note in the Wind,0.0,0.0\n54,The Insatiable,1.0,54.0\n154,Cartographer's Delight,1.0,154.0\n40,The Wolven King's Bite,2.0,80.0\n18,The Avenger,2.97,53.46\n44,The Journey,2.0,88.0\n0,The Price of Devotion,5583.04,0.0\n1,Nook's Crown,7.92,7.92\n5,The Immortal,1137.38,5686.9\n2,The Leviathan,10.0,20.0\n104,Vanity,1.0,104.0\n0,The Valley of Steel Boxes,0.0,0.0\n33,A Dab of Ink,2.0,66.0\n9,The Endless Darkness,2.0,18.0\n286,The Sun,1.0,286.0\n12,Gift of Asenath,13.79,165.48\n225,The Web,1.0,225.0\n77,Tranquillity,1.0,77.0\n197,The Cache,1.0,197.0\n44,Cameria's Cut,1.0,44.0\n182,The Trial,1.0,182.0\n5,The Dragon's Heart,50.0,250.0\n126,The Eye of the Dragon,1.0,126.0\n3,The Strategist,30.0,90.0\n16,Council of Cats,3.0,48.0\n0,House of Mirrors,11373.75,0.0\n239,Her Mask,1.0,239.0\n564,Loyalty,1.0,564.0\n45,Demigod's Wager,2.0,90.0\n190,The Dragon,1.0,190.0\n80,The Fletcher,1.0,80.0\n159,The Garish Power,1.6,254.40001\n1,The One That Got Away,17.99,17.99\n173,The Gladiator,1.0,173.0\n290,The Opulent,1.0,290.0\n20,Brotherhood in Exile,3.74,74.8\n88,The Cataclysm,1.0,88.0\n17,The Brawny Battle Mage,2.48,42.16\n294,Doedre's Madness,1.0,294.0\n97,The Drunken Aristocrat,1.07,103.79001\n20,Terrible Secret of Space,3.0,60.0\n177,Shard of Fate,1.0,177.0\n105,The Hoarder,1.0,105.0\n77,The Pack Leader,1.0,77.0\n96,A Mother's Parting Gift,1.0,96.0\n713,Emperor's Luck,1.0,713.0\n2,Further Invention,5.0,10.0\n6,The Catch,5.0,30.0\n67,Broken Truce,1.0,67.0\n4,Dying Light,5.95,23.8\n8,Ambitious Obsession,3.0,24.0\n38,The Fox in the Brambles,1.11,42.18\n63,The Incantation,2.0,126.0\n41,The Side Quest,2.0,82.0\n28,The Dungeon Master,3.0,84.0\n25,The Soul,2.0,50.0\n100,The Blessing of Moosh,1.0,100.0\n11,Rebirth and Renewal,3.91,43.010002\n272,The Tireless Extractor,1.0,272.0\n124,Grave Knowledge,1.0,124.0\n37,The Bear Woman,2.0,74.0\n21,The Bargain,5.0,105.0\n10,The Tumbleweed,5.0,50.0\n160,The Skeleton,1.0,160.0\n237,The Visionary,1.0,237.0\n63,The Gentleman,1.0,63.0\n0,The Devastator,0.0,0.0\n4,Imperfect Memories,20.0,80.0\n3,Fateful Meeting,10.0,30.0\n52,The Last One Standing,1.19,61.880005\n119,Chaotic Disposition,5.0,595.0\n357,The Harvester,1.0,357.0\n5,The Undisputed,5.0,25.0\n72,The Poet,1.0,72.0\n0,Birth of the Three,0.0,0.0\n214,The Explorer,1.0,214.0\n918,The Lover,1.0,918.0\n142,The Body,1.0,142.0\n22,The Tinkerer's Table,1.58,34.760002\n19,The Academic,19.0,361.0\n56,The Golden Era,2.0,112.0\n74,The Wolf's Legacy,1.0,74.0\n28,Unchained,2.0,56.0\n0,Luck of the Vaal,0.0,0.0\n26,Something Dark,7.0,182.0\n175,The Stormcaller,1.0,175.0\n0,The Mad King,0.0,0.0\n35,The Offering,2.0,70.0\n3,The Hook,28.92,86.76\n68,Call to the First Ones,1.17,79.56\n63,Earth Drinker,1.0,63.0\n74,Dialla's Subjugation,2.0,148.0\n84,The Mercenary,1.0,84.0\n8,The Artist,28.0,224.0\n59,The Saint's Treasure,2.0,118.0\n19,Checkmate,2.97,56.43\n25,The Sephirot,130.0,3250.0\n186,The Summoner,1.0,186.0\n2,Void of the Elements,5.0,10.0\n101,The Ruthless Ceinture,1.0,101.0\n121,Acclimatisation,1.89,228.69\n25,The Pact,2.0,50.0\n7,Etched in Blood,4.77,33.39\n753,Destined to Crumble,1.0,753.0\n0,The Transformation,0.0,0.0\n255,Three Voices,1.0,255.0\n71,Atziri's Arsenal,2.0,142.0\n0,The Doctor,3033.0,0.0\n183,Volatile Power,1.0,183.0\n141,The Lich,1.0,141.0\n377,The Scarred Meadow,1.0,377.0\n12,Audacity,1.0,12.0\n23,Mawr Blaidd,5.0,115.0\n71,Emperor of Purity,2.0,142.0\n14,From Bone to Ashes,2.0,28.0\n44,The Magma Crab,2.0,88.0\n45,The Forward Gaze,2.18,98.100006\n16,The Polymath,5.0,80.0\n12,The Bitter Blossom,5.0,60.0\n170,The Survivalist,1.0,170.0\n49,Guardian's Challenge,2.0,98.0\n97,No Traces,1.0,97.0\n44,Immortal Resolve,2.0,88.0\n360,Rats,1.0,360.0\n44,Arrogance of the Vaal,2.98,131.12\n259,Glimmer of Hope,1.0,259.0\n150,Jack in the Box,1.0,150.0\n12,Misery in Darkness,3.0,36.0\n194,The Aesthete,1.0,194.0\n5,The Enforcer,7.0,35.0\n118,Might is Right,1.0,118.0\n192,Mitts,1.0,192.0\n282,The Blazing Fire,1.0,282.0\n37,More is Never Enough,1.99,73.63\n34,The Cursed King,1.0,34.0\n192,The Cartographer,1.12,215.04001\n6,Luminous Trove,45.0,270.0\n3,Perfection,3.28,9.84\n9,Home,20.0,180.0\n367,Lantador's Lost Love,1.0,367.0\n19,The Escape,5.0,95.0\n102,The Fool,2.0,204.0\n93,The Forsaken,1.0,93.0\n207,The Inoculated,2.0,414.0\n67,The Rite of Elements,1.0,67.0\n201,The Standoff,1.0,201.0\n119,The Surveyor,1.0,119.0\n6,The Hale Heart,3.0,18.0\n38,Boon of the First Ones,1.0,38.0\n5,Seven Years Bad Luck,348.8,1744.0\n68,The Fathomless Depths,1.0,68.0\n1,The Old Man,5.0,5.0\n27,The Twilight Moon,2.0,54.0\n16,The Deep Ones,2.0,32.0\n26,The Forgotten Treasure,5.0,130.0\n19,The Mind's Eyes,9.0,171.0\n332,The Witch,1.0,332.0\n46,Anarchy's Price,1.37,63.02\n126,The Wretched,2.0,252.0\n0,Blessing of God,0.0,0.0\n0,Treasures of the Vaal,0.0,0.0\n6,Burning Blood,3.31,19.86\n76,The Beast,1.0,76.0\n14,The Dreamer,3.0,42.0\n171,Last Hope,1.0,171.0\n9,Magnum Opus,20.0,180.0\n31,\"Brush, Paint and Palette\",4.05,125.55\n38,The Ethereal,2.0,76.0\n6,Eternal Bonds,40.0,240.0\n89,The Last Supper,1.0,89.0\n68,The Long Watch,1.0,68.0\n173,The Puzzle,2.0,346.0\n15,The Scout,5.0,75.0\n13,Alluring Bounty,10.0,130.0\n7,Darker Half,50.0,350.0\n33,The Breach,2.0,66.0\n251,Dark Temptation,1.0,251.0\n18,A Stone Perfected,5.0,90.0\n186,Alone in the Darkness,1.0,186.0\n10,Desperate Crusade,5.0,50.0\n44,The Patient,42.0,1848.0\n150,The Twins,1.0,150.0\n526,The Flora's Gift,1.0,526.0\n73,The Wolverine,1.73,126.29\n9,Dementophobia,5.0,45.0\n26,Reckless Ambition,1.47,38.22\n50,The Dark Mage,1.0,50.0\n88,The Dreamland,1.0,88.0\n7,The Enlightened,35.0,245.0\n35,Astral Protection,1.95,68.25\n157,The Mountain,1.0,157.0\n36,The Hunger,2.0,72.0\n64,Triskaidekaphobia,2.0,128.0\n560,The Metalsmith's Gift,1.0,560.0\n7,The Emptiness,3.0,21.0\n27,Hunter's Reward,2.0,54.0\n160,Struck by Lightning,1.0,160.0\n30,Monochrome,15.0,450.0\n34,The Eldritch Decay,4.0,136.0\n7,Desecrated Virtue,116.69,816.83\n34,The Whiteout,2.0,68.0\n91,Hope,1.67,151.97\n26,Silence and Frost,3.0,78.0\n153,The Lion,1.0,153.0\n4,Duality,7.0,28.0\n75,The Innocent,2.0,150.0\n71,The Archmage's Right Hand,2.0,142.0\n100,Scholar of the Seas,1.0,100.0\n226,The Lunaris Priestess,1.0,226.0\n34,The Unexpected Prize,2.0,68.0\n0,The Mayor,0.0,0.0\n4,The Fishmonger,4.59,18.36\n0,Akil's Prophecy,0.0,0.0\n217,The Army of Blood,1.0,217.0\n25,The Darkest Dream,2.0,50.0\n5,The Damned,15.0,75.0\n23,The Offspring,1.41,32.43\n3,Keeper's Corruption,4.0,12.0\n40,Parasitic Passengers,2.0,80.0\n19,Lucky Deck,2.0,38.0\n173,Boundless Realms,1.0,173.0\n61,The Lord in Black,2.0,122.0\n0,Squandered Prosperity,0.0,0.0\n144,Sambodhi's Vow,2.0,288.0\n80,Gift of the Gemling Queen,1.0,80.0\n4,The Price of Loyalty,100.0,400.0\n11,The Samurai's Eye,55.0,605.0\n4,The Destination,20.0,80.0\n175,The Risk,3.0,525.0\n11,The Long Con,8.0,88.0\n27,The Obscured,1.0,27.0\n5,Brother's Stash,55.5,277.5\n413,The Carrion Crow,1.0,413.0\n58,The Messenger,1.24,71.92\n12,The Nurse,363.96,4367.52\n25,Endless Night,2.0,50.0\n420,The Doppelganger,1.0,420.0\n79,Underground Forest,4.0,316.0\n80,Prejudice,2.0,160.0\n2,The Cheater,251.19,502.38\n89,The Coming Storm,1.0,89.0\n225,Hunter's Resolve,1.0,225.0\n13,The Price of Prescience,4.58,59.54\n101,The Feast,1.0,101.0\n62,The Price of Protection,2.0,124.0\n76,Lysah's Respite,1.0,76.0\n52,The Undaunted,3.0,156.0\n4,Deadly Joy,44.14,176.56\n18,Judging Voices,6.0,108.0\n96,The Dapper Prodigy,2.0,192.0\n2,The Hive of Knowledge,5.0,10.0\n4,Broken Promises,30.0,120.0\n25,The Tyrant,2.0,50.0\n196,Thirst for Knowledge,1.0,196.0\n44,The Warlord,2.0,88.0\n243,Lost Worlds,1.0,243.0\n6,The Celestial Stone,4.19,25.14\n29,Costly Curio,4.0,116.0\n12,The Shortcut,5.0,60.0\n13,The Brittle Emperor,2.0,26.0\n49,The Master,1.0,49.0\n157,The Gambler,1.0,157.0\n14,The Prince of Darkness,3.0,42.0\n34,Justified Ambition,5.65,192.1\n",
"filename": "krolya_input.csv",
"name": "krolya_input.csv",
"href": "blob:http://localhost:5173/79f4d016-a174-457d-b0a1-05645692dd92"
},
"error": null,
Expand Down
1 change: 0 additions & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const createContents = async (file: File): Promise<Contents> => {

const contents: Contents = {
id: crypto.randomUUID(),
file,
fileContent,
valid: !Boolean(error),
error,
Expand Down

0 comments on commit a29b345

Please sign in to comment.