refactor(templates): 移除 jinja2 includes 使用

This commit is contained in:
zhengxinonly
2023-12-22 23:01:45 +08:00
parent 7203bcfecc
commit b5625ecf1f
5 changed files with 20 additions and 36 deletions
+10
View File
@@ -0,0 +1,10 @@
function getCookie(name) {
let matches = document.cookie.match(
new RegExp(
"(?:^|; )" +
name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
"=([^;]*)",
),
);
return matches ? decodeURIComponent(matches[1]) : undefined;
}