feat: 完成 v0.6.0 墨呈品牌迁移
This commit is contained in:
@@ -44,6 +44,10 @@ import {
|
||||
type PdfExportRequest
|
||||
} from "./pdf-export";
|
||||
import { APP_VERSION_LABEL } from "./app-version";
|
||||
import {
|
||||
APP_DISPLAY_NAME,
|
||||
APP_SLOGAN
|
||||
} from "./app-brand";
|
||||
import { getSyncedScrollTop } from "./scroll-sync";
|
||||
import {
|
||||
loadPreviewZoom,
|
||||
@@ -1487,9 +1491,9 @@ export function App() {
|
||||
<header className="topbar">
|
||||
<div className="topbar-primary">
|
||||
<div className="topbar-brand">
|
||||
<p className="eyebrow">内网文档工具</p>
|
||||
<p className="eyebrow">{APP_SLOGAN}</p>
|
||||
<div className="topbar-brand-title">
|
||||
<h1>Markdown PDF 导出器</h1>
|
||||
<h1>{APP_DISPLAY_NAME}</h1>
|
||||
<span className="app-version">{APP_VERSION_LABEL}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export const APP_DISPLAY_NAME = __APP_DISPLAY_NAME__;
|
||||
export const APP_WINDOW_TITLE = __APP_WINDOW_TITLE__;
|
||||
export const APP_SLOGAN = __APP_SLOGAN__;
|
||||
export const APP_DESCRIPTION = __APP_DESCRIPTION__;
|
||||
@@ -1,8 +1,12 @@
|
||||
import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { App } from "./App";
|
||||
import { APP_WINDOW_TITLE } from "./app-brand";
|
||||
import { APP_VERSION_LABEL } from "./app-version";
|
||||
import "./styles.css";
|
||||
|
||||
document.title = `${APP_WINDOW_TITLE} ${APP_VERSION_LABEL}`;
|
||||
|
||||
const rootElement = document.getElementById("root");
|
||||
|
||||
if (!rootElement) {
|
||||
|
||||
Vendored
+4
@@ -16,6 +16,10 @@ import type {
|
||||
|
||||
declare global {
|
||||
const __APP_VERSION__: string;
|
||||
const __APP_DISPLAY_NAME__: string;
|
||||
const __APP_WINDOW_TITLE__: string;
|
||||
const __APP_SLOGAN__: string;
|
||||
const __APP_DESCRIPTION__: string;
|
||||
|
||||
interface DesktopPdfResult {
|
||||
pdf: Uint8Array;
|
||||
|
||||
Reference in New Issue
Block a user