Merge pull request 'Use the giteex icon for git.djeex.fr links' (#5) from giteex-icon-and-build-fixes into main
Trigger container build / trigger (push) Successful in 3s
Trigger container build / trigger (push) Successful in 3s
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
commit
8832b98515
10 files changed
+133
-6
No files matched your search
+7
-1
@@ -25,7 +25,7 @@ export default defineAppConfig({
|
|||||||
title: 'Other dumb things',
|
title: 'Other dumb things',
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
icon: 'i-cib-gitea',
|
icon: 'i-brand-giteex',
|
||||||
label: 'git.djeex.fr',
|
label: 'git.djeex.fr',
|
||||||
to: 'https://git.djeex.fr',
|
to: 'https://git.djeex.fr',
|
||||||
target: '_blank',
|
target: '_blank',
|
||||||
@@ -65,6 +65,12 @@ export default defineAppConfig({
|
|||||||
'ini': 'i-lucide-settings',
|
'ini': 'i-lucide-settings',
|
||||||
'conf': 'i-lucide-settings',
|
'conf': 'i-lucide-settings',
|
||||||
'service': 'i-lucide-settings',
|
'service': 'i-lucide-settings',
|
||||||
|
// vscode-icons has no bashrc/credentials file-type icon, so the
|
||||||
|
// default lookup failed at build time.
|
||||||
|
'bashrc': 'i-vscode-icons-file-type-shell',
|
||||||
|
'.bashrc': 'i-vscode-icons-file-type-shell',
|
||||||
|
'credentials': 'i-lucide-settings',
|
||||||
|
'.credentials': 'i-lucide-settings',
|
||||||
// Used as ::code-group tab labels when a command differs per OS.
|
// Used as ::code-group tab labels when a command differs per OS.
|
||||||
'macos': 'i-simple-icons-apple',
|
'macos': 'i-simple-icons-apple',
|
||||||
'linux': 'i-simple-icons-linux',
|
'linux': 'i-simple-icons-linux',
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 999 999">
|
||||||
|
<defs>
|
||||||
|
<style>
|
||||||
|
.cls-1 {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cls-2 {
|
||||||
|
fill: url(#Nouvelle_nuance_de_dégradé_1);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<linearGradient id="Nouvelle_nuance_de_dégradé_1" data-name="Nouvelle nuance de dégradé 1" x1="283.77" y1="508.05" x2="812.03" y2="508.05" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop offset="0" stop-color="#57c3ed"/>
|
||||||
|
<stop offset="1" stop-color="#2072b9" stop-opacity=".8"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<g id="Calque_1-2" data-name="Calque 1">
|
||||||
|
<circle class="cls-1" cx="499.5" cy="499.5" r="499.5"/>
|
||||||
|
</g>
|
||||||
|
<path class="cls-2" d="M706.38,244.33c-58.61,0-105.65,47.05-105.65,105.65,0,38.8,21.46,72.64,52.82,90.8v14.86c0,52.82-52.82,105.65-105.65,105.65-43.75,0-78.42,9.08-105.65,23.94v-250.1c31.36-18.16,52.82-52.01,52.82-90.8,0-58.6-47.05-105.65-105.65-105.65s-105.65,47.05-105.65,105.65c0,38.79,21.46,72.64,52.82,90.8v345.84c-31.36,18.16-52.82,52.01-52.82,90.8,0,58.6,47.04,105.65,105.65,105.65s105.65-47.05,105.65-105.65c0-28.06-10.73-52.83-28.06-71.81,15.68-18.99,40.44-33.84,80.89-33.84,105.65,0,211.3-105.66,211.3-211.31v-14.86c31.37-18.16,52.83-52,52.83-90.79,0-58.61-47.05-105.66-105.65-105.66V244.33ZM389.42,191.5c28.89,0,52.83,23.94,52.83,52.83s-23.94,52.83-52.83,52.83-52.83-23.94-52.83-52.83S360.53,191.5,389.42,191.5ZM389.42,825.42c-28.89,0-52.83-23.94-52.83-52.83s23.94-52.82,52.83-52.82,52.83,23.94,52.83,52.82S418.31,825.42,389.42,825.42ZM706.38,402.81c-28.89,0-52.83-23.94-52.83-52.83s23.94-52.82,52.83-52.82,52.82,23.93,52.82,52.82S735.27,402.81,706.38,402.81Z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,56 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const appConfig = useAppConfig()
|
||||||
|
const { forced: forcedColorMode } = useDocusColorMode()
|
||||||
|
|
||||||
|
interface FooterLink {
|
||||||
|
'icon': string
|
||||||
|
'to': string
|
||||||
|
'target': '_blank'
|
||||||
|
'aria-label': string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Override of Docus's AppFooterRight: it builds `i-simple-icons-<key>` from
|
||||||
|
// `socials`, which would show the Gitea logo for git.djeex.fr. Keys listed
|
||||||
|
// here use our own icon instead.
|
||||||
|
const socialIcons: Record<string, string> = {
|
||||||
|
gitea: 'i-brand-giteex',
|
||||||
|
}
|
||||||
|
|
||||||
|
const links = computed<FooterLink[]>(() => {
|
||||||
|
const socialLinks = Object.entries(appConfig.socials || {}).flatMap(([key, url]) => {
|
||||||
|
if (typeof url !== 'string' || !url) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
|
return [{
|
||||||
|
'icon': socialIcons[key] ?? `i-simple-icons-${key}`,
|
||||||
|
'to': url,
|
||||||
|
'target': '_blank' as const,
|
||||||
|
'aria-label': `${key} social link`,
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
|
const githubLink = appConfig.github && appConfig.github.url
|
||||||
|
? [{
|
||||||
|
'icon': 'i-simple-icons-github',
|
||||||
|
'to': appConfig.github.url,
|
||||||
|
'target': '_blank' as const,
|
||||||
|
'aria-label': 'GitHub repository',
|
||||||
|
}]
|
||||||
|
: []
|
||||||
|
|
||||||
|
return [...socialLinks, ...githubLink]
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<template v-if="links.length">
|
||||||
|
<UButton
|
||||||
|
v-for="(link, index) of links"
|
||||||
|
:key="index"
|
||||||
|
size="sm"
|
||||||
|
v-bind="{ color: 'neutral', variant: 'ghost', ...link }"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<UColorModeButton v-if="!forcedColorMode" />
|
||||||
|
</template>
|
||||||
@@ -10,7 +10,7 @@ const links = computed(() => {
|
|||||||
const list = []
|
const list = []
|
||||||
if (appConfig.socials?.gitea) {
|
if (appConfig.socials?.gitea) {
|
||||||
list.push({
|
list.push({
|
||||||
'icon': 'i-simple-icons-gitea',
|
'icon': 'i-brand-giteex',
|
||||||
'to': appConfig.socials.gitea,
|
'to': appConfig.socials.gitea,
|
||||||
'target': '_blank',
|
'target': '_blank',
|
||||||
'aria-label': 'Gitea',
|
'aria-label': 'Gitea',
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
// Override of Docus's AppHeaderLogo. The stock one renders UColorModeImage,
|
||||||
|
// which goes through NuxtImg/IPX: the prerendered /_ipx/_/img/logo.svg gets
|
||||||
|
// recorded as `text/plain` (and the same for the SVG's own response in
|
||||||
|
// `nuxt preview`), so browsers refuse to draw it inside an <img>. An SVG has
|
||||||
|
// nothing to optimize anyway, so plain <img> tags point straight at it.
|
||||||
|
const appConfig = useAppConfig()
|
||||||
|
const { hasLogo, headerLightUrl, headerDarkUrl, contextMenuItems } = useLogoAssets()
|
||||||
|
const alt = computed(() => appConfig.header?.logo?.alt || appConfig.header?.title)
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<UContextMenu
|
||||||
|
v-if="hasLogo"
|
||||||
|
:items="contextMenuItems"
|
||||||
|
>
|
||||||
|
<span class="contents">
|
||||||
|
<img
|
||||||
|
:src="headerLightUrl"
|
||||||
|
:alt="alt"
|
||||||
|
:class="['dark:hidden h-6 w-auto shrink-0', appConfig.header?.logo?.class]"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
:src="headerDarkUrl"
|
||||||
|
:alt="alt"
|
||||||
|
:class="['hidden dark:block h-6 w-auto shrink-0', appConfig.header?.logo?.class]"
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</UContextMenu>
|
||||||
|
<span v-else>
|
||||||
|
{{ appConfig.header?.title || '{appConfig.header.title}' }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
@@ -44,7 +44,7 @@ That’s how **Lum[eex]{style="color: #1ad6ff"}** was born.
|
|||||||
Check out the doc
|
Check out the doc
|
||||||
::
|
::
|
||||||
|
|
||||||
::card{icon="i-simple-icons-gitea" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
::card{icon="i-brand-giteex" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
||||||
See the repo
|
See the repo
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ Set up my homelab →
|
|||||||
|
|
||||||
:::::card
|
:::::card
|
||||||
---
|
---
|
||||||
icon: i-cib-gitea
|
icon: i-brand-giteex
|
||||||
title: git.djeex.fr
|
title: git.djeex.fr
|
||||||
to: https://git.djeex.fr
|
to: https://git.djeex.fr
|
||||||
target: _blank
|
target: _blank
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ C'est ainsi qu'est né **Lum[eex]{style="color: #1ad6ff"}**.
|
|||||||
Accéder à la doc
|
Accéder à la doc
|
||||||
::
|
::
|
||||||
|
|
||||||
::card{icon="i-simple-icons-gitea" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
::card{icon="i-brand-giteex" title="Repository" to="https://git.djeex.fr/Djeex/lumeex" target="_blank"}
|
||||||
Voir le repo
|
Voir le repo
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ Démarrer mon homelab →
|
|||||||
|
|
||||||
:::::card
|
:::::card
|
||||||
---
|
---
|
||||||
icon: i-cib-gitea
|
icon: i-brand-giteex
|
||||||
title: git.djeex.fr
|
title: git.djeex.fr
|
||||||
to: https://git.djeex.fr
|
to: https://git.djeex.fr
|
||||||
target: _blank
|
target: _blank
|
||||||
|
|||||||
@@ -251,6 +251,16 @@ export default defineNuxtConfig({
|
|||||||
'simple-icons:apple',
|
'simple-icons:apple',
|
||||||
'simple-icons:linux',
|
'simple-icons:linux',
|
||||||
'simple-icons:windows',
|
'simple-icons:windows',
|
||||||
|
// vscode-icons file-type icons Docus resolves from code block
|
||||||
|
// filenames (e.g. ```yaml [compose.yaml]). Resolved dynamically, so
|
||||||
|
// the scanners can't see them, and the prerender-time lookup timed
|
||||||
|
// out under load (1500ms) for every one of them.
|
||||||
|
'vscode-icons:file-type-yaml',
|
||||||
|
'vscode-icons:file-type-dotenv',
|
||||||
|
'vscode-icons:file-type-php',
|
||||||
|
'vscode-icons:file-type-toml',
|
||||||
|
'vscode-icons:file-type-sqlite',
|
||||||
|
'vscode-icons:file-type-shell',
|
||||||
...contentIcons.icons,
|
...contentIcons.icons,
|
||||||
])],
|
])],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user