use tailwind class

This commit is contained in:
pa
2026-03-08 22:46:26 +09:00
parent be2f07f24e
commit 9b564303a4
85 changed files with 1167 additions and 642 deletions

View File

@@ -2,12 +2,12 @@
<div id="chart" class="x-container">
<div ref="instanceActivityRef" class="pt-12">
<BackToTop :target="instanceActivityRef" :right="30" :bottom="30" :teleport="false" />
<div class="options-container instance-activity" style="margin-top: 0">
<div class="options-container instance-activity mt-0">
<div>
<span>{{ t('view.charts.instance_activity.header') }}</span>
<HoverCard>
<HoverCardTrigger as-child>
<Info style="margin-left: 4px; font-size: 12px; opacity: 0.7" />
<Info class="ml-1" style="font-size: 12px; opacity: 0.7" />
</HoverCardTrigger>
<HoverCardContent side="bottom" align="start" class="w-75">
<div class="tips-popover">
@@ -21,12 +21,7 @@
<div>
<TooltipWrapper :content="t('view.charts.instance_activity.refresh')" side="top">
<Button
class="rounded-full"
size="icon"
variant="ghost"
style="margin-right: 5px"
@click="reloadData">
<Button class="rounded-full mr-1.5" size="icon" variant="ghost" @click="reloadData">
<RefreshCcw />
</Button>
</TooltipWrapper>
@@ -37,7 +32,7 @@
<TooltipWrapper
:content="t('view.charts.instance_activity.settings.header')"
side="top">
<Button class="rounded-full" size="icon" variant="ghost" style="margin-right: 5px">
<Button class="rounded-full mr-1.5" size="icon" variant="ghost">
<Settings />
</Button>
</TooltipWrapper>
@@ -215,6 +210,9 @@
setInstanceActivityHeight();
});
/**
*
*/
function setInstanceActivityHeight() {
if (instanceActivityRef.value) {
const availableHeight = window.innerHeight - 110;
@@ -259,6 +257,10 @@
}
});
/**
*
* @param value
*/
function handleBarWidthCommit(value) {
changeBarWidth(value?.[0] ?? barWidthDraft.value, () => handleEchartsRerender());
}
@@ -303,6 +305,10 @@
return fromDate(selectedDate.value ?? new Date(), calendarTimeZone);
});
/**
*
* @param dateValue
*/
function isCalendarDateDisabled(dateValue) {
try {
return getDatePickerDisabledDate(toDate(dateValue, calendarTimeZone));
@@ -311,6 +317,10 @@
}
}
/**
*
* @param dateValue
*/
function handleCalendarModelUpdate(dateValue) {
if (!dateValue) return;
selectedDate.value = toDate(dateValue, calendarTimeZone);
@@ -430,6 +440,10 @@
}
};
/**
*
* @param params
*/
function handleYAxisLabelClick(params) {
const targetActivity = activityData.value[params?.dataIndex];
if (!targetActivity) {
@@ -463,6 +477,9 @@
}
}
/**
*
*/
function getYAxisData() {
return worldNameArray.value.map((worldName, index) => {
const activityItem = activityData.value[index];
@@ -479,6 +496,9 @@
});
}
/**
*
*/
function initEcharts() {
const chartsHeight = activityData.value.length * (barWidth.value + 10) + 200;
const chartDom = activityChartRef.value;
@@ -533,6 +553,9 @@
}
afterInit();
}
/**
*
*/
function getNewOption() {
const getTooltip = (params) => {
const activityDataArray = activityData.value;
@@ -560,7 +583,7 @@
return `
<div style="display: flex; align-items: center;">
<div style="width: 10px; height: 55px; background-color: ${color}; margin-right: 5px;"></div>
<div style="width: 10px; height: 55px; background-color: ${color}; margin-right: 6px;"></div>
<div>
<div>${name} #${location.instanceName} ${location.accessTypeName}</div>
<div>${formattedJoinDateTime} - ${formattedLeftDateTime}</div>
@@ -673,10 +696,16 @@
return echartsOption;
}
/**
*
*/
function handleEchartsRerender() {
initEcharts();
handleSettingsChange();
}
/**
*
*/
function handleSettingsChange() {
handleChangeSettings(activityDetailChartRef);
@@ -716,12 +745,12 @@
}
.tips-popover {
& > div {
margin-bottom: 5px;
margin-bottom: 6px;
font-size: 12px;
}
& > div:last-child {
@extend %flex;
margin-top: 10px;
margin-top: 8px;
i {
margin-right: 3px;
}

View File

@@ -1,6 +1,6 @@
<template>
<div style="width: 100%">
<div style="height: 25px; margin-top: 60px">
<div class="mt-15" style="height: 25px">
<transition name="el-fade-in-linear">
<Location
v-show="!isLoading"
@@ -106,6 +106,9 @@
}
});
/**
*
*/
function initResizeObserver() {
resizeObserver.value = new ResizeObserver((entries) => {
if (!echartsInstance) {
@@ -126,6 +129,9 @@
});
}
/**
*
*/
async function initEcharts() {
if (!activityDetailChartRef.value || !props.activityDetailData || props.activityDetailData.length === 0) {
isLoading.value = false;
@@ -183,6 +189,10 @@
setTimeout(afterInit, 50);
}
/**
*
* @param params
*/
function handleClickYAxisLabel(params) {
const userData = usersFirstActivity.value[params.dataIndex];
if (userData?.user_id) {
@@ -190,6 +200,9 @@
}
}
/**
*
*/
function getNewOption() {
if (!props.activityDetailData || props.activityDetailData.length === 0) {
return {
@@ -346,7 +359,7 @@
return `
<div style="display: flex; align-items: center;">
<div style="width: 10px; height: 55px; background-color: ${color}; margin-right: 5px;"></div>
<div style="width: 10px; height: 55px; background-color: ${color}; margin-right: 6px;"></div>
<div>
<div>${instanceData.display_name} ${friendOrFavIcon(instanceData.display_name)}</div>
<div>${formattedJoinDateTime} - ${formattedLeftDateTime}</div>

View File

@@ -1683,7 +1683,7 @@
}
.favorites-dropdown {
padding: 10px;
padding: 8px;
}
.group-section {
@@ -1752,7 +1752,7 @@
.group-item__visibility {
display: flex;
align-items: center;
gap: 5px;
gap: 6px;
}
.group-item__visibility-text {
@@ -1792,7 +1792,7 @@
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
gap: 8px;
font-size: 14px;
}
@@ -1912,7 +1912,7 @@
box-sizing: border-box;
border: 1px solid var(--border);
border-radius: calc(var(--radius-lg) * var(--favorites-card-scale, 1));
padding: var(--favorites-card-padding-y, 8px) var(--favorites-card-padding-x, 10px);
padding: var(--favorites-card-padding-y, 8px) var(--favorites-card-padding-x, 8px);
cursor: pointer;
transition: background-color 0.15s ease;
width: 100%;
@@ -1928,7 +1928,7 @@
:deep(.favorites-search-card__content) {
display: flex;
align-items: center;
gap: var(--favorites-card-content-gap, 10px);
gap: var(--favorites-card-content-gap, 8px);
flex: 1;
min-width: 0;
}
@@ -1982,7 +1982,7 @@
:deep(.favorites-search-card__title) {
display: flex;
align-items: center;
gap: 6px;
gap: 8px;
}
:deep(.favorites-search-card__badges) {
@@ -2015,7 +2015,7 @@
:deep(.favorites-search-card__action-group) {
display: flex;
gap: var(--favorites-card-action-group-gap, 6px);
gap: var(--favorites-card-action-group-gap, 8px);
width: 100%;
}
@@ -2026,7 +2026,7 @@
:deep(.favorites-search-card__action--checkbox) {
align-items: center;
justify-content: flex-end;
margin-right: var(--favorites-card-checkbox-margin, 10px);
margin-right: var(--favorites-card-checkbox-margin, 8px);
}
:deep(.favorites-search-card__action--checkbox [data-slot='checkbox']) {
@@ -2058,7 +2058,7 @@
justify-content: space-between;
font-size: 13px;
font-weight: 600;
margin-bottom: 6px;
margin-bottom: 8px;
}
.favorites-dropdown__control-value {

View File

@@ -1323,7 +1323,7 @@
}
.favorites-dropdown {
padding: 10px;
padding: 8px;
}
.group-section {
@@ -1392,7 +1392,7 @@
.group-item__visibility {
display: flex;
align-items: center;
gap: 5px;
gap: 6px;
}
.group-item__visibility-text {
@@ -1430,7 +1430,7 @@
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
gap: 8px;
font-size: 14px;
}
@@ -1539,7 +1539,7 @@
box-sizing: border-box;
border: 1px solid var(--border);
border-radius: calc(var(--radius-lg) * var(--favorites-card-scale, 1));
padding: var(--favorites-card-padding-y, 8px) var(--favorites-card-padding-x, 10px);
padding: var(--favorites-card-padding-y, 8px) var(--favorites-card-padding-x, 8px);
cursor: pointer;
transition: background-color 0.15s ease;
width: 100%;
@@ -1558,7 +1558,7 @@
:deep(.favorites-search-card__content) {
display: flex;
align-items: center;
gap: var(--favorites-card-content-gap, 10px);
gap: var(--favorites-card-content-gap, 8px);
flex: 1;
min-width: 0;
}
@@ -1612,7 +1612,7 @@
:deep(.favorites-search-card__title) {
display: flex;
align-items: center;
gap: 6px;
gap: 8px;
}
:deep(.favorites-search-card__badges) {
@@ -1645,7 +1645,7 @@
:deep(.favorites-search-card__action-group) {
display: flex;
gap: var(--favorites-card-action-group-gap, 6px);
gap: var(--favorites-card-action-group-gap, 8px);
width: 100%;
}
@@ -1656,7 +1656,7 @@
:deep(.favorites-search-card__action--checkbox) {
align-items: center;
justify-content: flex-end;
margin-right: var(--favorites-card-checkbox-margin, 10px);
margin-right: var(--favorites-card-checkbox-margin, 8px);
}
:deep(.favorites-search-card__action--checkbox [data-slot='checkbox']) {
@@ -1698,7 +1698,7 @@
justify-content: space-between;
font-size: 13px;
font-weight: 600;
margin-bottom: 6px;
margin-bottom: 8px;
}
.favorites-dropdown__control-value {

View File

@@ -1545,7 +1545,7 @@
}
.favorites-dropdown {
padding: 10px;
padding: 8px;
}
.favorites-groups-panel {
@@ -1623,7 +1623,7 @@
.group-item__visibility {
display: flex;
align-items: center;
gap: 5px;
gap: 6px;
}
.group-item__visibility-text {
@@ -1666,7 +1666,7 @@
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
gap: 8px;
font-size: 14px;
}
@@ -1828,7 +1828,7 @@
box-sizing: border-box;
border: 1px solid var(--border);
border-radius: calc(var(--radius-lg) * var(--favorites-card-scale, 1));
padding: var(--favorites-card-padding-y, 8px) var(--favorites-card-padding-x, 10px);
padding: var(--favorites-card-padding-y, 8px) var(--favorites-card-padding-x, 8px);
cursor: pointer;
transition: background-color 0.15s ease;
width: 100%;
@@ -1847,7 +1847,7 @@
:deep(.favorites-search-card__content) {
display: flex;
align-items: center;
gap: var(--favorites-card-content-gap, 10px);
gap: var(--favorites-card-content-gap, 8px);
flex: 1;
min-width: 0;
}
@@ -1901,7 +1901,7 @@
:deep(.favorites-search-card__title) {
display: flex;
align-items: center;
gap: 6px;
gap: 8px;
}
:deep(.favorites-search-card__badges) {
@@ -1934,7 +1934,7 @@
:deep(.favorites-search-card__action-group) {
display: flex;
gap: var(--favorites-card-action-group-gap, 6px);
gap: var(--favorites-card-action-group-gap, 8px);
width: 100%;
}
@@ -1945,7 +1945,7 @@
:deep(.favorites-search-card__action--checkbox) {
align-items: center;
justify-content: flex-end;
margin-right: var(--favorites-card-checkbox-margin, 10px);
margin-right: var(--favorites-card-checkbox-margin, 8px);
}
:deep(.favorites-search-card__action--checkbox [data-slot='checkbox']) {
@@ -1980,7 +1980,7 @@
justify-content: space-between;
font-size: 13px;
font-weight: 600;
margin-bottom: 6px;
margin-bottom: 8px;
}
.favorites-dropdown__control-value {

View File

@@ -1,5 +1,5 @@
<template>
<DropdownMenu v-model:open="moveDropdownOpen" style="margin-left: 5px">
<DropdownMenu class="ml-1.5" v-model:open="moveDropdownOpen">
<DropdownMenuTrigger as-child>
<Button class="rounded-full w-6 h-6 text-xs" size="icon-sm" variant="ghost"
><ArrowLeft class="h-4 w-4"
@@ -11,10 +11,11 @@
</span>
<DropdownMenuSeparator />
<DropdownMenuItem
class="my-2 mx-0"
v-for="groupAPI in favoriteGroupList"
:key="groupAPI.name"
v-if="isLocalFavorite || groupAPI?.name !== currentGroup?.name"
style="display: block; margin: 10px 0"
style="display: block"
:disabled="groupAPI.count >= groupAPI.capacity"
@click="handleDropdownItemClick(groupAPI)">
{{ groupAPI.displayName }} ({{ groupAPI.count }} / {{ groupAPI.capacity }})
@@ -74,6 +75,10 @@
});
const moveDropdownOpen = ref(false);
/**
*
* @param groupAPI
*/
function handleDropdownItemClick(groupAPI) {
moveDropdownOpen.value = false;
if (props.isLocalFavorite) {
@@ -87,6 +92,11 @@
}
}
/**
*
* @param ref
* @param group
*/
function moveFavorite(ref, group) {
favoriteRequest.deleteFavorite({ objectId: ref.id }).then(() => {
favoriteRequest.addFavorite({
@@ -97,6 +107,10 @@
});
}
/**
*
* @param groupAPI
*/
function addFavoriteAvatar(groupAPI) {
return favoriteRequest
.addFavorite({
@@ -110,6 +124,10 @@
});
}
/**
*
* @param groupAPI
*/
function addFavoriteWorld(groupAPI) {
return favoriteRequest
.addFavorite({

View File

@@ -5,7 +5,7 @@
<DialogTitle>{{ t('dialog.avatar_export.header') }}</DialogTitle>
</DialogHeader>
<div style="margin-bottom: 10px" class="flex flex-col gap-2">
<div class="flex flex-col gap-2 mb-2">
<label v-for="option in exportSelectOptions" :key="option.value" class="inline-flex items-center gap-2">
<Checkbox
:model-value="exportSelectedOptions.includes(option.label)"
@@ -35,9 +35,9 @@
</Select>
<Select
class="ml-2"
:model-value="avatarExportLocalFavoriteGroupSelection"
@update:modelValue="handleAvatarExportLocalFavoriteGroupSelect"
style="margin-left: 10px">
@update:modelValue="handleAvatarExportLocalFavoriteGroupSelect">
<SelectTrigger size="sm">
<SelectValue placeholder="Select Group" />
</SelectTrigger>
@@ -56,8 +56,7 @@
v-model="avatarExportContent"
:rows="15"
readonly
style="margin-top: 15px"
input-class="resize-none"
input-class="resize-none mt-4"
@click="handleCopyAvatarExportData" />
</DialogContent>
</Dialog>

View File

@@ -20,18 +20,14 @@
</Button>
</div>
</div>
<InputGroupTextareaField
v-model="avatarImportDialog.input"
:rows="10"
style="margin-top: 10px"
input-class="resize-none" />
<div style="display: flex; align-items: center; justify-content: space-between; margin-top: 5px">
<InputGroupTextareaField v-model="avatarImportDialog.input" :rows="10" input-class="resize-none mt-2" />
<div class="mt-1.5" style="display: flex; align-items: center; justify-content: space-between">
<div>
<div class="flex items-center gap-2">
<Select
class="mr-1.5"
:model-value="avatarImportFavoriteGroupSelection"
@update:modelValue="handleAvatarImportGroupSelect"
style="margin-right: 5px">
@update:modelValue="handleAvatarImportGroupSelect">
<SelectTrigger size="sm">
<SelectValue :placeholder="t('dialog.avatar_import.select_group_placeholder')" />
</SelectTrigger>
@@ -49,9 +45,9 @@
</Select>
<Select
class="ml-2"
:model-value="avatarImportLocalFavoriteGroupSelection"
@update:modelValue="handleAvatarImportLocalGroupSelect"
style="margin-left: 10px">
@update:modelValue="handleAvatarImportLocalGroupSelect">
<SelectTrigger size="sm">
<SelectValue :placeholder="t('dialog.avatar_import.select_group_placeholder')" />
</SelectTrigger>
@@ -64,7 +60,7 @@
</SelectContent>
</Select>
</div>
<span v-if="avatarImportDialog.avatarImportFavoriteGroup" style="margin-left: 5px">
<span class="ml-1.5" v-if="avatarImportDialog.avatarImportFavoriteGroup">
{{ avatarImportTable.data.length }} /
{{
avatarImportDialog.avatarImportFavoriteGroup.capacity -
@@ -88,7 +84,7 @@
</Button>
</div>
</div>
<span v-if="avatarImportDialog.importProgress" style="margin: 10px">
<span class="m-2" v-if="avatarImportDialog.importProgress">
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.avatar_import.import_progress') }}
{{ avatarImportDialog.importProgress }}/{{ avatarImportDialog.importProgressTotal }}
@@ -98,7 +94,7 @@
<Button size="sm" variant="secondary" @click="avatarImportDialog.errors = ''">
{{ t('dialog.avatar_import.clear_errors') }}
</Button>
<h2 style="font-weight: bold; margin: 5px 0">
<h2 class="my-1.5 mx-0" style="font-weight: bold">
{{ t('dialog.avatar_import.errors') }}
</h2>
<pre style="white-space: pre-wrap; font-size: 12px" v-text="avatarImportDialog.errors"></pre>
@@ -109,7 +105,7 @@
:loading="avatarImportDialog.loading"
:table-style="tableStyle"
:show-pagination="false"
style="margin-top: 10px" />
style="margin-top: 8px" />
</DialogContent>
</Dialog>
</template>
@@ -212,6 +208,9 @@
}
);
/**
*
*/
async function processAvatarImportList() {
const D = avatarImportDialog.value;
D.loading = true;
@@ -253,21 +252,35 @@
D.progressTotal = 0;
}
/**
*
* @param ref
*/
function deleteItemAvatarImport(ref) {
removeFromArray(avatarImportTable.value.data, ref);
avatarImportDialog.value.avatarIdList.delete(ref.id);
}
/**
*
*/
function resetAvatarImport() {
avatarImportDialog.value.input = '';
avatarImportDialog.value.errors = '';
}
/**
*
*/
function clearAvatarImportTable() {
avatarImportTable.value.data = [];
avatarImportDialog.value.avatarIdList = new Set();
}
/**
*
* @param group
*/
function selectAvatarImportGroup(group) {
avatarImportDialog.value.avatarImportLocalFavoriteGroup = null;
avatarImportDialog.value.avatarImportFavoriteGroup = group;
@@ -275,6 +288,10 @@
avatarImportLocalFavoriteGroupSelection.value = '';
}
/**
*
* @param group
*/
function selectAvatarImportLocalGroup(group) {
avatarImportDialog.value.avatarImportFavoriteGroup = null;
avatarImportDialog.value.avatarImportLocalFavoriteGroup = group;
@@ -282,20 +299,37 @@
avatarImportLocalFavoriteGroupSelection.value = group ?? '';
}
/**
*
* @param value
*/
function handleAvatarImportGroupSelect(value) {
avatarImportFavoriteGroupSelection.value = value;
const group = favoriteAvatarGroups.value.find((g) => g.name === value) ?? null;
selectAvatarImportGroup(group);
}
/**
*
* @param value
*/
function handleAvatarImportLocalGroupSelect(value) {
avatarImportLocalFavoriteGroupSelection.value = value;
selectAvatarImportLocalGroup(value || null);
}
/**
*
*/
function cancelAvatarImport() {
avatarImportDialog.value.loading = false;
}
/**
*
* @param ref
* @param group
* @param message
*/
function addFavoriteAvatar(ref, group, message) {
return favoriteRequest
.addFavorite({
@@ -310,6 +344,9 @@
return args;
});
}
/**
*
*/
async function importAvatarImportTable() {
const D = avatarImportDialog.value;
if (!D.avatarImportFavoriteGroup && !D.avatarImportLocalFavoriteGroup) {

View File

@@ -24,9 +24,9 @@
</Select>
<Select
class="mt-4"
:model-value="friendExportLocalFavoriteGroupSelection"
@update:modelValue="handleFriendExportLocalGroupSelect"
style="margin-top: 15px">
@update:modelValue="handleFriendExportLocalGroupSelect">
<SelectTrigger size="sm">
<SelectValue placeholder="Select Group" />
</SelectTrigger>
@@ -45,8 +45,7 @@
v-model="friendExportContent"
:rows="15"
readonly
style="margin-top: 15px"
input-class="resize-none"
input-class="resize-none mt-4"
@click="handleCopyFriendExportData" />
</DialogContent>
</Dialog>

View File

@@ -23,8 +23,8 @@
<InputGroupTextareaField
v-model="friendImportDialog.input"
:rows="10"
style="margin-top: 10px"
input-class="resize-none" />
input-class="resize-none mt-2" />
<div>
<div class="mb-2">
<div class="flex items-center gap-2">
@@ -47,10 +47,10 @@
</SelectContent>
</Select>
<Select
<Select class="ml-2"
:model-value="friendImportLocalFavoriteGroupSelection"
@update:modelValue="handleFriendImportLocalGroupSelect"
style="margin-left: 10px">
>
<SelectTrigger size="sm">
<SelectValue :placeholder="t('dialog.world_import.select_local_group_placeholder')" />
</SelectTrigger>
@@ -63,7 +63,7 @@
</SelectContent>
</Select>
</div>
<span v-if="friendImportDialog.friendImportFavoriteGroup" style="margin-left: 5px">
<span class="ml-1.5" v-if="friendImportDialog.friendImportFavoriteGroup">
{{ friendImportTable.data.length }} /
{{
friendImportDialog.friendImportFavoriteGroup.capacity -
@@ -92,7 +92,7 @@
</Button>
</div>
</div>
<span v-if="friendImportDialog.importProgress" style="margin: 10px">
<span class="m-2" v-if="friendImportDialog.importProgress">
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.friend_import.import_progress') }} {{ friendImportDialog.importProgress }}/{{
friendImportDialog.importProgressTotal
@@ -103,7 +103,7 @@
<Button size="sm" variant="secondary" @click="friendImportDialog.errors = ''">
{{ t('dialog.friend_import.clear_errors') }}
</Button>
<h2 style="font-weight: bold; margin: 5px 0">{{ t('dialog.friend_import.errors') }}</h2>
<h2 class="my-1.5 mx-0" style="font-weight: bold">{{ t('dialog.friend_import.errors') }}</h2>
<pre style="white-space: pre-wrap; font-size: 12px" v-text="friendImportDialog.errors"></pre>
</template>
<DataTableLayout
@@ -112,7 +112,7 @@
:loading="friendImportDialog.loading"
:table-style="tableStyle"
:show-pagination="false"
style="margin-top: 10px" />
style="margin-top: 8px" />
</DialogContent>
</Dialog>
</template>

View File

@@ -5,7 +5,7 @@
<DialogTitle>{{ t('dialog.world_export.header') }}</DialogTitle>
</DialogHeader>
<div style="margin-bottom: 10px" class="flex flex-col gap-2">
<div class="flex flex-col gap-2 mb-2">
<label v-for="option in exportSelectOptions" :key="option.value" class="inline-flex items-center gap-2">
<Checkbox
:model-value="exportSelectedOptions.includes(option.label)"
@@ -35,9 +35,9 @@
</Select>
<Select
class="ml-2"
:model-value="worldExportLocalFavoriteGroupSelection"
@update:modelValue="handleWorldExportLocalGroupSelect"
style="margin-left: 10px">
@update:modelValue="handleWorldExportLocalGroupSelect">
<SelectTrigger size="sm">
<SelectValue placeholder="Select Group" />
</SelectTrigger>
@@ -58,8 +58,7 @@
v-model="worldExportContent"
:rows="15"
readonly
style="margin-top: 15px"
input-class="resize-none"
input-class="resize-none mt-4"
@click="handleCopyWorldExportData" />
</DialogContent>
</Dialog>

View File

@@ -20,11 +20,7 @@
</Button>
</div>
</div>
<InputGroupTextareaField
v-model="worldImportDialog.input"
:rows="10"
style="margin-top: 10px"
input-class="resize-none" />
<InputGroupTextareaField v-model="worldImportDialog.input" :rows="10" input-class="resize-none mt-2" />
<div>
<div class="mb-2">
<div class="flex items-center gap-2">
@@ -48,9 +44,9 @@
</Select>
<Select
class="ml-2"
:model-value="worldImportLocalFavoriteGroupSelection"
@update:modelValue="handleWorldImportLocalGroupSelect"
style="margin-left: 10px">
@update:modelValue="handleWorldImportLocalGroupSelect">
<SelectTrigger size="sm">
<SelectValue :placeholder="t('dialog.world_import.select_local_group_placeholder')" />
</SelectTrigger>
@@ -63,7 +59,7 @@
</SelectContent>
</Select>
</div>
<span v-if="worldImportDialog.worldImportFavoriteGroup" style="margin-left: 5px">
<span class="ml-1.5" v-if="worldImportDialog.worldImportFavoriteGroup">
{{ worldImportTable.data.length }} /
{{
worldImportDialog.worldImportFavoriteGroup.capacity -
@@ -92,7 +88,7 @@
</Button>
</div>
</div>
<span v-if="worldImportDialog.importProgress" style="margin: 10px">
<span class="m-2" v-if="worldImportDialog.importProgress">
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.world_import.import_progress') }}
{{ worldImportDialog.importProgress }}/{{ worldImportDialog.importProgressTotal }}
@@ -102,7 +98,7 @@
<Button size="sm" variant="secondary" @click="worldImportDialog.errors = ''">
{{ t('dialog.world_import.clear_errors') }}
</Button>
<h2 style="font-weight: bold; margin: 5px 0">
<h2 class="my-1.5 mx-0" style="font-weight: bold">
{{ t('dialog.world_import.errors') }}
</h2>
<pre style="white-space: pre-wrap; font-size: 12px" v-text="worldImportDialog.errors"></pre>
@@ -113,7 +109,7 @@
:loading="worldImportDialog.loading"
:table-style="tableStyle"
:show-pagination="false"
style="margin-top: 10px" />
style="margin-top: 8px" />
</DialogContent>
</Dialog>
</template>
@@ -218,11 +214,17 @@
}
);
/**
*
*/
function resetWorldImport() {
worldImportDialog.value.input = '';
worldImportDialog.value.errors = '';
}
/**
*
*/
async function processWorldImportList() {
const D = worldImportDialog.value;
D.loading = true;
@@ -263,16 +265,27 @@
D.progressTotal = 0;
}
/**
*
* @param ref
*/
function deleteItemWorldImport(ref) {
removeFromArray(worldImportTable.value.data, ref);
worldImportDialog.value.worldIdList.delete(ref.id);
}
/**
*
*/
function clearWorldImportTable() {
worldImportTable.value.data = [];
worldImportDialog.value.worldIdList = new Set();
}
/**
*
* @param group
*/
function selectWorldImportGroup(group) {
worldImportDialog.value.worldImportLocalFavoriteGroup = null;
worldImportDialog.value.worldImportFavoriteGroup = group;
@@ -280,6 +293,10 @@
worldImportLocalFavoriteGroupSelection.value = '';
}
/**
*
* @param group
*/
function selectWorldImportLocalGroup(group) {
worldImportDialog.value.worldImportFavoriteGroup = null;
worldImportDialog.value.worldImportLocalFavoriteGroup = group;
@@ -287,21 +304,35 @@
worldImportLocalFavoriteGroupSelection.value = group ?? '';
}
/**
*
* @param value
*/
function handleWorldImportGroupSelect(value) {
worldImportFavoriteGroupSelection.value = value;
const group = favoriteWorldGroups.value.find((g) => g.name === value) ?? null;
selectWorldImportGroup(group);
}
/**
*
* @param value
*/
function handleWorldImportLocalGroupSelect(value) {
worldImportLocalFavoriteGroupSelection.value = value;
selectWorldImportLocalGroup(value || null);
}
/**
*
*/
function cancelWorldImport() {
worldImportDialog.value.loading = false;
}
/**
*
*/
async function importWorldImportTable() {
const D = worldImportDialog.value;
if (!D.worldImportFavoriteGroup && !D.worldImportLocalFavoriteGroup) {
@@ -338,6 +369,12 @@
}
}
/**
*
* @param ref
* @param group
* @param message
*/
function addFavoriteWorld(ref, group, message) {
return favoriteRequest
.addFavorite({

View File

@@ -8,7 +8,7 @@
:total-items="totalItems"
:on-page-size-change="handlePageSizeChange">
<template #toolbar>
<div style="margin: 0 0 10px; display: flex; align-items: center">
<div class="mt-0 mx-0 mb-2" style="display: flex; align-items: center">
<div style="flex: none; display: flex; align-items: center" class="mr-2">
<Popover v-model:open="popoverOpen">
<PopoverTrigger as-child>
@@ -72,10 +72,11 @@
</ToggleGroupItem>
</ToggleGroup>
<InputGroupField
class="ml-2"
v-model="feedTable.search"
:placeholder="t('view.feed.search_placeholder')"
clearable
style="flex: 0.4; margin-left: 10px"
style="flex: 0.4"
@keyup.enter="feedTableLookup"
@change="feedTableLookup" />
</div>

View File

@@ -68,7 +68,7 @@
<Button variant="outline" @click="showBulkUnfriendSelectionConfirm">
{{ t('view.friend_list.bulk_unfriend_selection') }}
</Button>
<!-- el-button(size="small" @click="showBulkUnfriendAllConfirm" style="margin-right:5px") Bulk Unfriend All-->
<!-- el-button(size="small" @click="showBulkUnfriendAllConfirm") Bulk Unfriend All-->
</div>
<div class="flex items-center mr-2">
<span class="name mr-2 text-xs">{{ t('view.friend_list.bulk_unfriend') }}</span>
@@ -98,12 +98,12 @@
<DialogHeader>
<DialogTitle>{{ t('view.friend_list.load_dialog_title') }}</DialogTitle>
</DialogHeader>
<div style="margin-bottom: 10px" v-text="t('view.friend_list.load_dialog_message')"></div>
<div style="margin-bottom: 8px" v-text="t('view.friend_list.load_dialog_message')"></div>
<div class="flex items-center gap-2">
<Progress :model-value="friendsListLoadingPercent" class="h-4 w-full" />
<span class="text-xs w-10 text-right">{{ friendsListLoadingPercent }}%</span>
</div>
<div style="margin-top: 10px; text-align: right">
<div style="margin-top: 8px; text-align: right">
<span>{{ friendsListLoadingCurrent }} / {{ friendsListLoadingTotal }}</span>
</div>
<DialogFooter>

View File

@@ -8,7 +8,7 @@
:total-items="totalItems"
:on-page-size-change="handlePageSizeChange">
<template #toolbar>
<div style="margin: 0 0 10px; display: flex; align-items: center">
<div class="mt-0 mx-0 mb-2" style="display: flex; align-items: center">
<Select
multiple
:model-value="
@@ -37,9 +37,10 @@
</SelectContent>
</Select>
<InputGroupField
class="ml-2"
v-model="friendLogTable.filters[1].value"
:placeholder="t('view.friend_log.search_placeholder')"
style="flex: 0.4; margin-left: 10px" />
style="flex: 0.4" />
</div>
</template>
</DataTableLayout>
@@ -142,13 +143,24 @@
);
const { t } = useI18n();
/**
*
*/
function saveTableFilters() {
configRepository.setString('VRCX_friendLogTableFilters', JSON.stringify(friendLogTable.value.filters[0].value));
}
/**
*
* @param value
*/
function handleFriendLogFilterChange(value) {
friendLogTable.value.filters[0].value = Array.isArray(value) ? value : [];
saveTableFilters();
}
/**
*
* @param row
*/
function deleteFriendLogPrompt(row) {
modalStore
.confirm({
@@ -158,6 +170,10 @@
.then(({ ok }) => ok && deleteFriendLog(row))
.catch(() => {});
}
/**
*
* @param row
*/
function deleteFriendLog(row) {
removeFromArray(friendLogTable.value.data, row);
database.deleteFriendLogHistory(row.rowId);

View File

@@ -429,6 +429,10 @@
});
});
/**
*
* @param groupKey
*/
function toggleGroupCollapse(groupKey) {
if (collapsedGroups.has(groupKey)) {
collapsedGroups.delete(groupKey);
@@ -898,6 +902,9 @@
}
});
/**
*
*/
async function loadInitialSettings() {
try {
const [storedScale, storedSpacing, storedShowSameInstance] = await Promise.all([
@@ -954,7 +961,7 @@
display: flex;
gap: 20px;
align-items: center;
padding: 6px 2px 0 2px;
padding: 8px 2px 0 2px;
}
.friend-view__tabs {
@@ -1002,7 +1009,7 @@
}
.friend-view__virtual-row--header {
padding: 4px 10px;
padding: 4px 8px;
padding-bottom: calc(var(--friend-card-gap, 14px) - 4px);
}
@@ -1044,7 +1051,7 @@
.friend-view__scale-control {
display: flex;
align-items: center;
gap: 10px;
gap: 8px;
min-width: 160px;
}

View File

@@ -337,7 +337,7 @@
}
.friend-card__signature {
margin-top: calc(6px * var(--card-spacing));
margin-top: calc(8px * var(--card-spacing));
font-size: calc(13px * var(--card-scale));
line-height: 1.4;
overflow: hidden;
@@ -352,7 +352,7 @@
align-items: center;
justify-content: center;
min-height: calc(40px * var(--card-scale));
padding: calc(6px * var(--card-scale)) calc(10px * var(--card-scale));
padding: calc(8px * var(--card-scale)) calc(8px * var(--card-scale));
border-radius: calc(var(--radius-lg) * var(--card-scale));
font-size: calc(12px * var(--card-scale));
line-height: 1.3;

View File

@@ -8,8 +8,8 @@
:total-items="totalItems"
:on-page-size-change="handlePageSizeChange">
<template #toolbar>
<div style="margin: 0 0 10px; display: flex; align-items: center">
<div style="flex: none; margin-right: 10px; display: flex; align-items: center">
<div class="mt-0 mx-0 mb-2" style="display: flex; align-items: center">
<div class="mr-2" style="flex: none; display: flex; align-items: center">
<TooltipWrapper side="bottom" :content="t('view.feed.favorites_only_tooltip')">
<div>
<Toggle
@@ -55,10 +55,11 @@
</SelectContent>
</Select>
<InputGroupField
class="ml-2"
v-model="gameLogTable.search"
:placeholder="t('view.game_log.search_placeholder')"
clearable
style="flex: 0.4; margin-left: 10px"
style="flex: 0.4"
@keyup.enter="gameLogTableLookup"
@change="gameLogTableLookup" />
</div>
@@ -90,6 +91,10 @@
const vrcxStore = useVrcxStore();
const modalStore = useModalStore();
/**
*
* @param row
*/
function getGameLogCreatedAt(row) {
if (typeof row?.created_at === 'string' && row.created_at.length > 0) {
return row.created_at;
@@ -112,6 +117,10 @@
paginationHeight: 52
});
/**
*
* @param row
*/
function deleteGameLogEntryPrompt(row) {
modalStore
.confirm({
@@ -122,6 +131,10 @@
.catch(() => {});
}
/**
*
* @param row
*/
function deleteGameLogEntry(row) {
removeFromArray(gameLogTableData.value, row);
database.deleteGameLogEntry(row);
@@ -133,6 +146,10 @@
onDeletePrompt: deleteGameLogEntryPrompt
});
/**
*
* @param value
*/
function handleGameLogFilterChange(value) {
gameLogTable.value.filter = Array.isArray(value) ? value : [];
gameLogTableLookup();
@@ -140,6 +157,10 @@
const pageSizes = computed(() => appearanceSettingsStore.tablePageSizes);
/**
*
* @param row
*/
function getGameLogRowId(row) {
if (row?.rowId != null) return `row:${row.rowId}`;

View File

@@ -1,6 +1,6 @@
<template>
<div class="x-login-container">
<div style="position: absolute; top: 0; left: 0; margin: 5px">
<div class="m-1.5" style="position: absolute; top: 0; left: 0">
<LoginSettingsDialog />
<TooltipWrapper v-if="!noUpdater" side="top" :content="t('view.login.updater')">
<Button class="rounded-full mr-2 text-xs" size="icon-sm" variant="ghost" @click="showVRCXUpdateDialog"
@@ -29,7 +29,7 @@
<div class="x-login">
<div class="x-login-form-container">
<div>
<h2 style="font-weight: bold; text-align: center; margin: 0">{{ t('view.login.login') }}</h2>
<h2 class="m-0" style="font-weight: bold; text-align: center">{{ t('view.login.login') }}</h2>
<form id="login-form" @submit.prevent="onSubmit">
<FieldGroup class="gap-3">
<VeeField v-slot="{ field, errors }" name="username">
@@ -95,10 +95,10 @@
<hr v-if="Object.keys(savedCredentials).length !== 0" class="x-vertical-divider" />
<div v-if="Object.keys(savedCredentials).length !== 0">
<h2 style="font-weight: bold; text-align: center; margin: 0">
<h2 class="m-0" style="font-weight: bold; text-align: center">
{{ t('view.login.savedAccounts') }}
</h2>
<div class="x-scroll-wrapper" style="margin-top: 10px">
<div class="x-scroll-wrapper mt-2">
<div class="x-saved-account-list">
<div
v-for="user in savedCredentials"

View File

@@ -57,8 +57,7 @@
v-model="notificationTable.filters[1].value"
:placeholder="t('view.notification.search_placeholder')"
clearable
class="flex-[0.4]"
style="margin: 0 10px" />
class="flex-[0.4] my-0 mx-2" />
<TooltipWrapper side="bottom" :content="t('view.notification.refresh_tooltip')">
<Button
class="rounded-full"
@@ -139,6 +138,10 @@
paginationHeight: 52
});
/**
*
* @param row
*/
function getNotificationCreatedAt(row) {
if (typeof row?.created_at === 'string' && row.created_at.length > 0) {
return row.created_at;
@@ -149,6 +152,10 @@
return '';
}
/**
*
* @param row
*/
function getNotificationCreatedAtTs(row) {
const createdAtRaw = row?.created_at ?? row?.createdAt;
if (typeof createdAtRaw === 'number') {
@@ -263,6 +270,9 @@
const sendInviteRequestResponseDialogVisible = ref(false);
/**
*
*/
function saveTableFilters() {
configRepository.setString(
'VRCX_notificationTableFilters',
@@ -270,15 +280,27 @@
);
}
/**
*
* @param value
*/
function handleNotificationFilterChange(value) {
notificationTable.value.filters[0].value = Array.isArray(value) ? value : [];
saveTableFilters();
}
/**
*
* @param url
*/
function getSmallThumbnailUrl(url) {
return convertFileUrlToImageUrl(url);
}
/**
*
* @param invite
*/
function showSendInviteResponseDialog(invite) {
sendInviteResponseDialog.value.invite = invite;
sendInviteResponseDialog.value.messageSlot = {};
@@ -287,6 +309,10 @@
sendInviteResponseDialogVisible.value = true;
}
/**
*
* @param invite
*/
function showSendInviteRequestResponseDialog(invite) {
sendInviteResponseDialog.value.invite = invite;
sendInviteResponseDialog.value.messageSlot = {};

View File

@@ -11,7 +11,7 @@
</template>
<DataTableLayout
style="margin-top: 10px"
style="margin-top: 8px"
:table="inviteRequestResponseTable"
:loading="false"
:show-pagination="false"
@@ -102,10 +102,18 @@
initialSorting: [{ id: 'slot', desc: false }]
});
/**
*
* @param row
*/
function handleInviteRequestResponseRowClick(row) {
showSendInviteResponseConfirmDialog(row?.original);
}
/**
*
* @param row
*/
function showEditAndSendInviteResponseDialog(row) {
emit('update:sendInviteResponseDialog', { ...props.sendInviteResponseDialog, messageSlot: row });
editAndSendInviteResponseDialog.value = {
@@ -114,15 +122,25 @@
};
}
/**
*
* @param row
*/
function showSendInviteResponseConfirmDialog(row) {
emit('update:sendInviteResponseDialog', { ...props.sendInviteResponseDialog, messageSlot: row });
sendInviteResponseConfirmDialog.value.visible = true;
}
/**
*
*/
function closeInviteDialog() {
cancelSendInviteRequestResponse();
}
/**
*
*/
function closeResponseConfirmDialog() {
sendInviteResponseConfirmDialog.value.visible = false;
editAndSendInviteResponseDialog.value.visible = false;
@@ -132,6 +150,9 @@
// inviteMessagesRequest.refreshInviteMessageTableData(arg);
// }
/**
*
*/
function cancelSendInviteRequestResponse() {
emit('update:sendInviteRequestResponseDialogVisible', false);
}

View File

@@ -9,7 +9,7 @@
</template>
<DataTableLayout
style="margin-top: 10px"
style="margin-top: 8px"
:table="inviteResponseTable"
:loading="false"
:show-pagination="false"
@@ -101,23 +101,40 @@
initialSorting: [{ id: 'slot', desc: false }]
});
/**
*
* @param row
*/
function handleInviteResponseRowClick(row) {
showSendInviteResponseConfirmDialog(row?.original);
}
/**
*
*/
function closeInviteDialog() {
cancelSendInviteResponse();
}
/**
*
*/
function cancelSendInviteResponse() {
emit('update:sendInviteResponseDialogVisible', false);
}
/**
*
*/
function closeResponseConfirmDialog() {
sendInviteResponseConfirmDialog.value.visible = false;
editAndSendInviteResponseDialog.value.visible = false;
}
/**
*
* @param row
*/
function showEditAndSendInviteResponseDialog(row) {
emit('update:sendInviteResponseDialog', { ...props.sendInviteResponseDialog, messageSlot: row });
editAndSendInviteResponseDialog.value = {
@@ -125,6 +142,10 @@
visible: true
};
}
/**
*
* @param row
*/
function showSendInviteResponseConfirmDialog(row) {
emit('update:sendInviteResponseDialog', { ...props.sendInviteResponseDialog, messageSlot: row });
sendInviteResponseConfirmDialog.value.visible = true;

View File

@@ -12,7 +12,7 @@
style="flex: none; width: 160px; height: 120px; border-radius: var(--radius-md)"
@click="showFullscreenImageDialog(currentInstanceWorld.ref.imageUrl)"
loading="lazy" />
<div style="margin-left: 10px; display: flex; flex-direction: column; min-width: 320px; width: 100%">
<div class="ml-2" style="display: flex; flex-direction: column; min-width: 320px; width: 100%">
<div class="flex items-center">
<span
class="cursor-pointer"
@@ -41,27 +41,24 @@
@click="showUserDialog(currentInstanceWorld.ref.authorId)"
v-text="currentInstanceWorld.ref.authorName"></span>
</div>
<div style="margin-top: 5px">
<Badge v-if="currentInstanceWorld.ref.$isLabs" variant="outline" style="margin-right: 5px">
<div class="mt-1.5">
<Badge class="mr-1.5" v-if="currentInstanceWorld.ref.$isLabs" variant="outline">
{{ t('dialog.world.tags.labs') }}
</Badge>
<Badge
class="mr-1.5"
v-else-if="currentInstanceWorld.ref.releaseStatus === 'public'"
variant="outline"
style="margin-right: 5px">
variant="outline">
{{ t('dialog.world.tags.public') }}
</Badge>
<Badge
class="mr-1.5"
v-else-if="currentInstanceWorld.ref.releaseStatus === 'private'"
variant="outline"
style="margin-right: 5px">
variant="outline">
{{ t('dialog.world.tags.private') }}
</Badge>
<TooltipWrapper v-if="currentInstanceWorld.isPC" side="top" content="PC">
<Badge
class="text-platform-pc border-platform-pc!"
variant="outline"
style="margin-right: 5px"
<Badge class="text-platform-pc border-platform-pc! mr-1.5" variant="outline"
><Monitor class="h-4 w-4" />
<span
v-if="currentInstanceWorld.fileAnalysis.standalonewindows?._fileSize"
@@ -71,10 +68,7 @@
</Badge>
</TooltipWrapper>
<TooltipWrapper v-if="currentInstanceWorld.isQuest" side="top" content="Android">
<Badge
class="text-platform-quest border-platform-quest!"
variant="outline"
style="margin-right: 5px"
<Badge class="text-platform-quest border-platform-quest! mr-1.5" variant="outline"
><Smartphone class="h-4 w-4" />
<span
v-if="currentInstanceWorld.fileAnalysis.android?._fileSize"
@@ -84,10 +78,7 @@
</Badge>
</TooltipWrapper>
<TooltipWrapper v-if="currentInstanceWorld.isIos" side="top" content="iOS">
<Badge
class="text-platform-ios border-platform-ios"
variant="outline"
style="margin-right: 5px"
<Badge class="text-platform-ios border-platform-ios mr-1.5" variant="outline"
><Apple class="h-4 w-4 text-platform-ios" />
<span
v-if="currentInstanceWorld.fileAnalysis.ios?._fileSize"
@@ -97,18 +88,18 @@
</Badge>
</TooltipWrapper>
<Badge
class="mr-1.5 mt-1.5"
v-if="currentInstanceWorld.avatarScalingDisabled"
variant="outline"
style="margin-right: 5px; margin-top: 5px">
variant="outline">
{{ t('dialog.world.tags.avatar_scaling_disabled') }}
</Badge>
<Badge v-if="currentInstanceWorld.inCache" variant="outline" style="margin-right: 5px">
<Badge class="mr-1.5" v-if="currentInstanceWorld.inCache" variant="outline">
<span>{{ currentInstanceWorld.cacheSize }} {{ t('dialog.world.tags.cache') }}</span>
</Badge>
</div>
<div style="margin-top: 5px">
<div class="mt-1.5">
<LocationWorld :locationobject="currentInstanceLocation" :currentuserid="currentUser.id" />
<span v-if="lastLocation.playerList.size > 0" style="margin-left: 5px">
<span class="ml-1.5" v-if="lastLocation.playerList.size > 0">
{{ lastLocation.playerList.size }}
<template v-if="lastLocation.friendList.size > 0"
>({{ lastLocation.friendList.size }})</template
@@ -116,14 +107,14 @@
&nbsp;&horbar; <Timer v-if="lastLocation.date" :epoch="lastLocation.date" />
</span>
</div>
<div style="margin-top: 5px">
<div class="mt-1.5">
<span
v-show="currentInstanceWorld.ref.name !== currentInstanceWorld.ref.description"
class="inline-block max-w-full align-middle text-xs break-words"
v-text="currentInstanceWorld.ref.description"></span>
</div>
</div>
<div style="display: flex; flex-direction: column; margin-left: 20px">
<div class="ml-5" style="display: flex; flex-direction: column">
<div class="box-border flex items-center p-1.5 text-[13px] cursor-default">
<div class="flex-1 overflow-hidden">
<span class="block truncate font-medium leading-[18px]">{{
@@ -162,7 +153,7 @@
</div>
</div>
<div v-if="photonLoggingEnabled" ref="playerListPhotonRef" style="margin-bottom: 10px">
<div class="mb-2" v-if="photonLoggingEnabled" ref="playerListPhotonRef">
<PhotonEventTable @show-chatbox-blacklist="showChatboxBlacklistDialog" />
</div>

View File

@@ -1,6 +1,6 @@
<template>
<div class="mt-5">
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap">
<div class="gap-2 mb-2" style="display: flex; align-items: center; flex-wrap: wrap">
<Select
:model-value="photonEventTableTypeFilter"
multiple
@@ -39,14 +39,14 @@
<TabsUnderline default-value="current" :items="photonTabs" :unmount-on-hide="false">
<template #current>
<DataTableLayout
class="min-w-0 w-full"
class="min-w-0 w-full mb-2"
:table="currentTable"
:loading="false"
:table-style="tableStyle"
:page-sizes="pageSizes"
:total-items="currentTotal"
:on-page-size-change="handleCurrentPageSizeChange"
style="margin-bottom: 10px" />
/>
</template>
<template #previous>
<DataTableLayout
@@ -57,7 +57,7 @@
:page-sizes="pageSizes"
:total-items="previousTotal"
:on-page-size-change="handlePreviousPageSizeChange"
style="margin-bottom: 10px" />
style="margin-bottom: 8px" />
</template>
</TabsUnderline>
</div>

View File

@@ -7,11 +7,11 @@
<div v-if="chatboxBlacklistDialog.visible">
<h2>{{ t('dialog.chatbox_blacklist.keyword_blacklist') }}</h2>
<InputGroupAction
class="mt-1.5"
v-for="(item, index) in chatboxBlacklist"
:key="index"
v-model="chatboxBlacklist[index]"
size="sm"
style="margin-top: 5px"
@change="saveChatboxBlacklist">
<template #actions>
<Button
@@ -23,7 +23,7 @@
</Button>
</template>
</InputGroupAction>
<Button size="sm" variant="outline" style="margin-top: 5px" @click="chatboxBlacklist.push('')">
<Button size="sm" variant="outline" style="margin-top: 6px" @click="chatboxBlacklist.push('')">
{{ t('dialog.chatbox_blacklist.add_item') }}
</Button>
<br />
@@ -32,12 +32,12 @@
v-for="user in chatboxUserBlacklist"
:key="user[0]"
variant="outline"
style="margin-right: 5px; margin-top: 5px">
style="margin-right: 6px; margin-top: 6px">
<span>{{ user[1] }}</span>
<button
type="button"
style="
margin-left: 6px;
margin-left: 8px;
border: none;
background: transparent;
padding: 0;
@@ -81,6 +81,10 @@
const emit = defineEmits(['deleteChatboxUserBlacklist']);
/**
*
* @param userId
*/
function deleteChatboxUserBlacklist(userId) {
emit('deleteChatboxUserBlacklist', userId);
}

View File

@@ -1,6 +1,6 @@
<template>
<div class="x-container">
<div style="margin: 0 0 10px; display: flex; align-items: center">
<div class="mt-0 mx-0 mb-2" style="display: flex; align-items: center">
<InputGroupField
:model-value="searchText"
:placeholder="t('view.search.search_placeholder')"
@@ -15,18 +15,18 @@
</TooltipWrapper>
</div>
<TabsUnderline
class="mt-4"
v-model="activeSearchTab"
:items="searchTabs"
aria-label="Search tabs"
:unmount-on-hide="false"
style="margin-top: 15px">
:unmount-on-hide="false">
<template #user>
<div style="min-height: 60px">
<label class="inline-flex items-center gap-2" style="margin-left: 10px">
<label class="inline-flex items-center gap-2 ml-2">
<Checkbox v-model="searchUserByBio" />
<span>{{ t('view.search.user.search_by_bio') }}</span>
</label>
<label class="inline-flex items-center gap-2" style="margin-left: 10px">
<label class="inline-flex items-center gap-2 ml-2">
<Checkbox v-model="searchUserSortByLastLoggedIn" />
<span>{{ t('view.search.user.sort_by_last_logged_in') }}</span>
</label>
@@ -59,7 +59,7 @@
</div>
</div>
</div>
<ButtonGroup v-if="searchUserResults.length" style="margin-top: 15px">
<ButtonGroup class="mt-4" v-if="searchUserResults.length">
<Button
variant="outline"
size="sm"
@@ -85,7 +85,7 @@
<Select
:model-value="searchWorldCategoryIndex"
@update:modelValue="handleSearchWorldCategorySelect"
style="margin-bottom: 15px">
style="margin-bottom: 16px">
<SelectTrigger size="sm">
<SelectValue :placeholder="t('view.search.world.category')" />
</SelectTrigger>
@@ -100,7 +100,7 @@
</SelectGroup>
</SelectContent>
</Select>
<label class="inline-flex items-center gap-2" style="margin-left: 10px">
<label class="inline-flex items-center gap-2" style="margin-left: 8px">
<Checkbox v-model="searchWorldLabs" />
<span>{{ t('view.search.world.community_lab') }}</span>
</label>
@@ -126,7 +126,7 @@
</div>
</div>
</div>
<ButtonGroup v-if="searchWorldResults.length" style="margin-top: 15px">
<ButtonGroup v-if="searchWorldResults.length" style="margin-top: 16px">
<Button
variant="outline"
size="sm"
@@ -154,7 +154,7 @@
v-if="avatarRemoteDatabaseProviderList.length > 1"
:model-value="avatarRemoteDatabaseProvider"
@update:modelValue="setAvatarProvider"
style="margin-right: 5px">
style="margin-right: 6px">
<SelectTrigger size="sm">
<SelectValue :placeholder="t('view.search.avatar.search_provider')" />
</SelectTrigger>
@@ -180,7 +180,7 @@
<RefreshCw v-else />
</Button>
</TooltipWrapper>
<span style="font-size: 14px; margin-left: 5px; margin-right: 5px">{{
<span style="font-size: 14px; margin-left: 6px; margin-right: 6px">{{
t('view.search.avatar.result_count', {
count: searchAvatarResults.length
})
@@ -190,7 +190,7 @@
<RadioGroup
:model-value="searchAvatarFilter"
class="flex items-center gap-4"
style="margin: 5px"
style="margin: 6px"
@update:modelValue="handleSearchAvatarFilterChange">
<div class="flex items-center space-x-2">
<RadioGroupItem id="searchAvatarFilter-all" value="all" />
@@ -211,7 +211,7 @@
<RadioGroup
:model-value="searchAvatarFilterRemote"
class="flex items-center gap-4"
style="margin: 5px"
style="margin: 6px"
@update:modelValue="handleSearchAvatarFilterRemoteChange">
<div class="flex items-center space-x-2">
<RadioGroupItem id="searchAvatarFilterRemote-all" value="all" />
@@ -239,7 +239,7 @@
<Select
:model-value="searchAvatarSort"
:disabled="searchAvatarFilterRemote !== 'local'"
style="margin: 5px"
style="margin: 6px"
@update:modelValue="handleSearchAvatarSortChange">
<SelectTrigger size="sm">
<SelectValue :placeholder="t('view.search.avatar.sort_name')" />
@@ -292,7 +292,7 @@
</div>
</div>
</div>
<ButtonGroup v-if="searchAvatarPage.length" style="margin-top: 15px">
<ButtonGroup v-if="searchAvatarPage.length" style="margin-top: 16px">
<Button
variant="outline"
size="sm"
@@ -332,10 +332,10 @@
<div class="flex-1 overflow-hidden">
<span class="block truncate font-medium leading-[18px]">
<span v-text="group.name"></span>
<span style="margin-left: 5px; font-weight: normal">({{ group.memberCount }})</span>
<span style="margin-left: 6px; font-weight: normal">({{ group.memberCount }})</span>
<span
style="
margin-left: 5px;
margin-left: 6px;
color: #909399;
font-weight: normal;
font-family: monospace;
@@ -348,7 +348,7 @@
</div>
</div>
</div>
<ButtonGroup v-if="searchGroupResults.length" style="margin-top: 15px">
<ButtonGroup v-if="searchGroupResults.length" style="margin-top: 16px">
<Button
variant="outline"
size="sm"

View File

@@ -1,6 +1,6 @@
<template>
<div class="x-container">
<div class="options-container" style="margin-top: 0; padding: 5px">
<div class="options-container mt-0 p-1.5">
<span class="header">{{ t('view.settings.header') }}</span>
</div>
<TabsUnderline

View File

@@ -25,6 +25,10 @@
const emit = defineEmits(['change']);
/**
*
* @param event
*/
function change(event) {
emit('change', event);
}
@@ -45,7 +49,7 @@
align-items: center;
}
.simple-switch > .switch {
margin-left: 10px;
margin-left: 8px;
}
.simple-switch .tooltip {
margin-left: 3px;

View File

@@ -76,7 +76,7 @@
</div>
<div class="options-container">
<span class="header">{{ t('view.profile.game_info.header') }}</span>
<div class="px-2.5 overflow-y-auto overflow-x-hidden" style="margin-top: 10px">
<div class="px-2.5 overflow-y-auto overflow-x-hidden mt-2">
<div class="box-border flex items-center p-1.5 text-[13px] cursor-pointer">
<div class="flex-1 overflow-hidden" @click="getVisits">
<span class="block truncate font-medium leading-[18px]">{{
@@ -107,7 +107,7 @@
<div class="options-container">
<span class="header">{{ t('view.settings.advanced.advanced.app_launcher.header') }}</span>
<br />
<Button size="sm" variant="outline" style="margin-top: 5px" @click="openShortcutFolder()">{{
<Button class="mt-1.5" size="sm" variant="outline" @click="openShortcutFolder()">{{
t('view.settings.advanced.advanced.app_launcher.folder')
}}</Button>
<simple-switch
@@ -152,7 +152,7 @@
@change="changeTranslationAPI('VRCX_translationAPI')" />
<div class="options-container-item">
<Button size="sm" variant="outline" @click="showTranslationApiDialog">
<Languages class="h-4 w-4" style="margin-right: 5px" />
<Languages class="h-4 w-4" style="margin-right: 6px" />
{{ t('view.settings.advanced.advanced.translation_api.translation_api_key') }}
</Button>
</div>
@@ -505,18 +505,30 @@
const isLinux = computed(() => LINUX);
/**
*
*/
function openShortcutFolder() {
AppApi.OpenShortcutFolder();
}
/**
*
*/
function showYouTubeApiDialog() {
isYouTubeApiDialogVisible.value = true;
}
/**
*
*/
function showTranslationApiDialog() {
isTranslationApiDialogVisible.value = true;
}
/**
*
*/
function refreshCacheSize() {
cacheSize.cachedUsers = cachedUsers.size;
cacheSize.cachedWorlds = cachedWorlds.size;
@@ -526,6 +538,10 @@
cacheSize.cachedInstances = cachedInstances.size;
}
/**
*
* @param configKey
*/
async function changeYouTubeApi(configKey = '') {
if (configKey === 'VRCX_youtubeAPI') {
advancedSettingsStore.setYouTubeApi();
@@ -538,17 +554,27 @@
updateOpenVR();
}
/**
*
* @param configKey
*/
async function changeTranslationAPI(configKey = '') {
if (configKey === 'VRCX_translationAPI') {
advancedSettingsStore.setTranslationApi();
}
}
/**
*
*/
async function refreshConfigTreeData() {
await authRequest.getConfig();
configTreeData.value = cachedConfig.value;
}
/**
*
*/
function getVisits() {
miscRequest.getVisits().then((args) => {
visits.value = args.json;

View File

@@ -1,6 +1,6 @@
<template>
<div>
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.settings.appearance.appearance.header') }}</span>
<div class="options-container-item">
<span class="name">{{ t('view.settings.appearance.appearance.language') }}</span>
@@ -23,8 +23,8 @@
{{ t('view.settings.appearance.appearance.font_family') }}
<TooltipWrapper
class="ml-1.5"
side="top"
style="margin-left: 5px"
:content="t('view.settings.appearance.appearance.font_family_tooltip')">
<Info />
</TooltipWrapper>
@@ -443,6 +443,10 @@
initGetZoomLevel();
/**
*
* @param value
*/
function handleSortFavoritesRadio(value) {
const nextValue = value === 'true';
if (nextValue !== sortFavorites.value) {
@@ -450,6 +454,10 @@
}
}
/**
*
* @param value
*/
function handleInstanceUsersSortAlphabeticalRadio(value) {
const nextValue = value === 'true';
if (nextValue !== instanceUsersSortAlphabetical.value) {
@@ -457,6 +465,10 @@
}
}
/**
*
* @param value
*/
function handleDtHour12Radio(value) {
const nextValue = value === 'true';
if (nextValue !== dtHour12.value) {
@@ -502,6 +514,9 @@
}
});
/**
*
*/
function addTablePageSizeFromInput() {
const raw = String(tablePageSizesSearchTerm.value ?? '').trim();
if (!raw) {
@@ -515,6 +530,9 @@
tablePageSizesSearchTerm.value = '';
}
/**
*
*/
async function initGetZoomLevel() {
const handleWheel = (event) => {
if (event.ctrlKey) {
@@ -528,10 +546,16 @@
getZoomLevel();
}
/**
*
*/
async function getZoomLevel() {
zoomLevel.value = ((await AppApi.GetZoom()) + 10) * 10;
}
/**
*
*/
function setZoomLevel() {
AppApi.SetZoom(zoomLevel.value / 10 - 10);
}

View File

@@ -1,5 +1,5 @@
<template>
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.settings.discord_presence.discord_presence.header') }}</span>
<div class="options-container-item">
<span>{{ t('view.settings.discord_presence.discord_presence.description') }}</span>

View File

@@ -1,8 +1,8 @@
<template>
<div>
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.settings.general.general.header') }}</span>
<div class="px-2.5 overflow-y-auto overflow-x-hidden" style="margin-top: 10px">
<div class="px-2.5 overflow-y-auto overflow-x-hidden mt-2">
<div class="box-border flex items-center p-1.5 text-[13px] cursor-default">
<div class="flex-1 overflow-hidden">
<span class="block truncate font-medium leading-[18px]">{{
@@ -57,12 +57,12 @@
<div v-if="!noUpdater" class="text-sm mt-2 flex flex-col align-baseline">
<span class="name">{{ t('view.settings.general.vrcx_updater.update_action') }}</span>
<ToggleGroup
class="mt-1.5"
type="single"
required
variant="outline"
size="sm"
:model-value="autoUpdateVRCX"
style="margin-top: 5px"
@update:model-value="setAutoUpdateVRCX">
<ToggleGroupItem value="Off">{{
t('view.settings.general.vrcx_updater.auto_update_off')
@@ -124,7 +124,7 @@
<span class="header inline-flex items-center"
>{{ t('view.settings.general.favorites.header') }}
<TooltipWrapper side="top" :content="t('view.settings.general.favorites.header_tooltip')">
<Info style="width: 12px; height: 12px; margin-left: 4px; vertical-align: middle; cursor: help" />
<Info class="ml-1" style="width: 12px; height: 12px; vertical-align: middle; cursor: help" />
</TooltipWrapper>
</span>
<br />
@@ -132,7 +132,7 @@
:model-value="localFavoriteFriendsGroups"
multiple
@update:modelValue="setLocalFavoriteFriendsGroups">
<SelectTrigger style="margin-top: 8px">
<SelectTrigger class="mt-2">
<SelectValue :placeholder="t('view.settings.general.favorites.group_placeholder')" />
</SelectTrigger>
<SelectContent>
@@ -253,6 +253,9 @@
() => import('../../dialogs/OpenSourceSoftwareNoticeDialog.vue')
);
/**
*
*/
function openOSSDialog() {
ossDialog.value = true;
}

View File

@@ -1,6 +1,6 @@
<template>
<div>
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.settings.notifications.notifications.header') }}</span>
<div class="options-container-item">
<Button size="sm" variant="outline" @click="showNotyFeedFiltersDialog">{{
@@ -23,6 +23,7 @@
}}</span>
<br />
<ToggleGroup
class="mt-1.5"
type="single"
required
variant="outline"
@@ -34,7 +35,6 @@
!ovrtHudNotifications &&
!ovrtWristNotifications
"
style="margin-top: 5px"
@update:model-value="
setOverlayToast($event);
saveOpenVROption();
@@ -82,7 +82,7 @@
</div>
</template>
<div class="options-container-item">
<span class="name" style="vertical-align: top; padding-top: 10px">{{
<span class="name" style="vertical-align: top; padding-top: 8px">{{
t('view.settings.notifications.notifications.steamvr_notifications.notification_opacity')
}}</span>
<div style="flex: 0 0 300px; width: 300px; max-width: 100%; padding-top: 16px">
@@ -120,9 +120,7 @@
</template>
<template v-else>
<simple-switch
:label="
t('view.settings.notifications.notifications.steamvr_notifications.wayvr_notifications')
"
:label="t('view.settings.notifications.notifications.steamvr_notifications.wayvr_notifications')"
:value="xsNotifications"
@change="
setXsNotifications();
@@ -169,7 +167,7 @@
variant="outline"
size="sm"
:model-value="desktopToast"
style="margin-top: 5px"
style="margin-top: 6px"
@update:model-value="setDesktopToast(String($event))">
<ToggleGroupItem value="Never">{{
t('view.settings.notifications.notifications.conditions.never')
@@ -214,7 +212,7 @@
variant="outline"
size="sm"
:model-value="notificationTTS"
style="margin-top: 5px"
style="margin-top: 6px"
@update:model-value="saveNotificationTTS">
<ToggleGroupItem value="Never">{{
t('view.settings.notifications.notifications.conditions.never')
@@ -260,7 +258,7 @@
:label="t('view.settings.notifications.notifications.text_to_speech.tts_test_placeholder')"
:value="isTestTTSVisible"
@change="isTestTTSVisible = !isTestTTSVisible" />
<div v-if="isTestTTSVisible" style="margin-top: 5px">
<div v-if="isTestTTSVisible" style="margin-top: 6px">
<InputGroupTextareaField
v-model="notificationTTSTest"
:placeholder="t('view.settings.notifications.notifications.text_to_speech.tts_test_placeholder')"
@@ -372,10 +370,16 @@
}
});
/**
*
*/
function showNotyFeedFiltersDialog() {
feedFiltersDialogMode.value = 'noty';
}
/**
*
*/
function showNotificationPositionDialog() {
isNotificationPositionDialogVisible.value = true;
}

View File

@@ -1,6 +1,6 @@
<template>
<!--//- Pictures | Screenshot Helper-->
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.settings.advanced.advanced.screenshot_helper.header') }}</span>
<div class="options-container-item">
<span class="name">{{ t('view.settings.advanced.advanced.screenshot_helper.description') }}</span>
@@ -41,7 +41,7 @@
<div class="options-container">
<span class="header">{{ t('view.settings.advanced.advanced.user_generated_content.header') }}</span>
<br />
<div class="options-container-item" style="margin-bottom: 5px">
<div class="options-container-item mb-1.5">
<span class="name" style="min-width: 300px">{{
t('view.settings.advanced.advanced.user_generated_content.description')
}}</span>
@@ -61,7 +61,7 @@
<br />
<br />
<br />
<span class="sub-header" style="margin-right: 5px">{{
<span class="sub-header mr-1.5">{{
t('view.settings.advanced.advanced.save_instance_prints_to_file.header')
}}</span>
<TooltipWrapper
@@ -87,7 +87,7 @@
@change="setSaveInstanceStickers()"
:long-label="true" />
<br />
<span class="sub-header" style="margin-right: 5px"
<span class="sub-header mr-1.5"
>{{ t('view.settings.advanced.advanced.save_instance_emoji_to_file.header') }}
</span>
<TooltipWrapper

View File

@@ -1,5 +1,5 @@
<template>
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.settings.wrist_overlay.steamvr_wrist_overlay.header') }}</span>
<div class="options-container-item">
<Button
@@ -46,8 +46,7 @@
<RadioGroup
:model-value="openVRAlways ? 'true' : 'false'"
:disabled="!openVR"
class="gap-2 flex"
style="margin-top: 8px"
class="gap-2 flex mt-2"
@update:modelValue="handleOpenVRAlwaysRadio">
<div class="flex items-center space-x-2">
<RadioGroupItem id="openVRAlways-false" value="false" />
@@ -64,8 +63,7 @@
<RadioGroup
:model-value="overlaybutton ? 'true' : 'false'"
:disabled="!openVR || !overlayWrist"
class="gap-2 flex"
style="margin-top: 8px"
class="gap-2 flex mt-2"
@update:modelValue="handleOverlayButtonRadio">
<div class="flex items-center space-x-2">
<RadioGroupItem id="overlaybutton-false" value="false" />
@@ -206,6 +204,10 @@
const { saveOpenVROption } = useVrStore();
/**
*
* @param value
*/
function handleOpenVRAlwaysRadio(value) {
const nextValue = value === 'true';
if (nextValue !== openVRAlways.value) {
@@ -214,6 +216,10 @@
}
}
/**
*
* @param value
*/
function handleOverlayButtonRadio(value) {
const nextValue = value === 'true';
if (nextValue !== overlaybutton.value) {

View File

@@ -6,18 +6,20 @@
</DialogHeader>
<div>
<InputGroupAction
class="mt-1.5"
v-for="(provider, index) in avatarRemoteDatabaseProviderList"
:key="index"
v-model="avatarRemoteDatabaseProviderList[index]"
size="sm"
style="margin-top: 5px"
@change="saveAvatarProviderList">
<template #actions>
<Trash2 class="cursor-pointer opacity-80 hover:opacity-100" @click="removeAvatarProvider(provider)" />
<Trash2
class="cursor-pointer opacity-80 hover:opacity-100"
@click="removeAvatarProvider(provider)" />
</template>
</InputGroupAction>
<Button size="sm" style="margin-top: 5px" @click="avatarRemoteDatabaseProviderList.push('')">
<Button size="sm" style="margin-top: 6px" @click="avatarRemoteDatabaseProviderList.push('')">
{{ t('dialog.avatar_database_provider.add_provider') }}
</Button>
</div>
@@ -51,6 +53,9 @@
const emit = defineEmits(['update:isAvatarProviderDialogVisible']);
/**
*
*/
function closeDialog() {
emit('update:isAvatarProviderDialogVisible', false);
}

View File

@@ -20,12 +20,12 @@
>.
</span>
<VueShowdown
class="changelog-markdown"
class="changelog-markdown mt-2"
:markdown="changeLogDialog.changeLog"
flavor="github"
:options="showdownOptions"
@click="handleLinkClick"
style="height: 62vh; overflow-y: auto; margin-top: 10px" />
style="height: 62vh; overflow-y: auto" />
</div>
<DialogFooter>
<Button

View File

@@ -8,11 +8,7 @@
<div v-for="setting in currentOptions" :key="setting.key" class="mb-[5px] flex items-center">
<span class="inline-block min-w-[190px] pr-2.5 text-right"
>{{ setting.name
}}<TooltipWrapper
v-if="setting.tooltip"
side="top"
style="margin-left: 5px"
:content="setting.tooltip">
}}<TooltipWrapper class="ml-1.5" v-if="setting.tooltip" side="top" :content="setting.tooltip">
<AlertTriangle class="inline-block" v-if="setting.tooltipWarning" />
<Info class="inline-block" v-else />
</TooltipWrapper>

View File

@@ -15,9 +15,8 @@
x="0px"
y="0px"
viewBox="80 80 80 100"
style="margin-top: 24px"
xml:space="preserve"
class="absolute inset-0 size-full">
class="absolute inset-0 size-full mt-6">
<path
style="fill: black"
d="M291.89,5A3.11,3.11,0,0,1,295,8.11V160.64a3.11,3.11,0,0,1-3.11,3.11H8.11A3.11,3.11,0,0,1,5,160.64V8.11A3.11,3.11,0,0,1,8.11,5H291.89m0-5H8.11A8.11,8.11,0,0,0,0,8.11V160.64a8.11,8.11,0,0,0,8.11,8.11H291.89a8.11,8.11,0,0,0,8.11-8.11V8.11A8.11,8.11,0,0,0,291.89,0Z" />
@@ -109,6 +108,9 @@
const emit = defineEmits(['update:isNotificationPositionDialogVisible']);
/**
*
*/
function closeDialog() {
emit('update:isNotificationPositionDialogVisible', false);
}

View File

@@ -9,7 +9,7 @@
<span>{{ t('dialog.open_source.description') }}</span>
</div>
<div v-for="lib in openSourceSoftwareLicenses" :key="lib.name" style="margin-top: 15px">
<div class="mt-4" v-for="lib in openSourceSoftwareLicenses" :key="lib.name">
<p style="font-weight: bold">{{ lib.name }}</p>
<pre style="font-size: 12px; white-space: pre-line">{{ lib.licenseText }}</pre>
</div>
@@ -35,6 +35,9 @@
const emit = defineEmits(['update:ossDialog']);
/**
*
*/
function closeDialog() {
emit('update:ossDialog', false);
}

View File

@@ -12,10 +12,10 @@
:maxlength="32"
autofocus />
<InputGroupField
class="mt-1.5"
v-model="enablePrimaryPasswordDialog.rePassword"
:placeholder="t('dialog.primary_password.re_input_placeholder')"
type="password"
style="margin-top: 5px"
size="sm"
:maxlength="32" />
<DialogFooter>
@@ -47,6 +47,9 @@
const { enablePrimaryPasswordDialog } = storeToRefs(authStore);
const { setPrimaryPassword } = authStore;
/**
*
*/
function handleSetPrimaryPassword() {
setPrimaryPassword(enablePrimaryPasswordDialog.value.password);
enablePrimaryPasswordDialog.value.visible = false;

View File

@@ -10,46 +10,42 @@
{{ t('dialog.config_json.description2') }}
</div>
<br />
<span style="margin-right: 5px">{{ t('dialog.config_json.cache_size') }}</span>
<span class="mr-1.5">{{ t('dialog.config_json.cache_size') }}</span>
<span v-text="VRChatUsedCacheSize"></span>
<span>/</span>
<span v-text="totalCacheSize"></span>
<span>GB</span>
<TooltipWrapper side="top" :content="t('dialog.config_json.refresh')">
<Button
class="rounded-full"
class="rounded-full ml-1.5"
variant="outline"
size="icon-sm"
:disabled="VRChatCacheSizeLoading"
style="margin-left: 5px"
@click="getVRChatCacheSize">
<Spinner v-if="VRChatCacheSizeLoading" />
<RefreshCw v-else />
</Button>
</TooltipWrapper>
<div style="margin-top: 10px">
<span style="margin-right: 5px">{{ t('dialog.config_json.delete_all_cache') }}</span>
<Button
size="sm"
variant="outline"
style="margin-left: 5px"
@click="showDeleteAllVRChatCacheConfirm"
>{{ t('dialog.config_json.delete_cache') }}</Button
>
<div class="mt-2">
<span class="mr-1.5">{{ t('dialog.config_json.delete_all_cache') }}</span>
<Button class="ml-1.5" size="sm" variant="outline" @click="showDeleteAllVRChatCacheConfirm">{{
t('dialog.config_json.delete_cache')
}}</Button>
</div>
<div style="margin-top: 10px">
<span style="margin-right: 5px">{{ t('dialog.config_json.delete_old_cache') }}</span>
<Button size="sm" variant="outline" style="margin-left: 5px" @click="sweepVRChatCache">{{
<div class="mt-2">
<span class="mr-1.5">{{ t('dialog.config_json.delete_old_cache') }}</span>
<Button class="ml-1.5" size="sm" variant="outline" @click="sweepVRChatCache">{{
t('dialog.config_json.sweep_cache')
}}</Button>
</div>
<div v-for="(item, value) in VRChatConfigList" :key="value" style="display: block; margin-top: 10px">
<div class="mt-2" v-for="(item, value) in VRChatConfigList" :key="value" style="display: block">
<span style="word-break: keep-all">{{ item.name }}:</span>
<div style="display: flex">
<InputGroupAction
class="mt-1.5"
v-model="VRChatConfigFile[value]"
:placeholder="item.default"
size="sm"
@@ -57,7 +53,7 @@
:min="item.min"
:max="item.max"
@input="refreshDialogValues"
style="flex: 1; margin-top: 5px">
style="flex: 1">
<template #actions>
<Button
size="icon-sm"
@@ -71,13 +67,13 @@
</div>
</div>
<div style="display: inline-block; margin-top: 10px">
<div style="display: inline-block; margin-top: 8px">
<span>{{ t('dialog.config_json.camera_resolution') }}</span>
<br />
<Select
:model-value="vrchatCameraResolutionKey"
@update:modelValue="(v) => (vrchatCameraResolutionKey = v)">
<SelectTrigger size="sm" style="margin-top: 5px">
<SelectTrigger size="sm" style="margin-top: 6px">
<SelectValue :placeholder="getVRChatCameraResolution()" />
</SelectTrigger>
<SelectContent>
@@ -94,13 +90,13 @@
</div>
<br />
<div style="display: inline-block; margin-top: 10px">
<div style="display: inline-block; margin-top: 8px">
<span>{{ t('dialog.config_json.spout_resolution') }}</span>
<br />
<Select
:model-value="vrchatSpoutResolutionKey"
@update:modelValue="(v) => (vrchatSpoutResolutionKey = v)">
<SelectTrigger size="sm" style="margin-top: 5px">
<SelectTrigger size="sm" style="margin-top: 6px">
<SelectValue :placeholder="getVRChatSpoutResolution()" />
</SelectTrigger>
<SelectContent>
@@ -117,13 +113,13 @@
</div>
<br />
<div style="display: inline-block; margin-top: 10px">
<div style="display: inline-block; margin-top: 8px">
<span>{{ t('dialog.config_json.screenshot_resolution') }}</span>
<br />
<Select
:model-value="vrchatScreenshotResolutionKey"
@update:modelValue="(v) => (vrchatScreenshotResolutionKey = v)">
<SelectTrigger size="sm" style="margin-top: 5px">
<SelectTrigger size="sm" style="margin-top: 6px">
<SelectValue :placeholder="getVRChatScreenshotResolution()" />
</SelectTrigger>
<SelectContent>
@@ -140,13 +136,13 @@
</div>
<br />
<label class="inline-flex items-center gap-2" style="margin-top: 5px; display: block">
<label class="inline-flex items-center gap-2" style="margin-top: 6px; display: block">
<Checkbox
v-model="VRChatConfigFile.picture_output_split_by_date"
@update:modelValue="refreshDialogValues" />
<span>{{ t('dialog.config_json.picture_sort_by_date') }}</span>
</label>
<label class="inline-flex items-center gap-2" style="margin-top: 5px; display: block">
<label class="inline-flex items-center gap-2" style="margin-top: 6px; display: block">
<Checkbox v-model="VRChatConfigFile.disableRichPresence" @update:modelValue="refreshDialogValues" />
<span>{{ t('dialog.config_json.disable_discord_presence') }}</span>
</label>
@@ -267,6 +263,10 @@
const VRCHAT_RESOLUTION_DEFAULT_KEY = '__default__';
/**
*
* @param row
*/
function getVRChatResolutionKey(row) {
const width = Number(row?.width);
const height = Number(row?.height);
@@ -327,6 +327,9 @@
}
});
/**
*
*/
function showDeleteAllVRChatCacheConfirm() {
modalStore
.confirm({
@@ -341,6 +344,9 @@
.catch(() => {});
}
/**
*
*/
async function deleteAllVRChatCache() {
try {
await AssetBundleManager.DeleteAllCache();
@@ -351,6 +357,10 @@
getVRChatCacheSize();
}
/**
*
* @param value
*/
async function openConfigFolderBrowser(value) {
const oldPath = VRChatConfigFile.value[value];
const newPath = await folderSelectorDialog(oldPath);
@@ -360,29 +370,47 @@
}
}
/**
*
*/
function refreshDialogValues() {
loading.value = true;
loading.value = false;
}
/**
*
* @param res
*/
function setVRChatSpoutResolution(res) {
VRChatConfigFile.value.camera_spout_res_height = res.height;
VRChatConfigFile.value.camera_spout_res_width = res.width;
refreshDialogValues();
}
/**
*
* @param res
*/
function setVRChatCameraResolution(res) {
VRChatConfigFile.value.camera_res_height = res.height;
VRChatConfigFile.value.camera_res_width = res.width;
refreshDialogValues();
}
/**
*
* @param res
*/
function setVRChatScreenshotResolution(res) {
VRChatConfigFile.value.screenshot_res_height = res.height;
VRChatConfigFile.value.screenshot_res_width = res.width;
refreshDialogValues();
}
/**
*
*/
function getVRChatCameraResolution() {
if (VRChatConfigFile.value.camera_res_height && VRChatConfigFile.value.camera_res_width) {
const res = `${VRChatConfigFile.value.camera_res_width}x${VRChatConfigFile.value.camera_res_height}`;
@@ -391,6 +419,9 @@
return '1920x1080 (1080p)';
}
/**
*
*/
function getVRChatSpoutResolution() {
if (VRChatConfigFile.value.camera_spout_res_height && VRChatConfigFile.value.camera_spout_res_width) {
const res = `${VRChatConfigFile.value.camera_spout_res_width}x${VRChatConfigFile.value.camera_spout_res_height}`;
@@ -399,6 +430,9 @@
return '1920x1080 (1080p)';
}
/**
*
*/
function getVRChatScreenshotResolution() {
if (VRChatConfigFile.value.screenshot_res_height && VRChatConfigFile.value.screenshot_res_width) {
const res = `${VRChatConfigFile.value.screenshot_res_width}x${VRChatConfigFile.value.screenshot_res_height}`;
@@ -407,6 +441,9 @@
return '1920x1080 (1080p)';
}
/**
*
*/
function saveVRChatConfigFile() {
for (const item in VRChatConfigFile.value) {
if (item === 'picture_output_split_by_date') {
@@ -429,11 +466,17 @@
closeDialog();
}
/**
*
*/
function WriteVRChatConfigFile() {
const json = JSON.stringify(VRChatConfigFile.value, null, '\t');
AppApi.WriteConfigFile(json);
}
/**
*
*/
async function readVRChatConfigFile() {
const config = await AppApi.ReadConfigFileSafe();
if (config) {
@@ -450,6 +493,9 @@
}
}
/**
*
*/
function closeDialog() {
isVRChatConfigDialogVisible.value = false;
}

View File

@@ -1,7 +1,7 @@
<template>
<div class="x-aside-container">
<div style="display: flex; align-items: baseline">
<div class="search-container" style="flex: 1; padding: 10px; padding-left: 0">
<div class="search-container p-2 pl-0" style="flex: 1">
<button
type="button"
class="border-input dark:bg-input/30 flex h-9 w-full items-center gap-2 rounded-md border bg-transparent px-3 shadow-xs transition-[color,box-shadow] hover:border-ring cursor-pointer overflow-hidden"
@@ -209,7 +209,7 @@
variant="equal"
fill
class="zero-margin-tabs"
style="height: calc(100% - 70px); margin-top: 5px">
style="height: calc(100% - 70px); margin-top: 6px">
<template #label-friends>
<span>{{ t('side_panel.friends') }}</span>
<span class="sidebar-tab-count"> ({{ onlineFriendCount }}/{{ friends.size }}) </span>
@@ -380,16 +380,16 @@
display: flex;
flex: none;
flex-direction: column;
padding: 10px 5px 5px 5px;
padding: 8px 6px 6px 6px;
order: 99;
height: 100%;
box-sizing: border-box;
padding-left: 10px;
padding-left: 8px;
}
.sidebar-tab-count {
font-size: 12px;
margin-left: 10px;
margin-left: 8px;
}
.search-container {

View File

@@ -482,7 +482,7 @@
buildFriendRow(friend, `instance:${groupKey}:${friend?.id ?? idx}`, {
isGroupByInstance: true,
paddingBottom: idx === friendArr.length - 1 ? 5 : undefined,
itemStyle: idx === friendArr.length - 1 ? { marginBottom: '5px' } : undefined
itemStyle: idx === friendArr.length - 1 ? { marginBottom: '6px' } : undefined
})
);
});

View File

@@ -97,7 +97,7 @@
:src="image.versions[image.versions.length - 1].file.url"
loading="lazy" />
</div>
<div class="float-right" style="margin-top: 5px">
<div class="float-right" style="margin-top: 6px">
<Button
class="rounded-full mr-2"
size="icon-sm"
@@ -169,7 +169,7 @@
:src="image.versions[image.versions.length - 1].file.url"
loading="lazy" />
</div>
<div class="float-right" style="margin-top: 5px">
<div class="float-right" style="margin-top: 6px">
<Button
class="rounded-full mr-2"
size="icon-sm"
@@ -203,7 +203,7 @@
<br />
<br />
<div>
<ButtonGroup style="margin-right: 10px">
<ButtonGroup style="margin-right: 8px">
<Button variant="outline" size="sm" @click="refreshEmojiTable">
<RefreshCw />
{{ t('dialog.gallery_icons.refresh') }}
@@ -251,7 +251,7 @@
@click="openExternalLink('https://vrcemoji.com')">
{{ t('dialog.gallery_icons.create_animated_emoji') }}
</Button>
<span style="margin-right: 10px">{{ t('dialog.gallery_icons.emoji_animation_fps') }}</span>
<span style="margin-right: 8px">{{ t('dialog.gallery_icons.emoji_animation_fps') }}</span>
<NumberField
v-model="emojiAnimFps"
:min="1"
@@ -265,7 +265,7 @@
<NumberFieldIncrement />
</NumberFieldContent>
</NumberField>
<span style="margin-right: 10px">{{
<span style="margin-right: 8px">{{
t('dialog.gallery_icons.emoji_animation_frame_count')
}}</span>
<NumberField
@@ -281,7 +281,7 @@
<NumberFieldIncrement />
</NumberFieldContent>
</NumberField>
<label class="inline-flex items-center gap-2" style="margin-left: 10px; margin-right: 10px">
<label class="inline-flex items-center gap-2" style="margin-left: 8px; margin-right: 8px">
<Checkbox v-model="emojiAnimLoopPingPong" />
<span>{{ t('dialog.gallery_icons.emoji_loop_pingpong') }}</span>
</label>
@@ -306,18 +306,18 @@
:imageUrl="image.versions[image.versions.length - 1].file.url"
:size="200"></Emoji>
</div>
<div style="display: inline-block; margin: 5px">
<div style="display: inline-block; margin: 6px">
<span v-if="image.loopStyle === 'pingpong'">
<RefreshCw style="margin-right: 5px" />
<RefreshCw style="margin-right: 6px" />
</span>
<span style="margin-right: 5px">{{ image.animationStyle }}</span>
<span v-if="image.framesOverTime" style="margin-right: 5px"
<span style="margin-right: 6px">{{ image.animationStyle }}</span>
<span v-if="image.framesOverTime" style="margin-right: 6px"
>{{ image.framesOverTime }}fps</span
>
<span v-if="image.frames" style="margin-right: 5px">{{ image.frames }}frames</span>
<span v-if="image.frames" style="margin-right: 6px">{{ image.frames }}frames</span>
<br />
</div>
<div class="float-right" style="margin-top: 5px">
<div class="float-right" style="margin-top: 6px">
<Button
class="rounded-full mr-2"
size="icon-sm"
@@ -382,7 +382,7 @@
:src="image.versions[image.versions.length - 1].file.url"
loading="lazy" />
</div>
<div class="float-right" style="margin-top: 5px">
<div class="float-right" style="margin-top: 6px">
<Button
class="rounded-full mr-2"
size="icon-sm"
@@ -434,10 +434,10 @@
v-model="printUploadNote"
:rows="1"
:maxlength="32"
style="margin-left: 10px; width: 300px"
style="margin-left: 8px; width: 300px"
:placeholder="t('dialog.gallery_icons.note')"
input-class="resize-none min-h-0" />
<label class="inline-flex items-center gap-2" style="margin-left: 10px; margin-right: 10px">
<label class="inline-flex items-center gap-2" style="margin-left: 8px; margin-right: 8px">
<Checkbox v-model="printCropBorder" />
<span>{{ t('dialog.gallery_icons.crop_print_border') }}</span>
</label>
@@ -452,7 +452,7 @@
:src="image.files.image"
loading="lazy" />
</div>
<div style="margin-top: 5px; width: 208px">
<div style="margin-top: 6px; width: 208px">
<span class="block truncate" v-if="image.note" v-text="image.note"></span>
<span v-else class="block">&nbsp;</span>
<Location
@@ -519,7 +519,7 @@
:src="item.imageUrl"
loading="lazy" />
</div>
<div style="margin-top: 5px; width: 208px">
<div style="margin-top: 6px; width: 208px">
<span class="block truncate" v-text="item.name"></span>
<span v-if="item.description" class="block truncate" v-text="item.description"></span>
<span v-else class="block">&nbsp;</span>

View File

@@ -56,7 +56,7 @@
style="width: 200px"
@input="screenshotMetadataSearch" />
<Select :model-value="screenshotMetadataDialog.searchType" @update:modelValue="handleSearchTypeChange">
<SelectTrigger size="sm" style="width: 150px; margin-left: 10px">
<SelectTrigger class="ml-2" size="sm" style="width: 150px">
<SelectValue :placeholder="t('dialog.screenshot_metadata.search_type_placeholder')" />
</SelectTrigger>
<SelectContent>
@@ -69,7 +69,7 @@
</Select>
</div>
<template v-if="screenshotMetadataDialog.searchIndex !== null">
<span style="white-space: pre-wrap; font-size: 12px; margin-left: 10px">{{
<span class="ml-2" style="white-space: pre-wrap; font-size: 12px">{{
screenshotMetadataDialog.searchIndex + 1 + '/' + screenshotMetadataDialog.searchResults.length
}}</span>
</template>
@@ -81,12 +81,12 @@
<span v-text="screenshotMetadataDialog.metadata.note"></span>
<br />
</template>
<span v-if="screenshotMetadataDialog.metadata.dateTime" style="margin-right: 5px">{{
<span v-if="screenshotMetadataDialog.metadata.dateTime" style="margin-right: 6px">{{
formatDateFilter(screenshotMetadataDialog.metadata.dateTime, 'long')
}}</span>
<span
v-if="screenshotMetadataDialog.metadata.fileResolution"
style="margin-right: 5px"
style="margin-right: 6px"
v-text="screenshotMetadataDialog.metadata.fileResolution"></span>
<Badge v-if="screenshotMetadataDialog.metadata.fileSize" variant="outline">{{
screenshotMetadataDialog.metadata.fileSize
@@ -138,7 +138,7 @@
v-text="screenshotMetadataDialog.metadata.error"></pre>
<br />
</template>
<span v-for="user in screenshotMetadataDialog.metadata.players" :key="user.id" style="margin-top: 5px">
<span v-for="user in screenshotMetadataDialog.metadata.players" :key="user.id" style="margin-top: 6px">
<span class="cursor-pointer" @click="lookupUser(user)" v-text="user.displayName"></span>
<span v-if="user.pos" v-text="'(' + user.pos.x + ', ' + user.pos.y + ', ' + user.pos.z + ')'"></span>
<br />
@@ -222,10 +222,17 @@
}
};
/**
*
*/
function goBack() {
router.push({ name: 'tools' });
}
/**
*
* @param event
*/
function handleDrop(event) {
if (currentlyDroppingFile.value === null) {
return;
@@ -238,6 +245,9 @@
event.preventDefault();
}
/**
*
*/
async function getAndDisplayScreenshotFromFile() {
let filePath = '';
@@ -259,6 +269,9 @@
getAndDisplayScreenshot(filePath);
}
/**
*
*/
function getAndDisplayLastScreenshot() {
screenshotMetadataResetSearch();
AppApi.GetLastScreenshot().then((path) => {
@@ -269,6 +282,10 @@
});
}
/**
*
* @param path
*/
function copyImageToClipboard(path) {
if (!path) {
return;
@@ -277,6 +294,10 @@
toast.success('Image copied to clipboard');
});
}
/**
*
* @param path
*/
function openImageFolder(path) {
if (!path) {
return;
@@ -285,6 +306,10 @@
toast.success('Opened image folder');
});
}
/**
*
* @param path
*/
function deleteMetadata(path) {
if (!path) {
return;
@@ -299,6 +324,9 @@
getAndDisplayScreenshot(D.metadata.filePath, true);
});
}
/**
*
*/
function uploadScreenshotToGallery() {
const D = screenshotMetadataDialog;
if (D.metadata.fileSizeBytes > 10000000) {
@@ -325,6 +353,9 @@
D.isUploading = false;
});
}
/**
*
*/
function screenshotMetadataSearch() {
const D = screenshotMetadataDialog;
@@ -370,11 +401,19 @@
}, 500);
}
/**
*
* @param value
*/
function handleSearchTypeChange(value) {
screenshotMetadataDialog.searchType = value;
screenshotMetadataSearch();
}
/**
*
* @param index
*/
function screenshotMetadataCarouselChange(index) {
const D = screenshotMetadataDialog;
const searchIndex = D.searchIndex;
@@ -405,6 +444,9 @@
}
}
/**
*
*/
function screenshotMetadataResetSearch() {
const D = screenshotMetadataDialog;
@@ -413,6 +455,10 @@
D.searchResults = null;
}
/**
*
* @param index
*/
function screenshotMetadataCarouselChangeSearch(index) {
const D = screenshotMetadataDialog;
let searchIndex = D.searchIndex;
@@ -445,6 +491,10 @@
D.searchIndex = searchIndex;
}
/**
*
* @param api
*/
function handleScreenshotMetadataCarouselInit(api) {
screenshotMetadataCarouselApi.value = api;
api.on('select', handleCarouselSelect);
@@ -452,6 +502,9 @@
resetCarouselIndex();
}
/**
*
*/
function handleCarouselSelect() {
if (ignoreCarouselSelect.value || !screenshotMetadataCarouselApi.value) {
return;
@@ -460,6 +513,9 @@
screenshotMetadataCarouselChange(index);
}
/**
*
*/
function resetCarouselIndex() {
const api = screenshotMetadataCarouselApi.value;
if (!api) {
@@ -472,6 +528,11 @@
}, 0);
}
/**
*
* @param path
* @param needsCarouselFiles
*/
async function getAndDisplayScreenshot(path, needsCarouselFiles = true) {
const metadata = await AppApi.GetScreenshotMetadata(path);
displayScreenshotMetadata(metadata, needsCarouselFiles);

View File

@@ -1,6 +1,6 @@
<template>
<div id="chart" class="x-container">
<div class="options-container" style="margin-top: 0">
<div class="options-container mt-0">
<span class="header">{{ t('view.tools.header') }}</span>
<div class="tool-categories">
@@ -539,7 +539,7 @@
}
.category-title {
margin-left: 5px;
margin-left: 6px;
font-size: 16px;
font-weight: 600;
}

View File

@@ -333,7 +333,7 @@
height: 24px;
gap: 4px;
cursor: pointer;
margin-left: 5px;
margin-left: 6px;
}
.event-card .event-content {

View File

@@ -56,20 +56,36 @@
const selectedDayKey = computed(() => dayjs(props.modelValue).format('YYYY-MM-DD'));
/**
*
* @param dateValue
*/
function toKey(dateValue) {
return dayjs(toDate(dateValue, timeZone)).format('YYYY-MM-DD');
}
/**
*
* @param dateValue
*/
function eventCountFor(dateValue) {
const key = toKey(dateValue);
return props.eventsByDate?.[key]?.length ?? 0;
}
/**
*
* @param dateValue
*/
function hasFollowingFor(dateValue) {
const key = toKey(dateValue);
return Boolean(props.followingByDate?.[key]);
}
/**
*
* @param next
*/
function onUpdateModelValue(next) {
if (!next) return;
internalValue.value = next;
@@ -78,6 +94,10 @@
emit('update:modelValue', asDate);
}
/**
*
* @param next
*/
function onUpdatePlaceholder(next) {
if (!next) return;
placeholder.value = next;
@@ -85,6 +105,10 @@
emit('update:modelValue', toDate(next, timeZone));
}
/**
*
* @param dateValue
*/
function dayLabel(dateValue) {
return dayjs(toDate(dateValue, timeZone)).format('D');
}
@@ -195,7 +219,7 @@
justify-content: center;
font-size: 12px;
z-index: 10;
padding: 0 5px;
padding: 0 6px;
line-height: 14px;
}

View File

@@ -6,8 +6,8 @@
</DialogHeader>
<TabsUnderline v-model="activeTab" :items="editInviteTabs" :unmount-on-hide="false" class="mt-2.5">
<template #message>
<DataTableLayout
style="margin-top: 10px; cursor: pointer"
<DataTableLayout class="mt-2"
style="cursor: pointer"
:table="inviteMessageTanstackTable"
:loading="false"
:show-pagination="false"
@@ -15,7 +15,7 @@
</template>
<template #request>
<DataTableLayout
style="margin-top: 10px; cursor: pointer"
style="margin-top: 8px; cursor: pointer"
:table="inviteRequestTanstackTable"
:loading="false"
:show-pagination="false"
@@ -23,7 +23,7 @@
</template>
<template #requestResponse>
<DataTableLayout
style="margin-top: 10px; cursor: pointer"
style="margin-top: 8px; cursor: pointer"
:table="inviteRequestResponseTanstackTable"
:loading="false"
:show-pagination="false"
@@ -31,7 +31,7 @@
</template>
<template #response>
<DataTableLayout
style="margin-top: 10px; cursor: pointer"
style="margin-top: 8px; cursor: pointer"
:table="inviteResponseTanstackTable"
:loading="false"
:show-pagination="false"

View File

@@ -6,11 +6,9 @@
</DialogHeader>
<InputGroupTextareaField
v-model="exportAvatarsListCsv"
:rows="15"
readonly
style="margin-top: 15px"
input-class="resize-none"
input-class="resize-none mt-4"
@click="$event.target.tagName === 'TEXTAREA' && $event.target.select()" />
</DialogContent>
</Dialog>

View File

@@ -11,8 +11,7 @@
v-model="discordNamesContent"
:rows="15"
readonly
style="margin-top: 15px"
input-class="resize-none" />
input-class="resize-none mt-4" />
</DialogContent>
</Dialog>
</template>

View File

@@ -10,8 +10,7 @@
v-model="exportFriendsListCsv"
:rows="15"
readonly
style="margin-top: 15px"
input-class="resize-none"
input-class="resize-none mt-4"
@click="$event.target.tagName === 'TEXTAREA' && $event.target.select()" />
</template>
<template #json>
@@ -19,7 +18,7 @@
v-model="exportFriendsListJson"
:rows="15"
readonly
style="margin-top: 15px"
style="margin-top: 16px"
input-class="resize-none"
@click="$event.target.tagName === 'TEXTAREA' && $event.target.select()" />
</template>
@@ -79,6 +78,9 @@
}
);
/**
*
*/
function initExportFriendsListDialog() {
const { friends } = currentUser.value;
if (Array.isArray(friends) === false) {

View File

@@ -453,8 +453,8 @@
min-width: 200px;
padding-left: 4px;
padding-right: 16px;
margin-left: 10px;
margin-right: 6px;
margin-left: 8px;
margin-right: 8px;
overflow: auto;
height: 50vh;
@@ -465,7 +465,7 @@
}
.timeline-group {
padding: 0 20px 6px 10px;
padding: 0 20px 8px 8px;
}
.timeline-timestamp {
@@ -545,10 +545,10 @@
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 10px;
margin-top: 8px;
.featured-switch-text {
font-size: 13px;
margin-right: 5px;
margin-right: 6px;
}
}
@@ -589,10 +589,10 @@
.group-header {
font-size: 16px;
font-weight: bold;
padding: 4px 12px 10px 12px;
padding: 4px 12px 8px 12px;
cursor: pointer;
border-radius: var(--radius-md);
margin: 0 -12px 10px -12px;
margin: 0 -12px 8px -12px;
display: flex;
align-items: center;

View File

@@ -15,28 +15,16 @@
{{ t('dialog.note_export.description8') }} <br />
</div>
<Button
size="sm"
class="mr-2"
variant="outline"
:disabled="loading"
style="margin-top: 10px"
@click="updateNoteExportDialog">
<Button size="sm" class="mr-2 mt-2" variant="outline" :disabled="loading" @click="updateNoteExportDialog">
{{ t('dialog.note_export.refresh') }}
</Button>
<Button
size="sm"
class="mr-2"
variant="outline"
:disabled="loading"
style="margin-top: 10px"
@click="exportNoteExport">
<Button size="sm" class="mr-2 mt-2" variant="outline" :disabled="loading" @click="exportNoteExport">
{{ t('dialog.note_export.export') }}
</Button>
<Button v-if="loading" size="sm" variant="outline" style="margin-top: 10px" @click="cancelNoteExport">
<Button class="mt-2" v-if="loading" size="sm" variant="outline" @click="cancelNoteExport">
{{ t('dialog.note_export.cancel') }}
</Button>
<span v-if="loading" style="margin: 10px">
<span class="m-2" v-if="loading">
<Spinner class="inline-block ml-2 mr-2" />
{{ t('dialog.note_export.progress') }} {{ progress }}/{{ progressTotal }}
</span>
@@ -45,7 +33,7 @@
<Button size="sm" variant="outline" @click="errors = ''">
{{ t('dialog.note_export.clear_errors') }}
</Button>
<h2 style="font-weight: bold; margin: 0">
<h2 class="m-0" style="font-weight: bold">
{{ t('dialog.note_export.errors') }}
</h2>
<pre style="white-space: pre-wrap; font-size: 12px" v-text="errors"></pre>
@@ -57,7 +45,7 @@
:loading="loading"
:table-style="tableStyle"
:show-pagination="false"
style="margin-top: 10px" />
style="margin-top: 8px" />
</DialogContent>
</Dialog>
</template>

View File

@@ -4,32 +4,24 @@
<DialogHeader>
<DialogTitle>{{ t('dialog.registry_backup.header') }}</DialogTitle>
</DialogHeader>
<div style="margin-top: 10px">
<div class="mt-2">
<div style="display: flex; align-items: center; justify-content: space-between; font-size: 12px">
<span class="name" style="margin-right: 24px">{{ t('dialog.registry_backup.auto_backup') }}</span>
<span class="name mr-6">{{ t('dialog.registry_backup.auto_backup') }}</span>
<Switch :model-value="vrcRegistryAutoBackup" @update:modelValue="setVrcRegistryAutoBackup" />
</div>
<div
style="
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
margin-top: 5px;
">
<span class="name" style="margin-right: 24px">{{
t('dialog.registry_backup.ask_to_restore')
}}</span>
class="mt-1.5"
style="display: flex; align-items: center; justify-content: space-between; font-size: 12px">
<span class="name mr-6">{{ t('dialog.registry_backup.ask_to_restore') }}</span>
<Switch :model-value="vrcRegistryAskRestore" @update:modelValue="setVrcRegistryAskRestore" />
</div>
<DataTableLayout
class="min-w-0 w-full"
class="min-w-0 w-full mt-2"
:table="table"
:loading="false"
:table-style="tableStyle"
:show-pagination="false"
style="margin-top: 10px" />
<div style="display: flex; align-items: center; justify-content: space-between; margin-top: 10px">
:show-pagination="false" />
<div class="mt-2" style="display: flex; align-items: center; justify-content: space-between">
<Button size="sm" variant="destructive" @click="deleteVrcRegistry">{{
t('dialog.registry_backup.reset')
}}</Button>
@@ -111,11 +103,18 @@
}
);
/**
*
*/
async function updateRegistryBackupDialog() {
const backupsJson = await configRepository.getString('VRCX_VRChatRegistryBackups');
registryBackupTable.value.data = JSON.parse(backupsJson || '[]');
}
/**
*
* @param row
*/
function restoreVrcRegistryBackup(row) {
modalStore
.confirm({
@@ -139,10 +138,18 @@
.catch(() => {});
}
/**
*
* @param row
*/
function saveVrcRegistryBackupToFile(row) {
downloadAndSaveJson(row.name, row.data);
}
/**
*
* @param row
*/
async function deleteVrcRegistryBackup(row) {
const backups = registryBackupTable.value.data;
removeFromArray(backups, row);
@@ -150,6 +157,9 @@
await updateRegistryBackupDialog();
}
/**
*
*/
function deleteVrcRegistry() {
modalStore
.confirm({
@@ -167,11 +177,18 @@
.catch(() => {});
}
/**
*
* @param name
*/
async function handleBackupVrcRegistry(name) {
await backupVrcRegistry(name);
await updateRegistryBackupDialog();
}
/**
*
*/
function promptVrcRegistryBackupName() {
modalStore
.prompt({
@@ -188,6 +205,9 @@
.catch(() => {});
}
/**
*
*/
async function openJsonFileSelectorDialogElectron() {
return new Promise((resolve) => {
const fileInput = document.createElement('input');
@@ -216,6 +236,9 @@
});
}
/**
*
*/
async function restoreVrcRegistryFromFile() {
const filePath = await AppApi.OpenFileSelectorDialog(null, '.json', 'JSON Files (*.json)|*.json');
if (WINDOWS) {
@@ -256,10 +279,16 @@
}
}
/**
*
*/
function clearVrcRegistryDialog() {
registryBackupTable.value.data = [];
}
/**
*
*/
function closeAndClearDialog() {
closeDialog();
// TODO: Element Plus had a distinct @closed event after animation.
@@ -267,6 +296,9 @@
clearVrcRegistryDialog();
}
/**
*
*/
function closeDialog() {
isRegistryBackupDialogVisible.value = false;
}