浏览代码

update `single-file-core` (add `{url-filename}` variable)

Gildas 2 月之前
父节点
当前提交
1722bf760e
共有 6 个文件被更改,包括 7 次插入5 次删除
  1. 0 0
      lib/single-file-extension-editor-helper.js
  2. 0 0
      lib/single-file.js
  3. 4 4
      package-lock.json
  4. 1 1
      package.json
  5. 1 0
      src/ui/pages/help.html
  6. 1 0
      src/ui/pages/help_zh_CN.html

文件差异内容过多而无法显示
+ 0 - 0
lib/single-file-extension-editor-helper.js


文件差异内容过多而无法显示
+ 0 - 0
lib/single-file.js


+ 4 - 4
package-lock.json

@@ -9,7 +9,7 @@
 			"version": "1.2.4",
 			"license": "AGPL-3.0-or-later",
 			"dependencies": {
-				"single-file-core": "1.5.62"
+				"single-file-core": "1.5.63"
 			},
 			"devDependencies": {
 				"@rollup/plugin-node-resolve": "16.0.3",
@@ -1642,9 +1642,9 @@
 			}
 		},
 		"node_modules/single-file-core": {
-			"version": "1.5.62",
-			"resolved": "https://registry.npmjs.org/single-file-core/-/single-file-core-1.5.62.tgz",
-			"integrity": "sha512-oNAC8ZyXtdyI8RRDx3HeCODSzdRjGplmNgNYzHfsncN+dqAmU5228JzRl447gqUAsqARBe+Keq/soWJMiP8Zjg==",
+			"version": "1.5.63",
+			"resolved": "https://registry.npmjs.org/single-file-core/-/single-file-core-1.5.63.tgz",
+			"integrity": "sha512-GUxy0vQZqcFCWs0i8qb3Z/yTE9hIr0biKSNfc2lmBF+tTGOa+eY2IWZUFr4E1/gBMMXnK7eZTIGiW95JF2w8Nw==",
 			"license": "AGPL-3.0-or-later"
 		},
 		"node_modules/smob": {

+ 1 - 1
package.json

@@ -10,7 +10,7 @@
 	},
 	"type": "module",
 	"dependencies": {
-		"single-file-core": "1.5.62"
+		"single-file-core": "1.5.63"
 	},
 	"devDependencies": {
 		"eslint": "^9.39.1",

+ 1 - 0
src/ui/pages/help.html

@@ -992,6 +992,7 @@
 						"category_index.html")</li>
 					<li><code>{url-last-segment}</code>: the last part of the pathname (without the extension) or the
 						host if not found (e.g. "index")</li>
+					<li><code>{url-filename}</code>: the file name of the URL (e.g. "index.html")</li>	
 					<li><code>{url-protocol}</code>: the protocol of the URL (e.g. "https")</li>
 					<li><code>{url-host}</code>: the host name + the port of the URL (e.g. "example.com_8080")</li>
 					<li><code>{url-hostname}</code>: the host name of the URL (e.g. "example.com")</li>

+ 1 - 0
src/ui/pages/help_zh_CN.html

@@ -700,6 +700,7 @@
                     <li><code>{url-pathname}</code>: URL 的路径名(例如 "category/index.html")</li>
                     <li><code>{url-pathname-flat}</code>: 替换斜杠后的 URL 路径名(例如 "category_index.html")</li>
                     <li><code>{url-last-segment}</code>: 路径名的最后一部分(没有扩展名)或主机(如果没有找到)(例如 "index")</li>
+                    <li><code>{url-filename}</code>: URL 的文件名(例如 "index.html")</li>
                     <li><code>{url-protocol}</code>: URL 的协议(例如 "https")</li>
                     <li><code>{url-host}</code>: URL 的主机名 + 端口(例如 "example.com_8080")</li>
                     <li><code>{url-hostname}</code>: URL 的主机名(例如 "example.com")</li>

部分文件因为文件数量过多而无法显示