mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Version info and clicable links in about section
This commit is contained in:
parent
3a4de02569
commit
6ef8fbefb4
3 changed files with 22 additions and 2 deletions
|
@ -30,12 +30,16 @@ import chat from "./chat.vue";
|
||||||
|
|
||||||
import { stopTransmission } from "../js/sock.js";
|
import { stopTransmission } from "../js/sock.js";
|
||||||
|
|
||||||
|
const version = import.meta.env.PACKAGE_VERSION;
|
||||||
|
|
||||||
function stopAllTransmissions() {
|
function stopAllTransmissions() {
|
||||||
console.log("stopping transmissions");
|
console.log("stopping transmissions");
|
||||||
stopTransmission();
|
stopTransmission();
|
||||||
}
|
}
|
||||||
|
function openWebExternal(url) {
|
||||||
|
open(url);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -358,7 +362,7 @@ function stopAllTransmissions() {
|
||||||
aria-labelledby="list-info-list"
|
aria-labelledby="list-info-list"
|
||||||
>
|
>
|
||||||
<h1 class="modal-title fs-5" id="aboutModalLabel">
|
<h1 class="modal-title fs-5" id="aboutModalLabel">
|
||||||
FreeDATA - <span id="aboutVersion"></span>
|
FreeDATA - {{ version }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
@ -374,6 +378,7 @@ function stopAllTransmissions() {
|
||||||
id="openExplorer"
|
id="openExplorer"
|
||||||
type="button"
|
type="button"
|
||||||
data-bs-placement="bottom"
|
data-bs-placement="bottom"
|
||||||
|
@click="openWebExternal('https://explorer.freedata.app')"
|
||||||
>
|
>
|
||||||
Explorer map
|
Explorer map
|
||||||
</button>
|
</button>
|
||||||
|
@ -384,6 +389,7 @@ function stopAllTransmissions() {
|
||||||
id="btnStats"
|
id="btnStats"
|
||||||
type="button"
|
type="button"
|
||||||
data-bs-placement="bottom"
|
data-bs-placement="bottom"
|
||||||
|
@click="openWebExternal('https://statistics.freedata.app/')"
|
||||||
>
|
>
|
||||||
Statistics
|
Statistics
|
||||||
</button>
|
</button>
|
||||||
|
@ -396,6 +402,7 @@ function stopAllTransmissions() {
|
||||||
data-bs-trigger="hover"
|
data-bs-trigger="hover"
|
||||||
title="FreeDATA website"
|
title="FreeDATA website"
|
||||||
role="button"
|
role="button"
|
||||||
|
@click="openWebExternal('https://freedata.app')"
|
||||||
>
|
>
|
||||||
Website
|
Website
|
||||||
</button>
|
</button>
|
||||||
|
@ -408,6 +415,7 @@ function stopAllTransmissions() {
|
||||||
data-bs-trigger="hover"
|
data-bs-trigger="hover"
|
||||||
title="Github"
|
title="Github"
|
||||||
role="button"
|
role="button"
|
||||||
|
@click="openWebExternal('https://github.com/dj2ls/freedata')"
|
||||||
>
|
>
|
||||||
Github
|
Github
|
||||||
</button>
|
</button>
|
||||||
|
@ -420,6 +428,7 @@ function stopAllTransmissions() {
|
||||||
data-bs-trigger="hover"
|
data-bs-trigger="hover"
|
||||||
title="Wiki"
|
title="Wiki"
|
||||||
role="button"
|
role="button"
|
||||||
|
@click="openWebExternal('https://wiki.freedata.app')"
|
||||||
>
|
>
|
||||||
Wiki
|
Wiki
|
||||||
</button>
|
</button>
|
||||||
|
@ -432,6 +441,7 @@ function stopAllTransmissions() {
|
||||||
data-bs-trigger="hover"
|
data-bs-trigger="hover"
|
||||||
title="Discord"
|
title="Discord"
|
||||||
role="button"
|
role="button"
|
||||||
|
@click="openWebExternal('https://discord.freedata.app')"
|
||||||
>
|
>
|
||||||
Discord
|
Discord
|
||||||
</button>
|
</button>
|
||||||
|
|
7
gui_vue/src/vite-env.d.ts
vendored
7
gui_vue/src/vite-env.d.ts
vendored
|
@ -6,3 +6,10 @@ declare module '*.vue' {
|
||||||
export default component
|
export default component
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ImportMetaEnv {
|
||||||
|
readonly PACKAGE_VERSION: string;
|
||||||
|
// more env variables...
|
||||||
|
}
|
||||||
|
interface ImportMeta {
|
||||||
|
readonly env: ImportMetaEnv
|
||||||
|
}
|
|
@ -80,6 +80,9 @@ export default defineConfig(({ command }) => {
|
||||||
port: +url.port,
|
port: +url.port,
|
||||||
}
|
}
|
||||||
})(),
|
})(),
|
||||||
|
define: {
|
||||||
|
'import.meta.env.PACKAGE_VERSION':JSON.stringify(pkg.version)
|
||||||
|
},
|
||||||
clearScreen: false,
|
clearScreen: false,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue