File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 </NuxtLink >
77 </td >
88
9- <td >
10- <NuxtLink class="mod-title" style = " min-width : 150 px ; " :to =" ! static && ` /mod/${mod .id } ` || undefined " :title =" mod .name " >
9+ <td style = " min-width : 250 px ; " >
10+ <NuxtLink class="mod-title" :to =" ! static && ` /mod/${mod .id } ` || undefined " :title =" mod .name " >
1111 <mod-status :mod =" mod" />
1212 {{ mod.name }}
1313 </NuxtLink >
Original file line number Diff line number Diff line change 11<template >
22 <span v-if =" adminData" class =" h2" >{{ $t('admin_at_a_glance') }}</span >
3- <m-flex v-if =" adminData" class =" max-md:flex-wrap " >
3+ <m-flex v-if =" adminData" class =" max-md:flex-col overflow-hidden " >
44 <m-flex class =" flex-1" column >
55 <NuxtLink :to =" reportsUrl " class="glance-block">
66 <span class =" text-2xl text-body" >{{ $t('last_reports') }}</span >
3737 <span class =" text-2xl text-body" >{{ $t('last_suspensions') }}</span >
3838 <m-flex v-if =" adminData.suspensions" column >
3939 <template v-if =" adminData .suspensions .length " >
40- <m-content-block v-for =" sus of adminData.suspensions" :key =" sus.id" class =" text-body" :column =" false" >
41- <mod-thumbnail :thumbnail = " sus.mod.thumbnail " style = " width : 96 px ; height : 48 px ; " / >
42- < m-flex column >
40+ <m-content-block v-for =" sus of adminData.suspensions" :key =" sus.id" class =" text-body items-center " :column =" false" wrap >
41+ <m-flex class = " items-center " >
42+ < mod-thumbnail :thumbnail = " sus.mod.thumbnail " style = " width : 96 px ; height : 48 px ; " / >
4343 <span >{{ sus.mod.name }}</span >
44- <span >{{ $t('reason') }}: {{ sus.reason }}</span >
4544 </m-flex >
45+ <span >{{ $t('reason') }}: {{ sus.reason }}</span >
4646 </m-content-block >
4747 </template >
4848 <span v-else class =" text-body" >
Original file line number Diff line number Diff line change 11<template >
22 <m-flex column gap =" 4" style =" flex : 1 ;" >
3- <m-flex v-if =" title || $slots.title" class =" items-center" >
3+ <m-flex v-if =" title || $slots.title || $slots.buttons " class =" items-center" >
44 <slot name =" title" >
55 <h2 v-if =" title" >{{ title }}</h2 >
66 </slot >
1414 </m-flex >
1515 </m-flex >
1616
17+ <slot name =" filters" :items =" items" />
18+
1719 <m-pagination v-if =" pagination" v-model =" page" :total =" total" :per-page =" limit" >
1820 <slot name =" pagination" :items =" items" />
1921 </m-pagination >
@@ -71,8 +73,8 @@ const props = withDefaults(defineProps<{
7173 column: true
7274});
7375
74- const vmPage = defineModel <number >(' page' );
75- const page = props . query ? useRouteQuery (' page' , 1 ) : ref (vmPage .value );
76+ const vmPage = defineModel <number >(' page' , { default: undefined } );
77+ const page = ! vmPage . value ? useRouteQuery (' page' , 1 ) : ref (vmPage .value );
7678
7779const queryRef = props .query ? useRouteQuery (' query' , ' ' ) : ref (' ' );
7880
Original file line number Diff line number Diff line change @@ -17,3 +17,9 @@ withDefaults(defineProps<{
1717 textBy? : string ;
1818}>(), { textBy: ' name' });
1919 </script >
20+
21+ <style scoped>
22+ .list-button {
23+ width : 100% ;
24+ }
25+ </style >
Original file line number Diff line number Diff line change 55 <user-select v-model =" user" :label =" $t('user')" clearable />
66 <m-list v-model:page =" page" query :items =" sessions" :loading =" loading" >
77 <template #before-item =" { item } " >
8- <a-user :user =" item.user" >
8+ <a-user :user =" item.user" class = " overflow-hidden " >
99 <template #details >
10- {{ item.ip_address }}
10+ < span > {{ item.ip_address }}</ span >
1111 <m-time :datetime =" item.updated_at" relative />
1212 </template >
1313 </a-user >
Original file line number Diff line number Diff line change 11<template >
2- <m-list :items =" data" :loading =" loading" >
3- <template #buttons >
2+ <m-list :items =" data" :loading =" loading" :title = " $t('suspensions') " >
3+ <template #filters >
44 <m-input v-model =" query" :label =" $t('search')" />
55 <user-select v-model =" userId" :label =" $t('user')" clearable />
66 </template >
You can’t perform that action at this time.
0 commit comments