AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix: use release published time in system info
tianma-if7f830403bb5c
diff --git a/.github/workflows/deploy-demo-on-release.yml b/.github/workflows/deploy-demo-on-release.ymlindex ba84c57d..6131f9cb 100644--- a/.github/workflows/deploy-demo-on-release.yml+++ b/.github/workflows/deploy-demo-on-release.yml@@ -50,6 +50,16 @@ jobs:- name: Install dependenciesrun: bun install --frozen-lockfile+ - name: Resolve Release metadata+ env:+ GH_TOKEN: ${{ github.token }}+ RELEASE_PUBLISHED_AT: ${{ github.event.release.published_at || '' }}+ run: |+ if [ -z "${RELEASE_PUBLISHED_AT}" ]; then+ RELEASE_PUBLISHED_AT="$(gh api repos/tianma-if/edgeever/releases/latest --jq '.published_at')"+ fi+ echo "EDGE_EVER_RELEASED_AT=${RELEASE_PUBLISHED_AT}" >> "${GITHUB_ENV}"+- name: Deploy Demo Workerrun: bun run deploydiff --git a/apps/web/build-metadata.ts b/apps/web/build-metadata.tsindex e2c790f5..9839411e 100644--- a/apps/web/build-metadata.ts+++ b/apps/web/build-metadata.ts@@ -12,3 +12,5 @@ export const resolveAppVersion = (packageVersion: string, gitDescription: string? releaseVersion: `${releaseVersion}+${commitsSinceRelease}`;};++export const resolveReleaseTimestamp = (releaseTimestamp: string | undefined) => releaseTimestamp?.trim() ?? "";diff --git a/apps/web/src/components/settings/SystemInfoCard.tsx b/apps/web/src/components/settings/SystemInfoCard.tsxindex 29a7e4d1..74246142 100644--- a/apps/web/src/components/settings/SystemInfoCard.tsx+++ b/apps/web/src/components/settings/SystemInfoCard.tsx@@ -65,6 +65,12 @@ export const getWebSystemInfoItems = (return [{ label: t("systemInfo.version"), value: `v${__EDGEEVER_APP_VERSION__}` },+ {+ label: t("systemInfo.releaseTime"),+ value: __EDGEEVER_RELEASED_AT__+ ? new Intl.DateTimeFormat(language, { dateStyle: "medium", timeStyle: "short" }).format(new Date(__EDGEEVER_RELEASED_AT__))+ : t("systemInfo.unknown"),+ },{ label: t("systemInfo.build"), value: __EDGEEVER_BUILD_LABEL__ },{label: t("systemInfo.browser"),diff --git a/apps/web/src/vite-env.d.ts b/apps/web/src/vite-env.d.tsindex 650a5acf..7647bd09 100644--- a/apps/web/src/vite-env.d.ts+++ b/apps/web/src/vite-env.d.ts@@ -4,3 +4,4 @@declare const __EDGEEVER_BUILD_ID__: string;declare const __EDGEEVER_BUILD_LABEL__: string;declare const __EDGEEVER_APP_VERSION__: string;+declare const __EDGEEVER_RELEASED_AT__: string;diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.tsindex 06332be8..fedadcf7 100644--- a/apps/web/vite.config.ts+++ b/apps/web/vite.config.ts@@ -4,7 +4,7 @@ import { readFileSync } from "node:fs";import { fileURLToPath, URL } from "node:url";import { defineConfig } from "vite";import { VitePWA } from "vite-plugin-pwa";-import { resolveAppVersion } from "./build-metadata";+import { resolveAppVersion, resolveReleaseTimestamp } from "./build-metadata";const readPackageVersion = () => {try {@@ -39,7 +39,9 @@ const buildId = process.env.WORKERS_CI_COMMIT_SHA?.slice(0, 12)?? process.env.GITHUB_SHA?.slice(0, 12)?? readGitCommit()?? "local";-const appVersion = resolveAppVersion(readPackageVersion(), readGitDescription());+const gitDescription = readGitDescription();+const appVersion = resolveAppVersion(readPackageVersion(), gitDescription);+const releaseTimestamp = resolveReleaseTimestamp(process.env.EDGE_EVER_RELEASED_AT);export default defineConfig({root: "apps/web",@@ -47,6 +49,7 @@ export default defineConfig({__EDGEEVER_APP_VERSION__: JSON.stringify(appVersion),__EDGEEVER_BUILD_ID__: JSON.stringify(buildId),__EDGEEVER_BUILD_LABEL__: JSON.stringify(buildId === "local" ? "local" : buildId.slice(0, 7)),+ __EDGEEVER_RELEASED_AT__: JSON.stringify(releaseTimestamp),},plugins: [react(),diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 1986ea19..5c6bc979 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -194,6 +194,7 @@ export const enUS = {title: "System info",description: "View the current app version, build identifier, and runtime environment.",version: "Version",+ releaseTime: "Release time",build: "Build",browser: "Browser",os: "System",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 48505ac7..a50983df 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -194,6 +194,7 @@ export const zhCN = {title: "系统信息",description: "查看当前应用版本、构建标识和运行环境。",version: "版本号",+ releaseTime: "发版时间",build: "构建",browser: "浏览器",os: "系统",