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
|
||||
import pkg from './package.json'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
srcDir: 'nuxt/',
|
||||
|
||||
|
|
@ -76,6 +78,8 @@ export default defineNuxtConfig({
|
|||
apiBase: process.env.API_URL,
|
||||
apiPrefix: '/api/v1',
|
||||
storageBase: `${process.env.API_URL}/storage/`,
|
||||
packageVersion: pkg.version,
|
||||
gitHash: process.env.GIT_HASH,
|
||||
providers: {
|
||||
google: {
|
||||
name: 'Google',
|
||||
|
|
|
|||
|
|
@ -2,9 +2,12 @@
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
<UMain>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</UMain>
|
||||
<Footer />
|
||||
|
||||
<UNotifications />
|
||||
</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",
|
||||
"version": "0.0.4",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"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",
|
||||
"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",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare",
|
||||
|
|
@ -38,4 +39,4 @@
|
|||
"party-js": "^2.2.0",
|
||||
"pusher-js": "8.4.0-rc2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue