update + translate log modal
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
</v-chip>
|
</v-chip>
|
||||||
<v-chip density="compact" color="transparent" style="cursor: pointer;" @click="openLogs('s-ui')">
|
<v-chip density="compact" color="transparent" style="cursor: pointer;" @click="openLogs('s-ui')">
|
||||||
<v-tooltip activator="parent" location="top">
|
<v-tooltip activator="parent" location="top">
|
||||||
S-UI Logs
|
{{ $t('basic.log.title') + " - S-UI" }}
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
<v-icon icon="mdi-list-box-outline" color="blue" />
|
<v-icon icon="mdi-list-box-outline" color="blue" />
|
||||||
</v-chip>
|
</v-chip>
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
<v-chip density="compact" color="error" variant="flat" v-else>{{ $t('no') }}</v-chip>
|
<v-chip density="compact" color="error" variant="flat" v-else>{{ $t('no') }}</v-chip>
|
||||||
<v-chip density="compact" color="transparent" style="cursor: pointer;" @click="openLogs('sing-box')">
|
<v-chip density="compact" color="transparent" style="cursor: pointer;" @click="openLogs('sing-box')">
|
||||||
<v-tooltip activator="parent" location="top">
|
<v-tooltip activator="parent" location="top">
|
||||||
Sing-Box Logs
|
{{ $t('basic.log.title') + " - Sing-Box" }}
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
<v-icon icon="mdi-list-box-outline" :color="tilesData.sbd?.running ? 'success': 'error'" />
|
<v-icon icon="mdi-list-box-outline" :color="tilesData.sbd?.running ? 'success': 'error'" />
|
||||||
</v-chip>
|
</v-chip>
|
||||||
|
|||||||
@@ -2,7 +2,13 @@
|
|||||||
<v-dialog transition="dialog-bottom-transition" width="90%" max-width="1200" :loading="loading">
|
<v-dialog transition="dialog-bottom-transition" width="90%" max-width="1200" :loading="loading">
|
||||||
<v-card class="rounded-lg">
|
<v-card class="rounded-lg">
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
{{ (logType == 's-ui'? "S-UI" : "Sing-Box") + " logs" }}
|
<v-row>
|
||||||
|
<v-col>{{ $t('basic.log.title') + " - " + (logType == 's-ui'? "S-UI" : "Sing-Box") }}</v-col>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-col cols="auto">
|
||||||
|
<v-icon icon="mdi-close" @click="$emit('close')" />
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
@@ -10,7 +16,7 @@
|
|||||||
<v-col cols="12" sm="6" md="4">
|
<v-col cols="12" sm="6" md="4">
|
||||||
<v-select
|
<v-select
|
||||||
hide-details
|
hide-details
|
||||||
label="Level"
|
:label="$t('basic.log.level')"
|
||||||
:items="logLevels"
|
:items="logLevels"
|
||||||
v-model="logLevel"
|
v-model="logLevel"
|
||||||
@update:model-value="loadData">
|
@update:model-value="loadData">
|
||||||
@@ -19,7 +25,7 @@
|
|||||||
<v-col cols="12" sm="6" md="4">
|
<v-col cols="12" sm="6" md="4">
|
||||||
<v-select
|
<v-select
|
||||||
hide-details
|
hide-details
|
||||||
label="Count"
|
:label="$t('count')"
|
||||||
:items="[10,20,30,50,100]"
|
:items="[10,20,30,50,100]"
|
||||||
v-model.number="logCount"
|
v-model.number="logCount"
|
||||||
@update:model-value="loadData">
|
@update:model-value="loadData">
|
||||||
@@ -37,16 +43,6 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
<v-card style="background-color: background" dir="ltr" v-html="lines.join('<br />')"></v-card>
|
<v-card style="background-color: background" dir="ltr" v-html="lines.join('<br />')"></v-card>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
|
||||||
<v-spacer></v-spacer>
|
|
||||||
<v-btn
|
|
||||||
color="blue-darken-1"
|
|
||||||
variant="outlined"
|
|
||||||
@click="$emit('close')"
|
|
||||||
>
|
|
||||||
{{ $t('actions.close') }}
|
|
||||||
</v-btn>
|
|
||||||
</v-card-actions>
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user