feat: add versioning system and display in footer (v1.0.1)

This commit is contained in:
jeremy bayse
2026-03-29 11:52:08 +02:00
parent 38fe4a22d6
commit d0ecfa3e96
4 changed files with 10 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ class HandleInertiaRequests extends Middleware
'error' => $request->session()->get('error'), 'error' => $request->session()->get('error'),
], ],
'app_env' => config('app.env'), 'app_env' => config('app.env'),
'app_version' => config('app.version'),
]; ];
} }
} }

View File

@@ -123,4 +123,6 @@ return [
'store' => env('APP_MAINTENANCE_STORE', 'database'), 'store' => env('APP_MAINTENANCE_STORE', 'database'),
], ],
'version' => env('APP_VERSION', '1.0.0'),
]; ];

View File

@@ -115,6 +115,9 @@ const isSidebarOpen = ref(true);
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5l7 7-7 7M5 5l7 7-7 7" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5l7 7-7 7M5 5l7 7-7 7" />
</svg> </svg>
</button> </button>
<div v-if="isSidebarOpen" class="mt-4 text-[10px] text-slate-400 text-center font-mono">
v{{ $page.props.app_version }}
</div>
</div> </div>
</aside> </aside>

View File

@@ -195,6 +195,10 @@ const showingNavigationDropdown = ref(false);
<main> <main>
<slot /> <slot />
</main> </main>
<footer class="pb-8 pt-4 text-center">
<span class="text-[10px] text-gray-400 font-mono">v{{ $page.props.app_version }}</span>
</footer>
</div> </div>
</div> </div>
</template> </template>