feat: Added Footer
continuous-integration/drone/push Build is passing Details

main
Flycro 2024-03-23 22:26:05 +01:00
parent 3e58347acb
commit 041232bcae
4 changed files with 38 additions and 6 deletions

View File

@ -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',

View File

@ -2,9 +2,12 @@
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UMain>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</UMain>
<Footer />
<UNotifications />
</template>

View File

@ -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>

View File

@ -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"
}
}
}