Reverse fav export order

This commit is contained in:
Natsumi
2026-02-22 16:11:33 +11:00
parent 612ea945b4
commit bd8551461b
13 changed files with 39 additions and 29 deletions

View File

@@ -1599,7 +1599,6 @@
display: flex;
align-items: center;
flex-direction: column;
gap: 6px;
}
.group-item__count {

View File

@@ -1242,6 +1242,12 @@
font-weight: 600;
}
.group-item__right {
display: flex;
align-items: center;
flex-direction: column;
}
.group-item__count {
font-size: 12px;
}

View File

@@ -249,7 +249,7 @@
}
}
}
avatarExportContent.value = lines.join('\n');
avatarExportContent.value = lines.reverse().join('\n');
}
function selectAvatarExportGroup(group) {
avatarExportFavoriteGroup.value = group;

View File

@@ -10,7 +10,7 @@
<div v-if="avatarImportDialog.progress">
{{ t('dialog.avatar_import.process_progress') }} {{ avatarImportDialog.progress }} /
{{ avatarImportDialog.progressTotal }}
<Loader2 style="margin: 0 5px" />
<Spinner class="inline-block ml-2 mr-2" />
</div>
<Button v-if="avatarImportDialog.loading" size="sm" variant="secondary" @click="cancelAvatarImport">
{{ t('dialog.avatar_import.cancel') }}
@@ -89,7 +89,7 @@
</div>
</div>
<span v-if="avatarImportDialog.importProgress" style="margin: 10px">
<Loader2 style="margin-right: 5px" />
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.avatar_import.import_progress') }}
{{ avatarImportDialog.importProgress }}/{{ avatarImportDialog.importProgressTotal }}
</span>
@@ -121,7 +121,7 @@
import { Button } from '@/components/ui/button';
import { DataTableLayout } from '@/components/ui/data-table';
import { InputGroupTextareaField } from '@/components/ui/input-group';
import { Loader2 } from 'lucide-vue-next';
import { Spinner } from '@/components/ui/spinner';
import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
@@ -247,11 +247,10 @@
}
}
D.progress++;
if (D.progress === avatarIdList.size) {
D.progress = 0;
}
}
D.loading = false;
D.progress = 0;
D.progressTotal = 0;
}
function deleteItemAvatarImport(ref) {

View File

@@ -207,7 +207,7 @@
}
}
}
friendExportContent.value = lines.join('\n');
friendExportContent.value = lines.reverse().join('\n');
}
function selectFriendExportGroup(group) {

View File

@@ -10,7 +10,7 @@
<div v-if="friendImportDialog.progress">
{{ t('dialog.friend_import.process_progress') }} {{ friendImportDialog.progress }} /
{{ friendImportDialog.progressTotal }}
<Loader2 style="margin: 0 5px" />
<Spinner class="inline-block ml-1 mr-1" />
</div>
<Button v-if="friendImportDialog.loading" size="sm" variant="secondary" @click="cancelFriendImport">
{{ t('dialog.friend_import.cancel') }}
@@ -93,7 +93,7 @@
</div>
</div>
<span v-if="friendImportDialog.importProgress" style="margin: 10px">
<Loader2 style="margin-right: 5px" />
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.friend_import.import_progress') }} {{ friendImportDialog.importProgress }}/{{
friendImportDialog.importProgressTotal
}}
@@ -124,7 +124,7 @@
import { Button } from '@/components/ui/button';
import { DataTableLayout } from '@/components/ui/data-table';
import { InputGroupTextareaField } from '@/components/ui/input-group';
import { Loader2 } from 'lucide-vue-next';
import { Spinner } from '@/components/ui/spinner';
import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
@@ -340,11 +340,10 @@
}
}
D.progress++;
if (D.progress === userIdList.size) {
D.progress = 0;
}
}
D.loading = false;
D.progress = 0;
D.progressTotal = 0;
}
function resetFriendImport() {
friendImportDialog.value.input = '';

View File

@@ -242,7 +242,7 @@
}
}
}
worldExportContent.value = lines.join('\n');
worldExportContent.value = lines.reverse().join('\n');
}
function selectWorldExportGroup(group) {

View File

@@ -10,7 +10,7 @@
<div v-if="worldImportDialog.progress">
{{ t('dialog.world_import.process_progress') }}
{{ worldImportDialog.progress }} / {{ worldImportDialog.progressTotal }}
<Loader2 style="margin: 0 5px" />
<Spinner class="inline-block ml-2 mr-2" />
</div>
<Button v-if="worldImportDialog.loading" size="sm" variant="outline" @click="cancelWorldImport">
{{ t('dialog.world_import.cancel') }}
@@ -93,7 +93,7 @@
</div>
</div>
<span v-if="worldImportDialog.importProgress" style="margin: 10px">
<Loader2 style="margin-right: 5px" />
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.world_import.import_progress') }}
{{ worldImportDialog.importProgress }}/{{ worldImportDialog.importProgressTotal }}
</span>
@@ -125,7 +125,7 @@
import { Button } from '@/components/ui/button';
import { DataTableLayout } from '@/components/ui/data-table';
import { InputGroupTextareaField } from '@/components/ui/input-group';
import { Loader2 } from 'lucide-vue-next';
import { Spinner } from '@/components/ui/spinner';
import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
@@ -257,11 +257,10 @@
}
}
D.progress++;
if (D.progress === worldIdList.size) {
D.progress = 0;
}
}
D.loading = false;
D.progress = 0;
D.progressTotal = 0;
}
function deleteItemWorldImport(ref) {

View File

@@ -37,7 +37,7 @@
{{ t('dialog.note_export.cancel') }}
</Button>
<span v-if="loading" style="margin: 10px">
<Loader2 style="margin-right: 5px" />
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.note_export.progress') }} {{ progress }}/{{ progressTotal }}
</span>
@@ -67,7 +67,7 @@
import { computed, ref, watch } from 'vue';
import { Button } from '@/components/ui/button';
import { DataTableLayout } from '@/components/ui/data-table';
import { Loader2 } from 'lucide-vue-next';
import { Spinner } from '@/components/ui/spinner';
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';