Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Apr 20, 2023
1 parent 5a58ec1 commit 9bb9bbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 35 deletions.
25 changes: 0 additions & 25 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
/* 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}')
function initTaxonPagesApp() {
const isAPIConfigurationSet = __APP_ENV__.url && __APP_ENV__.project_token
const app = createApp(isAPIConfigurationSet ? App : SetupApp)
if (isAPIConfigurationSet) {
app.use(router)
globalComponents.register(app)
}
return app
}
const app = initTaxonPagesApp()
app.mount('#app')
*/

import.meta.glob('@/assets/css/main.css', { eager: true })
import.meta.glob('../config/style/*.{scss,css}', { eager: true })

Expand Down
21 changes: 11 additions & 10 deletions src/ssr/utils/generateConsoleMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import fs from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

export function generateConsoleMessage ({ url, port }) {
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const resolve = (p) => path.resolve(__dirname, p)
const taxonPagesMark =
fs.readFileSync(resolve('./taxonPagesMark.txt'), 'utf-8')

console.log(taxonPagesMark)
console.log('----------------------------------------------------------')
console.log('Server running at:', `${url}:${port}`)
export function generateConsoleMessage({ url, port }) {
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const resolve = (p) => path.resolve(__dirname, p)
const taxonPagesMark = fs.readFileSync(
resolve('./taxonPagesMark.txt'),
'utf-8'
)

}
console.log(taxonPagesMark)
console.log('----------------------------------------------------------')
console.log('Server running at:', `${url}:${port}`)
}

0 comments on commit 9bb9bbc

Please sign in to comment.