Commit graph

263 commits

Author SHA1 Message Date
Tindo N. Arsel 226944b62a
Refactor: menu NewFolder styling classnames (#224)
Changed the hidden class to mb-2,
so that the plus icon on new folder button will appear in mobile view.
2023-04-19 22:30:08 +08:00
Tindo N. Arsel 4bfa2e6dfa
update french translation (#238) 2023-04-18 20:56:23 +08:00
Jing Hua 627e1cc03a feat: inline LaTeX toggle
fixes #237
2023-04-17 17:36:34 +08:00
Jing Hua 62561e4e6c add consolas font fallback 2023-04-17 17:07:40 +08:00
Toh Jing Hua a5e08af456 fix: electron file path 2023-04-17 00:34:56 +08:00
Jing Hua 89acd32564 Bump v1.0.3 2023-04-16 23:36:42 +08:00
Peng Guanwen c2d833b332
Add simple mode (#113)
* Add simple mode

The current UI is too complicated for some first time users.
This commit adds a "Advanced mode" toggle that defaults on but can be
turned off. When the toggle if switched off, the simple mode is
activated and following UI elements are hided:

- Model parameters setting
- Role switch
- Save button (This means user must save *and* submit in simple mode.)

* Simple mode: Fix ctrl-enter in non-sticky blocks

* i18n

* hide token count

* add back save button

* remove unused variables

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-15 22:03:33 +08:00
Jing Hua f5f777b54b update workflow for google drive sync 2023-04-14 15:41:10 +08:00
Jing Hua 3f0ada4a9d
Sync to Google Drive (#233)
* google drive api

* fix: google-api

* GoogleCloudStorage

* list files api

* Google Cloud Storage

* move button to side menu

* sync status

* rename file

* show popup for those with cloud sync

* update button style

* auto close modal after logged in

* auto popup every 59min

* set as unauthenticated if update fails

* i18n

* add spin animation

* feat: Toast

* clear toast

* electron: desktop google drive integration

This update includes integration with Google Drive for desktop access,
but requires a new URL, which may cause existing chat data to be lost.
To minimize disruption, users can export their current chat data and
import it into the newer version.

* update note

* error handling

* support multiple drive files

* feat: delete drive file

* i18n

* change style
2023-04-14 15:29:13 +08:00
Tindo N. Arsel 02697408ce
Refact: hide dropdown prompt & palette when clicked outside (#223)
* Refact: hide dropdown prompt when clicked outside

Added an event listener to hide prompts,
when anything other than the dropdown is clicked,
implemented via a click event.

* Refact: hide palette color when clicked outside

Added an event listener to hide palette color,
when anything other than the dropdown palette is clicked,
implemented via a click event.

* Refactor: event listener conditions for dropdown

Changed the event listener conditions for mousedown events,
so they are only added when dropdown menu or color palette is visible.

* shift paletteRef position

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-12 18:47:32 +08:00
Jing Hua 699ce66e3c fix: disable adding message during generation
fixes #95
2023-04-11 15:14:43 +08:00
Jing Hua 04ef5efc24 style: align buttons
fixes #65
2023-04-10 23:58:57 +08:00
Jing Hua c8f77bd23a model config click backdrop to confirm 2023-04-09 23:13:16 +08:00
Jing Hua 23628ae7a6 update placeholder text 2023-04-09 23:06:35 +08:00
akira0245 17926abb17
update simplified Chinese translation (#219) 2023-04-09 15:20:28 +08:00
Jing Hua 438d396a2e style: sponsor button height 2023-04-08 22:49:29 +08:00
Jing Hua 9adde9fe6b update readme 2023-04-08 22:42:50 +08:00
Jing Hua 815bb19c72 feat: desktop minimise to tray + change icon
fixes #213
2023-04-08 22:31:56 +08:00
Jing Hua 90a4e3669b unhide mobile side bar new chat 2023-04-08 22:08:34 +08:00
Jing Hua f1580010df improve error message 2023-04-08 22:06:32 +08:00
Tindo N. Arsel cc82f5b29d
fix math-katex rendering (#194)
* fix math-katex rendering

* enable singleDollarTextMath option with remarkMath

* dynamic import katex.css and add yarn.lock

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-07 21:13:46 +08:00
Jing Hua 96bf1c50fb style: searchbar 2023-04-07 18:29:54 +08:00
Jing Hua 6c12e67393 style: compact side menu 2023-04-07 18:23:51 +08:00
Jing Hua a57dfce108 style: folder icon 2023-04-07 18:17:26 +08:00
Jing Hua 51f2385b75 style: compact new folder 2023-04-07 17:52:03 +08:00
Łukasz Komorowski 8f2b6dfdb8
Added Role Selector close functionality when clicking outside of it (#211)
* Added dropdown close functionality when clicking
outside.

Added an event listener to the document that checks if the user clicks
outside the dropdown and closes it if so. This behavior is implemented
using a useRef hook and a mousedown event. The cleanup function is also
added to remove the event listener when the component unmounts.

* Optimized event listener in RoleSelector component
for improved performance.
Updated event listener for RoleSelector component
to only be added when the dropdown is opened and removed
when the dropdown is closed.

* Removed package-lock.json and yarn.lock

* Revert "Removed package-lock.json and yarn.lock"

This reverts commit f9dbf056b6003377d5bcf4f3a731afe7324f000b.

* Remove yarn.lock, package-lock.json from PR

* revert yarn.lock

* optimisation

* change React.useRef to useRef

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-07 17:42:47 +08:00
powersee eaf5a49df4
Update README-zh_CN.md (#210) 2023-04-06 13:28:41 +09:30
Jing Hua 7e7df206ae style: padding
fixes #203
2023-04-06 02:54:22 +08:00
Jing Hua 38bc63f0ac feat: Azure OpenAI endpoint support
fixes #208
2023-04-06 02:48:12 +08:00
Jing Hua 2dcdecc842 style: textarea 2023-04-06 02:33:13 +08:00
Ayaka Mikazuki 01f5d8e4f8 Merge branch 'main' of github.com:ztjhz/ChatGPTFreeApp 2023-04-05 13:09:33 +08:00
Ayaka Mikazuki da86e93bf6 minor fix of language dropdown 2023-04-05 13:09:28 +08:00
Tindo N. Arsel f6ff1f4635
add submit placeholder for message textarea (#200)
* add submit placeholder for message textarea

* fix typo in french translation

* Update MessageContent.tsx

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-04-05 12:59:01 +08:00
Tindo N. Arsel cda88d85f9
fix folder's new chat button quickly disappear (#201) 2023-04-04 17:41:22 +08:00
Ayaka b4f3789060
Add language names (#198) 2023-04-04 16:08:02 +08:00
Tindo N. Arsel 8f0ed233e9
adjust new chat button display in chat folder (#199)
* adjust new chat button display in chat folder

* Display it at the top instead at the end.
This because chats are order by recently created.
UX issue when clicking to the button at the end,
and have to scroll at the top to see and edit newly created chat.

* Display the button when hovering the folder,
not just the group of chats in the folder.
This make the button to display when hover the folder,
even if there is not yet chats list in the folder.

* parent sibling hover

---------

Co-authored-by: Jing Hua <tohjinghua123@gmail.com>
2023-04-04 16:04:39 +08:00
Jing Hua 4d258687c0 style: scrollbar 2023-04-04 14:33:56 +08:00
Junya Masuda mabo 63f9eca717
fix: Prevent chat message submission during Japanese IME conversion (#196) 2023-04-04 09:37:35 +08:00
Tindo N. Arsel 6d1ae9f526
add feature to create new chat in a given folder (#174)
* add feature to create new chat in a given folder

This to not have to drag and drop a chat each time in a folder

* change style

* fix margin

* style: folder gradient

* style

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
2023-04-04 00:33:40 +08:00
spctechdev bfe3f1adfa
New language: Italian (#192)
* Add files via upload

* Update i18n.ts
2023-04-03 10:07:11 +08:00
Jing Hua 4823b1dc38
feat: folder colors (#191) 2023-04-02 23:04:11 +08:00
Jing Hua 892e7792ba style: gray-650 and gray-850 2023-04-02 21:29:25 +08:00
Jing Hua e4468fd93f support environment variables
fixes #159
2023-04-02 20:43:54 +08:00
Jing Hua dfd8cfc32a add csv label 2023-04-02 19:56:00 +08:00
Jing Hua 9956d254f4
Refactor folder (#188)
* refactor folders

* add chat id
2023-04-02 16:27:19 +08:00
Jing Hua f6c2976cbd remove custom api placeholder 2023-04-02 00:25:32 +08:00
Ayaka Mikazuki 15ca9adc4a update i18n 2023-04-02 02:17:35 +10:00
Jing Hua cc22a47a11 change electron artifact name 2023-04-02 00:08:16 +08:00
Jing Hua 4a9efaf7da fix: chat filter 2023-04-02 00:04:21 +08:00
Ayaka Mikazuki 12e82070ab Fix en-GB and en-US translation 2023-04-02 01:51:04 +10:00