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" class="px-2"
@click.prevent="openUrl(`https://www.reddit.com/submit?url=${shareUrl}&title=${encodedSummary}`)" @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>
<a <a
@ -263,7 +270,14 @@ const openUrl = (url: string) => {
openUrl(`https://vk.com/share.php?url=${shareUrl})&title=${encodedTitle}&description=${encodedSummary}&noparse=true`) 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>
<a <a
v-if="!socialMedias || !socialMedias.length || socialMedias.includes('wykop')" 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-row type="flex">
<a-col :span="24"> <a-col :span="24">
<a-form-item v-bind="validateInfos.title"> <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-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row type="flex" :gutter="[16, 16]"> <a-row type="flex" :gutter="[16, 16]">
<a-col :span="12"> <a-col :span="12">
<a-form-item v-bind="validateInfos.eventOperation"> <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(' ')"> <a-select-option v-for="(event, i) in eventList" :key="i" :value="event.value.join(' ')">
{{ event.text.join(' ') }} {{ event.text.join(' ') }}
</a-select-option> </a-select-option>
@ -471,7 +481,12 @@ onMounted(async () => {
<a-col :span="18"> <a-col :span="18">
<a-form-item v-bind="validateInfos['notification.payload.path']"> <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-form-item>
</a-col> </a-col>

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

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

Loading…
Cancel
Save