From a45c833860989e4ac627f77466dc78c727bf919a Mon Sep 17 00:00:00 2001 From: gusthoff Date: Fri, 29 Sep 2023 18:32:24 +0200 Subject: [PATCH 1/3] Widget: adding support for storing settings in cookies --- frontend/package.json | 1 + frontend/sphinx/widget/templates/widget.html | 2 +- frontend/src/ts/strings.ts | 2 +- frontend/src/ts/widget.ts | 97 +++++++++++++++----- frontend/yarn.lock | 5 + 5 files changed, 81 insertions(+), 26 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 51cd3ca80..2f5ddc13c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -72,6 +72,7 @@ "ts-node": "^10.9.1", "typedoc": "^0.24.8", "typescript": ">=5.1.6", + "typescript-cookies": "^0.0.5", "webpack": "^5.88.2", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1", diff --git a/frontend/sphinx/widget/templates/widget.html b/frontend/sphinx/widget/templates/widget.html index 95eafbd4f..f598e917b 100644 --- a/frontend/sphinx/widget/templates/widget.html +++ b/frontend/sphinx/widget/templates/widget.html @@ -33,7 +33,7 @@