Gildas 2 лет назад
Родитель
Сommit
a979c04c79

+ 3 - 1
lib/single-file-extension-editor.js

@@ -5111,7 +5111,8 @@
 					content = URL.createObjectURL(blob);
 				}
 			}
-			resources.push({ filename: entry.filename, url: entry.comment, content, mimeType, textContent, parentResources: [] });
+			const name = entry.filename.match(/^([0-9_]+\/)?(.*)$/)[2];
+			resources.push({ filename: entry.filename, name, url: entry.comment, content, mimeType, textContent, parentResources: [] });
 		}));
 		await zipReader.close();
 		resources = resources.sort((resourceLeft, resourceRight) => resourceRight.filename.length - resourceLeft.filename.length);
@@ -6313,6 +6314,7 @@ pre code {
 				if (initScriptContent) {
 					content = content.replace(/<script data-template-shadow-root src.*?<\/script>/g, initScriptContent);
 				}
+				debugger;
 				if (pageCompressContent) {
 					if (message.foregroundSave) {
 						alert("Foreground save not supported for compressed content");

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
lib/single-file.js


+ 7 - 2
package-lock.json

@@ -10,7 +10,7 @@
 			"license": "AGPL-3.0-or-later",
 			"dependencies": {
 				"single-file-cli": "1.1.9",
-				"single-file-core": "1.2.9"
+				"single-file-core": "1.2.10"
 			},
 			"bin": {
 				"single-file": "cli/single-file"
@@ -1655,11 +1655,16 @@
 				"single-file": "single-file"
 			}
 		},
-		"node_modules/single-file-core": {
+		"node_modules/single-file-cli/node_modules/single-file-core": {
 			"version": "1.2.9",
 			"resolved": "https://registry.npmjs.org/single-file-core/-/single-file-core-1.2.9.tgz",
 			"integrity": "sha512-F1UgTwXd7H9K4nyXFHrAfGRc3BZMtYJ6I3cshBBGh3t/u6O58M64aZDy0OjqpdHbFE2+wRdMygVy20QS9GHMbA=="
 		},
+		"node_modules/single-file-core": {
+			"version": "1.2.10",
+			"resolved": "https://registry.npmjs.org/single-file-core/-/single-file-core-1.2.10.tgz",
+			"integrity": "sha512-QBJTCNNO6E2vGXFHICG86XZb3Y+SdohOe9MqFQJ9svn/n8xND4rtfFY4ILpxtEIWeRTUKjA6dVPiBBcoUT1xqg=="
+		},
 		"node_modules/smart-buffer": {
 			"version": "4.2.0",
 			"resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",

+ 1 - 1
package.json

@@ -12,7 +12,7 @@
 		"single-file": "./cli/single-file"
 	},
 	"dependencies": {
-		"single-file-core": "1.2.9",
+		"single-file-core": "1.2.10",
 		"single-file-cli": "1.1.9"
 	},
 	"devDependencies": {

+ 1 - 0
src/ui/content/content-ui-editor-web.js

@@ -1076,6 +1076,7 @@ pre code {
 			if (initScriptContent) {
 				content = content.replace(/<script data-template-shadow-root src.*?<\/script>/g, initScriptContent);
 			}
+			debugger;
 			if (pageCompressContent) {
 				if (message.foregroundSave) {
 					alert("Foreground save not supported for compressed content");

Некоторые файлы не были показаны из-за большого количества измененных файлов