From 68370dbe30bdae37dd2a6a29b8a41801e94db1ed Mon Sep 17 00:00:00 2001 From: Huge Date: Thu, 23 Nov 2023 14:55:32 +0100 Subject: [PATCH 1/7] Update readme.md with node version check otherwise illegible error occurs --- .github/readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/readme.md b/.github/readme.md index 3fa3826b4..5774f76fd 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -162,8 +162,9 @@ Installing via ZIP download (discouraged) ### Linux - 1. Run the `start.sh` script. - 2. Enjoy. + 1. Ensure you have Node.js v14 or higher installed by running `node -v`. + 2. Run the `start.sh` script. + 3. Enjoy. ## API keys management From e48cd0a49d0a8e3be73497c2c3c4e4aff9a1cd29 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:13:20 +0200 Subject: [PATCH 2/7] Fix version number + provide LTS guidance --- .github/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/readme.md b/.github/readme.md index 5774f76fd..83c91901a 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -162,7 +162,7 @@ Installing via ZIP download (discouraged) ### Linux - 1. Ensure you have Node.js v14 or higher installed by running `node -v`. + 1. Ensure you have Node.js v18 or higher (the latest [LTS release](https://nodejs.org/en/download/) is recommended) installed by running `node -v`. 2. Run the `start.sh` script. 3. Enjoy. From 3328df60760e6a808d880e22cb44125c1bb20196 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:15:22 +0200 Subject: [PATCH 3/7] Update readme.md --- .github/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/readme.md b/.github/readme.md index 83c91901a..6bff95a55 100644 --- a/.github/readme.md +++ b/.github/readme.md @@ -162,7 +162,8 @@ Installing via ZIP download (discouraged) ### Linux - 1. Ensure you have Node.js v18 or higher (the latest [LTS release](https://nodejs.org/en/download/) is recommended) installed by running `node -v`. + 1. Ensure you have Node.js v18 or higher (the latest [LTS version](https://nodejs.org/en/download/) is recommended) installed by running `node -v`. +Alternatively, use the [Node Version Manager](https://github.com/nvm-sh/nvm#installing-and-updating) script to quickly and easily manage your Node installations. 2. Run the `start.sh` script. 3. Enjoy. From effa07e3befa2103b3f850a157a23089adec6982 Mon Sep 17 00:00:00 2001 From: Guanghua Lu <102669562+Touch-Night@users.noreply.github.com> Date: Sun, 3 Dec 2023 01:47:15 +0800 Subject: [PATCH 4/7] Update Update-Instructions.txt I have lost all my costom instructions just now --- Update-Instructions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Update-Instructions.txt b/Update-Instructions.txt index cb00d0977..94f4fe4c6 100644 --- a/Update-Instructions.txt +++ b/Update-Instructions.txt @@ -37,6 +37,7 @@ If you insist on installing via a zip, here is the tedious process for doing the - Chats - Groups - Group chats + - instructs - KoboldAI Settings - NovelAI Settings - OpenAI Settings From 31535a0fc25a09b5435d6b71353d9d062d95d989 Mon Sep 17 00:00:00 2001 From: Guanghua Lu <102669562+Touch-Night@users.noreply.github.com> Date: Sun, 3 Dec 2023 01:49:53 +0800 Subject: [PATCH 5/7] Update Update-Instructions.txt Just found that it's instruct, not instructs --- Update-Instructions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update-Instructions.txt b/Update-Instructions.txt index 94f4fe4c6..ea846c186 100644 --- a/Update-Instructions.txt +++ b/Update-Instructions.txt @@ -37,7 +37,7 @@ If you insist on installing via a zip, here is the tedious process for doing the - Chats - Groups - Group chats - - instructs + - instruct - KoboldAI Settings - NovelAI Settings - OpenAI Settings From c4f503edadf443fe9e621a71501eebd9fa1e2870 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 2 Dec 2023 19:52:40 +0200 Subject: [PATCH 6/7] A more complete list --- Update-Instructions.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Update-Instructions.txt b/Update-Instructions.txt index ea846c186..b862f8907 100644 --- a/Update-Instructions.txt +++ b/Update-Instructions.txt @@ -32,20 +32,26 @@ If you insist on installing via a zip, here is the tedious process for doing the 4. Copy the following files/folders as necessary(*) from your old ST installation: + - Assets - Backgrounds - Characters - Chats + - Context - Groups - Group chats - - instruct + - Instruct + - movingUI - KoboldAI Settings - NovelAI Settings - - OpenAI Settings - - TextGen Settings (textgen = ooba) + - OpenAI Settings (Chat Completion API) + - TextGen Settings (Text Completion API) + - QuickReplies - Themes - User Avatars - Worlds + - User - settings.json + - secrets.json <---- this one is in the base folder, not /public/ (*) 'As necessary' = "If you made any custom content related to those folders". None of the folders are mandatory, so only copy what you need. From 2e6ab8be46f492f3ca4081fedbea13574e8659c0 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 10 Dec 2023 23:28:00 +0200 Subject: [PATCH 7/7] Add Object.hasOwn polyfill --- public/index.html | 1 + public/lib/object-hasown.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 public/lib/object-hasown.js diff --git a/public/index.html b/public/index.html index da5b6e0cb..58e42f700 100644 --- a/public/index.html +++ b/public/index.html @@ -22,6 +22,7 @@ + diff --git a/public/lib/object-hasown.js b/public/lib/object-hasown.js new file mode 100644 index 000000000..9b7792e88 --- /dev/null +++ b/public/lib/object-hasown.js @@ -0,0 +1,4 @@ +// Polyfill for old Safari versions +if (!Object.hasOwn) { + Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); } +}