diff --git a/src/main/java/cc/ryanc/halo/model/enums/BlogProperties.java b/src/main/java/cc/ryanc/halo/model/enums/BlogProperties.java index ad755b4c8..e529cccc5 100644 --- a/src/main/java/cc/ryanc/halo/model/enums/BlogProperties.java +++ b/src/main/java/cc/ryanc/halo/model/enums/BlogProperties.java @@ -131,16 +131,6 @@ public enum BlogProperties implements PropertyEnum { */ WIDGET_DAYCOUNT("widget_daycount", Boolean.class), - /** - * 默认缩略图地址 - */ - DEFAULT_THUMBNAIL("/static/halo-content/images/thumbnail/thumbnail.png", String.class), - - /** - * 自动备份 - */ - AUTO_BACKUP("auto_backup", Boolean.class), - /** * API Token */ diff --git a/src/main/java/cc/ryanc/halo/web/controller/core/InstallController.java b/src/main/java/cc/ryanc/halo/web/controller/core/InstallController.java index be2e69d60..47f26d962 100644 --- a/src/main/java/cc/ryanc/halo/web/controller/core/InstallController.java +++ b/src/main/java/cc/ryanc/halo/web/controller/core/InstallController.java @@ -233,7 +233,6 @@ public class InstallController { // post.setStatus(PostStatus.PUBLISHED); // post.setUrl("hello-halo"); // post.setDisallowComment(true); -// post.setThumbnail("/static/halo-frontend/images/thumbnail/thumbnail-" + RandomUtil.randomInt(1, 11) + ".jpg"); // postService.create(post); // // //第一个评论 diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-1.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-1.jpg deleted file mode 100644 index ef7136b09..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-1.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-10.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-10.jpg deleted file mode 100644 index ea0657c3b..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-10.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-2.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-2.jpg deleted file mode 100644 index 5962231e2..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-2.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-3.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-3.jpg deleted file mode 100644 index a4f30e0cc..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-3.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-4.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-4.jpg deleted file mode 100644 index f6dc065c4..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-4.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-5.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-5.jpg deleted file mode 100644 index c1e6984af..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-5.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-6.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-6.jpg deleted file mode 100644 index 1afce853c..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-6.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-7.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-7.jpg deleted file mode 100644 index d805f971e..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-7.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-8.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-8.jpg deleted file mode 100644 index 47c0d3362..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-8.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-9.jpg b/src/main/resources/static/halo-content/images/thumbnail/thumbnail-9.jpg deleted file mode 100644 index 26b00a3dd..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail-9.jpg and /dev/null differ diff --git a/src/main/resources/static/halo-content/images/thumbnail/thumbnail.png b/src/main/resources/static/halo-content/images/thumbnail/thumbnail.png deleted file mode 100644 index 32df10046..000000000 Binary files a/src/main/resources/static/halo-content/images/thumbnail/thumbnail.png and /dev/null differ diff --git a/src/main/resources/static/halo-content/plugins/activate-power-mode/activate-power-mode.js b/src/main/resources/static/halo-content/plugins/activate-power-mode/activate-power-mode.js deleted file mode 100644 index e016b3ae4..000000000 --- a/src/main/resources/static/halo-content/plugins/activate-power-mode/activate-power-mode.js +++ /dev/null @@ -1 +0,0 @@ -(function webpackUniversalModuleDefinition(b,a){if(typeof exports==="object"&&typeof module==="object"){module.exports=a()}else{if(typeof define==="function"&&define.amd){define([],a)}else{if(typeof exports==="object"){exports.POWERMODE=a()}else{b.POWERMODE=a()}}}})(this,function(){return(function(c){var b={};function a(e){if(b[e]){return b[e].exports}var d=b[e]={exports:{},id:e,loaded:false};c[e].call(d.exports,d,d.exports,a);d.loaded=true;return d.exports}a.m=c;a.c=b;a.p="";return a(0)})([function(j,e,a){var b=document.createElement("canvas");b.width=window.innerWidth;b.height=window.innerHeight;b.style.cssText="position:fixed;top:0;left:0;pointer-events:none;z-index:999999";window.addEventListener("resize",function(){b.width=window.innerWidth;b.height=window.innerHeight});document.body.appendChild(b);var c=b.getContext("2d");var l=[];var k=0;m.shake=true;function h(o,n){return Math.random()*(n-o)+o}function g(n){if(m.colorful){var o=h(0,360);return"hsla("+h(o-10,o+10)+", 100%, "+h(50,80)+"%, "+1+")"}else{return window.getComputedStyle(n).color}}function f(){var o=document.activeElement;var n;if(o.tagName==="TEXTAREA"||(o.tagName==="INPUT"&&o.getAttribute("type")==="text")){var p=a(1)(o,o.selectionStart);n=o.getBoundingClientRect();return{x:p.left+n.left,y:p.top+n.top,color:g(o)}}var r=window.getSelection();if(r.rangeCount){var q=r.getRangeAt(0);var s=q.startContainer;if(s.nodeType===document.TEXT_NODE){s=s.parentNode}n=q.getBoundingClientRect();return{x:n.left,y:n.top,color:g(s)}}return{x:0,y:0,color:"transparent"}}function d(o,p,n){return{x:o,y:p,alpha:1,color:n,velocity:{x:-1+Math.random()*2,y:-3.5+Math.random()*2}}}function m(){var n=f();var p=5+Math.round(Math.random()*10);while(p--){l[k]=d(n.x,n.y,n.color);k=(k+1)%500}if(m.shake){var o=1+2*Math.random();var q=o*(Math.random()>0.5?-1:1);var r=o*(Math.random()>0.5?-1:1);document.body.style.marginLeft=q+"px";document.body.style.marginTop=r+"px";setTimeout(function(){document.body.style.marginLeft="";document.body.style.marginTop=""},75)}}m.colorful=false;function i(){requestAnimationFrame(i);c.clearRect(0,0,b.width,b.height);for(var n=0;nparseInt(f.height)){o.overflowY="scroll"}}else{o.overflow="hidden"}i.textContent=k.value.substring(0,m);if(k.nodeName==="INPUT"){i.textContent=i.textContent.replace(/\s/g,"\u00a0")}var n=document.createElement("span");n.textContent=k.value.substring(m)||".";i.appendChild(n);var g={top:n.offsetTop+parseInt(f.borderTopWidth),left:n.offsetLeft+parseInt(f.borderLeftWidth)};if(h){n.style.backgroundColor="#aaa"}else{document.body.removeChild(i)}return g}if(typeof b!="undefined"&&typeof b.exports!="undefined"){b.exports=c}else{window.getCaretCoordinates=c}}())}])});