Commit graph

8 commits

Author SHA1 Message Date
Jing Hua 5fdaa1dbda feat: count lifetime token usage
fixes #163
2023-04-24 13:44:03 +08:00
Jing Hua 627e1cc03a feat: inline LaTeX toggle
fixes #237
2023-04-17 17:36:34 +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 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
Jing Hua 23628ae7a6 update placeholder text 2023-04-09 23:06:35 +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
Ayaka Mikazuki 12e82070ab Fix en-GB and en-US translation 2023-04-02 01:51:04 +10:00
Tindo N. Arsel a12ab5177a
add French translation, use relative shortcut for main French and English variant (en-US & fr-FR) (#153)
* add French translation

* Add US english and French french translations

This as shortcuts to their respective default locales.
This will improve locale indexing for these main language  variants,
without unnecessary duplication.

* trailing new line

* fix typo

* fix typo

---------

Co-authored-by: Ayaka <f@0x40.shn.hk>
Co-authored-by: Ayaka <ayaka@mail.shn.hk>
2023-03-28 23:15:07 +08:00