Skip to content

Commit

Permalink
Add setup module
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Sep 11, 2022
1 parent 99f93c0 commit baf36ed
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -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')
17 changes: 17 additions & 0 deletions src/modules/setup/views/Index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<div class="mx-auto">
<div class="container mx-auto flex flex-col items-center h-screen justify-center">
<h1 class="text-4xl font-medium">
Welcome to TaxonPages
</h1>
<p class="text-xl p-4">
We're almost there!
If you're seeing this, it's because you haven't configured API access yet.
</p>
</div>
</div>
</template>

<script setup>
</script>

0 comments on commit baf36ed

Please sign in to comment.