@@ -100,6 +107,7 @@ const GitHubToken = () => {
setToken(e.target.value)}
placeholder={t('github_token_placeholder')}
From f9578e7480d7aba963829bf14d1629bcf0f87bee Mon Sep 17 00:00:00 2001
From: wblx <904653630@qq.com>
Date: Thu, 1 Aug 2024 12:40:07 +0800
Subject: [PATCH 8/9] duplicated options
Signed-off-by: wblx <904653630@qq.com>
---
src/api/githubApi.ts | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/api/githubApi.ts b/src/api/githubApi.ts
index 1a5b4925..791a9a00 100644
--- a/src/api/githubApi.ts
+++ b/src/api/githubApi.ts
@@ -9,10 +9,6 @@ export const githubRequest = async (endpoint: string, options: RequestInit = {})
try {
const response = await fetch(`https://api.github.com${endpoint}`, {
...options,
- headers: {
- ...options.headers,
- Authorization: `Bearer ${token}`,
- },
});
return response.json();
} catch (error) {
From 9be7b654361750c410543652d59877380ffacd93 Mon Sep 17 00:00:00 2001
From: Harry
Date: Fri, 2 Aug 2024 22:55:07 -0700
Subject: [PATCH 9/9] chore: run prettier to format
Signed-off-by: Harry
---
package.json | 2 +-
.../developer-networks/react-modal.scss | 4 +-
.../ContentScripts/features/oss-gpt/rcw.scss | 22 ++++--
src/pages/Options/Options.css | 4 +-
yarn.lock | 70 ++++++++++---------
5 files changed, 61 insertions(+), 41 deletions(-)
diff --git a/package.json b/package.json
index 67dd7aaf..451ed7f8 100644
--- a/package.json
+++ b/package.json
@@ -72,7 +72,7 @@
"mini-css-extract-plugin": "^2.7.2",
"mkdirp": "^1.0.4",
"prettier": "^3.3.3",
- "pretty-quick": "^3.1.3",
+ "pretty-quick": "^4.0.0",
"querystring": "^0.2.1",
"sass": "^1.52.1",
"sass-loader": "^12.4.0",
diff --git a/src/pages/ContentScripts/features/developer-networks/react-modal.scss b/src/pages/ContentScripts/features/developer-networks/react-modal.scss
index a3e2ed2f..590bde38 100644
--- a/src/pages/ContentScripts/features/developer-networks/react-modal.scss
+++ b/src/pages/ContentScripts/features/developer-networks/react-modal.scss
@@ -16,7 +16,9 @@
transform: translate(-50%, -50%);
padding: 24px;
box-sizing: border-box;
- box-shadow: rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px;
+ box-shadow:
+ rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px,
+ rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px;
outline: transparent solid 3px;
border-radius: 2px;
background: var(--bgColor-default, var(--color-canvas-default));
diff --git a/src/pages/ContentScripts/features/oss-gpt/rcw.scss b/src/pages/ContentScripts/features/oss-gpt/rcw.scss
index aeeed719..efff5817 100644
--- a/src/pages/ContentScripts/features/oss-gpt/rcw.scss
+++ b/src/pages/ContentScripts/features/oss-gpt/rcw.scss
@@ -339,7 +339,11 @@ img.rcw-picker-icon {
line-height: 1.15;
}
.emoji-mart {
- font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
+ font-family:
+ -apple-system,
+ BlinkMacSystemFont,
+ Helvetica Neue,
+ sans-serif;
font-size: 16px;
display: inline-block;
color: #222427;
@@ -505,7 +509,13 @@ img.rcw-picker-icon {
box-shadow: none;
}
.emoji-mart-emoji-native {
- font-family: Segoe UI Emoji, Segoe UI Symbol, Segoe UI, Apple Color Emoji, Twemoji Mozilla, Noto Color Emoji,
+ font-family:
+ Segoe UI Emoji,
+ Segoe UI Symbol,
+ Segoe UI,
+ Apple Color Emoji,
+ Twemoji Mozilla,
+ Noto Color Emoji,
Android Emoji;
}
.emoji-mart-no-results {
@@ -771,14 +781,18 @@ img.rcw-picker-icon {
.rcw-conversation-container.active {
opacity: 1;
transform: translateY(0);
- transition: opacity 0.3s ease, transform 0.3s ease;
+ transition:
+ opacity 0.3s ease,
+ transform 0.3s ease;
}
.rcw-conversation-container.hidden {
z-index: -1;
pointer-events: none;
opacity: 0;
transform: translateY(10px);
- transition: opacity 0.3s ease, transform 0.3s ease;
+ transition:
+ opacity 0.3s ease,
+ transform 0.3s ease;
}
.rcw-conversation-resizer {
cursor: col-resize;
diff --git a/src/pages/Options/Options.css b/src/pages/Options/Options.css
index 6c2e8777..ba26d071 100644
--- a/src/pages/Options/Options.css
+++ b/src/pages/Options/Options.css
@@ -4,7 +4,9 @@
margin-top: 10px;
opacity: 1;
background: white;
- box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
+ box-shadow:
+ rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
+ rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px;
transition: all 0.2s ease 0s;
border-radius: 3px;
diff --git a/yarn.lock b/yarn.lock
index 80d897c7..a37fb169 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2507,7 +2507,7 @@ cross-fetch@4.0.0:
dependencies:
node-fetch "^2.6.12"
-cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.3:
+cross-spawn@^7.0.1, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
@@ -2930,24 +2930,9 @@ events@^3.2.0:
resolved "https://registry.npmjs.org/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
-execa@^4.1.0:
- version "4.1.0"
- resolved "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a"
- integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==
- dependencies:
- cross-spawn "^7.0.0"
- get-stream "^5.0.0"
- human-signals "^1.1.1"
- is-stream "^2.0.0"
- merge-stream "^2.0.0"
- npm-run-path "^4.0.0"
- onetime "^5.1.0"
- signal-exit "^3.0.2"
- strip-final-newline "^2.0.0"
-
-execa@^5.0.0:
+execa@^5.0.0, execa@^5.1.1:
version "5.1.1"
- resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
+ resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
dependencies:
cross-spawn "^7.0.3"
@@ -3099,7 +3084,7 @@ find-cache-dir@^3.3.1:
make-dir "^3.0.2"
pkg-dir "^4.1.0"
-find-up@^4.0.0, find-up@^4.1.0:
+find-up@^4.0.0:
version "4.1.0"
resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19"
integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==
@@ -3107,6 +3092,14 @@ find-up@^4.0.0, find-up@^4.1.0:
locate-path "^5.0.0"
path-exists "^4.0.0"
+find-up@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"
+ integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==
+ dependencies:
+ locate-path "^6.0.0"
+ path-exists "^4.0.0"
+
flat@^5.0.2:
version "5.0.2"
resolved "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241"
@@ -3213,7 +3206,7 @@ get-pixels@^3.3.2:
request "^2.44.0"
through "^2.3.4"
-get-stream@^5.0.0, get-stream@^5.1.0:
+get-stream@^5.1.0:
version "5.2.0"
resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
@@ -3552,11 +3545,6 @@ http2-wrapper@^2.1.10:
quick-lru "^5.1.1"
resolve-alpn "^1.2.0"
-human-signals@^1.1.1:
- version "1.1.1"
- resolved "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
- integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
-
human-signals@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
@@ -3962,6 +3950,13 @@ locate-path@^5.0.0:
dependencies:
p-locate "^4.1.0"
+locate-path@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"
+ integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
+ dependencies:
+ p-locate "^5.0.0"
+
lodash-es@^4.17.21:
version "4.17.21"
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
@@ -4313,7 +4308,7 @@ normalize-url@^8.0.0:
resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz#9b7d96af9836577c58f5883e939365fa15623a4a"
integrity sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==
-npm-run-path@^4.0.0, npm-run-path@^4.0.1:
+npm-run-path@^4.0.1:
version "4.0.1"
resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==
@@ -4371,7 +4366,7 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
dependencies:
wrappy "1"
-onetime@^5.1.0, onetime@^5.1.2:
+onetime@^5.1.2:
version "5.1.2"
resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
@@ -4423,6 +4418,13 @@ p-locate@^4.1.0:
dependencies:
p-limit "^2.2.0"
+p-locate@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"
+ integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==
+ dependencies:
+ p-limit "^3.0.2"
+
p-map@^2.0.0:
version "2.1.0"
resolved "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175"
@@ -4643,13 +4645,13 @@ pretty-format@^27.0.0, pretty-format@^27.5.1:
ansi-styles "^5.0.0"
react-is "^17.0.1"
-pretty-quick@^3.1.3:
- version "3.3.1"
- resolved "https://registry.npmjs.org/pretty-quick/-/pretty-quick-3.3.1.tgz#cfde97fec77a8d201a0e0c9c71d9990e12587ee2"
- integrity sha512-3b36UXfYQ+IXXqex6mCca89jC8u0mYLqFAN5eTQKoXO6oCQYcIVYZEB/5AlBHI7JPYygReM2Vv6Vom/Gln7fBg==
+pretty-quick@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-4.0.0.tgz#ea5cce85a5804bfbec7327b0e064509155d03f39"
+ integrity sha512-M+2MmeufXb/M7Xw3Afh1gxcYpj+sK0AxEfnfF958ktFeAyi5MsKY5brymVURQLgPLV1QaF5P4pb2oFJ54H3yzQ==
dependencies:
- execa "^4.1.0"
- find-up "^4.1.0"
+ execa "^5.1.1"
+ find-up "^5.0.0"
ignore "^5.3.0"
mri "^1.2.0"
picocolors "^1.0.0"
@@ -5645,7 +5647,7 @@ side-channel@^1.0.4:
get-intrinsic "^1.2.4"
object-inspect "^1.13.1"
-signal-exit@^3.0.2, signal-exit@^3.0.3:
+signal-exit@^3.0.3:
version "3.0.7"
resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==