From cffe26a29a2451e5878bced60eb7fc309a602e8f Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 23 Oct 2022 06:31:26 +0200 Subject: [PATCH] Small improvements --- package-lock.json | 30 +++++--------------------- src/components/AppLayout.tsx | 3 ++- src/components/HorizontalLine.tsx | 2 +- src/components/Markdown/Markdawn.tsx | 3 ++- src/components/PreviewLine.tsx | 2 +- src/components/ThumbnailHeader.tsx | 2 +- src/pages/archives/videos/v/[uid].tsx | 5 +++-- src/pages/dev/checkup/contents.tsx | 4 ++-- src/pages/dev/checkup/libraryitems.tsx | 4 ++-- src/pages/dev/transcript.tsx | 11 +++++----- src/pages/library/[slug]/index.tsx | 6 +++--- 11 files changed, 28 insertions(+), 44 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4119b29..b11b432 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,6 @@ "rc-slider": "^10.0.1", "react": "18.2.0", "react-dom": "18.2.0", - "react-hot-keys": "^2.7.2", "react-hotkeys-hook": "^3.4.7", "react-swipeable": "^7.0.0", "react-zoom-pan-pinch": "^2.1.3", @@ -7033,6 +7032,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -7635,6 +7635,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -7761,20 +7762,6 @@ "react": "^18.2.0" } }, - "node_modules/react-hot-keys": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/react-hot-keys/-/react-hot-keys-2.7.2.tgz", - "integrity": "sha512-Z7eSh7SU6s52+zP+vkfFoNk0x4kgEmnwqDiyACKv53crK2AZ7FUaBLnf+vxLor3dvtId9murLmKOsrJeYgeHWw==", - "dependencies": { - "hotkeys-js": "^3.8.1", - "prop-types": "^15.7.2" - }, - "peerDependencies": { - "@babel/runtime": ">=7.10.0", - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, "node_modules/react-hotkeys-hook": { "version": "3.4.7", "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-3.4.7.tgz", @@ -14430,7 +14417,8 @@ "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true }, "object-hash": { "version": "3.0.0", @@ -14849,6 +14837,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -14934,15 +14923,6 @@ "scheduler": "^0.23.0" } }, - "react-hot-keys": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/react-hot-keys/-/react-hot-keys-2.7.2.tgz", - "integrity": "sha512-Z7eSh7SU6s52+zP+vkfFoNk0x4kgEmnwqDiyACKv53crK2AZ7FUaBLnf+vxLor3dvtId9murLmKOsrJeYgeHWw==", - "requires": { - "hotkeys-js": "^3.8.1", - "prop-types": "^15.7.2" - } - }, "react-hotkeys-hook": { "version": "3.4.7", "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-3.4.7.tgz", diff --git a/src/components/AppLayout.tsx b/src/components/AppLayout.tsx index 3df9db8..0770f35 100644 --- a/src/components/AppLayout.tsx +++ b/src/components/AppLayout.tsx @@ -141,7 +141,8 @@ export const AppLayout = ({ onClick={() => { setMainPanelOpen(false); setSubPanelOpen(false); - }}> + }} + /> {/* Content panel */} diff --git a/src/components/HorizontalLine.tsx b/src/components/HorizontalLine.tsx index 6090749..5c1b7d7 100644 --- a/src/components/HorizontalLine.tsx +++ b/src/components/HorizontalLine.tsx @@ -12,5 +12,5 @@ interface Props { // ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ export const HorizontalLine = ({ className }: Props): JSX.Element => ( -
+
); diff --git a/src/components/Markdown/Markdawn.tsx b/src/components/Markdown/Markdawn.tsx index 079bc20..14db799 100644 --- a/src/components/Markdown/Markdawn.tsx +++ b/src/components/Markdown/Markdawn.tsx @@ -204,7 +204,8 @@ export const Markdawn = ({ className, text: rawText }: MarkdawnProps): JSX.Eleme : compProps.src } quality={ImageQuality.Medium} - className="drop-shadow-shade-lg"> + className="drop-shadow-shade-lg" + />
), }, diff --git a/src/components/PreviewLine.tsx b/src/components/PreviewLine.tsx index 4d43936..a164675 100644 --- a/src/components/PreviewLine.tsx +++ b/src/components/PreviewLine.tsx @@ -44,7 +44,7 @@ const PreviewLine = ({ ) : ( -
+
)}
{topChips && topChips.length > 0 && ( diff --git a/src/components/ThumbnailHeader.tsx b/src/components/ThumbnailHeader.tsx index 4094ab7..5d22e54 100644 --- a/src/components/ThumbnailHeader.tsx +++ b/src/components/ThumbnailHeader.tsx @@ -57,7 +57,7 @@ export const ThumbnailHeader = ({ onClick={() => showLightBox([thumbnail])} /> ) : ( -
+
)}
{
{video.gone ? ( - +