Skip to content

Commit

Permalink
fix: unused env
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceat committed Nov 10, 2024
1 parent 64100f9 commit bbfcac3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/components/cards/market-categories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import {
} from '@aresrpg/aresrpg-sdk/items';
import { watch, ref, inject, onMounted, onUnmounted } from 'vue';
import { VITE_INDEXER_URL } from '../../env.js';
import { pretty_print_mists } from '../../core/sui/client.js';
// @ts-ignore
import { context } from '../../core/game/game.js';
Expand Down
9 changes: 1 addition & 8 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ const {
VITE_SUI_RPC = 'https://fullnode.testnet.sui.io',
VITE_SERVER_URL,
VITE_SPONSOR_URL = 'https://testnet-sponsor.aresrpg.world',
VITE_INDEXER_URL = 'https://testnet-indexer.aresrpg.world',
VITE_ENOKI_KEY = 'enoki_public_ff89078fe8efa82d3f14732264813b91',
VITE_NETWORK = 'testnet',
} = import.meta.env

export const NETWORK = VITE_NETWORK
export {
VITE_SUI_RPC,
VITE_SERVER_URL,
VITE_ENOKI_KEY,
VITE_SPONSOR_URL,
VITE_INDEXER_URL,
}
export { VITE_SUI_RPC, VITE_SERVER_URL, VITE_ENOKI_KEY, VITE_SPONSOR_URL }
11 changes: 1 addition & 10 deletions src/views/tab-workshop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import sectionHeader from '../components/misc/section-header.vue';
import recipeVue from '../components/cards/recipe.vue';
import itemInventory from '../components/cards/item-inventory.vue';
import itemDescription from '../components/cards/item-description.vue';
import { NETWORK, VITE_INDEXER_URL } from '../env.js';
import { NETWORK } from '../env.js';
// @ts-ignore
import tailor_icon from '../assets/jobs/tailor.png';
// @ts-ignore
Expand All @@ -43,15 +43,6 @@ const jobs = [
{ name: t('APP_TAB_WORKSHOP_WOODCUTTER'), level: 1, icon: woodcutter_icon },
];
async function refresh_recipes() {
const result = await fetch(`${VITE_INDEXER_URL}/recipes`);
const { recipes, cursor } = await result.json();
recipes.forEach(recipe => recipe.ingredients);
indexed_recipes.value = recipes;
}
function on_recipe_create(recipe) {
indexed_recipes.value.push(recipe);
}
Expand Down

0 comments on commit bbfcac3

Please sign in to comment.