Browse Source

refactor: linting and requested changes

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
b1b28e1cd2
  1. 4
      packages/nc-gui/components/account/Token.vue
  2. 2
      packages/nc-gui/nuxt.config.ts
  3. 3
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue
  4. 2
      packages/nc-gui/pages/index/index.vue
  5. 6
      packages/nc-gui/pages/signup/[[token]].vue

4
packages/nc-gui/components/account/Token.vue

@ -91,9 +91,9 @@ const copyToken = (token: string | undefined) => {
$e('c:api-token:copy')
}
const descriptionInput = ref((el) => {
const descriptionInput = (el) => {
el?.focus()
})
}
</script>
<template>

2
packages/nc-gui/nuxt.config.ts

@ -166,8 +166,6 @@ export default defineNuxtConfig({
},
},
// ignore: [`tests/**`],
experimental: {
reactivityTransform: true,
},

3
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -310,8 +310,7 @@ onBeforeUnmount(reset)
<!-- Copy Auth Token -->
<a-menu-item key="copy">
<div v-e="['a:navbar:user:copy-auth-token']" class="nc-project-menu-item group"
@click.stop="copyAuthToken">
<div v-e="['a:navbar:user:copy-auth-token']" class="nc-project-menu-item group" @click.stop="copyAuthToken">
<MdiScriptTextKeyOutline class="group-hover:text-accent" />
{{ $t('activity.account.authToken') }}
</div>

2
packages/nc-gui/pages/index/index.vue

@ -9,7 +9,7 @@ useSidebar('nc-left-sidebar', { hasSidebar: false })
<template>
<NuxtLayout>
<div
class="mx-auto min-h-[calc(100vh_-_var(--header-height))] bg-primary bg-opacity-5 flex flex-wrap justify-between xl:flex-nowrap gap-6 py-6 px-4 md:(px-12 pt-65px)"
class="min-h-[calc(100vh_-_var(--header-height))] bg-primary bg-opacity-5 flex flex-wrap justify-between xl:flex-nowrap gap-6 py-6 px-4 md:(px-12 pt-65px)"
>
<div class="hidden xl:(flex)">
<div v-if="route.name === 'index-index'">

6
packages/nc-gui/pages/signup/[[token]].vue

@ -99,7 +99,11 @@ function resetError() {
<a-form ref="formValidator" :model="form" layout="vertical" no-style @finish="signUp">
<Transition name="layout">
<div v-if="error" class="self-center mb-4 bg-red-500 text-white rounded-lg w-3/4 mx-auto p-1" data-testid="nc-signup-error">
<div
v-if="error"
class="self-center mb-4 bg-red-500 text-white rounded-lg w-3/4 mx-auto p-1"
data-testid="nc-signup-error"
>
<div class="flex items-center gap-2 justify-center">
<MaterialSymbolsWarning />
<div class="break-words">{{ error }}</div>

Loading…
Cancel
Save