From 2b29e14e9f5c3f66a802cba4c8ec3506f04bd7ba Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Wed, 10 Apr 2024 03:29:38 +0300
Subject: [PATCH] Reset settings option
---
public/login.html | 2 +
public/scripts/templates/admin.html | 2 +-
public/scripts/templates/resetSettings.html | 8 +++
public/scripts/templates/userProfile.html | 15 +++--
public/scripts/user.js | 40 +++++++++++-
src/constants.js | 2 +
src/endpoints/content-manager.js | 70 ++++++++++++++-------
src/endpoints/settings.js | 3 +-
src/endpoints/users-private.js | 17 +++++
src/users.js | 4 +-
10 files changed, 129 insertions(+), 34 deletions(-)
create mode 100644 public/scripts/templates/resetSettings.html
diff --git a/public/login.html b/public/login.html
index b1e7088d8..424fe4d4a 100644
--- a/public/login.html
+++ b/public/login.html
@@ -13,6 +13,7 @@
+
@@ -21,6 +22,7 @@
+
SillyTavern
diff --git a/public/scripts/templates/admin.html b/public/scripts/templates/admin.html
index dec8b3bf1..51ecca71c 100644
--- a/public/scripts/templates/admin.html
+++ b/public/scripts/templates/admin.html
@@ -80,7 +80,7 @@
Display Name:
*
-
+
Password:
diff --git a/public/scripts/templates/resetSettings.html b/public/scripts/templates/resetSettings.html
new file mode 100644
index 000000000..515cda174
--- /dev/null
+++ b/public/scripts/templates/resetSettings.html
@@ -0,0 +1,8 @@
+
+
+ Are you sure you want to reset your settings to factory defaults?
+
+
+ Don't forget to save a snapshot of your settings before proceeding.
+
+
diff --git a/public/scripts/templates/userProfile.html b/public/scripts/templates/userProfile.html
index 24ebec0ea..770cddce1 100644
--- a/public/scripts/templates/userProfile.html
+++ b/public/scripts/templates/userProfile.html
@@ -1,7 +1,10 @@
-
- Hi,
+
+ Hi,
+
@@ -10,7 +13,7 @@
-
@@ -55,7 +58,7 @@
Settings Snapshots
-