From 311feeae8de4d39119cd748780b3b658500152e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <2449271624@qq.com> Date: Tue, 12 Sep 2023 10:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=8F=E7=9B=AE=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=9C=A8=E8=B0=B7=E6=AD=8C=E4=B8=8B=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E5=85=B6=E4=BB=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/js/album.js | 6 +++--- src/admin/js/body.js | 10 +++++----- src/admin/js/catalog.js | 1 - src/admin/js/list.js | 6 ++---- src/admin/js/search.js | 3 +-- src/admin/js/update.js | 2 -- src/admin/js/user.js | 2 -- src/static/web/js/diy.js | 9 ++++----- src/static/web/js/enums.js | 20 +++++++++----------- src/static/web/js/user.js | 2 +- 10 files changed, 25 insertions(+), 36 deletions(-) diff --git a/src/admin/js/album.js b/src/admin/js/album.js index 9e6f6f7f..744a42ff 100644 --- a/src/admin/js/album.js +++ b/src/admin/js/album.js @@ -15,9 +15,9 @@ function checkSubmitAlb() { $("#gallery .atlas").each(function() { albums.push({ "img": $(this).find("img").attr("src"), - "txt": $(this).find("input").val() - }) - }) + "txt": $(this).find("input").val(), + }); + }); } $("#albums").val(JSON.stringify(albums)); return true; diff --git a/src/admin/js/body.js b/src/admin/js/body.js index e69ef2eb..0f3a42c5 100644 --- a/src/admin/js/body.js +++ b/src/admin/js/body.js @@ -6,7 +6,7 @@ Date.prototype.Format = function(fmt) { "m+" : this.getMinutes(), //分 "s+" : this.getSeconds(), //秒 "q+" : Math.floor((this.getMonth() + 3) / 3), //季度 - "S" : this.getMilliseconds() //毫秒 + "S" : this.getMilliseconds(), //毫秒 }; if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); for (var k in o) @@ -106,28 +106,28 @@ async function LoadStatChart() { lineTension: .5, borderColor: 'rgba(54, 162, 235, 1)', backgroundColor: 'rgba(54, 162, 235, 0.1)', - borderWidth: 2 + borderWidth: 2, }, { label: 'UV', data: uvs, lineTension: .5, borderColor: 'rgba(255, 206, 86, 1)', backgroundColor: 'rgba(255, 206, 86, 0.1)', - borderWidth: 2 + borderWidth: 2, }, { label: 'IP', data: ips, lineTension: .5, borderColor: 'rgba(255, 99, 132, 1)', backgroundColor: 'rgba(255, 99, 132, 0.1)', - borderWidth: 2 + borderWidth: 2, }, { label: 'VV', data: vvs, lineTension: .5, borderColor: 'rgba(75, 192, 192, 1)', backgroundColor: 'rgba(75, 192, 192, 0.1)', - borderWidth: 2 + borderWidth: 2, } ] }, diff --git a/src/admin/js/catalog.js b/src/admin/js/catalog.js index e4eead79..963292ac 100644 --- a/src/admin/js/catalog.js +++ b/src/admin/js/catalog.js @@ -1,5 +1,4 @@ var BROWSER = {}; -var USERAGENT = navigator.userAgent.toLowerCase(); if (BROWSER.safari) { BROWSER.firefox = true; } diff --git a/src/admin/js/list.js b/src/admin/js/list.js index c59d6c95..e5411d03 100644 --- a/src/admin/js/list.js +++ b/src/admin/js/list.js @@ -31,7 +31,7 @@ function moveArc(e, obj, cid){ ShowMsg('请选择一个或多个文档'); return; } - LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', 'auto', '180px'); + LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', 'auto', '300px'); ChangeFullDiv('show'); } function adArc(aid) { @@ -46,7 +46,7 @@ function cAtts(jname, e, obj) { ShowMsg('请选择一个或多个文档'); return; } - LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr=' + qstr + '&dojob=' + jname + '&rnd=' + Math.random(), 'attsDlg', 'auto', '180px'); + LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr=' + qstr + '&dojob=' + jname + '&rnd=' + Math.random(), 'attsDlg', 'auto', '300px'); ChangeFullDiv('show', screeheight); } function delArc(aid) { @@ -58,7 +58,6 @@ function QuickEdit(aid, e, obj) { LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid=' + aid + '&rnd=' + Math.random(), 'quickEdit', 'auto', '300px'); ChangeFullDiv('show'); } -//获得选中文件的文件名 function getCheckboxItem() { var allSel = ""; if (document.form2.arcID.value) return document.form2.arcID.value; @@ -72,7 +71,6 @@ function getCheckboxItem() { } return allSel; } -//获得选中其中一个的id function getOneItem() { var allSel = ''; if (document.form2.arcID.value) return document.form2.arcID.value; diff --git a/src/admin/js/search.js b/src/admin/js/search.js index fe552ea1..2015d5fe 100644 --- a/src/admin/js/search.js +++ b/src/admin/js/search.js @@ -13,9 +13,8 @@ function noselAll() { } } } -//批量删除搜多关键词 function delall() { - DedeConfirm("您确定要删除选定关键词吗").then((v) => { + DedeConfirm("您确定要删除关键词吗").then((v) => { document.form3.dopost.value = 'delall'; document.form3.submit(); }).catch((e) => { diff --git a/src/admin/js/update.js b/src/admin/js/update.js index 886afca1..32896e54 100644 --- a/src/admin/js/update.js +++ b/src/admin/js/update.js @@ -1,13 +1,11 @@ var currentStep = 1; var hasNewVer = false; -//步骤 function dedeAlter(msg, t = 'info', loading = false) { let loadingStr = loading ? '' : ''; return `