-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,538 additions
and
795 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
<script setup lang="ts"> | ||
const config = useRuntimeConfig(); | ||
const repository = config.public.repository; | ||
const { repository, branch, hash, date } = useRuntimeConfig().public; | ||
const branch = config.public.branch; | ||
const branchURL = `${repository}/tree/${branch}`; | ||
const tree = config.public.hash.substring(0, 7); | ||
const treeURL = `${repository}/tree/${config.public.hash}`; | ||
const date = formatDate(new Date(config.public.date)).replaceAll(".", ""); | ||
const tree = hash.substring(0, 7); | ||
const treeURL = `${repository}/tree/${hash}`; | ||
</script> | ||
<template> | ||
<footer class="container-fluid py-1 px-3 d-flex justify-content-between font-monospace"> | ||
<div> | ||
Made with | ||
<a href="https://nuxt.com/" target="_blank"> | ||
<NuxtLink href="https://nuxt.com/" target="_blank"> | ||
Nuxt | ||
</a> | ||
</NuxtLink> | ||
and | ||
<a href="https://pages.github.com/" target="_blank"> | ||
<NuxtLink href="https://pages.github.com/" target="_blank"> | ||
GitHub Pages | ||
</a> | ||
</NuxtLink> | ||
</div> | ||
|
||
<div class="d-none d-md-block"> | ||
Version: | ||
Build: | ||
<a :href="branchURL" target="_blank"> | ||
{{ config.public.branch }} | ||
{{ branch }} | ||
</a> | ||
<span v-if="tree != 'unknown'">@<a :href="treeURL" target="_blank"> {{ tree }} </a></span> | ||
<span>#{{ date }}</span> | ||
<span v-if="tree != 'unknown'">@<NuxtLink :to="treeURL" target="_blank"> {{ tree }} </NuxtLink></span> | ||
<span v-else>#{{ formatDate(new Date(date)).replaceAll(".", "") }}</span> | ||
</div> | ||
</footer> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// @ts-check | ||
import withNuxt from "./.nuxt/eslint.config.mjs"; | ||
|
||
export default withNuxt( | ||
{ | ||
"rules": { | ||
"@typescript-eslint/type-annotation-spacing": "warn", | ||
"quotes": "warn", | ||
"eol-last": "warn", | ||
"semi": "warn", | ||
"no-multiple-empty-lines": [ | ||
"warn", | ||
{ | ||
"max": 1 | ||
} | ||
], | ||
"padding-line-between-statements": [ | ||
"warn", | ||
{ | ||
"blankLine": "always", | ||
"prev": "*", | ||
"next": "function" | ||
} | ||
], | ||
// Conflicts | ||
"vue/multi-word-component-names": "off", | ||
"no-use-before-define": "off", | ||
"space-before-function-paren": "off", | ||
"vue/max-attributes-per-line": "off", | ||
"vue/html-closing-bracket-newline": "off" | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.