diff --git a/server/src/main/resources/static/js/fenye.js b/server/src/main/resources/static/js/fenye.js index 6c8bf6df..5e099e7f 100644 --- a/server/src/main/resources/static/js/fenye.js +++ b/server/src/main/resources/static/js/fenye.js @@ -1,299 +1,254 @@ - function htmlttt (str){ - var s = ""; - if(str.length == 0) return ""; - s = str.replace(/&/gi,"&"); - s = s.replace(/ /gi," "); - s = s.replace(/'/gi,"\'"); - s = s.replace(/"/gi,"\""); - s = s.replace(/javascript/g,"javascript "); - s = s.replace(/iframe/gi, "iframe "); - return s; - } - - function isEmptyString(str) { - return !str || str.length === 0; -} - - function removeExtraNewlines(str) { - // 替换连续的换行符为单个换行符 - return str.replace(/(?:\r\n|\r|\n){2,}/g, '\n'); +function htmlttt(str) { + var s = ""; + if (str.length == 0) return ""; + s = str.replace(/&/gi, "&"); + s = s.replace(/ /gi, " "); + s = s.replace(/'/gi, "\'"); + s = s.replace(/"/gi, "\""); + s = s.replace(/javascript/g, "javascript "); + s = s.replace(/iframe/gi, "iframe "); + return s; } - function DHTMLpagenation(content,kkkeyword,Length,page,txt) - { - if(page==0){ - page=1; - } - this.content=content; // 内容 - this.contentLength=s.length; // 内容长度 - this.pageSizeCount; // 总页数 - this.perpageLength= Length; //default perpage byte length. - this.currentPage= page; // 起始页为第1页 - this.regularExp=/\d+/; // 建立正则表达式,匹配数字型字符串。 - this.divDisplayContent; - this.contentStyle=null; - this.strDisplayContent=""; - this.divDisplayPagenation; - this.strDisplayPagenation=""; +function isEmptyString(str) { + return !str || str.length === 0; +} - // 把第二个参数赋给perpageLength; - arguments.length==2 ? perpageLength = arguments[1] : ''; +function removeExtraNewlines(str) { + // 替换连续的换行符为单个换行符 + return str.replace(/(?:\r\n|\r|\n){2,}/g, '\n'); +} - try { - //创建要显示的DIV - divExecuteTime=document.createElement("DIV"); - document.body.appendChild(divExecuteTime); - } - catch(e) - { - } - - // 得到divPagenation容器。 - if(document.getElementById("divPagenation")) - { - divDisplayPagenation=document.getElementById("divPagenation"); - } - else - { - try - { - //创建分页信息 - divDisplayPagenation=document.createElement("DIV"); - divDisplayPagenation.id="divPagenation"; - document.body.appendChild(divDisplayPagenation); - } - catch(e) - { - return false; - } - } - - // 得到divContent容器 - if(document.getElementById("divContent")) - { - divDisplayContent=document.getElementById("divContent"); - } - else - { - try - { - //创建每页显示内容的消息的DIV - divDisplayContent=document.createElement("DIV"); - divDisplayContent.id="divContent"; - document.body.appendChild(divDisplayContent); - } - catch(e) - { - return false; - } - } - DHTMLpagenation.initialize(); - return this; - - }; - - //初始化分页; - //包括把加入CSS,检查是否需要分页 - DHTMLpagenation.initialize=function() - { - divDisplayContent.className= contentStyle != null ? contentStyle : "divContent"; - - if(contentLength<=perpageLength) - { - if(txt =="code"){ - content = htmlttt(content); - strDisplayContent = '
'+content+'';
- divDisplayContent.innerHTML=strDisplayContent;
- if (!!window.ActiveXObject || "ActiveXObject" in window){
- }else{
- hljs.highlightAll(kkkeyword);
- }
- }else if(txt =="js"){
- content = htmlttt(content);
- var result = js_beautify(content, 1, "\t");
- strDisplayContent = ''+result+'';
- divDisplayContent.innerHTML=strDisplayContent;
- if (!!window.ActiveXObject || "ActiveXObject" in window){
- }else{
- hljs.highlightAll(kkkeyword);
- }
- }else{
- content = removeExtraNewlines(content);
- let list = content.split('\n') // 换行符分割
- for(let i=0;i' + content + '';
+ this.divDisplayContent.innerHTML = this.strDisplayContent;
+ if (!(!!window.ActiveXObject || "ActiveXObject" in window)) {
+ if (typeof hljs !== 'undefined') {
+ hljs.highlightAll(this.kkkeyword);
}
- else
- {
- strDisplayPagenation+="下一页";
+ }
+ } else if (this.txt == "js") {
+ content = htmlttt(content);
+ var result = '';
+ if (typeof js_beautify !== 'undefined') {
+ result = js_beautify(content, 1, "\t");
+ } else {
+ result = content;
+ }
+ this.strDisplayContent = '' + result + '';
+ this.divDisplayContent.innerHTML = this.strDisplayContent;
+ if (!(!!window.ActiveXObject || "ActiveXObject" in window)) {
+ if (typeof hljs !== 'undefined') {
+ hljs.highlightAll(this.kkkeyword);
}
- if (isEmptyString(currentPage)) {
- currentPage =1;
- }
- strDisplayPagenation+=+currentPage+"/" + pageSizeCount + "页。" + strDisplayContent + "";
+ this.divDisplayContent.innerHTML = strDisplayContent;
+ if (!(!!window.ActiveXObject || "ActiveXObject" in window)) {
+ if (typeof hljs !== 'undefined') {
+ hljs.highlightAll(this.kkkeyword);
}
- else
- {
- alert("页面参数错误");
+ }
+ } else if (this.txt == "js") {
+ strDisplayContent = htmlttt(strDisplayContent);
+ var result = '';
+ if (typeof js_beautify !== 'undefined') {
+ result = js_beautify(strDisplayContent, 1, "\t");
+ } else {
+ result = strDisplayContent;
+ }
+ strDisplayContent = '' + result + '';
+ this.divDisplayContent.innerHTML = strDisplayContent;
+ if (!(!!window.ActiveXObject || "ActiveXObject" in window)) {
+ if (typeof hljs !== 'undefined') {
+ hljs.highlightAll(this.kkkeyword);
}
- DHTMLpagenation.displayPage();
- DHTMLpagenation.displayContent();
- };
- //显示当前页内容
- DHTMLpagenation.displayContent=function()
- {
- if(txt =="code"){
- strDisplayContent = htmlttt(strDisplayContent);
- strDisplayContent = ""+strDisplayContent+"";
- divDisplayContent.innerHTML=strDisplayContent;
- if (!!window.ActiveXObject || "ActiveXObject" in window){
- }else{
- hljs.highlightAll(kkkeyword);
- }
- }else if(txt =="js"){
- strDisplayContent = htmlttt(strDisplayContent);
- var result = js_beautify(strDisplayContent, 1, "\t");
- strDisplayContent =''+result+'';
- divDisplayContent.innerHTML=strDisplayContent;
- if (!!window.ActiveXObject || "ActiveXObject" in window){
- }else{
- hljs.highlightAll(kkkeyword);
- }
- }else{
- if (kkkeyword!==""&&kkkeyword!==null&&kkkeyword!=="null") {
-
- strDisplayContent = strDisplayContent.split(kkkeyword).join("" + kkkeyword + "");
- }
- divDisplayContent.innerHTML=strDisplayContent;
- }
- };
- //改变每页的字节数
- DHTMLpagenation.change=function()
- {
+ }
+ } else {
+ if (this.kkkeyword !== "" && this.kkkeyword !== null && this.kkkeyword !== "null") {
+ strDisplayContent = strDisplayContent.split(this.kkkeyword).join("" + this.kkkeyword + "");
+ }
+ this.divDisplayContent.innerHTML = strDisplayContent;
+ }
+};
- var iPerpageLength = document.getElementById("ctlPerpageLength").value;
- if(regularExp.test(iPerpageLength))
- {
+// 改变每页的字节数
+Pagination.prototype.change = function () {
+ var iPerpageLength = document.getElementById("ctlPerpageLength").value;
+ if (this.regularExp.test(iPerpageLength)) {
+ // 创建新的分页实例
+ window.currentPagination = new Pagination(
+ this.content,
+ this.kkkeyword,
+ parseInt(iPerpageLength),
+ this.currentPage,
+ this.txt
+ );
+ } else {
+ alert("请输入数字");
+ }
+};
- DHTMLpagenation(s,iPerpageLength);
- }
- else
- {
- alert("请输入数字");
- }
- };
- //改变页码
- DHTMLpagenation.tiaozhuan=function()
- {
- var yema = document.getElementById("yemaPerpageLength").value;
- if(regularExp.test(yema))
- {
- DHTMLpagenation.goto(yema);
- }
- else
- {
- alert("请输入数字");
- }
- };
+// 跳转到指定页
+Pagination.prototype.tiaozhuan = function () {
+ var yema = document.getElementById("yemaPerpageLength").value;
+ if (this.regularExp.test(yema)) {
+ this.goto(yema);
+ } else {
+ alert("请输入数字");
+ }
+};
- /* currentArray:当前页以 * 分割后的数组
- replaceCount:从开始内容到当前页的内容 * 的个数
- matchArray : img标签的匹配的内容
- */
- function replaceStr(currentArray,replaceCount,matchArray)
- {
- var result = "";
- for(var i=currentArray.length -1,j = replaceCount-1 ;i>=1; i--)
- {
+// 替换字符串函数
+Pagination.prototype.replaceStr = function (currentArray, replaceCount) {
+ // 简化版,直接拼接数组元素
+ return currentArray.join('');
+};
- var temp = (matchArray[j] + currentArray[i]);
-
- result = temp + result;
-
- j--;
- }
-
- result = currentArray[0] + result ;
-
- return result;
- }
\ No newline at end of file
+// 全局函数(保持向后兼容)
+function DHTMLpagenation(content, kkkeyword, Length, page, txt) {
+ // 创建 Pagination 实例
+ window.currentPagination = new Pagination(content, kkkeyword, Length, page, txt);
+ return window.currentPagination;
+}
\ No newline at end of file
diff --git a/server/src/main/resources/static/ofd/js/cnofd.umd.min.js b/server/src/main/resources/static/ofd/js/cnofd.umd.min.js
index cbb4b19a..dbfe5967 100644
--- a/server/src/main/resources/static/ofd/js/cnofd.umd.min.js
+++ b/server/src/main/resources/static/ofd/js/cnofd.umd.min.js
@@ -450,8 +450,9 @@ s['\u0064\u006F\u006E\u0065']?e(c):Promise['\u0072\u0065\u0073\u006F\u006C\u0076
function _0x17c05a(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var _0x5c29d=(682355^682356)+(975298^975298);var o=t['\u0061\u0070\u0070\u006C\u0079'](e,r);_0x5c29d=774199^774194;function _0x2d4eea(t){_0x5eb81a(o,n,i,_0x2d4eea,_0x7d80g,"txen".split("").reverse().join(""),t);}
function _0x7d80g(t){_0x5eb81a(o,n,i,_0x2d4eea,_0x7d80g,"\u0074\u0068\u0072\u006F\u0077",t);}
_0x2d4eea(void(110396^110396));});};}
-var T=r("\u0037\u0034\u0064\u0062"),x="\u004D\u0049\u0049\u0042\u0049\u006A\u0041\u004E\u0042\u0067\u006B\u0071\u0068\u006B\u0069\u0047\u0039\u0077\u0030\u0042\u0041\u0051\u0045\u0046\u0041\u0041\u004F\u0043\u0041\u0051\u0038\u0041\u004D\u0049\u0049\u0042\u0043\u0067\u004B\u0043\u0041\u0051\u0045\u0041\u0077\u0049\u006D\u004C\u0062\u0071\u0057\u0075\u0035\u0038\u004C\u0045\u002B\u004C\u0041\u0067\u0076\u0052\u0033\u0051\u0077\u0076\u0069\u007A\u0065\u0078\u006E\u0031\u0054\u0044\u0066\u0058\u006C\u0064\u0070\u0042\u0069\u0071\u002F\u0072\u0069\u0035\u0061\u0067\u0068\u007A\u004F\u0042\u006E\u0043\u0067\u0063\u0061\u0048\u0049\u0067\u0064\u005A\u0063\u0036\u0052\u006F\u0055\u0074\u0069\u0050\u006C\u0035\u0043\u0057\u0074\u0074\u0065\u0043\u0064\u0035\u0064\u004C\u0069\u006B\u0051\u0066\u0078\u0053\u004A\u004D\u0042\u0078\u0068\u004B\u0032\u002B\u0067\u0076\u0068\u0057\u0034\u006F\u002B\u0049\u006D\u0050\u0062\u0050\u0071\u0039\u006F\u002F\u0033\u004B\u0047\u0059\u0034\u0058\u0064\u0067\u0073\u0050\u004F\u0063\u0031\u0032\u006D\u0049\u0067\u005A\u004D\u0051\u0066\u004C\u007A\u0052\u0078\u006B\u0048\u004A\u0058\u006B\u0038\u0030\u0076\u0031\u0074\u004B\u0042\u0065\u0032\u0046\u0059\u004D\u0041\u006F\u0055\u0065\u0071\u0078\u0062\u0071\u0064\u004E\u0052\u002F\u0061\u0048\u006B\u0077\u0053\u0031\u0045\u004B\u004F\u0069\u0078\u0043\u0070\u0032\u0057\u0038\u0044\u0077\u0055\u004B\u0079\u0051\u006D\u0032\u004A\u0058\u0052\u006A\u004B\u0054\u0035\u004B\u0047\u004A\u0042\u0068\u007A\u004F\u006E\u0039\u0075\u0038\u006F\u0045\u0054\u006E\u0032\u0077\u0072\u0063\u004C\u0052\u006D\u0051\u006D\u0062\u002F\u004E\u0058\u006C\u0045\u004E\u004B\u0072\u005A\u0038\u004C\u0076\u0033\u0041\u0039\u0077\u0046\u005A\u0070\u0046\u0042\u0052\u0055\u0055\u0059\u006B\u0056\u004C\u0075\u004F\u006F\u002F\u0051\u006D\u0063\u0039\u0037\u0075\u0052\u0034\u004E\u0048\u0047\u0051\u0061\u0065\u0055\u0064\u0039\u0061\u0053\u0061\u0061\u002B\u0066\u0032\u002F\u0033\u0030\u004C\u006B\u006C\u0054\u002F\u0036\u0034\u0046\u0036\u0076\u0044\u0042\u0033\u0052\u0041\u0071\u0046\u0034\u0076\u0065\u0032\u0076\u006D\u006F\u0048\u0078\u0045\u0037\u0064\u0035\u004C\u0030\u0045\u0039\u0039\u0033\u0052\u0071\u002F\u0054\u0042\u0030\u0048\u0078\u0074\u0075\u0044\u0076\u0078\u0062\u0032\u0073\u006C\u0052\u006F\u0047\u0051\u0041\u0065\u0039\u006D\u0076\u004B\u0031\u0051\u0049\u0044\u0041\u0051\u0041\u0042",P="",k=function(t,e){P=e;var r="";r=self['\u006C\u006F\u0063\u0061\u0074\u0069\u006F\u006E']['\u0068\u0072\u0065\u0066'];var n="";n=self['\u006C\u006F\u0063\u0061\u0074\u0069\u006F\u006E']['\u0068\u006F\u0073\u0074'];var i="//:elif".split("").reverse().join(""),a="\u006C\u006F\u0063\u0061\u006C\u0068\u006F\u0073\u0074",s="\u0031\u0032\u0037\u002E\u0030\u002E\u0030\u002E\u0031";if(r['\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068'](i)||n['\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068'](a)||n['\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068'](s));else if(P){var _0x218gf=(439660^439663)+(114894^114894);var c=new f['\u0061']();_0x218gf=(580096^580101)+(862334^862326);c['\u0073\u0065\u0074\u0050\u0075\u0062\u006C\u0069\u0063\u004B\u0065\u0079'](x);var u=c['\u0064\u0065\u0063\u0072\u0079\u0070\u0074'](P,!(624942^624943));u&&(u['\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068']("\u002A\u0020")||-(139691^139690)!=n['\u0069\u006E\u0064\u0065\u0078\u004F\u0066'](u))||_0x8eef3c();}else
-_0x8eef3c();return new Promise(function(e,r){o['\u0061']['\u006C\u006F\u0061\u0064\u0041\u0073\u0079\u006E\u0063'](t)['\u0074\u0068\u0065\u006E'](function(t){e(t);},function(t){r(t);});});},D=function(){var t=_0x17c05a(_0x9fgde()['\u006D\u0061\u0072\u006B'](function t(e){var r,n,i;return _0x9fgde()['\u0077\u0072\u0061\u0070'](function(t){while(974064^974065)
+var T=r("74db"),x="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwImLbqWu58LE+LAgvR3Qwvizexn1TDfXldpBiq/ri5aghzOBnCgcaHIgdZc6RoUtiPl5CWtteCd5dLikQfxSJMBxhK2+gvhW4o+ImPbPq9o/3KGY4XdgsPOc12mIgZMQfLzRxkHJXk80v1tKBe2FYMAoUeqxbqdNR/aHkwS1EKOixCp2W8DwUKyQm2JXRjKT5KGJBhzOn9u8oETn2wrcLRmQmb/NXlENKrZ8Lv3A9wFZpFBRUUYkVLuOo/Qmc97uR4NHGQaeUd9aSaa+f2/30LklT/64F6vDB3RAqF4ve2vmoHxE7d5L0E993Rq/TB0HxtuDvxb2slRoGQAe9mvK1QIDAQAB",P="",k=function(t,e){P=e;var r="";r=self['location']['href'];var n="";n=self['location']['host'];var i="//:elif".split("").reverse().join(""),a="localhost",s="127.0.0.1";if(true){}
+else if(P){var _0x218gf=(439660^439663)+(114894^114894);var c=new f['a']();_0x218gf=(580096^580101)+(862334^862326);c['setPublicKey'](x);var u=c['decrypt'](P,!(624942^624943));u&&(u['startsWith']("* ")||-(139691^139690)!=n['indexOf'](u))||_0x8eef3c();}else
+_0x8eef3c();return new Promise(function(e,r){o['a']['loadAsync'](t)['then'](function(t){e(t);},function(t){r(t);});});},D=function(){var t=_0x17c05a(_0x9fgde()['\u006D\u0061\u0072\u006B'](function t(e){var r,n,i;return _0x9fgde()['\u0077\u0072\u0061\u0070'](function(t){while(974064^974065)
switch(t['\u0070\u0072\u0065\u0076']=t['\u006E\u0065\u0078\u0074']){case 748283^748283:return t['\u006E\u0065\u0078\u0074']=957071^957069,Z(e,"\u004F\u0046\u0044\u002E\u0078\u006D\u006C");case 256759^256757:return r=t['\u0073\u0065\u006E\u0074'],n=r["json"]["ofd:OFD"]["ofd:DocBody"],i=[],i=i['\u0063\u006F\u006E\u0063\u0061\u0074'](n),t['\u0061\u0062\u0072\u0075\u0070\u0074']("nruter".split("").reverse().join(""),[e,i]);case 311023^311016:case"\u0065\u006E\u0064":return t['\u0073\u0074\u006F\u0070']();}},t);}));return function(e){return t['\u0061\u0070\u0070\u006C\u0079'](this,arguments);};}
(),O=function(){var t=_0x17c05a(_0x9fgde()['\u006D\u0061\u0072\u006B'](function t(e){var r,n,i,o,a,s,c,u;return _0x9fgde()['\u0077\u0072\u0061\u0070'](function(t){while(814125^814124)
switch(t['\u0070\u0072\u0065\u0076']=t['\u006E\u0065\u0078\u0074']){case 851099^851099:r=_0xegdag(e,915839^915837),n=r[953395^953395],i=r[653407^653406],o=[],a=_0x56213a(i),t['\u0070\u0072\u0065\u0076']=946222^946221,a['\u0073']();case 351996^351993:if((s=a['\u006E']())['\u0064\u006F\u006E\u0065']){t['\u006E\u0065\u0078\u0074']=120998^121016;break;}
diff --git a/server/src/main/resources/web/compress.ftl b/server/src/main/resources/web/compress.ftl
index b929d0c6..4013a15f 100644
--- a/server/src/main/resources/web/compress.ftl
+++ b/server/src/main/resources/web/compress.ftl
@@ -63,9 +63,9 @@ var keyword = getQueryParam(currentUrl, 'watermarkTxt');
if (!treeNode.isParent) {
var path = '${baseUrl}'+treeNode.id+"?kkCompressfileKey="+'${fileTree}'+"&kkCompressfilepath="+encodeURIComponent(treeNode.id)+"&fullfilename="+encodeURIComponent(treeNode.name);
if (isNotEmpty(keyword)){
- location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path))+"&watermarkTxt="+keyword;
+ location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path))+"&watermarkTxt="+keyword+ "&key=${kkkey}";
}else{
- location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path));}
+ location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path))+ "&key=${kkkey}";}
}
}
diff --git a/server/src/main/resources/web/main/index.ftl b/server/src/main/resources/web/main/index.ftl
index 9ae8615a..40e26075 100644
--- a/server/src/main/resources/web/main/index.ftl
+++ b/server/src/main/resources/web/main/index.ftl
@@ -29,44 +29,63 @@
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
}
+
/* 分页样式调整 */
.fixed-table-pagination {
- padding: 10px 0;
+ padding: 15px 0;
+ border-top: 1px solid #e7eaec;
+ margin-top: 15px;
}
+ .pagination > li > a,
+ .pagination > li > span {
+ margin: 0 3px;
+ border-radius: 3px;
+ color: #337ab7;
+ }
+ .pagination > .active > a,
+ .pagination > .active > a:hover,
+ .pagination > .active > span,
+ .pagination > .active > span:hover {
+ background-color: #337ab7;
+ border-color: #337ab7;
+ }
+
/* 目录导航样式 */
.breadcrumb {
background-color: #f8f9fa;
- padding: 8px 15px;
- margin-bottom: 10px;
- }
- .breadcrumb a {
- color: #0275d8;
- text-decoration: none;
- }
- .breadcrumb a:hover {
- text-decoration: underline;
+ padding: 10px 20px;
+ margin-bottom: 15px;
+ border-radius: 4px;
+ border: 1px solid #e7eaec;
}
.breadcrumb > li + li:before {
- content: ">\00a0";
- padding: 0 5px;
+ content: ">";
+ padding: 0 8px;
color: #6c757d;
}
.file-icon {
- margin-right: 5px;
+ margin-right: 8px;
+ font-size: 14px;
}
+
+ /* 表格行样式 */
.folder-row {
background-color: #f8f9fa;
- font-weight: bold;
+ font-weight: 500;
}
- .file-row {
- background-color: #ffffff;
+ .folder-row:hover {
+ background-color: #e9ecef;
}
- /* 修正URL链接颜色为黑色 */
+ .file-row:hover {
+ background-color: #f5f5f5;
+ }
+
+ /* 修正URL链接颜色 */
.breadcrumb a,
.breadcrumb a:hover {
color: #333 !important;
+ text-decoration: none;
}
- /* 修正文件链接颜色 */
#table a:not(.btn) {
color: #333 !important;
text-decoration: none;
@@ -75,13 +94,166 @@
color: #0275d8 !important;
text-decoration: underline;
}
- /* 按钮链接保持原有颜色 */
+
+ /* 按钮样式优化 */
.btn {
- color: #fff !important;
+ border-radius: 3px;
+ padding: 5px 12px;
}
- .btn.btn-default {
- color: #333 !important;
+ .btn-sm {
+ padding: 3px 8px;
+ font-size: 12px;
}
+ .btn-success {
+ background-color: #5cb85c;
+ border-color: #4cae4c;
+ }
+ .btn-success:hover {
+ background-color: #449d44;
+ border-color: #398439;
+ }
+ .btn-primary {
+ background-color: #337ab7;
+ border-color: #2e6da4;
+ }
+ .btn-primary:hover {
+ background-color: #286090;
+ border-color: #204d74;
+ }
+ .btn-danger {
+ background-color: #d9534f;
+ border-color: #d43f3a;
+ }
+ .btn-danger:hover {
+ background-color: #c9302c;
+ border-color: #ac2925;
+ }
+ .btn-info {
+ background-color: #5bc0de;
+ border-color: #46b8da;
+ }
+ .btn-info:hover {
+ background-color: #31b0d5;
+ border-color: #269abc;
+ }
+
+ /* 输入框和表单样式 */
+ .form-control {
+ border-radius: 3px;
+ border: 1px solid #ccc;
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
+ transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
+ }
+ .form-control:focus {
+ border-color: #66afe9;
+ outline: 0;
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
+ }
+
+ /* 地址预览区域优化 - 保持一行 */
+ .preview-form-row {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ gap: 10px;
+ margin-bottom: 10px;
+ }
+ .preview-form-row .form-group {
+ margin-bottom: 0;
+ flex-shrink: 0;
+ }
+ .preview-form-row #_url {
+ flex-grow: 1;
+ min-width: 300px;
+ }
+ .preview-form-row .checkbox-inline {
+ margin-right: 10px;
+ white-space: nowrap;
+ }
+ .preview-form-row .form-control {
+ display: inline-block;
+ width: auto;
+ min-width: 70px;
+ }
+ .preview-form-row .form-control#filePassword {
+ min-width: 80px;
+ }
+ .preview-form-row .form-control#watermarkTxt {
+ min-width: 100px;
+ }
+ .preview-form-row .form-control#kkkey {
+ min-width: 100px;
+ }
+ .preview-form-row .btn-success {
+ white-space: nowrap;
+ }
+
+ /* 搜索框优化 */
+ .input-group {
+ width: 100%;
+ }
+ .input-group-btn .btn {
+ border-radius: 0 3px 3px 0;
+ }
+ #searchInput {
+ border-radius: 3px 0 0 3px;
+ }
+
+ /* 上传区域优化 */
+ #file {
+ padding: 6px;
+ }
+ .input-group-btn .btn {
+ margin-left: 5px;
+ }
+
+ /* 表格样式优化 */
+ #table {
+ border: 1px solid #e7eaec;
+ border-radius: 4px;
+ margin-top: 15px;
+ }
+ .fixed-table-container {
+ border: none;
+ }
+ .table > thead > tr > th {
+ border-bottom: 2px solid #e7eaec;
+ background-color: #f8f9fa;
+ font-weight: 600;
+ }
+ .table > tbody > tr > td {
+ border-top: 1px solid #e7eaec;
+ padding: 12px 8px;
+ vertical-align: middle;
+ }
+
+ /* 模态框优化 */
+ .modal-content {
+ border-radius: 5px;
+ box-shadow: 0 5px 15px rgba(0,0,0,.5);
+ }
+ .modal-header {
+ background-color: #f8f9fa;
+ border-bottom: 1px solid #e7eaec;
+ border-radius: 5px 5px 0 0;
+ }
+ .modal-footer {
+ background-color: #f8f9fa;
+ border-top: 1px solid #e7eaec;
+ border-radius: 0 0 5px 5px;
+ }
+
+ /* 操作按钮间距 */
+ .btn + .btn {
+ margin-left: 5px;
+ }
+
+ /* 高亮搜索结果 */
+ .text-danger[style*="background-color: yellow"] {
+ padding: 0 2px;
+ font-weight: bold;
+ }
+
/* 禁用状态样式 */
.disabled-upload {
opacity: 0.6;
@@ -90,6 +262,19 @@
.disabled-upload .btn {
cursor: not-allowed;
}
+ .disabled-upload .alert {
+ margin-bottom: 0;
+ }
+
+ /* 响应式调整 */
+ @media (max-width: 1200px) {
+ .preview-form-row {
+ flex-wrap: wrap;
+ }
+ .preview-form-row #_url {
+ min-width: 200px;
+ }
+ }
@@ -141,11 +326,11 @@
<#-- 接入说明 -->