From 644173d2d9590bf527d520ee3260e02bd107a3e8 Mon Sep 17 00:00:00 2001
From: Rylan <1217013295@qq.com>
Date: Fri, 12 Jul 2024 13:48:03 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20support=20nested=20italic?=
=?UTF-8?q?=20/=20bold=20/=20link=20text?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/layout/SettingEditor.tsx | 4 +-
src/components/templates/ExperienceList.tsx | 8 +-
src/components/templates/ProfileList.tsx | 219 ++++++++++----------
src/components/toolkit/EditableText.tsx | 18 +-
src/data/en/experience.ts | 198 +++++++++---------
src/data/en/profile.ts | 63 +++---
src/data/style.ts | 28 +--
src/data/zh/experience.ts | 196 +++++++++---------
src/data/zh/profile.ts | 77 +++----
src/helpers/CommonUtils.ts | 10 +
src/helpers/IconParser.ts | 95 ---------
src/helpers/TextParser.ts | 105 +++-------
src/pages/Dashboard.tsx | 2 +-
src/types/profile.d.ts | 27 +--
14 files changed, 451 insertions(+), 599 deletions(-)
create mode 100644 src/helpers/CommonUtils.ts
delete mode 100644 src/helpers/IconParser.ts
diff --git a/src/components/layout/SettingEditor.tsx b/src/components/layout/SettingEditor.tsx
index 71dca1c..ccf9c68 100644
--- a/src/components/layout/SettingEditor.tsx
+++ b/src/components/layout/SettingEditor.tsx
@@ -4,7 +4,7 @@ import { BsImageFill } from "react-icons/bs";
import { RiSave3Fill } from "react-icons/ri";
import { TbLocationCancel } from "react-icons/tb";
-import { formatTitle } from "@/helpers/TextParser";
+import { formatTitle } from "@/helpers/CommonUtils";
import { StyleData } from "@/types/style";
@@ -69,7 +69,7 @@ const SettingEditor: React.FC = () => {
return (
<>
-
+