Browse Source

refactor(nc-gui): move Powered by into separate component

pull/3669/head
braks 2 years ago committed by Raju Udava
parent
commit
e733be1a5c
  1. 17
      packages/nc-gui/components/general/PoweredBy.vue
  2. 12
      packages/nc-gui/pages/[projectType]/form/[viewId]/index.vue

17
packages/nc-gui/components/general/PoweredBy.vue

@ -0,0 +1,17 @@
<script lang="ts" setup>
import { openLink } from '#imports'
</script>
<template>
<button
type="button"
class="cursor-pointer self-end text-xs text-gray-400 hover:text-primary mx-auto my-4 flex justify-center gap-2 items-center"
@click="openLink('https://github.com/nocodb/nocodb')"
>
<span class="bg-primary bg-opacity-100 rounded">
<img width="32" height="32" alt="NocoDB" src="~/assets/img/icons/512x512-trans.png" />
</span>
Powered by NocoDB
</button>
</template>

12
packages/nc-gui/pages/[projectType]/form/[viewId]/index.vue

@ -27,17 +27,7 @@ watch(
<div class="nc-form-view relative md:bg-primary bg-opacity-5 h-full min-h-[600px] flex flex-col justify-center items-center nc-form-signin"> <div class="nc-form-view relative md:bg-primary bg-opacity-5 h-full min-h-[600px] flex flex-col justify-center items-center nc-form-signin">
<NuxtPage /> <NuxtPage />
<button <GeneralPoweredBy />
type="button"
class="cursor-pointer self-end text-xs text-gray-400 hover:text-primary mx-auto my-4 flex justify-center gap-2 items-center"
@click="openLink('https://github.com/nocodb/nocodb')"
>
<span class="bg-primary bg-opacity-100 rounded">
<img width="32" height="32" alt="NocoDB" src="~/assets/img/icons/512x512-trans.png" />
</span>
Powered by NocoDB
</button>
<a-modal <a-modal
v-model:visible="passwordDlg" v-model:visible="passwordDlg"

Loading…
Cancel
Save