Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d63b02fc4e | ||
| 7ed9382e73 | |||
| 539cbdd2f1 |
@@ -1,3 +1,10 @@
|
||||
# [1.2.0](https://gitea.malio.fr/MALIO-DEV/Supervisor/compare/v1.1.0...v1.2.0) (2026-03-10)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* show git tag version ([539cbdd](https://gitea.malio.fr/MALIO-DEV/Supervisor/commit/539cbdd2f1fa73eddab8adb6e2cc0683e6c424aa))
|
||||
|
||||
# [1.1.0](https://gitea.malio.fr/MALIO-DEV/Supervisor/compare/v1.0.0...v1.1.0) (2026-03-10)
|
||||
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<div class="sidebar-divider" />
|
||||
<div class="footer-row">
|
||||
<p class="font-mono text-[10px] tracking-widest uppercase text-white/40">
|
||||
Supervisor v1.0
|
||||
Supervisor {{ appVersion }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -123,7 +123,7 @@
|
||||
</div>
|
||||
<div class="footer-row">
|
||||
<p class="font-mono text-[10px] tracking-widest uppercase text-white/40">
|
||||
Supervisor v1.0
|
||||
Supervisor {{ appVersion }}
|
||||
</p>
|
||||
<button class="close-button" type="button" @click="isMenuOpen = false">
|
||||
<IconifyIcon icon="mdi:close" class="text-xl" />
|
||||
@@ -143,6 +143,9 @@ import { ref } from "vue"
|
||||
import { Icon as IconifyIcon } from "@iconify/vue"
|
||||
import logoSrc from '~/assets/LOGO_CARRE_BLANC.png'
|
||||
|
||||
const {
|
||||
public: { appVersion }
|
||||
} = useRuntimeConfig()
|
||||
const isMenuOpen = ref(false)
|
||||
const navItems = [
|
||||
{
|
||||
|
||||
@@ -1,10 +1,32 @@
|
||||
import { execSync } from "node:child_process"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
|
||||
const getRepoVersion = () => {
|
||||
try {
|
||||
const tags = execSync(
|
||||
"git for-each-ref --sort=-version:refname --format='%(refname:short)' refs/tags",
|
||||
{ encoding: "utf8" }
|
||||
)
|
||||
.split("\n")
|
||||
.map((tag) => tag.trim())
|
||||
.filter(Boolean)
|
||||
|
||||
return tags[0] || "dev"
|
||||
} catch {
|
||||
return "dev"
|
||||
}
|
||||
}
|
||||
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
compatibilityDate: "2025-07-15",
|
||||
devtools: { enabled: true },
|
||||
css: ["~/assets/css/main.css"],
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
appVersion: getRepoVersion()
|
||||
}
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user