I firmly believe in free software. The application I'm making here have capabilities that I've not seen in any system. It presents itself as an opportunity to collaborate on a tool that serves the people rather than corporations. Whose incentives are to help people rather, not make the most money. And whose terms ensure that these freedoms and incentives cannot be taken back or subverted. I license this software under the AGPL.
58 lines
1.4 KiB
Vue
58 lines
1.4 KiB
Vue
<!--
|
|
SPDX-FileCopyrightText: © 2025 Hornwitser <code@hornwitser.no>
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
-->
|
|
<template>
|
|
<main>
|
|
<h1>
|
|
Build Info
|
|
</h1>
|
|
<dl>
|
|
<dt>Builder:</dt><dd>{{ builder }}</dd>
|
|
<dt>Git Ref:</dt><dd>{{ gitRef }}</dd>
|
|
<dt>Git Commit:</dt><dd>{{ gitCommit }}</dd>
|
|
<dt>App mode:</dt><dd>{{ appMode }}</dd>
|
|
<dt>Base URL:</dt><dd>{{ baseUrl }}</dd>
|
|
<dt>NODE_ENV:</dt><dd>{{ nodeEnv }}</dd>
|
|
<dt>Server Side:</dt><dd data-allow-mismatch="text">{{ serverSide }}</dd>
|
|
<dt>Dev server:</dt><dd>{{ devServer }}</dd>
|
|
<dt>Prerender:</dt><dd data-allow-mismatch="text">{{ prerender }}</dd>
|
|
</dl>
|
|
</main>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { BUILDER, GIT_REF, GIT_SHA } from '~/shared/utils/build-info';
|
|
|
|
useHead({
|
|
title: "Build Info",
|
|
});
|
|
|
|
// App specific
|
|
const builder = BUILDER;
|
|
const gitRef = GIT_REF;
|
|
const gitCommit = GIT_SHA;
|
|
|
|
// Vite specific
|
|
const appMode = import.meta.env.MODE;
|
|
const baseUrl = import.meta.env.BASE_URL;
|
|
const prod = import.meta.env.PROD;
|
|
const dev = import.meta.env.DEV;
|
|
const nodeEnv = prod ? "production" : dev ? "development" : "unknown";
|
|
const serverSide = import.meta.env.SSR;
|
|
|
|
// Nuxt Specific
|
|
const devServer = import.meta.dev;
|
|
const prerender = import.meta.prerender;
|
|
</script>
|
|
|
|
<style scoped>
|
|
dl {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
column-gap: 0.5em;
|
|
}
|
|
dd {
|
|
white-space: pre-wrap;
|
|
}
|
|
</style>
|