Skip to content

Commit

Permalink
[v0.8.3] Remove unused imports & update languages
Browse files Browse the repository at this point in the history
  • Loading branch information
DIDIRUS4 committed Aug 27, 2024
1 parent 707bdd6 commit 795497f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 26 deletions.
Binary file removed apps/app-frontend/src/assets/ar_matrix.png
Binary file not shown.
1 change: 1 addition & 0 deletions apps/app-frontend/src/languages/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
"Updating": "Updating",
"UpdateModpack": "Update modpack",
"UpdateAll": "Update all",
"RefreshAll": "Refresh projects",
"AddContent": "Add Content",
"AddFile": "Add from file",
"Name": "Name",
Expand Down
1 change: 1 addition & 0 deletions apps/app-frontend/src/languages/ru_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@
"Updating": "Обновление",
"UpdateModpack": "Обновить модпак",
"UpdateAll": "Обновить все",
"RefreshAll": "Перезагрузить проекты",
"AddContent": "Добавить контент",
"AddFile": "Добавить из файла",
"Name": "Название",
Expand Down
2 changes: 1 addition & 1 deletion apps/app-frontend/src/pages/Browse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { get as getInstance, get_projects as getInstanceProjects } from '@/helpe
import { convertFileSrc } from '@tauri-apps/api/tauri'
import { get_search_results } from '@/helpers/cache.js'
import { debounce } from '@/helpers/utils.js'
import PromotionWrapper from '@/components/ui/PromotionWrapper.vue'
// import PromotionWrapper from '@/components/ui/PromotionWrapper.vue'
const router = useRouter()
const route = useRoute()
Expand Down
2 changes: 1 addition & 1 deletion apps/app-frontend/src/pages/instance/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ import { convertFileSrc } from '@tauri-apps/api/tauri'
import { handleSevereError } from '@/store/error.js'
import { get_project, get_version_many } from '@/helpers/cache.js'
import dayjs from 'dayjs'
import PromotionWrapper from '@/components/ui/PromotionWrapper.vue'
// import PromotionWrapper from '@/components/ui/PromotionWrapper.vue'
import { i18n } from '@/main.js'
const t = i18n.global.t;
Expand Down
30 changes: 7 additions & 23 deletions apps/app-frontend/src/pages/instance/Mods.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,11 @@
</Button>
</div>
</div>
<Button
icon-only
:disabled="refreshingProjects"
@click="refreshProjects"
>
<Button icon-only :disabled="refreshingProjects" @click="refreshProjects">
<UpdatedIcon />
{{ t('Instance.Mods.RefreshAll') }}
</Button>
<Button
v-if="canUpdatePack"
:disabled="installing"
color="secondary"
@click="modpackVersionModal.show()"
>
<Button v-if="canUpdatePack" :disabled="installing" color="secondary" @click="modpackVersionModal.show()">
<DownloadIcon />
{{ installing ? t('Instance.Mods.Updating') : t('Instance.Mods.UpdateModpack') }}
</Button>
Expand Down Expand Up @@ -256,19 +248,11 @@
</div>
</div>
</Modal>
<ShareModal
ref="shareModal"
share-title="Sharing modpack content"
share-text="Check out the projects I'm using in my modpack!"
:open-in-new-tab="false"
/>
<ShareModal ref="shareModal" share-title="Sharing modpack content"
share-text="Check out the projects I'm using in my modpack!" :open-in-new-tab="false" />
<ExportModal v-if="projects.length > 0" ref="exportModal" :instance="instance" />
<ModpackVersionModal
v-if="instance.linked_data"
ref="modpackVersionModal"
:instance="instance"
:versions="props.versions"
/>
<ModpackVersionModal v-if="instance.linked_data" ref="modpackVersionModal" :instance="instance"
:versions="props.versions" />
</template>
<script setup>
import {
Expand Down
2 changes: 1 addition & 1 deletion apps/app-frontend/src/pages/project/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ import { convertFileSrc } from '@tauri-apps/api/tauri'
import ContextMenu from '@/components/ui/ContextMenu.vue'
import { install as installVersion } from '@/store/install.js'
import { get_project, get_project_many, get_team, get_version_many } from '@/helpers/cache.js'
import PromotionWrapper from '@/components/ui/PromotionWrapper.vue'
// import PromotionWrapper from '@/components/ui/PromotionWrapper.vue'
dayjs.extend(relativeTime)
Expand Down

0 comments on commit 795497f

Please sign in to comment.