Browse Source

chore(nc-gui): remove unused page styles

pull/3933/head
braks 2 years ago
parent
commit
4fee0396d2
  1. 4
      packages/nc-gui/composables/useProject.ts
  2. 8
      packages/nc-gui/pages/index/index/[projectId].vue
  3. 8
      packages/nc-gui/pages/index/index/create-external.vue
  4. 4
      packages/nc-gui/pages/index/index/create.vue
  5. 5
      packages/nc-gui/pages/index/index/index.vue
  6. 6
      packages/nc-gui/pages/index/index/user.vue

4
packages/nc-gui/composables/useProject.ts

@ -79,7 +79,7 @@ const [setup, use] = useInjectionState(() => {
} }
} }
async function loadProject() { async function loadProject(withTheme = true) {
if (projectType === 'base') { if (projectType === 'base') {
try { try {
const baseData = await api.public.sharedBaseGet(route.params.projectId as string) const baseData = await api.public.sharedBaseGet(route.params.projectId as string)
@ -102,7 +102,7 @@ const [setup, use] = useInjectionState(() => {
await loadTables() await loadTables()
setTheme(projectMeta.value?.theme) if (withTheme) setTheme(projectMeta.value?.theme)
return projectLoadedHook.trigger(project.value) return projectLoadedHook.trigger(project.value)
} }

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

@ -21,7 +21,7 @@ const route = useRoute()
const { project, loadProject, updateProject, isLoading } = useProject() const { project, loadProject, updateProject, isLoading } = useProject()
await loadProject() loadProject(false)
const nameValidationRules = [ const nameValidationRules = [
{ {
@ -66,12 +66,12 @@ onMounted(async () => {
<template> <template>
<div <div
class="update-project bg-white relative flex-auto flex flex-col justify-center gap-2 p-8 md:(rounded-lg border-1 border-gray-200 shadow-xl)" class="update-project relative flex-auto flex flex-col justify-center gap-2 p-8 md:(bg-white rounded-lg border-1 border-gray-200 shadow)"
> >
<LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" /> <LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" />
<div <div
class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full bg-white cursor-pointer" class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full cursor-pointer"
@click="navigateTo('/')" @click="navigateTo('/')"
> >
<MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" /> <MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" />
@ -79,7 +79,9 @@ onMounted(async () => {
<h1 class="prose-2xl font-bold self-center my-4">{{ $t('activity.editProject') }}</h1> <h1 class="prose-2xl font-bold self-center my-4">{{ $t('activity.editProject') }}</h1>
<a-skeleton v-if="isLoading" />
<a-form <a-form
v-else
ref="form" ref="form"
:model="formState" :model="formState"
name="basic" name="basic"

8
packages/nc-gui/pages/index/index/create-external.vue

@ -335,12 +335,12 @@ onMounted(async () => {
<template> <template>
<div <div
class="create-external bg-white relative flex flex-col justify-center gap-2 w-full p-8 md:(rounded-lg border-1 border-gray-200 shadow-xl)" class="create-external relative flex flex-col justify-center gap-2 w-full p-8 md:(bg-white rounded-lg border-1 border-gray-200 shadow)"
> >
<LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" /> <LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" />
<div <div
class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full bg-white cursor-pointer" class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full cursor-pointer"
@click="navigateTo('/')" @click="navigateTo('/')"
> >
<MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" /> <MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" />
@ -367,8 +367,8 @@ onMounted(async () => {
dropdown-class-name="nc-dropdown-ext-db-type" dropdown-class-name="nc-dropdown-ext-db-type"
@change="onClientChange" @change="onClientChange"
> >
<a-select-option v-for="client in clientTypes" :key="client.value" :value="client.value" <a-select-option v-for="client in clientTypes" :key="client.value" :value="client.value">
>{{ client.text }} {{ client.text }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>

4
packages/nc-gui/pages/index/index/create.vue

@ -64,12 +64,12 @@ onMounted(async () => {
<template> <template>
<div <div
class="create bg-white relative flex flex-col justify-center gap-2 w-full p-8 md:(rounded-lg border-1 border-gray-200 shadow-xl)" class="create relative flex flex-col justify-center gap-2 w-full p-8 md:(bg-white rounded-lg border-1 border-gray-200 shadow)"
> >
<LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" /> <LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" />
<div <div
class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full bg-white cursor-pointer" class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full cursor-pointer"
@click="navigateTo('/')" @click="navigateTo('/')"
> >
<MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" /> <MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" />

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

@ -126,7 +126,7 @@ onBeforeMount(loadProjects)
</script> </script>
<template> <template>
<div class="bg-white relative flex flex-col justify-center gap-2 w-full p-8 md:(rounded-lg border-1 border-gray-200 shadow-xl)"> <div class="relative flex flex-col justify-center gap-2 w-full p-8 md:(bg-white rounded-lg border-1 border-gray-200 shadow)">
<h1 class="flex items-center justify-center gap-2 leading-8 mb-8 mt-4"> <h1 class="flex items-center justify-center gap-2 leading-8 mb-8 mt-4">
<!-- My Projects --> <!-- My Projects -->
<span class="text-4xl nc-project-page-title">{{ $t('title.myProject') }}</span> <span class="text-4xl nc-project-page-title">{{ $t('title.myProject') }}</span>
@ -198,7 +198,8 @@ onBeforeMount(loadProjects)
<a-skeleton /> <a-skeleton />
</div> </div>
<a-table v-else :custom-row="customRow" :data-source="filteredProjects" :pagination="{ position: ['bottomCenter'] }"> <a-table
v-else :custom-row="customRow" :data-source="filteredProjects" :pagination="{ position: ['bottomCenter'] }">
<template #emptyText> <template #emptyText>
<a-empty :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('labels.noData')" /> <a-empty :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('labels.noData')" />
</template> </template>

6
packages/nc-gui/pages/index/index/user.vue

@ -67,11 +67,11 @@ const resetError = () => {
</script> </script>
<template> <template>
<div class="bg-white relative flex flex-col justify-center gap-2 w-full p-8 md:(rounded-lg border-1 border-gray-200 shadow-xl)"> <div class="relative flex flex-col justify-center gap-2 w-full p-8 md:(bg-white rounded-lg border-1 border-gray-200 shadow)">
<LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" /> <LazyGeneralNocoIcon class="color-transition hover:(ring ring-accent)" :animate="isLoading" />
<div <div
class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full bg-white cursor-pointer" class="color-transition transform group absolute top-5 left-5 text-4xl rounded-full cursor-pointer"
@click="() => router.back()" @click="() => router.back()"
> >
<MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" /> <MdiChevronLeft class="text-black group-hover:(text-accent scale-110)" />
@ -127,7 +127,7 @@ const resetError = () => {
</a-form-item> </a-form-item>
<div class="text-center"> <div class="text-center">
<button class="scaling-btn" type="submit"> <button class="scaling-btn bg-opacity-100" type="submit">
<span class="flex items-center gap-2"> <span class="flex items-center gap-2">
<MdiKeyChange /> <MdiKeyChange />
{{ $t('activity.changePwd') }} {{ $t('activity.changePwd') }}

Loading…
Cancel
Save