Commit 8f4b0aad authored by Liang Ding's avatar Liang Ding

💚 修复单元测试

parent 8955cf12
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
   
<span id="postToCommunityPanel"> <span id="postToCommunityPanel">
<label class="checkbox"> <label class="checkbox">
<input id="postToCommunity" type="checkbox" /> <input id="postToCommunity" type="checkbox" checked="checked" />
<a href="https://hacpai.com/article/1546941897596" target="_blank">${syncToCommunityLabel}</a> <a href="https://hacpai.com/article/1546941897596" target="_blank">${syncToCommunityLabel}</a>
</label> </label>
</span> </span>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<title>${adminConsoleLabel} - ${blogTitle}</title> <title>${adminConsoleLabel} - ${blogTitle}</title>
<link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-base${miniPostfix}.css?${staticResourceVersion}" /> <link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-base${miniPostfix}.css?${staticResourceVersion}" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-admin${miniPostfix}.css?${staticResourceVersion}" /> <link type="text/css" rel="stylesheet" href="${staticServePath}/css/default-admin${miniPostfix}.css?${staticResourceVersion}" />
<link type="text/css" rel="stylesheet" href="https://vditor.b3log.org/0.1.5/index.classic.css" /> <link type="text/css" rel="stylesheet" href="https://vditor.b3log.org/0.1.7/index.classic.css" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/js/lib/highlight-9.13.1/styles/github.css?${staticResourceVersion}" /> <link type="text/css" rel="stylesheet" href="${staticServePath}/js/lib/highlight-9.13.1/styles/github.css?${staticResourceVersion}" />
<link rel="icon" type="image/png" href="${staticServePath}/favicon.png" /> <link rel="icon" type="image/png" href="${staticServePath}/favicon.png" />
<link rel="manifest" href="${servePath}/manifest.json"> <link rel="manifest" href="${servePath}/manifest.json">
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
</div> </div>
</div> </div>
<script src="${staticServePath}/js/lib/compress/admin-lib.min.js"></script> <script src="${staticServePath}/js/lib/compress/admin-lib.min.js"></script>
<script src="http://vditor.b3log.org/0.1.5/index.min.js"></script> <script src="https://vditor.b3log.org/0.1.7/index.min.js"></script>
<script src="${staticServePath}/js/common${miniPostfix}.js"></script> <script src="${staticServePath}/js/common${miniPostfix}.js"></script>
<#if "" == miniPostfix> <#if "" == miniPostfix>
<script src="${staticServePath}/js/admin/admin.js"></script> <script src="${staticServePath}/js/admin/admin.js"></script>
......
...@@ -23,8 +23,13 @@ ...@@ -23,8 +23,13 @@
"servePath": "${servePath}", "servePath": "${servePath}",
"isLoggedIn": "true" "isLoggedIn": "true"
}; };
var Label = { var Label = {
"pushSuccLabel": '${pushSuccLabel}',
"pushToHacpaiLabel": '${pushToHacpaiLabel}',
"uploadMsg": '${uploadMsg}',
"uploadToken": "${uploadToken}",
"uploadURL": "${uploadURL}",
"markedAvailable": ${markedAvailable?c}, "markedAvailable": ${markedAvailable?c},
"skinDirName": "${skinDirName}", "skinDirName": "${skinDirName}",
"userRole": "${userRole}", "userRole": "${userRole}",
...@@ -74,9 +79,8 @@ ...@@ -74,9 +79,8 @@
"statusLabel": "${statusLabel}", "statusLabel": "${statusLabel}",
"versionLabel": "${versionLabel}", "versionLabel": "${versionLabel}",
"userNameLabel": "${userNameLabel}", "userNameLabel": "${userNameLabel}",
"commentNameLabel": "${commentNameLabel}",
"commentEmailLabel": "${commentEmailLabel}", "commentEmailLabel": "${commentEmailLabel}",
"roleLabel": "${roleLabel}", "roleLabel": "${roleLabel}",
"administratorLabel": "${administratorLabel}", "administratorLabel": "${administratorLabel}",
"duplicatedEmailLabel": "${duplicatedEmailLabel}", "duplicatedEmailLabel": "${duplicatedEmailLabel}",
"mailInvalidLabel": "${mailInvalidLabel}", "mailInvalidLabel": "${mailInvalidLabel}",
...@@ -153,7 +157,7 @@ ...@@ -153,7 +157,7 @@
"helpLabel": '${helpLabel}', "helpLabel": '${helpLabel}',
"fullscreenLabel": '${fullscreenLabel}', "fullscreenLabel": '${fullscreenLabel}',
"uploadFilesLabel": '${uploadFilesLabel}' "uploadFilesLabel": '${uploadFilesLabel}'
}; };
admin.init(); admin.init();
</script> </script>
\ No newline at end of file
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
<a href="#tools/preference/setting">${paramSettingsLabel}</a> <a href="#tools/preference/setting">${paramSettingsLabel}</a>
</div> </div>
</li> </li>
<li>
<div id="tabPreference_solo">
<a href="#tools/preference/solo">B3log</a>
</div>
</li>
</ul> </ul>
</div> </div>
<div id="tabPreferencePanel" class="sub-tabs-main"> <div id="tabPreferencePanel" class="sub-tabs-main">
...@@ -79,7 +74,7 @@ ...@@ -79,7 +74,7 @@
</select> </select>
<label for="timeZoneId">${timeZoneId1Label}</label> <label for="timeZoneId">${timeZoneId1Label}</label>
<select id="timeZoneId"> <select id="timeZoneId">
${timeZoneIdOptions} ${timeZoneIdOptions}
</select> </select>
<label for="articleListDisplay">${articleListDisplay1Label}</label> <label for="articleListDisplay">${articleListDisplay1Label}</label>
<select id="articleListDisplay"> <select id="articleListDisplay">
......
...@@ -31,7 +31,10 @@ ...@@ -31,7 +31,10 @@
<label for="userURLUpdate">${userURL1Label}</label> <label for="userURLUpdate">${userURL1Label}</label>
<input id="userURLUpdate" type="text"/> <input id="userURLUpdate" type="text"/>
<label for="userAvatarUpdate">${userAvatar1Label}</label> <label for="userAvatarUpdate">${userAvatar1Label}</label>
<input id="userAvatarUpdate" type="text"/> <br><br> <input id="userAvatarUpdate" type="text"/>
<label for="userB3KeyUpdate">B3 Key</label>
<input id="userB3KeyUpdate" type="text"/>
<br><br>
<button onclick="admin.userList.update();" class="right">${updateLabel}</button> <button onclick="admin.userList.update();" class="right">${updateLabel}</button>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment