mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-28 11:13:49 +02:00
use oxfmt instead of prettier
This commit is contained in:
@@ -17,7 +17,11 @@
|
||||
:key="option.key"
|
||||
type="button"
|
||||
class="flex items-center gap-2 rounded-md border p-2 text-left text-sm hover:bg-accent"
|
||||
:class="option.key === currentPanelKey ? 'border-primary bg-primary/5 ring-1 ring-primary/40' : 'border-primary/20'"
|
||||
:class="
|
||||
option.key === currentPanelKey
|
||||
? 'border-primary bg-primary/5 ring-1 ring-primary/40'
|
||||
: 'border-primary/20'
|
||||
"
|
||||
@click="handleSelectWidget(option)">
|
||||
<i :class="option.icon" class="text-base"></i>
|
||||
<span>{{ t(option.labelKey) }}</span>
|
||||
@@ -36,7 +40,11 @@
|
||||
:key="option.key"
|
||||
type="button"
|
||||
class="flex items-center gap-2 rounded-md border p-2 text-left text-sm hover:bg-accent"
|
||||
:class="option.key === currentPanelKey ? 'border-primary bg-primary/5 ring-1 ring-primary/40' : ''"
|
||||
:class="
|
||||
option.key === currentPanelKey
|
||||
? 'border-primary bg-primary/5 ring-1 ring-primary/40'
|
||||
: ''
|
||||
"
|
||||
@click="emit('select', option.key)">
|
||||
<i :class="option.icon" class="text-base"></i>
|
||||
<span>{{ t(option.labelKey) }}</span>
|
||||
|
||||
@@ -29,10 +29,20 @@ export const panelComponentMap = {
|
||||
moderation: Moderation,
|
||||
notification: Notification,
|
||||
'my-avatars': MyAvatars,
|
||||
'charts-instance': defineAsyncComponent(() => import('../../Charts/components/InstanceActivity.vue')),
|
||||
'charts-mutual': defineAsyncComponent(() => import('../../Charts/components/MutualFriends.vue')),
|
||||
'charts-instance': defineAsyncComponent(
|
||||
() => import('../../Charts/components/InstanceActivity.vue')
|
||||
),
|
||||
'charts-mutual': defineAsyncComponent(
|
||||
() => import('../../Charts/components/MutualFriends.vue')
|
||||
),
|
||||
tools: Tools,
|
||||
'widget:feed': defineAsyncComponent(() => import('../widgets/FeedWidget.vue')),
|
||||
'widget:game-log': defineAsyncComponent(() => import('../widgets/GameLogWidget.vue')),
|
||||
'widget:instance': defineAsyncComponent(() => import('../widgets/InstanceWidget.vue'))
|
||||
'widget:feed': defineAsyncComponent(
|
||||
() => import('../widgets/FeedWidget.vue')
|
||||
),
|
||||
'widget:game-log': defineAsyncComponent(
|
||||
() => import('../widgets/GameLogWidget.vue')
|
||||
),
|
||||
'widget:instance': defineAsyncComponent(
|
||||
() => import('../widgets/InstanceWidget.vue')
|
||||
)
|
||||
};
|
||||
|
||||
@@ -160,15 +160,7 @@
|
||||
import WidgetHeader from './WidgetHeader.vue';
|
||||
import { Table, TableBody, TableRow, TableCell } from '@/components/ui/table';
|
||||
|
||||
const GAMELOG_TYPES = [
|
||||
'Location',
|
||||
'OnPlayerJoined',
|
||||
'OnPlayerLeft',
|
||||
'VideoPlay',
|
||||
'PortalSpawn',
|
||||
'Event',
|
||||
'External'
|
||||
];
|
||||
const GAMELOG_TYPES = ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'VideoPlay', 'PortalSpawn', 'Event', 'External'];
|
||||
|
||||
const props = defineProps({
|
||||
config: {
|
||||
|
||||
Reference in New Issue
Block a user