Browse Source

框架更新

master
lanzu_qsy 5 years ago
parent
commit
f37821060d
  1. 10
      composer.lock
  2. 33
      config/admin.php
  3. 2
      public/vendors/dcat-admin/adminlte/adminlte-blue-dark.css
  4. 2
      public/vendors/dcat-admin/adminlte/adminlte-blue-light.css
  5. 2
      public/vendors/dcat-admin/adminlte/adminlte-blue.css
  6. 2
      public/vendors/dcat-admin/adminlte/adminlte-green.css
  7. 2
      public/vendors/dcat-admin/adminlte/adminlte.css
  8. 2
      public/vendors/dcat-admin/adminlte/adminlte.js
  9. 2
      public/vendors/dcat-admin/adminlte/adminlte.js.map
  10. 2
      public/vendors/dcat-admin/dcat/css/dcat-app-blue-dark.css
  11. 2
      public/vendors/dcat-admin/dcat/css/dcat-app-blue-light.css
  12. 2
      public/vendors/dcat-admin/dcat/css/dcat-app-blue.css
  13. 2
      public/vendors/dcat-admin/dcat/css/dcat-app-green.css
  14. 2
      public/vendors/dcat-admin/dcat/css/dcat-app.css
  15. 2
      public/vendors/dcat-admin/dcat/extra/action.js
  16. 2
      public/vendors/dcat-admin/dcat/extra/action.js.map
  17. 2
      public/vendors/dcat-admin/dcat/extra/grid-extend.js
  18. 2
      public/vendors/dcat-admin/dcat/extra/grid-extend.js.map
  19. 2
      public/vendors/dcat-admin/dcat/extra/upload-blue-dark.css
  20. 2
      public/vendors/dcat-admin/dcat/extra/upload-blue-light.css
  21. 2
      public/vendors/dcat-admin/dcat/extra/upload-blue.css
  22. 2
      public/vendors/dcat-admin/dcat/extra/upload-green.css
  23. 2
      public/vendors/dcat-admin/dcat/extra/upload.css
  24. 2
      public/vendors/dcat-admin/dcat/extra/upload.js
  25. 2
      public/vendors/dcat-admin/dcat/extra/upload.js.map
  26. 2
      public/vendors/dcat-admin/dcat/js/dcat-app.js
  27. 2
      public/vendors/dcat-admin/dcat/js/dcat-app.js.map
  28. BIN
      public/vendors/dcat-admin/images/default-avatar.jpg
  29. BIN
      public/vendors/dcat-admin/images/logo.png
  30. 1
      resources/lang/zh-CN/admin.php
  31. 6
      resources/lang/zh-CN/global.php
  32. 1
      resources/lang/zh-TW/admin.php

10
composer.lock

@ -165,16 +165,16 @@
},
{
"name": "dcat/laravel-admin",
"version": "1.7.1",
"version": "1.7.2",
"source": {
"type": "git",
"url": "https://github.com/jqhph/dcat-admin.git",
"reference": "b2694de229a9fd52f9ab048870d4e93b8ee7a505"
"reference": "7755db86943a3f31d6ebe4f6852be3efc82aec2e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jqhph/dcat-admin/zipball/b2694de229a9fd52f9ab048870d4e93b8ee7a505",
"reference": "b2694de229a9fd52f9ab048870d4e93b8ee7a505",
"url": "https://api.github.com/repos/jqhph/dcat-admin/zipball/7755db86943a3f31d6ebe4f6852be3efc82aec2e",
"reference": "7755db86943a3f31d6ebe4f6852be3efc82aec2e",
"shasum": "",
"mirrors": [
{
@ -233,7 +233,7 @@
"laravel",
"laravel admin"
],
"time": "2020-09-02T13:19:24+00:00"
"time": "2020-09-07T03:01:31+00:00"
},
{
"name": "dnoegel/php-xdg-base-dir",

33
config/admin.php

@ -11,7 +11,7 @@ return [
| login page.
|
*/
'name' => '懒族后台管理系统',
'name' => 'Dcat Admin',
/*
|--------------------------------------------------------------------------
@ -22,8 +22,7 @@ return [
| `img` tag, eg '<img src="http://logo-url" alt="Admin logo">'.
|
*/
// 'logo' => '<img src="/vendors/dcat-admin/images/logo.png" width="35"> &nbsp;懒族',
'logo' => '<img src="/vendors/dcat-admin/images/logo-head.png" width="35"> &nbsp;<span style="color:#ed7b1d;">懒族</span>',
'logo' => '<img src="/vendors/dcat-admin/images/logo.png" width="35"> &nbsp;Dcat Admin',
/*
|--------------------------------------------------------------------------
@ -166,7 +165,7 @@ return [
|--------------------------------------------------------------------------
*/
'helpers' => [
'enable' => env('APP_ENV')=='prod'? false:true,
'enable' => true,
],
/*
@ -222,12 +221,12 @@ return [
'upload' => [
// Disk in `config/filesystem.php`.
'disk' => 'oss',
'disk' => 'public',
// Image and file upload path under the disk above.
'directory' => [
'image' => 'mp_images',
'file' => 'mp_files',
'image' => 'images',
'file' => 'files',
],
],
@ -301,10 +300,18 @@ return [
| Admin map field provider
|--------------------------------------------------------------------------
|
| Supported: "tencent", "google", "yandex".
| Supported: "tencent", "google", "yandex", "baidu".
|
*/
'map_provider' => 'tencent',
'map' => [
'provider' => 'baidu',
'keys' => [
'tencent' => env('TENCENT_MAP_API_KEY'),
'google' => env('GOOGLE_API_KEY'),
'baidu' => env('BAIDU_MAP_API_KEY'),
],
],
/*
|--------------------------------------------------------------------------
@ -315,19 +322,19 @@ return [
*/
'layout' => [
// indigo, blue, blue-light, blue-dark, green
'color' => 'green',
'color' => 'indigo',
//'body_class' => 'dark-mode',
'body_class' => '',
'sidebar_collapsed' => false,
'sidebar_dark' => false,
// light, primary, dark
'sidebar_style' => 'light',
'dark_mode_switch' => false,
// bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark
'navbar_color' => 'bg-primary',
'navbar_color' => '',
],
/*

2
public/vendors/dcat-admin/adminlte/adminlte-blue-dark.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/adminlte/adminlte-blue-light.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/adminlte/adminlte-blue.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/adminlte/adminlte-green.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/adminlte/adminlte.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/adminlte/adminlte.js
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/adminlte/adminlte.js.map
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/css/dcat-app-blue-dark.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/css/dcat-app-blue-light.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/css/dcat-app-blue.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/css/dcat-app-green.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/css/dcat-app.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/action.js

@ -1,2 +1,2 @@
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=6)}({6:function(e,t,n){e.exports=n(7)},7:function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(Dcat){var Action=function(){function Action(e){_classCallCheck(this,Action),this.options=$.extend({selector:null,event:"click",method:"POST",key:null,url:null,data:{},confirm:null,calledClass:null,before:function(e,t){},html:function(e,t,n){e.html(t)},success:function(e,t){},error:function(e,t){}},e),this._bind()}return _createClass(Action,[{key:"_bind",value:function(){var e=this,t=e.options;$(t.selector).off(t.event).on(t.event,(function(n){var o=$(this).data(),r=$(this);if(!(r.attr("loading")>0)&&!1!==t.before(o,r,e)){var a=t.confirm;a?Dcat.confirm(a[0],a[1],i):i()}function i(){r.attr("loading",1),Object.assign(o,t.data),e._buildActionPromise(r,o).then(e._resolver()).catch(e._reject())}}))}},{key:"_resolver",value:function _resolver(){var _this=this,options=_this.options;return function(result){var response=result[0],target=result[1];if(!1!==options.success(target,response)){if("object"!==_typeof(response))return Dcat.error({type:"error",title:"Oops!"});var then=function then(_then){switch(_then.action){case"refresh":Dcat.reload();break;case"download":window.open(_then.value,"_blank");break;case"redirect":Dcat.reload(_then.value);break;case"location":window.location=_then.value;break;case"script":!function(){eval(_then.value)}()}};"string"==typeof response.html&&response.html&&options.html(target,response.html,response),"string"==typeof response.data.message&&response.data.type&&Dcat[response.data.type](response.data.message),response.data.then&&then(response.data.then)}}}},{key:"_reject",value:function(){var e=this.options;return function(t){var n=t[0],o=t[1];!1!==e.success(o,n)&&(n&&"object"===_typeof(n.responseJSON)&&Dcat.error(n.responseJSON.message),console.error(n))}}},{key:"_buildActionPromise",value:function(e,t){var n=this.options;return new Promise((function(o,r){Object.assign(t,{_token:Dcat.token,_action:n.calledClass,_key:n.key}),Dcat.NP.start(),$.ajax({method:n.method,url:n.url,data:t,success:function(t){e.attr("loading",0),Dcat.NP.done(),o([t,e])},error:function(t){e.attr("loading",0),Dcat.NP.done(),r([t,e])}})}))}}]),Action}();Dcat.Action=function(e){return new Action(e)}}(Dcat)}});
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=6)}({6:function(e,t,n){e.exports=n(7)},7:function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(Dcat){var Action=function(){function Action(e){_classCallCheck(this,Action),this.options=$.extend({selector:null,event:"click",method:"POST",key:null,url:null,data:{},confirm:null,calledClass:null,before:function(e,t){},html:function(e,t,n){e.html(t)},success:function(e,t){},error:function(e,t){}},e),this.init()}return _createClass(Action,[{key:"init",value:function(){var e=this,t=e.options;$(t.selector).off(t.event).on(t.event,(function(n){var o=$(this).data(),r=$(this);if(!(r.attr("loading")>0)&&!1!==t.before(o,r,e)){var a=t.confirm;a?Dcat.confirm(a[0],a[1],s):s()}function s(){r.attr("loading",1),Object.assign(o,t.data),e.promise(r,o).then(e.resolve()).catch(e.reject())}}))}},{key:"resolve",value:function resolve(){var _this=this,options=_this.options;return function(result){var response=result[0],target=result[1];if(!1!==options.success(target,response)){if("object"!==_typeof(response))return Dcat.error({type:"error",title:"Oops!"});var then=function then(_then){switch(_then.action){case"refresh":Dcat.reload();break;case"download":window.open(_then.value,"_blank");break;case"redirect":Dcat.reload(_then.value);break;case"location":window.location=_then.value;break;case"script":!function(){eval(_then.value)}()}};"string"==typeof response.html&&response.html&&options.html(target,response.html,response),"string"==typeof response.data.message&&response.data.type&&Dcat[response.data.type](response.data.message),response.data.then&&then(response.data.then)}}}},{key:"reject",value:function(){var e=this.options;return function(t){var n=t[0],o=t[1];!1!==e.success(o,n)&&(n&&"object"===_typeof(n.responseJSON)&&Dcat.error(n.responseJSON.message),console.error(n))}}},{key:"promise",value:function(e,t){var n=this.options;return new Promise((function(o,r){Object.assign(t,{_action:n.calledClass,_key:n.key}),Dcat.NP.start(),$.ajax({method:n.method,url:n.url,data:t,success:function(t){e.attr("loading",0),Dcat.NP.done(),o([t,e])},error:function(t){e.attr("loading",0),Dcat.NP.done(),r([t,e])}})}))}}]),Action}();Dcat.Action=function(e){return new Action(e)}}(Dcat)}});
//# sourceMappingURL=action.js.map

2
public/vendors/dcat-admin/dcat/extra/action.js.map
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/grid-extend.js
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/grid-extend.js.map
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload-blue-dark.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload-blue-light.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload-blue.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload-green.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload.css
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload.js
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/extra/upload.js.map
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/js/dcat-app.js
File diff suppressed because it is too large
View File

2
public/vendors/dcat-admin/dcat/js/dcat-app.js.map
File diff suppressed because it is too large
View File

BIN
public/vendors/dcat-admin/images/default-avatar.jpg

Before

Width: 70  |  Height: 70  |  Size: 3.8 KiB

After

Width: 200  |  Height: 200  |  Size: 6.8 KiB

BIN
public/vendors/dcat-admin/images/logo.png

Before

Width: 120  |  Height: 120  |  Size: 6.3 KiB

After

Width: 225  |  Height: 225  |  Size: 7.8 KiB

1
resources/lang/zh-CN/admin.php

@ -31,6 +31,7 @@ return [
'confirm' => '确认',
'cancel' => '取消',
'refresh_succeeded' => '刷新成功 !',
'submit' => '提交',
'close' => '关闭',
'selected_options' => '已选中:num个选项',
'exceed_max_item' => '已超出最大可选数量',

6
resources/lang/zh-CN/global.php

@ -30,11 +30,7 @@ return [
'root' => '顶级',
'scaffold' => '代码生成器',
],
'options' => [
'permissions' => [
],
//
],
];

1
resources/lang/zh-TW/admin.php

@ -32,6 +32,7 @@ return [
'cancel' => '取消',
'refresh_succeeded' => '刷新成功!',
'close' => '關閉',
'submit' => '提交',
'selected_options' => '已選中:num個選項',
'exceed_max_item' => '已超出最大可選數量',

Loading…
Cancel
Save