Browse Source

chore(gui-v2): lint

pull/3319/head
Wing-Kam Wong 2 years ago
parent
commit
99e3ad1abe
  1. 18
      packages/nc-gui-v2/components/general/Share.vue
  2. 21
      packages/nc-gui-v2/components/webhook/Editor.vue
  3. 3
      packages/nc-gui-v2/nuxt.config.ts

18
packages/nc-gui-v2/components/general/Share.vue

@ -108,7 +108,14 @@ const openUrl = (url: string) => {
class="px-2"
@click.prevent="openUrl(`https://www.reddit.com/submit?url=${shareUrl}&title=${encodedSummary}`)"
>
<img src="~/public/social/reddit.png" class="img-responsive" alt="Reddit" :width="width" :style="css" title="Social Media Share" />
<img
src="~/public/social/reddit.png"
class="img-responsive"
alt="Reddit"
:width="width"
:style="css"
title="Social Media Share"
/>
</a>
<a
@ -263,7 +270,14 @@ const openUrl = (url: string) => {
openUrl(`https://vk.com/share.php?url=${shareUrl})&title=${encodedTitle}&description=${encodedSummary}&noparse=true`)
"
>
<img src="~/public/social/png/vk.png" class="img-responsive" alt="VK" :width="width" :style="css" title="Social Media Share" />
<img
src="~/public/social/png/vk.png"
class="img-responsive"
alt="VK"
:width="width"
:style="css"
title="Social Media Share"
/>
</a>
<a
v-if="!socialMedias || !socialMedias.length || socialMedias.includes('wykop')"

21
packages/nc-gui-v2/components/webhook/Editor.vue

@ -413,14 +413,24 @@ onMounted(async () => {
<a-row type="flex">
<a-col :span="24">
<a-form-item v-bind="validateInfos.title">
<a-input v-model:value="hook.title" size="large" :placeholder="$t('general.title')" class="nc-text-field-hook-title" />
<a-input
v-model:value="hook.title"
size="large"
:placeholder="$t('general.title')"
class="nc-text-field-hook-title"
/>
</a-form-item>
</a-col>
</a-row>
<a-row type="flex" :gutter="[16, 16]">
<a-col :span="12">
<a-form-item v-bind="validateInfos.eventOperation">
<a-select v-model:value="hook.eventOperation" size="large" :placeholder="$t('general.event')" class="nc-text-field-hook-event">
<a-select
v-model:value="hook.eventOperation"
size="large"
:placeholder="$t('general.event')"
class="nc-text-field-hook-event"
>
<a-select-option v-for="(event, i) in eventList" :key="i" :value="event.value.join(' ')">
{{ event.text.join(' ') }}
</a-select-option>
@ -471,7 +481,12 @@ onMounted(async () => {
<a-col :span="18">
<a-form-item v-bind="validateInfos['notification.payload.path']">
<a-input v-model:value="hook.notification.payload.path" size="large" placeholder="http://example.com" class="nc-text-field-hook-url-path" />
<a-input
v-model:value="hook.notification.payload.path"
size="large"
placeholder="http://example.com"
class="nc-text-field-hook-url-path"
/>
</a-form-item>
</a-col>

3
packages/nc-gui-v2/nuxt.config.ts

@ -11,7 +11,6 @@ import monacoEditorPlugin from 'vite-plugin-monaco-editor'
export default defineNuxtConfig({
modules: ['@vueuse/nuxt', 'nuxt-windicss', '@nuxt/image-edge'],
ssr: false,
app: {
baseURL: '/dashboard/',
@ -50,11 +49,9 @@ export default defineNuxtConfig({
vite: {
// todo: minifiy again
build: {
minify: false,
rollupOptions: {
external: 'httpsnippet',
},
},
plugins: [

Loading…
Cancel
Save