* seperated languages into structured folders
i18n.js needs to be connected to index.json so it fetches the common json files
* Update index.json
* New Launcher + security file
* cancel locales feature temporary
* added secrets to backup
* replaced download with winget
* fixed restoring backup bug
fixed bug that creates sillytavern\public folder inside sillytavern\public
* fixes date format
* launcher update + icon
* Refactor oai preset change event into before and after
* Simplify and reinforce prompt manager render without character
* Check if main prompt exists before adding nsfwAvoidance
* Sanitize prompt manager configuration on preset loading
---------
Co-authored-by: maver <kentucky@posteo.de>
* 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>
* 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>
This is a useful feature for those who want to utilize APIs with
proxy middleware for adding extra features or security. For cloud
API safety and abiding by rate limits, this feature only applies to
local backends such as ooba or kobold.
Signed-off-by: kingbri <bdashore3@proton.me>