fix linter issues

This commit is contained in:
Simon Vieille
2025-04-10 20:02:02 +02:00
parent f9c3f96919
commit 8474f0945b
15 changed files with 148 additions and 132 deletions
+77 -49
View File
@@ -1,14 +1,15 @@
<template>
<NcContent
app-name="side_menu"
v-if="config"
app-name="side_menu"
>
<NcAppContent>
<div class="side-menu-setting">
<NcButton
v-for="item in menu"
@click="setSection(item.section)"
:key="item.label"
:variant="item.section === section ? 'primary' : 'secondary'"
@click="setSection(item.section)"
>{{ trans(item.label) }}</NcButton
>
</div>
@@ -107,14 +108,15 @@
:top="true"
/>
<TableValue>
<FormSelect
<FormSelect
v-model="config['top-menu-mouse-over-hidden-label']"
:expanded="true"
:options="[
{id: 1, label: 'Yes'},
{id: 0, label: 'No'},
{id: 2, label: 'Except the hovered app'},
]" />
{ id: 1, label: 'Yes' },
{ id: 0, label: 'No' },
{ id: 2, label: 'Except the hovered app' },
]"
/>
</TableValue>
</TableRow>
</TableContainer>
@@ -361,21 +363,31 @@
:middle="true"
/>
<TableValue>
<a target="_blank" href="https://www.buymeacoffee.com/deblan" rel="noopener">
<a
target="_blank"
href="https://www.buymeacoffee.com/deblan"
rel="noopener"
>
<NcButton variant="secondary">{{ trans('Buy me a coffee ☕') }}</NcButton>
</a>
</TableValue>
</TableRow>
<TableRow>
<TableLabel
label="Need help"
/>
<TableLabel label="Need help" />
<TableValue class="button-inline">
<a target="_blank" href="https://deblan.gitnet.page/side_menu_doc/" rel="noopener">
<a
target="_blank"
href="https://deblan.gitnet.page/side_menu_doc/"
rel="noopener"
>
<NcButton variant="secondary">{{ trans('Open the documentation') }}</NcButton>
</a>
<a target="_blank" href="https://gitnet.fr/deblan/side_menu/issues/new?template=.gitea%2fissue_template%2fQUESTION_TEMPLATE.yml" rel="noopener">
<a
target="_blank"
href="https://gitnet.fr/deblan/side_menu/issues/new?template=.gitea%2fissue_template%2fQUESTION_TEMPLATE.yml"
rel="noopener"
>
<NcButton variant="secondary">{{ trans('Ask the developer') }}</NcButton>
</a>
</TableValue>
@@ -387,7 +399,11 @@
:middle="true"
/>
<TableValue>
<a target="_blank" href="https://gitnet.fr/deblan/side_menu/issues/new?template=.gitea%2fissue_template%2fFEATURE_TEMPLATE.yml" rel="noopener">
<a
target="_blank"
href="https://gitnet.fr/deblan/side_menu/issues/new?template=.gitea%2fissue_template%2fFEATURE_TEMPLATE.yml"
rel="noopener"
>
<NcButton variant="secondary">{{ trans('New request') }}</NcButton>
</a>
</TableValue>
@@ -399,10 +415,18 @@
:top="true"
/>
<TableValue class="button-inline">
<a target="_blank" href="https://gitnet.fr/deblan/side_menu/issues/new?template=.gitea%2fissue_template%2fISSUE_TEMPLATE.yml" rel="noopener">
<a
target="_blank"
href="https://gitnet.fr/deblan/side_menu/issues/new?template=.gitea%2fissue_template%2fISSUE_TEMPLATE.yml"
rel="noopener"
>
<NcButton variant="secondary">{{ trans('Report a bug') }}</NcButton>
</a>
<NcButton variant="secondary" @click="showConfig = true">{{ trans('Show the configuration') }}</NcButton>
<NcButton
variant="secondary"
@click="showConfig = true"
>{{ trans('Show the configuration') }}</NcButton
>
<NcModal
v-if="showConfig"
@@ -410,19 +434,23 @@
>
<div class="modal__content">
<p style="margin-bottom: 5px">{{ trans('Configuration:') }}</p>
<textarea class="config" readonly>{{ filterConfig(config) }}</textarea>
<textarea
class="config"
readonly
>{{ filterConfig(config) }}</textarea
>
<div class="modal__footer">
<NcButton
@click="copyConfig"
variant="secondary"
@click="copyConfig"
>
<span v-if="configCopied">{{ trans('Done!') }}</span>
<span v-else>{{ trans('Copy') }}</span>
</NcButton>
<NcButton
@click="showConfig = false"
variant="primary"
@click="showConfig = false"
>
{{ t('side_menu', 'Close') }}
</NcButton>
@@ -436,36 +464,6 @@
</NcContent>
</template>
<style scoped>
.hidden {
display: none;
}
.button-inline button {
display: inline-block;
margin-right: 5px;
}
.config {
width: 100%;
height: 30vh;
}
.modal__content {
padding: 20px;
}
.modal__footer {
margin-top: 20px;
text-align: right;
}
.modal__footer button {
display: inline-block;
margin-right: 5px;
}
</style>
<script setup>
import { NcContent, NcAppContent, NcButton, NcModal } from '@nextcloud/vue'
import { ref, onMounted } from 'vue'
@@ -541,3 +539,33 @@ onMounted(async () => {
config.value = await configStore.getAppConfig()
})
</script>
<style scoped>
.hidden {
display: none;
}
.button-inline button {
display: inline-block;
margin-right: 5px;
}
.config {
width: 100%;
height: 30vh;
}
.modal__content {
padding: 20px;
}
.modal__footer {
margin-top: 20px;
text-align: right;
}
.modal__footer button {
display: inline-block;
margin-right: 5px;
}
</style>