From aa98b4c7c934592518466143338acecb5506efb7 Mon Sep 17 00:00:00 2001 From: Dennis Sheu Date: Wed, 8 May 2024 10:11:54 -0700 Subject: [PATCH 1/4] Fix [examples/react-rich] Invalid src/style.css url path causes vite build fail to bundle Toolbar format icons. --- examples/react-rich/src/styles.css | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/react-rich/src/styles.css b/examples/react-rich/src/styles.css index 071a794fc76..3682244685c 100644 --- a/examples/react-rich/src/styles.css +++ b/examples/react-rich/src/styles.css @@ -410,41 +410,41 @@ pre::-webkit-scrollbar-thumb { } i.undo { - background-image: url(icons/arrow-counterclockwise.svg); + background-image: url(/icons/arrow-counterclockwise.svg); } i.redo { - background-image: url(icons/arrow-clockwise.svg); + background-image: url(/icons/arrow-clockwise.svg); } i.bold { - background-image: url(icons/type-bold.svg); + background-image: url(/icons/type-bold.svg); } i.italic { - background-image: url(icons/type-italic.svg); + background-image: url(/icons/type-italic.svg); } i.underline { - background-image: url(icons/type-underline.svg); + background-image: url(/icons/type-underline.svg); } i.strikethrough { - background-image: url(icons/type-strikethrough.svg); + background-image: url(/icons/type-strikethrough.svg); } i.left-align { - background-image: url(icons/text-left.svg); + background-image: url(/icons/text-left.svg); } i.center-align { - background-image: url(icons/text-center.svg); + background-image: url(/icons/text-center.svg); } i.right-align { - background-image: url(icons/text-right.svg); + background-image: url(/icons/text-right.svg); } i.justify-align { - background-image: url(icons/justify.svg); + background-image: url(/icons/justify.svg); } From 2e7fbd523f993d4c93ebb0426cf4505d0a9a6e18 Mon Sep 17 00:00:00 2001 From: Dennis Sheu Date: Wed, 8 May 2024 21:22:45 -0700 Subject: [PATCH 2/4] Revert "Fix [examples/react-rich] Invalid src/style.css url path causes vite build fail to bundle Toolbar format icons." This reverts commit aa98b4c7c934592518466143338acecb5506efb7. --- examples/react-rich/src/styles.css | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/react-rich/src/styles.css b/examples/react-rich/src/styles.css index 3682244685c..071a794fc76 100644 --- a/examples/react-rich/src/styles.css +++ b/examples/react-rich/src/styles.css @@ -410,41 +410,41 @@ pre::-webkit-scrollbar-thumb { } i.undo { - background-image: url(/icons/arrow-counterclockwise.svg); + background-image: url(icons/arrow-counterclockwise.svg); } i.redo { - background-image: url(/icons/arrow-clockwise.svg); + background-image: url(icons/arrow-clockwise.svg); } i.bold { - background-image: url(/icons/type-bold.svg); + background-image: url(icons/type-bold.svg); } i.italic { - background-image: url(/icons/type-italic.svg); + background-image: url(icons/type-italic.svg); } i.underline { - background-image: url(/icons/type-underline.svg); + background-image: url(icons/type-underline.svg); } i.strikethrough { - background-image: url(/icons/type-strikethrough.svg); + background-image: url(icons/type-strikethrough.svg); } i.left-align { - background-image: url(/icons/text-left.svg); + background-image: url(icons/text-left.svg); } i.center-align { - background-image: url(/icons/text-center.svg); + background-image: url(icons/text-center.svg); } i.right-align { - background-image: url(/icons/text-right.svg); + background-image: url(icons/text-right.svg); } i.justify-align { - background-image: url(/icons/justify.svg); + background-image: url(icons/justify.svg); } From 6aafb56128f529842989c98f26dffb42b5ad46e6 Mon Sep 17 00:00:00 2001 From: Dennis Sheu Date: Wed, 8 May 2024 21:26:41 -0700 Subject: [PATCH 3/4] [examples/react-rich] Fix:missing toolbar format icon in vite build. Move icons from /public to /src as etrepum suggests. --- examples/react-rich/public/icons/LICENSE.md | 5 ----- examples/react-rich/public/icons/arrow-clockwise.svg | 4 ---- examples/react-rich/public/icons/arrow-counterclockwise.svg | 4 ---- examples/react-rich/public/icons/journal-text.svg | 5 ----- examples/react-rich/public/icons/justify.svg | 3 --- examples/react-rich/public/icons/text-center.svg | 3 --- examples/react-rich/public/icons/text-left.svg | 3 --- examples/react-rich/public/icons/text-paragraph.svg | 3 --- examples/react-rich/public/icons/text-right.svg | 3 --- examples/react-rich/public/icons/type-bold.svg | 3 --- examples/react-rich/public/icons/type-italic.svg | 3 --- examples/react-rich/public/icons/type-strikethrough.svg | 3 --- examples/react-rich/public/icons/type-underline.svg | 3 --- 13 files changed, 45 deletions(-) delete mode 100644 examples/react-rich/public/icons/LICENSE.md delete mode 100644 examples/react-rich/public/icons/arrow-clockwise.svg delete mode 100644 examples/react-rich/public/icons/arrow-counterclockwise.svg delete mode 100644 examples/react-rich/public/icons/journal-text.svg delete mode 100644 examples/react-rich/public/icons/justify.svg delete mode 100644 examples/react-rich/public/icons/text-center.svg delete mode 100644 examples/react-rich/public/icons/text-left.svg delete mode 100644 examples/react-rich/public/icons/text-paragraph.svg delete mode 100644 examples/react-rich/public/icons/text-right.svg delete mode 100644 examples/react-rich/public/icons/type-bold.svg delete mode 100644 examples/react-rich/public/icons/type-italic.svg delete mode 100644 examples/react-rich/public/icons/type-strikethrough.svg delete mode 100644 examples/react-rich/public/icons/type-underline.svg diff --git a/examples/react-rich/public/icons/LICENSE.md b/examples/react-rich/public/icons/LICENSE.md deleted file mode 100644 index ce74f6abeed..00000000000 --- a/examples/react-rich/public/icons/LICENSE.md +++ /dev/null @@ -1,5 +0,0 @@ -Bootstrap Icons -https://icons.getbootstrap.com - -Licensed under MIT license -https://github.com/twbs/icons/blob/main/LICENSE.md diff --git a/examples/react-rich/public/icons/arrow-clockwise.svg b/examples/react-rich/public/icons/arrow-clockwise.svg deleted file mode 100644 index b072eb097ab..00000000000 --- a/examples/react-rich/public/icons/arrow-clockwise.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/arrow-counterclockwise.svg b/examples/react-rich/public/icons/arrow-counterclockwise.svg deleted file mode 100644 index b0b23b9bbc4..00000000000 --- a/examples/react-rich/public/icons/arrow-counterclockwise.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/journal-text.svg b/examples/react-rich/public/icons/journal-text.svg deleted file mode 100644 index 9b66f43aab5..00000000000 --- a/examples/react-rich/public/icons/journal-text.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/justify.svg b/examples/react-rich/public/icons/justify.svg deleted file mode 100644 index 009bd7214d9..00000000000 --- a/examples/react-rich/public/icons/justify.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/text-center.svg b/examples/react-rich/public/icons/text-center.svg deleted file mode 100644 index 2887a99f267..00000000000 --- a/examples/react-rich/public/icons/text-center.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/text-left.svg b/examples/react-rich/public/icons/text-left.svg deleted file mode 100644 index 04526116489..00000000000 --- a/examples/react-rich/public/icons/text-left.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/text-paragraph.svg b/examples/react-rich/public/icons/text-paragraph.svg deleted file mode 100644 index 9779beabf1c..00000000000 --- a/examples/react-rich/public/icons/text-paragraph.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/text-right.svg b/examples/react-rich/public/icons/text-right.svg deleted file mode 100644 index 34686b0f1ff..00000000000 --- a/examples/react-rich/public/icons/text-right.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/type-bold.svg b/examples/react-rich/public/icons/type-bold.svg deleted file mode 100644 index 276d133c25c..00000000000 --- a/examples/react-rich/public/icons/type-bold.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/type-italic.svg b/examples/react-rich/public/icons/type-italic.svg deleted file mode 100644 index 3ac6b09f02a..00000000000 --- a/examples/react-rich/public/icons/type-italic.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/type-strikethrough.svg b/examples/react-rich/public/icons/type-strikethrough.svg deleted file mode 100644 index 1c940e42a87..00000000000 --- a/examples/react-rich/public/icons/type-strikethrough.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/react-rich/public/icons/type-underline.svg b/examples/react-rich/public/icons/type-underline.svg deleted file mode 100644 index c299b8bf2f0..00000000000 --- a/examples/react-rich/public/icons/type-underline.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file From 8e9950c6bf5ce39f3d0ff029a0a59202810ddba5 Mon Sep 17 00:00:00 2001 From: Dennis Sheu Date: Wed, 8 May 2024 21:31:13 -0700 Subject: [PATCH 4/4] [examples/react-rich] Fix:missing toolbar format icon in vite build. Added icons to src. --- examples/react-rich/src/icons/LICENSE.md | 5 +++++ examples/react-rich/src/icons/arrow-clockwise.svg | 4 ++++ examples/react-rich/src/icons/arrow-counterclockwise.svg | 4 ++++ examples/react-rich/src/icons/journal-text.svg | 5 +++++ examples/react-rich/src/icons/justify.svg | 3 +++ examples/react-rich/src/icons/text-center.svg | 3 +++ examples/react-rich/src/icons/text-left.svg | 3 +++ examples/react-rich/src/icons/text-paragraph.svg | 3 +++ examples/react-rich/src/icons/text-right.svg | 3 +++ examples/react-rich/src/icons/type-bold.svg | 3 +++ examples/react-rich/src/icons/type-italic.svg | 3 +++ examples/react-rich/src/icons/type-strikethrough.svg | 3 +++ examples/react-rich/src/icons/type-underline.svg | 3 +++ 13 files changed, 45 insertions(+) create mode 100644 examples/react-rich/src/icons/LICENSE.md create mode 100644 examples/react-rich/src/icons/arrow-clockwise.svg create mode 100644 examples/react-rich/src/icons/arrow-counterclockwise.svg create mode 100644 examples/react-rich/src/icons/journal-text.svg create mode 100644 examples/react-rich/src/icons/justify.svg create mode 100644 examples/react-rich/src/icons/text-center.svg create mode 100644 examples/react-rich/src/icons/text-left.svg create mode 100644 examples/react-rich/src/icons/text-paragraph.svg create mode 100644 examples/react-rich/src/icons/text-right.svg create mode 100644 examples/react-rich/src/icons/type-bold.svg create mode 100644 examples/react-rich/src/icons/type-italic.svg create mode 100644 examples/react-rich/src/icons/type-strikethrough.svg create mode 100644 examples/react-rich/src/icons/type-underline.svg diff --git a/examples/react-rich/src/icons/LICENSE.md b/examples/react-rich/src/icons/LICENSE.md new file mode 100644 index 00000000000..ce74f6abeed --- /dev/null +++ b/examples/react-rich/src/icons/LICENSE.md @@ -0,0 +1,5 @@ +Bootstrap Icons +https://icons.getbootstrap.com + +Licensed under MIT license +https://github.com/twbs/icons/blob/main/LICENSE.md diff --git a/examples/react-rich/src/icons/arrow-clockwise.svg b/examples/react-rich/src/icons/arrow-clockwise.svg new file mode 100644 index 00000000000..b072eb097ab --- /dev/null +++ b/examples/react-rich/src/icons/arrow-clockwise.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/arrow-counterclockwise.svg b/examples/react-rich/src/icons/arrow-counterclockwise.svg new file mode 100644 index 00000000000..b0b23b9bbc4 --- /dev/null +++ b/examples/react-rich/src/icons/arrow-counterclockwise.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/journal-text.svg b/examples/react-rich/src/icons/journal-text.svg new file mode 100644 index 00000000000..9b66f43aab5 --- /dev/null +++ b/examples/react-rich/src/icons/journal-text.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/justify.svg b/examples/react-rich/src/icons/justify.svg new file mode 100644 index 00000000000..009bd7214d9 --- /dev/null +++ b/examples/react-rich/src/icons/justify.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/text-center.svg b/examples/react-rich/src/icons/text-center.svg new file mode 100644 index 00000000000..2887a99f267 --- /dev/null +++ b/examples/react-rich/src/icons/text-center.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/text-left.svg b/examples/react-rich/src/icons/text-left.svg new file mode 100644 index 00000000000..04526116489 --- /dev/null +++ b/examples/react-rich/src/icons/text-left.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/text-paragraph.svg b/examples/react-rich/src/icons/text-paragraph.svg new file mode 100644 index 00000000000..9779beabf1c --- /dev/null +++ b/examples/react-rich/src/icons/text-paragraph.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/text-right.svg b/examples/react-rich/src/icons/text-right.svg new file mode 100644 index 00000000000..34686b0f1ff --- /dev/null +++ b/examples/react-rich/src/icons/text-right.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/type-bold.svg b/examples/react-rich/src/icons/type-bold.svg new file mode 100644 index 00000000000..276d133c25c --- /dev/null +++ b/examples/react-rich/src/icons/type-bold.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/type-italic.svg b/examples/react-rich/src/icons/type-italic.svg new file mode 100644 index 00000000000..3ac6b09f02a --- /dev/null +++ b/examples/react-rich/src/icons/type-italic.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/type-strikethrough.svg b/examples/react-rich/src/icons/type-strikethrough.svg new file mode 100644 index 00000000000..1c940e42a87 --- /dev/null +++ b/examples/react-rich/src/icons/type-strikethrough.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/examples/react-rich/src/icons/type-underline.svg b/examples/react-rich/src/icons/type-underline.svg new file mode 100644 index 00000000000..c299b8bf2f0 --- /dev/null +++ b/examples/react-rich/src/icons/type-underline.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file