mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
replace el-button-group with ButtonGroup
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
style="margin-bottom: 12px" />
|
style="margin-bottom: 12px" />
|
||||||
<span>{{ t('dialog.change_content_image.description') }}</span>
|
<span>{{ t('dialog.change_content_image.description') }}</span>
|
||||||
<br />
|
<br />
|
||||||
<el-button-group style="padding-bottom: 10px; padding-top: 10px">
|
|
||||||
<el-button
|
<el-button
|
||||||
type="default"
|
type="default"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -32,7 +31,6 @@
|
|||||||
@click="uploadAvatarImage">
|
@click="uploadAvatarImage">
|
||||||
{{ t('dialog.change_content_image.upload') }}
|
{{ t('dialog.change_content_image.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-button-group>
|
|
||||||
<br />
|
<br />
|
||||||
<div class="x-change-image-item">
|
<div class="x-change-image-item">
|
||||||
<img :src="previousImageUrl" class="img-size" loading="lazy" />
|
<img :src="previousImageUrl" class="img-size" loading="lazy" />
|
||||||
|
|||||||
@@ -15,22 +15,24 @@
|
|||||||
accept="image/*"
|
accept="image/*"
|
||||||
style="display: none"
|
style="display: none"
|
||||||
@change="onFileChangeGallery" />
|
@change="onFileChangeGallery" />
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button type="default" size="small" :icon="Close" @click="selectImageGallerySelect('', '')">{{
|
<Button variant="outline" size="sm" @click="selectImageGallerySelect('', '')">
|
||||||
t('dialog.gallery_select.none')
|
<Close />
|
||||||
}}</el-button>
|
{{ t('dialog.gallery_select.none') }}
|
||||||
<el-button type="default" size="small" :icon="Refresh" @click="refreshGalleryTable">{{
|
</Button>
|
||||||
t('dialog.gallery_select.refresh')
|
<Button variant="outline" size="sm" @click="refreshGalleryTable">
|
||||||
}}</el-button>
|
<Refresh />
|
||||||
<el-button
|
{{ t('dialog.gallery_select.refresh') }}
|
||||||
type="default"
|
</Button>
|
||||||
size="small"
|
<Button
|
||||||
:icon="Upload"
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="!isLocalUserVrcPlusSupporter"
|
:disabled="!isLocalUserVrcPlusSupporter"
|
||||||
@click="displayGalleryUpload"
|
@click="displayGalleryUpload">
|
||||||
>{{ t('dialog.gallery_select.upload') }}</el-button
|
<Upload />
|
||||||
>
|
{{ t('dialog.gallery_select.upload') }}
|
||||||
</el-button-group>
|
</Button>
|
||||||
|
</ButtonGroup>
|
||||||
<br />
|
<br />
|
||||||
<div
|
<div
|
||||||
v-for="image in galleryTable"
|
v-for="image in galleryTable"
|
||||||
@@ -54,6 +56,8 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Close, Refresh, Upload } from '@element-plus/icons-vue';
|
import { Close, Refresh, Upload } from '@element-plus/icons-vue';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { ButtonGroup } from '@/components/ui/button-group';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { toast } from 'vue-sonner';
|
import { toast } from 'vue-sonner';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
style="margin-bottom: 12px" />
|
style="margin-bottom: 12px" />
|
||||||
<span>{{ t('dialog.change_content_image.description') }}</span>
|
<span>{{ t('dialog.change_content_image.description') }}</span>
|
||||||
<br />
|
<br />
|
||||||
<el-button-group style="padding-bottom: 10px; padding-top: 10px">
|
|
||||||
<el-button
|
<el-button
|
||||||
type="default"
|
type="default"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -32,7 +31,6 @@
|
|||||||
@click="uploadWorldImage">
|
@click="uploadWorldImage">
|
||||||
{{ t('dialog.change_content_image.upload') }}
|
{{ t('dialog.change_content_image.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-button-group>
|
|
||||||
<br />
|
<br />
|
||||||
<div class="x-change-image-item">
|
<div class="x-change-image-item">
|
||||||
<img :src="previousImageUrl" class="img-size" loading="lazy" />
|
<img :src="previousImageUrl" class="img-size" loading="lazy" />
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<script setup>
|
||||||
|
import { cn } from '@/lib/utils';
|
||||||
|
|
||||||
|
import { buttonGroupVariants } from '.';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
class: { type: null, required: false },
|
||||||
|
orientation: { type: null, required: false }
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div
|
||||||
|
role="group"
|
||||||
|
data-slot="button-group"
|
||||||
|
:data-orientation="props.orientation"
|
||||||
|
:class="cn(buttonGroupVariants({ orientation: props.orientation }), props.class)">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Separator } from '@/components/ui/separator';
|
||||||
|
import { cn } from '@/lib/utils';
|
||||||
|
import { reactiveOmit } from '@vueuse/core';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
orientation: { type: String, required: false, default: 'vertical' },
|
||||||
|
decorative: { type: Boolean, required: false },
|
||||||
|
asChild: { type: Boolean, required: false },
|
||||||
|
as: { type: null, required: false },
|
||||||
|
class: { type: null, required: false }
|
||||||
|
});
|
||||||
|
const delegatedProps = reactiveOmit(props, 'class');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Separator
|
||||||
|
data-slot="button-group-separator"
|
||||||
|
v-bind="delegatedProps"
|
||||||
|
:orientation="props.orientation"
|
||||||
|
:class="cn('bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto', props.class)" />
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Primitive } from 'reka-ui';
|
||||||
|
import { cn } from '@/lib/utils';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
class: { type: null, required: false },
|
||||||
|
orientation: { type: null, required: false },
|
||||||
|
asChild: { type: Boolean, required: false },
|
||||||
|
as: { type: null, required: false, default: 'div' }
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Primitive
|
||||||
|
role="group"
|
||||||
|
data-slot="button-group"
|
||||||
|
:data-orientation="props.orientation"
|
||||||
|
:as="as"
|
||||||
|
:as-child="asChild"
|
||||||
|
:class="
|
||||||
|
cn(
|
||||||
|
'bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*=\'size-\'])]:size-4',
|
||||||
|
props.class
|
||||||
|
)
|
||||||
|
">
|
||||||
|
<slot />
|
||||||
|
</Primitive>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import { cva } from 'class-variance-authority';
|
||||||
|
|
||||||
|
export { default as ButtonGroup } from './ButtonGroup.vue';
|
||||||
|
export { default as ButtonGroupSeparator } from './ButtonGroupSeparator.vue';
|
||||||
|
export { default as ButtonGroupText } from './ButtonGroupText.vue';
|
||||||
|
|
||||||
|
export const buttonGroupVariants = cva(
|
||||||
|
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
||||||
|
{
|
||||||
|
variants: {
|
||||||
|
orientation: {
|
||||||
|
horizontal:
|
||||||
|
'[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none',
|
||||||
|
vertical:
|
||||||
|
'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
defaultVariants: {
|
||||||
|
orientation: 'horizontal'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Separator } from 'reka-ui';
|
||||||
|
import { cn } from '@/lib/utils';
|
||||||
|
import { reactiveOmit } from '@vueuse/core';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
orientation: { type: String, required: false, default: 'horizontal' },
|
||||||
|
decorative: { type: Boolean, required: false, default: true },
|
||||||
|
asChild: { type: Boolean, required: false },
|
||||||
|
as: { type: null, required: false },
|
||||||
|
class: { type: null, required: false }
|
||||||
|
});
|
||||||
|
|
||||||
|
const delegatedProps = reactiveOmit(props, 'class');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Separator
|
||||||
|
data-slot="separator"
|
||||||
|
v-bind="delegatedProps"
|
||||||
|
:class="
|
||||||
|
cn(
|
||||||
|
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
|
||||||
|
props.class
|
||||||
|
)
|
||||||
|
" />
|
||||||
|
</template>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as Separator } from './Separator.vue';
|
||||||
@@ -72,19 +72,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</PopoverContent>
|
</PopoverContent>
|
||||||
</Popover>
|
</Popover>
|
||||||
<el-button-group style="margin-right: 5px">
|
<ButtonGroup style="margin-right: 5px">
|
||||||
<TooltipWrapper :content="t('view.charts.instance_activity.previous_day')" side="top">
|
<TooltipWrapper :content="t('view.charts.instance_activity.previous_day')" side="top">
|
||||||
<el-button
|
<Button
|
||||||
:icon="ArrowLeft"
|
variant="outline"
|
||||||
|
size="icon-sm"
|
||||||
:disabled="isPrevDayBtnDisabled"
|
:disabled="isPrevDayBtnDisabled"
|
||||||
@click="changeSelectedDateFromBtn(false)"></el-button>
|
@click="changeSelectedDateFromBtn(false)">
|
||||||
|
<ArrowLeft />
|
||||||
|
</Button>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
<TooltipWrapper :content="t('view.charts.instance_activity.next_day')" side="top">
|
<TooltipWrapper :content="t('view.charts.instance_activity.next_day')" side="top">
|
||||||
<el-button :disabled="isNextDayBtnDisabled" @click="changeSelectedDateFromBtn(true)"
|
<Button
|
||||||
><el-icon class="el-icon--right"><ArrowRight /></el-icon
|
variant="outline"
|
||||||
></el-button>
|
size="icon-sm"
|
||||||
|
:disabled="isNextDayBtnDisabled"
|
||||||
|
@click="changeSelectedDateFromBtn(true)">
|
||||||
|
<ArrowRight />
|
||||||
|
</Button>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="selectedDate"
|
v-model="selectedDate"
|
||||||
type="date"
|
type="date"
|
||||||
@@ -126,6 +133,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { computed, nextTick, onBeforeMount, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
import { computed, nextTick, onBeforeMount, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||||
import { ArrowLeft, ArrowRight, InfoFilled, Refresh, Setting, WarningFilled } from '@element-plus/icons-vue';
|
import { ArrowLeft, ArrowRight, InfoFilled, Refresh, Setting, WarningFilled } from '@element-plus/icons-vue';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { ButtonGroup } from '@/components/ui/button-group';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
|
|||||||
+63
-57
@@ -48,22 +48,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button-group v-if="searchUserResults.length" style="margin-top: 15px">
|
<ButtonGroup v-if="searchUserResults.length" style="margin-top: 15px">
|
||||||
<el-button
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="!searchUserParams.offset"
|
:disabled="!searchUserParams.offset"
|
||||||
:icon="Back"
|
@click="handleMoreSearchUser(-1)">
|
||||||
size="small"
|
<Back />
|
||||||
@click="handleMoreSearchUser(-1)"
|
{{ t('view.search.prev_page') }}
|
||||||
>{{ t('view.search.prev_page') }}</el-button
|
</Button>
|
||||||
>
|
<Button
|
||||||
<el-button
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="searchUserResults.length < 10"
|
:disabled="searchUserResults.length < 10"
|
||||||
:icon="Right"
|
@click="handleMoreSearchUser(1)">
|
||||||
size="small"
|
<Right />
|
||||||
@click="handleMoreSearchUser(1)"
|
{{ t('view.search.next_page') }}
|
||||||
>{{ t('view.search.next_page') }}</el-button
|
</Button>
|
||||||
>
|
</ButtonGroup>
|
||||||
</el-button-group>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
v-loading="isSearchWorldLoading"
|
v-loading="isSearchWorldLoading"
|
||||||
@@ -108,22 +110,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button-group v-if="searchWorldResults.length" style="margin-top: 15px">
|
<ButtonGroup v-if="searchWorldResults.length" style="margin-top: 15px">
|
||||||
<el-button
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="!searchWorldParams.offset"
|
:disabled="!searchWorldParams.offset"
|
||||||
:icon="Back"
|
@click="moreSearchWorld(-1)">
|
||||||
size="small"
|
<Back />
|
||||||
@click="moreSearchWorld(-1)"
|
{{ t('view.search.prev_page') }}
|
||||||
>{{ t('view.search.prev_page') }}</el-button
|
</Button>
|
||||||
>
|
<Button
|
||||||
<el-button
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="searchWorldResults.length < 10"
|
:disabled="searchWorldResults.length < 10"
|
||||||
:icon="Right"
|
@click="moreSearchWorld(1)">
|
||||||
size="small"
|
<Right />
|
||||||
@click="moreSearchWorld(1)"
|
{{ t('view.search.next_page') }}
|
||||||
>{{ t('view.search.next_page') }}</el-button
|
</Button>
|
||||||
>
|
</ButtonGroup>
|
||||||
</el-button-group>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
v-loading="isSearchAvatarLoading"
|
v-loading="isSearchAvatarLoading"
|
||||||
@@ -233,25 +237,23 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button-group v-if="searchAvatarPage.length" style="margin-top: 15px">
|
<ButtonGroup v-if="searchAvatarPage.length" style="margin-top: 15px">
|
||||||
<el-button
|
<Button variant="outline" size="sm" :disabled="!searchAvatarPageNum" @click="moreSearchAvatar(-1)">
|
||||||
:disabled="!searchAvatarPageNum"
|
<Back />
|
||||||
:icon="Back"
|
{{ t('view.search.prev_page') }}
|
||||||
size="small"
|
</Button>
|
||||||
@click="moreSearchAvatar(-1)"
|
<Button
|
||||||
>{{ t('view.search.prev_page') }}</el-button
|
variant="outline"
|
||||||
>
|
size="sm"
|
||||||
<el-button
|
|
||||||
:disabled="
|
:disabled="
|
||||||
searchAvatarResults.length < 10 ||
|
searchAvatarResults.length < 10 ||
|
||||||
(searchAvatarPageNum + 1) * 10 >= searchAvatarResults.length
|
(searchAvatarPageNum + 1) * 10 >= searchAvatarResults.length
|
||||||
"
|
"
|
||||||
:icon="Right"
|
@click="moreSearchAvatar(1)">
|
||||||
size="small"
|
<Right />
|
||||||
@click="moreSearchAvatar(1)"
|
{{ t('view.search.next_page') }}
|
||||||
>{{ t('view.search.next_page') }}</el-button
|
</Button>
|
||||||
>
|
</ButtonGroup>
|
||||||
</el-button-group>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
v-loading="isSearchGroupLoading"
|
v-loading="isSearchGroupLoading"
|
||||||
@@ -285,22 +287,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-button-group v-if="searchGroupResults.length" style="margin-top: 15px">
|
<ButtonGroup v-if="searchGroupResults.length" style="margin-top: 15px">
|
||||||
<el-button
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="!searchGroupParams.offset"
|
:disabled="!searchGroupParams.offset"
|
||||||
:icon="Back"
|
@click="moreSearchGroup(-1)">
|
||||||
size="small"
|
<Back />
|
||||||
@click="moreSearchGroup(-1)"
|
{{ t('view.search.prev_page') }}
|
||||||
>{{ t('view.search.prev_page') }}</el-button
|
</Button>
|
||||||
>
|
<Button
|
||||||
<el-button
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
:disabled="searchGroupResults.length < 10"
|
:disabled="searchGroupResults.length < 10"
|
||||||
:icon="Right"
|
@click="moreSearchGroup(1)">
|
||||||
size="small"
|
<Right />
|
||||||
@click="moreSearchGroup(1)"
|
{{ t('view.search.next_page') }}
|
||||||
>{{ t('view.search.next_page') }}</el-button
|
</Button>
|
||||||
>
|
</ButtonGroup>
|
||||||
</el-button-group>
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
@@ -308,6 +312,8 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ArrowDown, Back, Check, Delete, Refresh, Right } from '@element-plus/icons-vue';
|
import { ArrowDown, Back, Check, Delete, Refresh, Right } from '@element-plus/icons-vue';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { ButtonGroup } from '@/components/ui/button-group';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|||||||
@@ -3,25 +3,39 @@
|
|||||||
<div class="options-container" style="margin-top: 0">
|
<div class="options-container" style="margin-top: 0">
|
||||||
<span class="header">{{ t('view.settings.advanced.advanced.header') }}</span>
|
<span class="header">{{ t('view.settings.advanced.advanced.header') }}</span>
|
||||||
<div class="options-container-item" style="margin-top: 15px">
|
<div class="options-container-item" style="margin-top: 15px">
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button size="small" :icon="Operation" @click="showVRChatConfig()">VRChat config.json</el-button>
|
<Button variant="outline" size="sm" @click="showVRChatConfig()">
|
||||||
<el-button size="small" :icon="Operation" @click="showLaunchOptions()">{{
|
<Operation />
|
||||||
t('view.settings.advanced.advanced.launch_options')
|
VRChat config.json
|
||||||
}}</el-button>
|
</Button>
|
||||||
<el-button size="small" :icon="Goods" @click="showRegistryBackupDialog()">{{
|
<Button variant="outline" size="sm" @click="showLaunchOptions()">
|
||||||
t('view.settings.advanced.advanced.vrc_registry_backup')
|
<Operation />
|
||||||
}}</el-button>
|
{{ t('view.settings.advanced.advanced.launch_options') }}
|
||||||
</el-button-group>
|
</Button>
|
||||||
|
<Button variant="outline" size="sm" @click="showRegistryBackupDialog()">
|
||||||
|
<Goods />
|
||||||
|
{{ t('view.settings.advanced.advanced.vrc_registry_backup') }}
|
||||||
|
</Button>
|
||||||
|
</ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="options-container">
|
<div class="options-container">
|
||||||
<span class="header">{{ t('view.settings.advanced.advanced.common_folders') }}</span>
|
<span class="header">{{ t('view.settings.advanced.advanced.common_folders') }}</span>
|
||||||
<div class="options-container-item" style="margin-top: 15px">
|
<div class="options-container-item" style="margin-top: 15px">
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button size="small" :icon="Folder" @click="openVrcxAppDataFolder()">VRCX Data</el-button>
|
<Button variant="outline" size="sm" @click="openVrcxAppDataFolder()">
|
||||||
<el-button size="small" :icon="Folder" @click="openVrcAppDataFolder()">VRChat Data</el-button>
|
<Folder />
|
||||||
<el-button size="small" :icon="Folder" @click="openCrashVrcCrashDumps()">Crash Dumps</el-button>
|
VRCX Data
|
||||||
</el-button-group>
|
</Button>
|
||||||
|
<Button variant="outline" size="sm" @click="openVrcAppDataFolder()">
|
||||||
|
<Folder />
|
||||||
|
VRChat Data
|
||||||
|
</Button>
|
||||||
|
<Button variant="outline" size="sm" @click="openCrashVrcCrashDumps()">
|
||||||
|
<Folder />
|
||||||
|
Crash Dumps
|
||||||
|
</Button>
|
||||||
|
</ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="options-container">
|
<div class="options-container">
|
||||||
@@ -390,6 +404,8 @@
|
|||||||
User
|
User
|
||||||
} from '@element-plus/icons-vue';
|
} from '@element-plus/icons-vue';
|
||||||
import { computed, reactive, ref } from 'vue';
|
import { computed, reactive, ref } from 'vue';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { ButtonGroup } from '@/components/ui/button-group';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { toast } from 'vue-sonner';
|
import { toast } from 'vue-sonner';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|||||||
+80
-75
@@ -30,27 +30,28 @@
|
|||||||
<span>{{ t('dialog.gallery_icons.recommended_image_size') }}: 1200x900px (4:3)</span>
|
<span>{{ t('dialog.gallery_icons.recommended_image_size') }}: 1200x900px (4:3)</span>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button type="default" size="small" @click="refreshGalleryTable" :icon="Refresh">
|
<Button variant="outline" size="sm" @click="refreshGalleryTable">
|
||||||
|
<Refresh />
|
||||||
{{ t('dialog.gallery_icons.refresh') }}
|
{{ t('dialog.gallery_icons.refresh') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button
|
||||||
type="default"
|
variant="outline"
|
||||||
size="small"
|
size="sm"
|
||||||
@click="displayGalleryUpload"
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading"
|
||||||
:icon="Upload"
|
@click="displayGalleryUpload">
|
||||||
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
<Upload />
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button
|
||||||
type="default"
|
variant="outline"
|
||||||
size="small"
|
size="sm"
|
||||||
@click="setProfilePicOverride('')"
|
:disabled="!currentUser.profilePicOverride"
|
||||||
:icon="Close"
|
@click="setProfilePicOverride('')">
|
||||||
:disabled="!currentUser.profilePicOverride">
|
<Close />
|
||||||
{{ t('dialog.gallery_icons.clear') }}
|
{{ t('dialog.gallery_icons.clear') }}
|
||||||
</el-button>
|
</Button>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
<br />
|
<br />
|
||||||
<div
|
<div
|
||||||
class="x-friend-item"
|
class="x-friend-item"
|
||||||
@@ -102,27 +103,24 @@
|
|||||||
<span>{{ t('dialog.gallery_icons.recommended_image_size') }}: 2048x2048px (1:1)</span>
|
<span>{{ t('dialog.gallery_icons.recommended_image_size') }}: 2048x2048px (1:1)</span>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button type="default" size="small" @click="refreshVRCPlusIconsTable" :icon="Refresh">
|
<Button variant="outline" size="sm" @click="refreshVRCPlusIconsTable">
|
||||||
|
<Refresh />
|
||||||
{{ t('dialog.gallery_icons.refresh') }}
|
{{ t('dialog.gallery_icons.refresh') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button
|
||||||
type="default"
|
variant="outline"
|
||||||
size="small"
|
size="sm"
|
||||||
@click="displayVRCPlusIconUpload"
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading"
|
||||||
:icon="Upload"
|
@click="displayVRCPlusIconUpload">
|
||||||
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
<Upload />
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button variant="outline" size="sm" :disabled="!currentUser.userIcon" @click="setVRCPlusIcon('')">
|
||||||
type="default"
|
<Close />
|
||||||
size="small"
|
|
||||||
@click="setVRCPlusIcon('')"
|
|
||||||
:icon="Close"
|
|
||||||
:disabled="!currentUser.userIcon">
|
|
||||||
{{ t('dialog.gallery_icons.clear') }}
|
{{ t('dialog.gallery_icons.clear') }}
|
||||||
</el-button>
|
</Button>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
<br />
|
<br />
|
||||||
<div
|
<div
|
||||||
class="x-friend-item"
|
class="x-friend-item"
|
||||||
@@ -177,19 +175,20 @@
|
|||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<el-button-group style="margin-right: 10px">
|
<ButtonGroup style="margin-right: 10px">
|
||||||
<el-button type="default" size="small" @click="refreshEmojiTable" :icon="Refresh">
|
<Button variant="outline" size="sm" @click="refreshEmojiTable">
|
||||||
|
<Refresh />
|
||||||
{{ t('dialog.gallery_icons.refresh') }}
|
{{ t('dialog.gallery_icons.refresh') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button
|
||||||
type="default"
|
variant="outline"
|
||||||
size="small"
|
size="sm"
|
||||||
@click="displayEmojiUpload"
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading"
|
||||||
:icon="Upload"
|
@click="displayEmojiUpload">
|
||||||
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
<Upload />
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</Button>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<el-select v-model="emojiAnimationStyle">
|
<el-select v-model="emojiAnimationStyle">
|
||||||
@@ -318,19 +317,20 @@
|
|||||||
<span>{{ t('dialog.gallery_icons.recommended_image_size') }}: 1024x1024px (1:1)</span>
|
<span>{{ t('dialog.gallery_icons.recommended_image_size') }}: 1024x1024px (1:1)</span>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button type="default" size="small" @click="refreshStickerTable" :icon="Refresh">
|
<Button variant="outline" size="sm" @click="refreshStickerTable">
|
||||||
|
<Refresh />
|
||||||
{{ t('dialog.gallery_icons.refresh') }}
|
{{ t('dialog.gallery_icons.refresh') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button
|
||||||
type="default"
|
variant="outline"
|
||||||
size="small"
|
size="sm"
|
||||||
@click="displayStickerUpload"
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading"
|
||||||
:icon="Upload"
|
@click="displayStickerUpload">
|
||||||
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
<Upload />
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</Button>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
<br />
|
<br />
|
||||||
<div
|
<div
|
||||||
class="x-friend-item"
|
class="x-friend-item"
|
||||||
@@ -383,19 +383,20 @@
|
|||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button type="default" size="small" @click="refreshPrintTable" :icon="Refresh">
|
<Button variant="outline" size="sm" @click="refreshPrintTable">
|
||||||
|
<Refresh />
|
||||||
{{ t('dialog.gallery_icons.refresh') }}
|
{{ t('dialog.gallery_icons.refresh') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button
|
<Button
|
||||||
type="default"
|
variant="outline"
|
||||||
size="small"
|
size="sm"
|
||||||
@click="displayPrintUpload"
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading"
|
||||||
:icon="Upload"
|
@click="displayPrintUpload">
|
||||||
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
<Upload />
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</Button>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
v-model="printUploadNote"
|
v-model="printUploadNote"
|
||||||
@@ -472,14 +473,16 @@
|
|||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<div style="display: flex; align-items: center">
|
<div style="display: flex; align-items: center">
|
||||||
<el-button-group>
|
<ButtonGroup>
|
||||||
<el-button type="default" size="small" @click="getInventory" :icon="Refresh">
|
<Button variant="outline" size="sm" @click="getInventory">
|
||||||
|
<Refresh />
|
||||||
{{ t('dialog.gallery_icons.refresh') }}
|
{{ t('dialog.gallery_icons.refresh') }}
|
||||||
</el-button>
|
</Button>
|
||||||
<el-button type="default" size="small" @click="redeemReward" :icon="Present">
|
<Button variant="outline" size="sm" @click="redeemReward">
|
||||||
|
<Present />
|
||||||
{{ t('dialog.gallery_icons.redeem') }}
|
{{ t('dialog.gallery_icons.redeem') }}
|
||||||
</el-button>
|
</Button>
|
||||||
</el-button-group>
|
</ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div
|
<div
|
||||||
@@ -527,6 +530,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ArrowLeft, Close, Delete, Link, Picture, Plus, Present, Refresh, Upload } from '@element-plus/icons-vue';
|
import { ArrowLeft, Close, Delete, Link, Picture, Plus, Present, Refresh, Upload } from '@element-plus/icons-vue';
|
||||||
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
|
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import { ButtonGroup } from '@/components/ui/button-group';
|
||||||
import { ElMessageBox } from 'element-plus';
|
import { ElMessageBox } from 'element-plus';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { toast } from 'vue-sonner';
|
import { toast } from 'vue-sonner';
|
||||||
|
|||||||
Reference in New Issue
Block a user