Skip to content

Commit

Permalink
Merge branch 'main' into dimension-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsjo committed Dec 2, 2024
2 parents 4a2fe36 + a8c7e44 commit a80bc81
Show file tree
Hide file tree
Showing 31 changed files with 813 additions and 181 deletions.
14 changes: 14 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"dropdown.add.picker.pack": "Packs (*.zip)",
"dropdown.add.picker.mod": "Mods (*.jar)",
"dropdown.add.folder": "Open Folder",
"dropdown.add.modrinth": "Open from Modrinth",
"dropdown.add.built_in.update_1_20": "Update 1.20",
"dropdown.add.built_in.update_1_21": "Update 1.21",
"dropdown.add.built_in.winter_drop": "Winter Drop",
Expand All @@ -76,8 +77,21 @@
"dropdown.add.recents.enable.note": "(accept local storage)",
"dropdown.add.recents.empty": "Empty",
"dropdown.add.recents.unavailable": "Unsupported in this browser",
"dropdown.add.recents.type.zip": "zip file stored in browser",
"dropdown.add.recents.type.folder": "folder datapack directly opened from disk",
"dropdown.add.recents.type.modrinth": "newest version from modrinth",
"dropdown.add.recents.wrong_version": "unavailable for this version ",
"dropdown.search_biome.placeholder": "Search Biome",
"dropdown.structure_positions.placeholder": "Search Structure",
"modrinth.title": "Open from Modrinth",
"modrinth.search.aria-label": "Searchbar for datapacks on Modrinth",
"modrinth.search.placeholder": "Search Modrinth...",
"modrinth.include-mods": "include mods",
"modrinth.include-mods.aria-label": "include mods in search",
"modrinth.include-mods.notice": "Not all mods are supported by this map",
"modrinth.ignore-version": "ignore minecraft version",
"modrinth.ignore-version.aria-label": "ignore minecraft version in search",
"modrinth.ignore-version.notice": "Datapacks for other versions might not work as expected",
"toggle_sidebar.title": "Toggle Sidebar",
"map.info.structures_hidden": "Some structures are hidden. Zoom in to see more.",
"map.info.teleport_command_copied": "Teleport Command Copied",
Expand Down
4 changes: 1 addition & 3 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@
"map.info.structures_hidden": "Certaines structures sont cachées. Zoomez pour en voir plus.",
"footer.more": "plus…",
"settings.mc_version.mc1_20_6": "Minecraft 1.20.6",
"settings.mc_version.mc1_21": "Minecraft 1.21",
"tip_message.kofi": "Offrez moi un café",
"tip_message.message": "Si vous trouvez cette carte utile, j'accepte les pourboires !",
"tip_message.github": "Sponsor",
"tip_message.close": "Fermer",
"map.setting.graticule": "Montrer la grille de région",
"settings.mc_version.mc1_21_2": "Minecraft 1.21.2"
"map.setting.graticule": "Montrer la grille de région"
}
1 change: 0 additions & 1 deletion locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"settings.mc_version.mc1_20_2": "Minecraft 1.20.2",
"settings.mc_version.mc1_20_4": "Minecraft 1.20.4",
"settings.mc_version.mc1_20_6": "Minecraft 1.20.6",
"settings.mc_version.mc1_21": "Minecraft 1.21",
"settings.dev_mode.label": "開発者モード:",
"settings.dev_mode.aria-label": "開発者モード",
"settings.seed.randomize_button.title": "ランダムシード",
Expand Down
1 change: 0 additions & 1 deletion locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,5 @@
"dropdown.add.recents.not_found": "Набор не найден. Удаление из недавно использованных.",
"map.info.structures_hidden": "Некоторые строения скрыты. Приблизьте, чтобы увидеть больше.",
"footer.more": "ещё…",
"settings.mc_version.mc1_21": "Minecraft 1.21",
"settings.mc_version.mc1_20_6": "Minecraft 1.20.6"
}
1 change: 0 additions & 1 deletion locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"settings.mc_version.mc1_20_2": "Minecraft 1.20.2",
"settings.mc_version.mc1_20_4": "Minecraft 1.20.4",
"settings.mc_version.mc1_20_6": "Minecraft 1.20.6",
"settings.mc_version.mc1_21": "Minecraft 1.21",
"settings.seed.randomize_button.title": "Rasgele tohum",
"minecraft.dimension.minecraft.overworld": "Overworld",
"minecraft.dimension.minecraft.the_end": "End",
Expand Down
1 change: 0 additions & 1 deletion locales/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"map.tooltip.spawn": "出生点",
"dropdown.add.built_in.update_1_21": "更新至 1.21",
"footer.more": "更多…",
"settings.mc_version.mc1_21": "Minecraft 1.21",
"settings.mc_version.mc1_20_6": "Minecraft 1.20.6",
"minecraft.structure.minecraft.trial_chambers": "试炼密室"
}
66 changes: 40 additions & 26 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"deepslate": "^0.22.4",
"idb-keyval": "^6.2.1",
"leaflet": "^1.9.4",
"mc-datapack-loader": "0.4.1",
"mc-datapack-loader": "0.5.0",
"pinia": "^2.1.4",
"vue": "^3.3.4",
"vue-i18n": "^9.2.2",
Expand Down
4 changes: 4 additions & 0 deletions public/images/modrinth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ import Collapsable from './components/Collapsable.vue';
import MainMap from './components/MainMap.vue';
import Sidebar from './components/Sidebar.vue';
import { useLoadedDimensionStore } from './stores/useLoadedDimensionStore';
import { useUiStore } from './stores/useUiStore';
import Popup from './components/Popup.vue';
import ModrinthMenu from './components/modrinth/ModrinthMenu.vue';
const loaded = ref(false)
const uiStore = useUiStore()
onBeforeMount(async () => {
const loadedDimensionStore = useLoadedDimensionStore()
await loadedDimensionStore.reload()
loaded.value = true
})
</script>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Collapsable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const open = ref(true)
}
.toggle.open {
left: 15.8rem
left: 15.8rem;
border-radius: 1rem;
}
.icon {
Expand Down
5 changes: 3 additions & 2 deletions src/components/DatapackEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { versionMetadata } from '../util';
import { computed } from 'vue';
const props = defineProps({
datapack: Object
datapack: Object,
removable: Boolean
})
const settings = useSettingsStore()
Expand All @@ -29,7 +30,7 @@ import { computed } from 'vue';
<div class="description">
<MinecraftText :component="desciption" />
</div>
<font-awesome-icon icon="fa-xmark" class="close_button" tabindex="0" :title="$t('datapack_list.remove_datapack.title')" @click="$emit('close')" @keypress.enter="$emit('close')" />
<font-awesome-icon v-if="removable" icon="fa-xmark" class="close_button" tabindex="0" :title="$t('datapack_list.remove_datapack.title')" @click="$emit('close')" @keypress.enter="$emit('close')" />
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/components/DatapackList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const store = useDatapackStore();
<template>
<div class="datapack_list">
<Suspense>
<DatapackEntry v-for="(datapack, index) in store.datapacks" :datapack="datapack.datapack" :key="datapack.key" @close="store.removeDatapack(index)"/>
<DatapackEntry v-for="(datapack, index) in store.datapacks" :datapack="datapack.datapack" :key="datapack.key" :removable="index > 0" @close="store.removeDatapack(index)"/>
</Suspense>

</div>
Expand Down
Loading

0 comments on commit a80bc81

Please sign in to comment.