diff --git a/webapp/src/components/FirmwareInfo.vue b/webapp/src/components/FirmwareInfo.vue index a0ae8dee..ca16857b 100644 --- a/webapp/src/components/FirmwareInfo.vue +++ b/webapp/src/components/FirmwareInfo.vue @@ -22,13 +22,16 @@ Firmware Version / Git Hash {{ systemStatus.git_hash?.substring(1) }} + target="_blank" v-tooltip title="Click here to show information about your current version">{{ + systemStatus.git_hash?.substring(1) + }} Firmware Update - {{ - systemStatus.update_text }} + {{ + systemStatus.update_text + }} Reset Reason CPU 0 diff --git a/webapp/src/main.ts b/webapp/src/main.ts index ecdbf724..154ee27d 100644 --- a/webapp/src/main.ts +++ b/webapp/src/main.ts @@ -2,6 +2,7 @@ import { createApp } from 'vue' import App from './App.vue' import router from './router' import mitt from 'mitt'; +import { tooltip } from './plugins/bootstrap' import './scss/styles.scss' import "bootstrap" @@ -11,6 +12,8 @@ const app = createApp(App) const emitter = mitt(); app.config.globalProperties.$emitter = emitter; +app.directive('tooltip', tooltip) + app.use(router) app.mount('#app') diff --git a/webapp/src/plugins/bootstrap.ts b/webapp/src/plugins/bootstrap.ts new file mode 100644 index 00000000..2e7f34a3 --- /dev/null +++ b/webapp/src/plugins/bootstrap.ts @@ -0,0 +1,7 @@ +import { Tooltip } from 'bootstrap' + +export const tooltip = { + mounted(el: HTMLElement) { + const tooltip = new Tooltip(el) + } +} \ No newline at end of file diff --git a/webapp/src/views/DtuAdminView.vue b/webapp/src/views/DtuAdminView.vue index 802def3c..2ad263fa 100644 --- a/webapp/src/views/DtuAdminView.vue +++ b/webapp/src/views/DtuAdminView.vue @@ -9,7 +9,12 @@
DTU Configuration
- +
@@ -29,7 +34,10 @@
- +
- + class="form-control" /> + + class="form-control" maxlength="31" />
- +
- +
- +
- - Wp* + Wp*
-
*) Input the Wp of the channel to +
*) Enter the Wp of the channel to calculate irradiation.
@@ -146,7 +158,8 @@ import { defineComponent } from 'vue'; import BasePage from '@/components/BasePage.vue'; import { BIconTrash, - BIconPencil + BIconPencil, + BIconInfoCircle, } from 'bootstrap-icons-vue'; import * as bootstrap from 'bootstrap'; import BootstrapAlert from "@/components/BootstrapAlert.vue"; @@ -177,6 +190,7 @@ export default defineComponent({ BootstrapAlert, BIconTrash, BIconPencil, + BIconInfoCircle, }, data() { return { diff --git a/webapp/src/views/NtpAdminView.vue b/webapp/src/views/NtpAdminView.vue index dbb10435..f7148326 100644 --- a/webapp/src/views/NtpAdminView.vue +++ b/webapp/src/views/NtpAdminView.vue @@ -9,7 +9,10 @@
NTP Configuration
- +
@@ -78,11 +81,15 @@ import BasePage from '@/components/BasePage.vue'; import BootstrapAlert from "@/components/BootstrapAlert.vue"; import { handleResponse, authHeader } from '@/utils/authentication'; import type { NtpConfig } from "@/types/NtpConfig"; +import { + BIconInfoCircle, +} from 'bootstrap-icons-vue'; export default defineComponent({ components: { BasePage, BootstrapAlert, + BIconInfoCircle, }, data() { return {