Browse Source

增加美图皮肤选项,优化

master
wen 2 years ago
parent
commit
5b837db977
  1. 2
      README.md
  2. 2
      dist/index.html
  3. 0
      dist/static/css/chunk-1de98776.3f792b5c.css
  4. 0
      dist/static/css/chunk-36e694d2.d185d2a3.css
  5. 2
      dist/static/js/app.da03b362.js
  6. 1
      dist/static/js/chunk-08342da8.389b883d.js
  7. 1
      dist/static/js/chunk-1de98776.ce3feb9b.js
  8. 1
      dist/static/js/chunk-21359588.fa3c756c.js
  9. 1
      dist/static/js/chunk-36e694d2.6b9de02c.js
  10. 6
      package.json
  11. 5
      public/index.html
  12. 3
      src/settings.js
  13. 10
      src/views/subfile/index.vue
  14. 14
      src/views/systme/switchtheme.vue

2
README.md

@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
<p align="center">
<img width="900" src="http://m.qpic.cn/psc?/3d394237-5d5e-4b57-9697-93ff9b690ca2/bqQfVz5yrrGYSXMvKr.cqSKMw.aFDCgHEfu3TrMZ2BlhrQskVIxwAOjVKCTEfSaf0c8KgcabeoLOhji4ZGK5xx8WKQ0xPgq6KhYNX5aohdI!/b&bo=gAepAwAAAAABBw0!&rf=viewer_4">
<img width="900" src="https://demo.jialuoma.cn/girls/demoimg.jpeg">
</p>

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

0
dist/static/css/chunk-08342da8.3f792b5c.css → dist/static/css/chunk-1de98776.3f792b5c.css vendored

0
dist/static/css/chunk-21359588.d185d2a3.css → dist/static/css/chunk-36e694d2.d185d2a3.css vendored

2
dist/static/js/app.7179f144.js → dist/static/js/app.da03b362.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-08342da8.389b883d.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-1de98776.ce3feb9b.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-21359588.fa3c756c.js vendored

@ -1 +0,0 @@ @@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21359588"],{"1e39":function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看"+e._s(e.skinlabel)+"站点")])],1):e._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"googleimage",label:"图片站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$store.dispatch("settings/thmename",e.skinlabel),n.$message({showClose:!0,message:i.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:i.err,type:"error"}),e.skinloading=!1})).catch((function(n){e.skinloading=!1,Object(a["i"])(e,n)}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("4e75"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);n["default"]=c.exports},"4e75":function(e,n,t){"use strict";t("7b94")},"7b94":function(e,n,t){},"857a":function(e,n,t){var i=t("1d80"),s=/"/g;e.exports=function(e,n,t,a){var l=String(i(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,"&quot;")+'"'),o+">"+l+"</"+n+">"}},9911:function(e,n,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(e){return s(this,"a","href",e)}})},af03:function(e,n,t){var i=t("d039");e.exports=function(e){return i((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}}}]);

1
dist/static/js/chunk-36e694d2.6b9de02c.js vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36e694d2"],{"1e39":function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看 "+e._s(e.skinlabel)+" 站点")])],1):e._e()],1)],1)])},s=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"beauty",label:"图片站-美图",link:"/?"},{value:"googleimage",label:"图片站-默认",link:"/?"},{value:"manual",label:"文档站",link:"/?"},{value:"webdirectory",label:"导航站",link:"/?"},{value:"videoblog",label:"视频站",link:"/?"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var i=t.data;1==i.code?(e.$store.dispatch("settings/thmename",e.skinlabel),n.$message({showClose:!0,message:i.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:i.err,type:"error"}),e.skinloading=!1})).catch((function(n){e.skinloading=!1,Object(a["i"])(e,n)}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("f892"),t("2877")),c=Object(u["a"])(r,i,s,!1,null,null,null);n["default"]=c.exports},"857a":function(e,n,t){var i=t("1d80"),s=/"/g;e.exports=function(e,n,t,a){var l=String(i(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(a).replace(s,"&quot;")+'"'),o+">"+l+"</"+n+">"}},9911:function(e,n,t){"use strict";var i=t("23e7"),s=t("857a"),a=t("af03");i({target:"String",proto:!0,forced:a("link")},{link:function(e){return s(this,"a","href",e)}})},af03:function(e,n,t){var i=t("d039");e.exports=function(e){return i((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}},b564:function(e,n,t){},f892:function(e,n,t){"use strict";t("b564")}}]);

6
package.json

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
{
"name": "love-tan",
"name": "JiaLuoMa",
"version": "0.1.0",
"description": "嘉洛马后台管理系统",
"author": "https://jialuoma.com/",
"description": "嘉洛马-文件后台管理系统",
"author": "https://jialuoma.cn/",
"scripts": {
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",

5
public/index.html

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>jialuoma2.ico">
<!-- <link rel="icon" href="<%= BASE_URL %>jialuoma2.ico"> -->
<!-- <title><%= webpackConfig.name %></title> -->
<title>嘉洛马 - 文件管理后台</title>
<!-- <link rel="stylesheet" type="text/css" href="loadhead.css"> -->
@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
<div id="app"></div>
<!-- built files will be auto injected -->
<!-- 51统计代码 -->
<script type="text/javascript" src="//js.users.51.la/21479199.js"></script>
</body>
</html>

3
src/settings.js

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
module.exports = {
title: '嘉洛马',
address: 'https://demo.jialuoma.cn',
address: 'http://192.168.0.100',
//address: 'https://demo.jialuoma.cn',
/**
* @type {boolean} true | false

10
src/views/subfile/index.vue

@ -90,9 +90,9 @@ @@ -90,9 +90,9 @@
min-width="30%">
<template slot-scope="scope">
<div class="file_show">
<a title="点击查看原文件" :href="imgurl+scope.row.image" target="_blank">
<a title="点击查看原文件" :href="scope.row.image" target="_blank">
<!-- {{scope.row.suffix}} -->
<img v-if="['jpg', 'jpeg', 'png', 'gif', 'webp'].indexOf(scope.row.suffix) != -1" :src="imgurl+scope.row.image" alt="图片"/>
<img v-if="['jpg', 'jpeg', 'png', 'gif', 'webp'].indexOf(scope.row.suffix) != -1" :src="scope.row.image" alt="图片"/>
<div v-else-if="scope.row.suffix == 'mp4'"><svg class="icon" style="width:7em;height:7em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2375"><path d="M898.71 706.68c-31.08 0-56.5-25.43-56.5-56.5V401.21c0-31.08 25.43-56.5 56.5-56.5 31.08 0 56.5 25.43 56.5 56.5v248.97c0 31.08-25.42 56.5-56.5 56.5z" fill="#F7B52C" p-id="2376"></path><path d="M691.58 886.72H217.32c-82.84 0-150.63-67.78-150.63-150.63V301.24c0-82.84 67.78-150.63 150.63-150.63h474.27c82.84 0 150.63 67.78 150.63 150.63V736.1c-0.01 82.84-67.79 150.62-150.64 150.62z" fill="#F7B52C" p-id="2377"></path><path d="M430.71 664.86l128.62-128.62c13.93-13.93 13.93-36.52 0-50.45L430.71 357.17c-22.47-22.47-60.9-6.56-60.9 25.22v257.24c0 31.79 38.42 47.71 60.9 25.23z" fill="#FFFFFF" p-id="2378"></path></svg></div>
<div v-else-if="scope.row.suffix == 'mp3'"><svg class="icon" style="width: 7em;height: 7em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11396"><path d="M875.52 433.152q-7.168-1.024-12.8-10.24t-8.704-33.792q-5.12-39.936-26.112-58.88t-65.024-27.136q-46.08-9.216-81.408-37.376t-58.88-52.736q-22.528-21.504-34.816-15.36t-12.288 22.528l0 44.032 0 96.256q0 57.344-0.512 123.904t-0.512 125.952l0 104.448 0 58.368q1.024 24.576-7.68 54.784t-32.768 56.832-64 45.568-99.328 22.016q-60.416 3.072-109.056-21.504t-75.264-61.952-26.112-81.92 38.4-83.456 81.92-54.272 84.992-16.896 73.216 5.632 47.616 13.312l0-289.792q0-120.832 1.024-272.384 0-29.696 15.36-48.64t40.96-22.016q21.504-3.072 35.328 8.704t28.16 32.768 35.328 47.616 56.832 52.224q30.72 23.552 53.76 33.792t43.008 18.944 39.424 20.992 43.008 39.936q23.552 26.624 28.672 55.296t0.512 52.224-14.848 38.4-17.408 13.824z" p-id="11397"></path></svg></div>
<div v-else-if="scope.row.suffix == 'url'"><svg class="icon" style="width:6em;height:6em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9877"><path d="M62.296463 576.23471l64.234709-64.23471 85.676565 85.646279-42.853425 42.853425a121.140424 121.140424 0 0 0 0 171.292559l42.853425 42.853425a121.140424 121.140424 0 0 0 171.292559 0l214.145983-214.145984a121.140424 121.140424 0 0 0 0-171.322844l-42.823139-42.823139a120.080445 120.080445 0 0 0-24.440081-18.413345l88.705075-88.67479 85.64628 85.64628a211.995741 211.995741 0 0 1 0 299.822548l-256.969124 256.969123a211.995741 211.995741 0 0 1-299.822548 0l-85.646279-85.646279a211.995741 211.995741 0 0 1 0-299.822548z" fill="#E13455" p-id="9878"></path><path d="M961.703537 447.76529l-64.234709 64.23471-85.676565-85.646279 42.853425-42.853425a121.140424 121.140424 0 0 0 0-171.292559l-42.853425-42.853425a121.140424 121.140424 0 0 0-171.292559 0l-214.145983 214.145984a121.140424 121.140424 0 0 0 0 171.322844l42.823139 42.823139a120.080445 120.080445 0 0 0 24.440081 18.413345L404.911866 704.734414l-85.64628-85.64628a211.995741 211.995741 0 0 1 0-299.822548l256.969124-256.969123a211.995741 211.995741 0 0 1 299.822548 0l85.646279 85.646279a211.995741 211.995741 0 0 1 0 299.822548z" fill="#F3ADBA" p-id="9879"></path></svg></div>
@ -234,6 +234,7 @@ export default { @@ -234,6 +234,7 @@ export default {
created() {
this.getFileData();
this.uploadCount = 0; //
console.log(document.domain);
//console.log(this.imgurl);
},
@ -248,8 +249,9 @@ export default { @@ -248,8 +249,9 @@ export default {
data() {
return {
//
//imgurl:process.env.VUE_APP_IMG_URL,
imgurl:'https://demo.jialuoma.cn',
//imgurl:document.domain,
imgurl:process.env.VUE_APP_IMG_URL,
//imgurl:'https://demo.jialuoma.cn',
loadingText: '文件获取中...',
emptyText: '无文件数据',

14
src/views/systme/switchtheme.vue

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
</el-select>
<div class="Submit1">
<el-button @click="skinSubmit" :loading="skinloading" type="primary">提交</el-button>
<a v-if="skinAsk" class="to_front_web" target="_blank" :href="skinLink"><el-button type="success" round>查看{{skinlabel}}站点</el-button></a>
<a v-if="skinAsk" class="to_front_web" target="_blank" :href="skinLink"><el-button type="success" round>查看&nbsp;{{skinlabel}}&nbsp;站点</el-button></a>
</div>
</div>
@ -32,6 +32,14 @@ export default { @@ -32,6 +32,14 @@ export default {
data() {
return {
options: [{
value: 'beauty',
label: '图片站-美图',
link:'/?'
},{
value: 'googleimage',
label: '图片站-默认',
link:'/?'
},{
value: 'manual',
label: '文档站',
link:'/?'
@ -40,10 +48,6 @@ export default { @@ -40,10 +48,6 @@ export default {
label: '导航站',
link:'/?'
}, {
value: 'googleimage',
label: '图片站',
link:'/?'
}, {
value: 'videoblog',
label: '视频站',
link:'/?'

Loading…
Cancel
Save