From 4762d4170d19777e1f24ad09b9746cc5ca8e0564 Mon Sep 17 00:00:00 2001 From: EricHuang-kcislk Date: Mon, 19 Oct 2026 14:09:18 +0800 Subject: [PATCH] fix(web): restore GA4 tracking and add support link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 補回遺失的 Google tag,並加入支援中英文與窄螢幕的 Portaly 支持連結。同步 v2.0.1 版本資訊與更新紀錄。 --- CHANGELOG.md | 8 ++++++++ README.md | 4 ++-- README_EN.md | 4 ++-- components/Footer.tsx | 36 +++++++++++++++++++++++++----------- index.html | 9 +++++++++ package-lock.json | 4 ++-- package.json | 2 +- services/i18n.ts | 2 ++ 8 files changed, 51 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68e8c25..9a13b18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.1] - 2026-10-19 + +### Added +- 頁尾新增 Portaly「支持我」連結,支援中英文與窄螢幕顯示,並在新分頁開啟。 + +### Fixed +- 補回遺失的 Google tag,使用 `G-ZXT99R0JE3` 恢復網站端的 GA4 瀏覽事件送出。 + ## [2.0.0] - 2026-07-29 ### Added diff --git a/README.md b/README.md index 3199d7b..cfc52f8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# MD2DOC-Evolution | v2.0.0 +# MD2DOC-Evolution | v2.0.1 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -[![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/eric861129/MD2DOC-Evolution) +[![Version](https://img.shields.io/badge/version-2.0.1-blue.svg)](https://github.com/eric861129/MD2DOC-Evolution) [![CI](https://github.com/eric861129/MD2DOC-Evolution/actions/workflows/ci.yml/badge.svg)](https://github.com/eric861129/MD2DOC-Evolution/actions/workflows/ci.yml) [中文](README.md) | [English](README_EN.md) diff --git a/README_EN.md b/README_EN.md index 4c17fd6..e0c10ff 100644 --- a/README_EN.md +++ b/README_EN.md @@ -1,7 +1,7 @@ -# MD2DOC-Evolution | v2.0.0 +# MD2DOC-Evolution | v2.0.1 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -[![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/eric861129/MD2DOC-Evolution) +[![Version](https://img.shields.io/badge/version-2.0.1-blue.svg)](https://github.com/eric861129/MD2DOC-Evolution) [![CI](https://github.com/eric861129/MD2DOC-Evolution/actions/workflows/ci.yml/badge.svg)](https://github.com/eric861129/MD2DOC-Evolution/actions/workflows/ci.yml) [中文](README.md) | [English](README_EN.md) diff --git a/components/Footer.tsx b/components/Footer.tsx index 5a6c89e..d7ad0c8 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -5,13 +5,16 @@ */ import React from 'react'; -import { Github } from 'lucide-react'; +import { Github, Heart } from 'lucide-react'; +import { useTranslation } from 'react-i18next'; import { APP_VERSION, GITHUB_URL } from '../constants/meta'; const Footer: React.FC = () => { + const { t } = useTranslation(); + return ( ); diff --git a/index.html b/index.html index 3ef7aa2..5396e42 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,15 @@ + + + diff --git a/package-lock.json b/package-lock.json index eb9c0ce..644e409 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "md2doc-evolution", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "md2doc-evolution", - "version": "2.0.0", + "version": "2.0.1", "dependencies": { "@fontsource/geist": "^5.2.9", "@fontsource/geist-mono": "^5.2.8", diff --git a/package.json b/package.json index 3471b7e..284f02b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "md2doc-evolution", "private": true, - "version": "2.0.0", + "version": "2.0.1", "repository": { "type": "git", "url": "https://github.com/eric861129/MD2DOC-Evolution.git" diff --git a/services/i18n.ts b/services/i18n.ts index 0f25714..317cd13 100644 --- a/services/i18n.ts +++ b/services/i18n.ts @@ -19,6 +19,7 @@ export const resources = { exporting: '轉檔中...', aiPrompt: 'AI 轉稿提示', userGuide: '使用教學', + support: '支持我', reset: '重設範例', resetConfirm: '確定要重設為範例內容嗎?目前草稿會被取代。', switchLangConfirm: '切換語言會載入該語言的範例內容,並清除目前草稿。要繼續嗎?', @@ -123,6 +124,7 @@ export const resources = { exporting: 'Converting...', aiPrompt: 'AI prompt', userGuide: 'User guide', + support: 'Support me', reset: 'Reset example', resetConfirm: 'Reset to the example content? Your current draft will be replaced.', switchLangConfirm: 'Switching language loads the example for that language and clears the current draft. Continue?',