Commit Graph

48 Commits

Author SHA1 Message Date
Cohee e74e925428 Bump package version 2023-12-17 03:52:55 +02:00
valadaptive 66953ceba3 Move device type detection to client side
We don't need the server to tell us our user agent--we can get it
ourselves through navigator.userAgent and parse it on the frontend.

I've replaced device-detector-js with Bowser because device-detector-js
is really slow, freezing for up to 500ms to parse a single user agent.
2023-12-14 18:43:59 -05:00
Cohee b09ebb240e Phaseout JSON5 2023-12-03 14:04:43 +02:00
Cohee 4c475afc91
Merge pull request #1428 from valadaptive/eslint-initial
Initial ESLint setup
2023-12-02 17:14:04 +02:00
valadaptive ec0e4026d8 Initial ESLint setup
This sets up ESLint and its config, and disables a bunch of recommended
lints that currently do not pass. Later PRs/commits will fix those lints
and re-enable them.
2023-12-02 09:02:57 -05:00
kingbri 641cd614c8 Server: Fix CORS proxy with POST requests and status codes
POST requests always sent an undefined body without the bodyParser
middleware which isn't included with express by default. Add this
as a new dependency and inject it into the express app. This middleware
will also be useful for any other middleware that we might create.

Also properly send status codes and messages to the client so they
can be handled properly.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-02 01:43:09 -05:00
Cohee c3259d1929 Bump package version 2023-11-30 01:41:20 +02:00
Cohee a7024a1d34 Migrate to config.yaml 2023-11-25 23:45:33 +02:00
Cohee 9e3072f89b Explicitly add form-data to package.json 2023-11-19 21:05:58 +02:00
Cohee 211722d67b Bump package version 2023-11-19 01:34:24 +02:00
Cohee 30f723d9fc Bump package version 2023-11-11 18:26:20 +02:00
Cohee 5331b5dc8a Fix npm audit 2023-11-10 23:54:44 +02:00
Cohee 2a9250c937 Bump package version 2023-10-30 00:50:25 +02:00
Cohee a2d8a2a447 Bump package version 2023-10-27 13:23:10 +03:00
Cohee 1239026a8f Auto-update extensions on version change 2023-10-09 23:45:09 +03:00
yuxiang 0b8295926e add bing translate 2023-10-06 15:51:04 +03:00
Cohee d9b2b9f753 Bump package version 2023-09-23 20:51:55 +03:00
Cohee 11e7ca76e1 Use simpleGit to get app version 2023-09-17 14:27:41 +03:00
Cohee dc1121b72a Remove tensorflow vector source. 2023-09-17 14:09:24 +03:00
Cohee 0f1a0963fd Merge branch 'release' into staging 2023-09-15 15:06:13 +03:00
Cohee 2b3055a84a Webp cards format is no longer supported 2023-09-15 14:56:15 +03:00
Cohee 179de92231 Use transformers WASM binaries from a local folder 2023-09-14 14:11:37 +03:00
Cohee f149fc9aaa Endpoint for local captioning pipeline 2023-09-11 04:47:14 +03:00
Cohee 17367f2b17 Bump package version 2023-09-10 19:06:36 +03:00
Cohee 180dcefe40 Patch onnx to always use wasm 2023-09-09 16:55:54 +03:00
Cohee b605b940eb Replace transformers.js with patched version 2023-09-09 16:29:11 +03:00
Cohee 967a084aad (WIP) Local emotion classification pipeline 2023-09-09 15:14:16 +03:00
Cohee 8c00f38a1f Add local vectors storage 2023-09-07 21:53:47 +03:00
Cohee 3830347d81 Bump package version 2023-09-06 16:06:23 +03:00
Cohee 5409b3dc9b Bump package version 2023-09-06 14:46:45 +03:00
rbmj 6c097560ca
goodbye axios (#1073)
* goodbye axios

* Rewrite error handling for OpenAI

* Increase instruct sequence length limit

* Buttons markup

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-09-01 19:00:32 +03:00
Cohee 8f20c87a7d Update package lock 2023-09-01 01:33:37 +03:00
rbmj 5cbd5c8210
get rid of node-rest-client and fix types (#1072)
* get rid of node-rest-client and fix types

* remove from package manager

* postAsync is used above its def, need hoisting

* handle client agent undefined, fixes type error

* handle invalid / missing query.name for sanitize

* more type guards

* Make code formatter happy

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-09-01 01:30:33 +03:00
rbmj deeedad19e
Make jsdoc/type-checker happy Pt 3 (#1070)
* png-chunks-extract.extract has no create_date

* `new Buffer.from` is not a thing

* handle failed character read

* stop lying about your return value

* what we get for mixing booleans and strings

* localeCompare makes more sense and fixes types

* uhh wtf, there is no callback in readFileSync

* no subtracting Dates, only Numbers (timestamps)

* handle if no file in request

* changing types makes typechecker mad

* handle false or undefined character read

* default param does not exist

* can't have same property assigned twice

* json5.parse expects a string, not buffer

* handle invalid thumbnail type

* handle invalid thumbnail type case

* ignore bad axios typing

* fix ambiguous typing

* types is incorrect? no .destroy(). use type guard

* include intended error handling of refactor

* Make API urls const

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-08-31 19:44:58 +03:00
Cohee ba712f61eb Bump package version 2023-08-29 20:20:06 +03:00
Cohee 9deaec5877 More typechecks and comments 2023-08-22 14:30:49 +03:00
Cohee e2bac7ec5f Add type checking and JSDoc comments to some utils 2023-08-22 13:07:24 +03:00
Cohee 9c614529ca Make all file write operations atomic 2023-08-17 15:20:02 +03:00
Cohee ea7268febd Replace tokenizer packages with agnai versions (not crash dumping to console) 2023-08-15 18:08:34 +03:00
Cohee ea4b1759aa Bump package version 2023-08-10 12:48:59 +03:00
Cohee 26a9c2889f Bump package version 2023-08-08 23:12:26 +03:00
Cohee 8c70b1decd Bump package version 2023-08-08 22:54:02 +03:00
Cohee 29a3c5d590 Fix npm audit 2023-08-01 23:25:09 +03:00
Cohee 29d841a50b Bump package version 2023-07-31 12:54:49 +03:00
Cohee f36cf088a1 Bump package version 2023-07-29 22:50:52 +03:00
Cohee1207 ef3c8a19fe Bump package version 2023-07-22 14:19:32 +03:00
Cohee dcaa9842ef Bump package version 2023-07-21 19:17:22 +03:00
Cohee edd41989fd Initial commit 2023-07-20 20:32:15 +03:00