diff --git a/src/main.js b/src/main.js index 8815f9d..f2accff 100644 --- a/src/main.js +++ b/src/main.js @@ -1,12 +1,20 @@ import { createApp } from 'vue' import App from './App.vue' +import SetupApp from './modules/setup/views/Index.vue' import router from '@/router/index.js' import globalComponents from '@/components/globalComponents' import.meta.globEager('@/assets/css/main.css') import.meta.globEager('../config/style/*.{scss,css}') -const app = createApp(App) +const isAPIConfigurationSet = __APP_ENV__.url && __APP_ENV__.project_token +let app -globalComponents.register(app) -app.use(router) -app.mount('#app') +if (isAPIConfigurationSet) { + app = createApp(App) + app.use(router) + globalComponents.register(app) +} else { + app = createApp(SetupApp) +} + +app.mount('#app') \ No newline at end of file diff --git a/src/modules/setup/views/Index.vue b/src/modules/setup/views/Index.vue new file mode 100644 index 0000000..ca966ee --- /dev/null +++ b/src/modules/setup/views/Index.vue @@ -0,0 +1,17 @@ + + + + + Welcome to TaxonPages + + + We're almost there! + If you're seeing this, it's because you haven't configured API access yet. + + + + + + \ No newline at end of file
+ We're almost there! + If you're seeing this, it's because you haven't configured API access yet. +