aboutsummaryrefslogtreecommitdiffstats
path: root/package-lock.json
diff options
context:
space:
mode:
authorHester Gong <hestergong@gmail.com>2023-03-26 13:25:41 +0800
committerGitHub <noreply@github.com>2023-03-26 13:25:41 +0800
commitac64c8297444ade63a2a364c4afb7e6c1de5a75f (patch)
tree1d5de1a378638660ebc6de9192955d5325c318a3 /package-lock.json
parent2d2b4bdf62104bf11b1cef1e460633378af5a1aa (diff)
downloadgitea-ac64c8297444ade63a2a364c4afb7e6c1de5a75f.tar.gz
gitea-ac64c8297444ade63a2a364c4afb7e6c1de5a75f.zip
Allow new file and edit file preview if it has editable extension (#23624)
Close #23579 Inspired by [idea](https://github.com/go-gitea/gitea/issues/23579#issuecomment-1475429247) from @brechtvl In this PR, the behavior is when extension switches from writatble to not, preview will hide, and vice versa. demo: https://user-images.githubusercontent.com/17645053/226786119-d20063da-8763-41ce-9b00-ae34929120e1.mov --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'package-lock.json')
-rw-r--r--package-lock.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index 2f277f180f..93adf5622f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -37,6 +37,7 @@
"pretty-ms": "8.0.0",
"sortablejs": "1.15.0",
"swagger-ui-dist": "4.18.1",
+ "throttle-debounce": "5.0.0",
"tippy.js": "6.3.7",
"tributejs": "5.1.3",
"uint8-to-base64": "0.2.0",
@@ -8839,6 +8840,14 @@
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
"dev": true
},
+ "node_modules/throttle-debounce": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.0.tgz",
+ "integrity": "sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg==",
+ "engines": {
+ "node": ">=12.22"
+ }
+ },
"node_modules/tinybench": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.4.0.tgz",