problem: nostrocket version information does not show current commit hash and number of commits

resolve https://github.com/nostrocket/hypergolic/issues/106
This commit is contained in:
Bob
2024-08-19 16:01:44 +08:00
parent afe606dcfa
commit 482dfc235c
4 changed files with 66 additions and 53 deletions

View File

@@ -4,16 +4,8 @@
import { Badge } from '@/components/ui/badge';
import Separator from '@/components/ui/separator/separator.svelte';
import { currentUser, devmode } from '@/stores/session';
import {
Code,
GitBranch,
HelpCircle,
Mail,
Package,
Pyramid,
Rocket,
Users
} from 'lucide-svelte';
import { commitInfo } from '@/stores/github';
import { Code, HelpCircle, Mail, Package, Pyramid, Rocket } from 'lucide-svelte';
import { GitAltBrand, TelegramBrand } from 'svelte-awesome-icons';
import NotifyMe from './NotifyMe.svelte';
@@ -85,6 +77,8 @@
{#if $devmode}
<span class="m-2 flex flex-col border border-orange-500 p-1 font-mono text-sm">
<span class="text-center">RELEASE NAME:</span>
<span class=" text-nowrap text-center italic">shippable intermediary</span></span
>
<span class=" text-nowrap text-center italic">shippable intermediary</span>
<span class=" max-w-[200px] truncate text-nowrap">Commit: {$commitInfo.hash}</span>
<span class=" text-nowrap">Height: {$commitInfo.count}</span>
</span>
{/if}