-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: Refactor inject with react hook (#489)
* ♻️ refactor: Refactor inject with react hook * ♻️ refactor: Refactor inject with react hook * ♻️ refactor: Refactor inject
- Loading branch information
1 parent
d864e39
commit c376aa6
Showing
40 changed files
with
800 additions
and
691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,4 @@ | |
|
||
git add . | ||
npx --no-install lint-staged | ||
npm run test | ||
git add . | ||
git add . |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pkg from '@/../package.json'; | ||
|
||
export const DISCORD_URL = 'https://discord.gg/AYFPHvv2jT'; | ||
export const SPONSOR_URL = 'https://opencollective.com/lobehub'; | ||
export const SPONSOR_IMG = 'https://readme-wizard.lobehub.com/api/sponsor'; | ||
export const GISCUS_REPO_ID = 'R_kgDOJCPcNg'; | ||
export const GITHUB_REPO_URL = pkg.homepage; | ||
export const REPO_NAME = GITHUB_REPO_URL.replace( | ||
'https://github.com/', | ||
'', | ||
) as `${string}/${string}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const removePromptScrollHide = () => { | ||
const textares = gradioApp().querySelectorAll( | ||
`[id$="_prompt_container"] textarea`, | ||
) as NodeListOf<HTMLTextAreaElement>; | ||
if (!textares) return; | ||
for (const textarea of textares) { | ||
textarea.classList.remove('scroll-hide'); | ||
textarea.style.height = 'auto'; | ||
} | ||
}; |
Oops, something went wrong.