penguin/AstroJS

Javascript framework for my blog

commit 04525d1e1ab30a2efe2b44609b09435dcbf0f363

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-07-31T13:06:39Z
subjectRevert prev commit, do not encodeURI on DataKey
commit 04525d1e1ab30a2efe2b44609b09435dcbf0f363
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-07-31T13:06:39Z

    Revert prev commit, do not encodeURI on DataKey
---
 .dockerignore                                   | 5 ++++-
 botanjs/src/Astro/Blog/AstroEdit/SiteLibrary.js | 4 ++--
 botanjs/src/Dandelion/IDOMElement.js            | 2 +-
 botanjs/src/System/utils/DataKey.js             | 2 +-
 4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/.dockerignore b/.dockerignore
index 01c9ff4..e1d4c7e 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -7,7 +7,10 @@
 Dockerfile
 k8s/
 cache/
-windows/*
+image/
+concourse/
+k8s/
+windows/
 __pycache__
 cache/*
 logs/*
diff --git a/botanjs/src/Astro/Blog/AstroEdit/SiteLibrary.js b/botanjs/src/Astro/Blog/AstroEdit/SiteLibrary.js
index 848c1f1..3478892 100644
--- a/botanjs/src/Astro/Blog/AstroEdit/SiteLibrary.js
+++ b/botanjs/src/Astro/Blog/AstroEdit/SiteLibrary.js
@@ -53,8 +53,8 @@
 			{
 				return [
 					new DataKey("id", data.id)
-					, new DataKey("title", decodeURI(data.name))
-					, new DataKey("author", decodeURI(data.author))
+					, new DataKey("title", data.name)
+					, new DataKey("author", data.author)
 					, new DataKey("hash", data.hash)
 				];
 			}
diff --git a/botanjs/src/Dandelion/IDOMElement.js b/botanjs/src/Dandelion/IDOMElement.js
index 8e9345f..136efb9 100644
--- a/botanjs/src/Dandelion/IDOMElement.js
+++ b/botanjs/src/Dandelion/IDOMElement.js
@@ -96,7 +96,7 @@
 	IDOMElement.prototype.getDAttribute = function(name)
 	{
 		var i = this.getAttribute("data-" + name);
-		return i && decodeURIComponent(i);
+		return i;
 	};
 
 	IDOMElement.prototype.foreach = function(type, callback)
diff --git a/botanjs/src/System/utils/DataKey.js b/botanjs/src/System/utils/DataKey.js
index 065a414..18ef075 100644
--- a/botanjs/src/System/utils/DataKey.js
+++ b/botanjs/src/System/utils/DataKey.js
@@ -7,7 +7,7 @@
 		IKey.call(
 			this
 			, "data-" + name
-			, value ? encodeURIComponent( String( value ) ) : ""
+			, value ? String( value ) : ""
 		);
 	};