Browse Source

feat: add env to disable splashscreen and screensaver

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/948/head
Pranav C 3 years ago
parent
commit
ae749691f2
  1. 2
      packages/nc-gui/components/projectTabs.vue
  2. 2
      packages/nc-gui/pages/index.vue
  3. 3
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

2
packages/nc-gui/components/projectTabs.vue

@ -253,7 +253,7 @@
@create="$emit('tableCreate',$event); dialogCreateTableShow =false;" @create="$emit('tableCreate',$event); dialogCreateTableShow =false;"
/> />
<screensaver v-if="showScreensaver" class="screensaver" /> <screensaver v-if="showScreensaver && !($store.state.project.projectInfo && $store.state.project.projectInfo.ncMin)" class="screensaver" />
</v-container> </v-container>
</template> </template>

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

@ -5,7 +5,7 @@
align="center" align="center"
justify="center" justify="center"
> >
<template v-if="typed && moved"> <template v-if="typed && moved || $store.state.project.projectInfo && $store.state.project.projectInfo.ncMin">
<v-col <v-col
cols="12" cols="12"
sm="12" sm="12"

3
packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

@ -304,7 +304,8 @@ export default class NcMetaMgr {
), ),
+process.env.DB_QUERY_LIMIT_MIN || 1 +process.env.DB_QUERY_LIMIT_MIN || 1
), ),
timezone: defaultConnectionConfig.timezone timezone: defaultConnectionConfig.timezone,
ncMin: !!process.env.NC_MIN
}; };
return res.json(result); return res.json(result);
} }

Loading…
Cancel
Save