feat: add versioning system and display in footer (v1.0.1)
This commit is contained in:
@@ -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'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,4 +123,6 @@ return [
|
|||||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'version' => env('APP_VERSION', '1.0.0'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user