From aea7ed1ced083d273271f43c7dc321ee3e0f9f63 Mon Sep 17 00:00:00 2001 From: Erich Barnstedt Date: Tue, 24 Sep 2024 14:10:20 +0200 Subject: [PATCH] Removed clipboard-copy-element script and button due to several high-severity and unfixed security advisories. A small price to pay for losing the functionality of not having to get users to press Control-C! --- .../Pages/Account/Manage/ManageApiKeys.cshtml | 28 +- .../lib/clipboard-copy-element/LICENSE | 19 - .../lib/clipboard-copy-element/README.md | 98 - .../lib/clipboard-copy-element/dist/bundle.js | 154 - .../dist/clipboard-copy-element-define.d.ts | 19 - .../dist/clipboard-copy-element-define.js | 13 - .../dist/clipboard-copy-element.d.ts | 7 - .../dist/clipboard-copy-element.js | 85 - .../dist/clipboard.d.ts | 2 - .../clipboard-copy-element/dist/clipboard.js | 39 - .../clipboard-copy-element/dist/index.d.ts | 4 - .../lib/clipboard-copy-element/dist/index.js | 4 - .../clipboard-copy-element/package-lock.json | 9686 ----------------- .../lib/clipboard-copy-element/package.json | 63 - 14 files changed, 1 insertion(+), 10220 deletions(-) delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/LICENSE delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/README.md delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/bundle.js delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/clipboard-copy-element-define.d.ts delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/clipboard-copy-element-define.js delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/clipboard-copy-element.d.ts delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/clipboard-copy-element.js delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/clipboard.d.ts delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/clipboard.js delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/index.d.ts delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/dist/index.js delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/package-lock.json delete mode 100644 UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/package.json diff --git a/UACloudLibraryServer/Areas/Identity/Pages/Account/Manage/ManageApiKeys.cshtml b/UACloudLibraryServer/Areas/Identity/Pages/Account/Manage/ManageApiKeys.cshtml index 4411f225..fa98a6ca 100644 --- a/UACloudLibraryServer/Areas/Identity/Pages/Account/Manage/ManageApiKeys.cshtml +++ b/UACloudLibraryServer/Areas/Identity/Pages/Account/Manage/ManageApiKeys.cshtml @@ -7,19 +7,6 @@

@ViewData["Title"]

- -
@if (!string.IsNullOrEmpty(Model.GeneratedApiKey)) { @@ -44,26 +31,13 @@
@Model.GeneratedApiKey - - - - - - - - -
- Usage: Add an HTTP Header X-Api-key with the API key as the header value. + Usage: Add an HTTP Header X-Api-key with the API key as the header value. Note that the key name does not need to be provided separately for authentication.
diff --git a/UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/LICENSE b/UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/LICENSE deleted file mode 100644 index 6dce93c4..00000000 --- a/UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2018 GitHub, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/README.md b/UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/README.md deleted file mode 100644 index 1259d79b..00000000 --- a/UACloudLibraryServer/wwwroot/lib/clipboard-copy-element/README.md +++ /dev/null @@ -1,98 +0,0 @@ -# <clipboard-copy> element - -Copy element text content or input values to the clipboard. - -## Installation - -``` -$ npm install --save @github/clipboard-copy-element -``` - -## Usage - -### Script - -Import as ES modules: - -```js -import '@github/clipboard-copy-element' -``` - -With a script tag: - -```html -