173 Commits

Author SHA1 Message Date
Cogent Apps
c75663bf90 Merge pull request #165 from ZauberNerd/service-worker
Add service worker and make PWA installable
2023-07-15 15:31:53 -07:00
Cogent Apps
946190eb9d Update publish.yml 2023-07-10 21:20:57 -07:00
ZauberNerd
36c1cb47c0 Implement service worker using vite-plugin-pwa 2023-07-10 00:42:54 +02:00
Cogent Apps
8184c950d7 Merge pull request #145 from QJoly/main
Arm support
2023-07-09 13:52:50 -07:00
Cogent Apps
a13fff35da fix dockerfile for vite 2023-07-09 20:45:52 +00:00
Cogent Apps
f9122c5227 Merge branch 'main' into service-worker 2023-07-09 12:40:19 -07:00
Cogent Apps
4f5e7fbdc8 Merge pull request #166 from ZauberNerd/fix-non-serializable-error
Fix non-serializable error message
2023-07-09 12:28:07 -07:00
Cogent Apps
71a6e699c8 Merge pull request #167 from ZauberNerd/update-translations
Update extracted translations to remove errors in dev console
2023-07-09 12:27:29 -07:00
Cogent Apps
d7e493c347 Merge pull request #164 from ZauberNerd/replace-create-react-app-vite
Replace create react app with vite
2023-07-09 12:26:36 -07:00
Cogent Apps
25fd17a554 extend browser compatability 2023-07-09 19:24:17 +00:00
ZauberNerd
0701303563 Use comlink without vite-plugin-comlink
For some reason the vite-plugin-comlink doesn't seem to work in this
constellation.
I tried to reproduce in a new vite project and there it did work.
But also, the plugin does some horrible magic by replacing a
non-existant constructor `ComLinkWorker()` with the `wrap()` method
and then the only real benefit is, that we wouldn't need to write the
`expose()` method in the worker. So for that reason I'm removing the
plugin and using the comlink package directly.
2023-07-08 15:42:43 +02:00
ZauberNerd
ff9f3517ec Replace Node.js's Buffer with native Typed Arrays on the client-side
Vite does not natively ship a Buffer polyfill and most of the
functionality that is required here, can be implemented natively (except
for the byte-wise compare, for that I had to write my own function).
2023-07-08 15:42:43 +02:00
ZauberNerd
4b91a1972b Replace CRA proxy config with vite's proxy config 2023-07-08 15:41:28 +02:00
ZauberNerd
6e791e1b97 Update extracted translations to remove errors in dev console
Starting the app causes several errors about missing translations to be
printed to the browsers dev console.
2023-07-08 11:32:16 +02:00
ZauberNerd
ba6544ba53 Fix non-serializable error message
Using Redux Toolkit together with redux-persist requires some additional
configuration to disable the non-serializable error message:
https://redux-toolkit.js.org/usage/usage-guide#use-with-redux-persist
2023-07-08 11:24:04 +02:00
ZauberNerd
d5131d167d Add service worker and make PWA installable
This commit adds a service worker to make the app installable as a PWA.
In addition to caching all generated build artifacts (css and js filse)
the service worker also caches all other static files via a
stale-while-revalidate strategy (png, ico, json, css from the public
folder).
Further, this commit adds a Notification which will be shown when the
service worker updates and clicking on the button inside it causes
the service worker to update and the page to reload.

In order to make a PWA installable we need to follow some guide lines:
https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable

Fixes: #147
2023-07-07 22:15:19 +02:00
ZauberNerd
a3da33d824 Replace create-react-app with vite
create-react-app seems to struggle a bit [1] and many folks are
recommending vite as an alternative, as that project is more active.
For me the reason to switch to vite is to reduce dependencies and speed
up the build process.

Replacing create-react-app with vite reduce the number of dependencies
from 1762 to 444.

I was also quite surprised, by how small the actual diff in this commit
is. From that perspective there is almost no discernible difference
between the two tools.

[1]: https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741
2023-07-07 22:13:33 +02:00
Cogent Apps
9a69273ce4 Merge pull request #163 from ZauberNerd/remove-unused-dependencies
Remove unused dependencies
2023-07-07 13:12:30 -07:00
ZauberNerd
0ca07ee805 Remove unused dependencies
Keeping the amount of dependencies small speeds up installations.
It also helps to reduce the clutter and to get a better overview of the
application.
2023-07-07 13:48:08 +02:00
cogentapps
23c0169c63 GPT-4 general availability 2023-07-06 20:20:22 +00:00
cogentapps
10eb251bdb remove proxy field 2023-07-04 20:20:25 +00:00
cogentapps
42ad5b3e3b show correct server port 2023-07-04 20:14:25 +00:00
cogentapps
b68ed735db add jest 2023-07-04 20:13:39 +00:00
cogentapps
8e36104637 simplify auth check 2023-07-04 20:12:32 +00:00
cogentapps
6ed206ccc8 fix auth bug 2023-07-04 19:25:27 +00:00
cogentapps
2d95041970 fix max tokens 2023-07-04 18:59:27 +00:00
cogentapps
359d3c6566 fix token slider 2023-07-04 09:44:21 +00:00
cogentapps
2d42fbd94a search adjustments 2023-07-02 08:07:17 +00:00
cogentapps
56582e6f5e make katex optional 2023-07-02 08:00:39 +00:00
cogentapps
1f739e94c4 add other gpt versions 2023-07-01 20:09:50 +00:00
QJoly
c85299f816 Set up Docker Buildx 2023-05-02 15:53:42 +02:00
QJoly
d7fe13b324 Setup QEMU and Multi-Arch docker build 2023-05-02 15:34:06 +02:00
Cogent Apps
a9c3f38d60 fix bug in tokenizer 2023-04-29 18:52:34 +00:00
Cogent Apps
36e434f6b9 initial work on server-side token counting 2023-04-29 18:52:20 +00:00
Cogent Apps
6b271a41c1 submit on ctrl-enter 2023-04-29 18:51:54 +00:00
Cogent Apps
16ad81f403 improve logging 2023-04-29 18:30:44 +00:00
Cogent Apps
4cf0915670 fix user-scoped options not being loaded 2023-04-29 18:30:29 +00:00
Cogent Apps
8f9ec46f9e allow services for anonymous users & gpt4 fix 2023-04-29 18:29:48 +00:00
Cogent Apps
5bcd75f120 never add config file to git 2023-04-29 18:27:26 +00:00
Cogent Apps
ed5e099558 make docker image smaller 2023-04-29 18:27:10 +00:00
Cogent Apps
4b4cdd432d update gitpod configuration 2023-04-29 17:37:18 +00:00
Cogent Apps
ed591ff72d allow head customization 2023-04-17 18:00:07 +00:00
Cogent Apps
ee7ee898c0 update readme 2023-04-15 12:47:06 +00:00
Cogent Apps
fbbb73abf9 remove tts debug code 2023-04-15 12:27:11 +00:00
Cogent Apps
f1f89f2799 dockerfile fix 2023-04-15 11:12:13 +00:00
Cogent Apps
5b70af1c0d dockerfile fix 2023-04-15 10:51:39 +00:00
Cogent Apps
c4c79ce16c ga fix 2023-04-15 10:35:25 +00:00
Cogent Apps
8ec99aba68 build fixes 2023-04-15 10:33:19 +00:00
Cogent Apps
eb58d900b5 v0.2.3 2023-04-15 10:30:02 +00:00
Cogent Apps
943bca2f4d 0.2.2 2023-04-15 10:11:51 +00:00