generated from Flycro/laravel-nuxt
feat: Added Footer
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
3e58347acb
commit
041232bcae
|
|
@ -1,4 +1,6 @@
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
|
import pkg from './package.json'
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
srcDir: 'nuxt/',
|
srcDir: 'nuxt/',
|
||||||
|
|
||||||
|
|
@ -76,6 +78,8 @@ export default defineNuxtConfig({
|
||||||
apiBase: process.env.API_URL,
|
apiBase: process.env.API_URL,
|
||||||
apiPrefix: '/api/v1',
|
apiPrefix: '/api/v1',
|
||||||
storageBase: `${process.env.API_URL}/storage/`,
|
storageBase: `${process.env.API_URL}/storage/`,
|
||||||
|
packageVersion: pkg.version,
|
||||||
|
gitHash: process.env.GIT_HASH,
|
||||||
providers: {
|
providers: {
|
||||||
google: {
|
google: {
|
||||||
name: 'Google',
|
name: 'Google',
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,12 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<UMain>
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
|
</UMain>
|
||||||
|
<Footer />
|
||||||
|
|
||||||
<UNotifications />
|
<UNotifications />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
const config = useRuntimeConfig()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<UDivider />
|
||||||
|
<UFooter c>
|
||||||
|
<template #left>
|
||||||
|
<div class="text-xs">
|
||||||
|
Copyright © {{ new Date().getFullYear() }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #center>
|
||||||
|
Made with ❤️ by <a class="text-primary hover:text-primary-600 ml-1" href="https://flycro.me" target="_blank">Flycro</a>
|
||||||
|
</template>
|
||||||
|
<template #right>
|
||||||
|
<div class="font-mono text-xs">
|
||||||
|
{{ config.public.packageVersion }} - {{ config.public.gitHash }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</UFooter>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "laravel-nuxt",
|
"name": "laravel-nuxt",
|
||||||
|
"version": "0.0.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "cross-env PORT=3000 HOST=127.0.0.1 node .output/server/index.mjs",
|
"serve": "cross-env PORT=3000 HOST=127.0.0.1 node .output/server/index.mjs",
|
||||||
"build": "nuxi cleanup && nuxi build",
|
"build": "GIT_HASH=`git rev-parse --short HEAD` nuxi cleanup && nuxi build",
|
||||||
"cleanup": "nuxi cleanup",
|
"cleanup": "nuxi cleanup",
|
||||||
"dev": "nuxt dev --port=3000 --host=127.0.0.1",
|
"dev": "GIT_HASH=`git rev-parse --short HEAD` nuxt dev --port=3000 --host=127.0.0.1",
|
||||||
"generate": "nuxt generate",
|
"generate": "nuxt generate",
|
||||||
"preview": "nuxt preview",
|
"preview": "nuxt preview",
|
||||||
"postinstall": "nuxt prepare",
|
"postinstall": "nuxt prepare",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue