Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Page [Auth Page] #2933

Merged
merged 4 commits into from
Oct 7, 2023
Merged

UI Page [Auth Page] #2933

merged 4 commits into from
Oct 7, 2023

Conversation

H0llyW00dzZ
Copy link
Contributor

@H0llyW00dzZ H0llyW00dzZ commented Sep 30, 2023

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :

  • Add sub tips in Arabic locale (ar.ts)
  • Add sub tips in Bengali locale (bn.ts)
  • Add sub tips in Chinese locale (cn.ts)
  • Add sub tips in English locale (en.ts)
  • Add sub tips in Indonesian locale (id.ts)

Preview :

image

[+] feat(auth.tsx): add support for resetting access token in resetAccessCode function
[+] fix(auth.tsx): fix formatting issue in resetAccessCode function
[+] feat(locales): add support for sub tips in Auth component for multiple languages :
  - Add sub tips in Arabic locale (ar.ts)
  - Add sub tips in Bengali locale (bn.ts)
  - Add sub tips in Chinese locale (cn.ts)
  - Add sub tips in English locale (en.ts)
  - Add sub tips in Indonesian locale (id.ts)
[+] feat(auth.tsx): add goChat function to navigate to chat page
[+] fix(auth.tsx): change onClick event from goHome to goChat
@H0llyW00dzZ
Copy link
Contributor Author

H0llyW00dzZ commented Sep 30, 2023

@Yidadaa Regarding about Indonesian locale for isApp its supported
nvm I refactor

[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message
H0llyW00dzZ referenced this pull request in H0llyW00dzZ/ChatGPT-Next-Web Sep 30, 2023
Ref : UI Page [Auth Page] Yidadaa#2933
[+] refactor(id.ts): remove unused import and isApp variable
[+] fix(id.ts): update Unauthorized error message
[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field
H0llyW00dzZ referenced this pull request in H0llyW00dzZ/ChatGPT-Next-Web Sep 30, 2023
Ref : UI Page [Auth Page] Yidadaa#2933
[+] fix(auth.tsx): fix conditional rendering of token input field
[+] refactor(auth.tsx): improve code readability by using conditional rendering for token input field
H0llyW00dzZ referenced this pull request in H0llyW00dzZ/ChatGPT-Next-Web Oct 1, 2023
Ref issue : [Bug] 'export' button does not work Yidadaa#2933

[+] fix(global.d.ts): change parameter name from command to text in invoke function
[+] feat(sync.ts): improve backup file name generation to include date and time
[+] fix(tauri.conf.json): disable updater functionality
H0llyW00dzZ added a commit to H0llyW00dzZ/ChatGPT-Next-Web that referenced this pull request Oct 1, 2023
Ref : UI Page [Auth Page] ChatGPTNextWeb#2933
[+] feat(auth.tsx): add authentication page UI and functionality for app clients
[+] fix(cn.ts): update unauthorized access error message for app clients
[+] fix(en.ts): update unauthorized access error message for app clients
H0llyW00dzZ added a commit to H0llyW00dzZ/ChatGPT-Next-Web that referenced this pull request Oct 1, 2023
Reff Issue : [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] feat(global.d.ts): add support for Tauri API in global window interface
[+] fix(utils.ts): fix typo in copyToClipboard function, change invoke to writeText

Client App [Tauri] [Authentication page]

Ref : UI Page [Auth Page] ChatGPTNextWeb#2933

[+] chore(auth.tsx): remove unused import of useEffect
[+] feat(auth.tsx): conditionally render input access code and input access token based on whether it's an app
H0llyW00dzZ added a commit to H0llyW00dzZ/ChatGPT-Next-Web that referenced this pull request Oct 1, 2023
* Client App [Tauri]

[+] fix(global.d.ts): declare TauriAPI interface globally and add missing methods
[+] fix(sync.ts): import getClientConfig from client config and add alternative fix for tauri
[+] fix(utils.ts): import getClientConfig from client config and update copyToClipboard and downloadAs functions to use Tauri API if available

* Whitelist Client App [Tauri]

[+] fix(cors/route.ts): add alternative fix for Tauri by checking if isApp is true before applying CORS restrictions
[+] fix(openai/route.ts): add alternative fix for Tauri by checking if isApp is true before applying CORS restrictions

* Fix Export DownloadAs) Client App [Tauri]

Ref issue : [Bug] 'export' button does not work Yidadaa#2933

[+] fix(global.d.ts): change parameter name from command to text in invoke function
[+] feat(sync.ts): improve backup file name generation to include date and time
[+] fix(tauri.conf.json): disable updater functionality

* Exporter Client App [Tauri]

Reff Issue : [Bug] 'export' button does not work ChatGPTNextWeb#2884
[+] fix(exporter.tsx): fix download function to handle saving file in Tauri app
[+] feat(exporter.tsx): add support for downloading file in Tauri app
[+] fix(exporter.tsx): fix download function to handle saving file in Tauri app
[+] feat(exporter.tsx): add support for downloading file in Tauri app

* Refactor Client App [Tauri]

[+] refactor(exporter.tsx): remove unused isMobile variable

* Client App [Tauri] [Authentication page]

Ref : UI Page [Auth Page] ChatGPTNextWeb#2933
[+] feat(auth.tsx): add authentication page UI and functionality for app clients
[+] fix(cn.ts): update unauthorized access error message for app clients
[+] fix(en.ts): update unauthorized access error message for app clients

* Client App [Tauri] [ChangeLog Page]

[+] refactor(changelog.tsx): refactor fetchData function to improve readability and limit the number of displayed changes for isApp
[+] feat(changelog.tsx): add support for displaying commit date in the changelog table

* Client App [Tauri] [Dev Stuff] [ChangeLog Page]

[+] fix(build.ts): change git log command to retrieve only the latest commit information
[+] feat(client.ts): update getClientConfig function to include commit message description in the build config

* Revert "Whitelist Client App [Tauri]"

This reverts commit 469eaff.

* 🚀 Client App [Tauri]

Reff Issue : [Bug] 'export' button does not work ChatGPTNextWeb#2884

[+] feat(global.d.ts): add support for Tauri API in global window interface
[+] fix(utils.ts): fix typo in copyToClipboard function, change invoke to writeText

* Client App [Tauri] [Authentication page]

Ref : UI Page [Auth Page] ChatGPTNextWeb#2933

[+] chore(auth.tsx): remove unused import of useEffect
[+] feat(auth.tsx): conditionally render input access code and input access token based on whether it's an app
@Yidadaa Yidadaa merged commit ef3e8e6 into ChatGPTNextWeb:main Oct 7, 2023
@H0llyW00dzZ H0llyW00dzZ deleted the authpage branch October 7, 2023 16:29
spongeBor pushed a commit to spongeBor/ChatGPT-Next-Web that referenced this pull request Jan 18, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants