jqh 5 năm trước cách đây
mục cha
commit
1591a5d529
3 tập tin đã thay đổi với 44 bổ sung22 xóa
  1. 12 6
      README.md
  2. 21 10
      resources/views/dashboard/extensions.blade.php
  3. 11 6
      src/Controllers/Dashboard.php

+ 12 - 6
README.md

@@ -112,9 +112,10 @@ php artisan admin:install
 
 | 扩展                                        | 描述                              | dcat-admin 版本                             |
 | ------------------------------------------------ | ---------------------------------------- |---------------------------------------- |
-| [dcat-page](https://github.com/jqhph/dcat-page)             | 一个简洁的静态站点构建工具 | * |
-| [ueditor](https://github.com/jqhph/dcat-admin-ueditor) | 百度在线编辑器          | * |
-| [gank](https://github.com/jqhph/dcat-admin-gank) | 干货集中营          |* |
+| [dcat-page](https://github.com/jqhph/dcat-page)    | 简洁的静态站点构建工具 | * |
+| [ueditor](https://github.com/jqhph/dcat-admin-ueditor) | 百度在线编辑器     | * |
+| [grid-sortable](https://github.com/jqhph/dcat-admin-grid-sortable) | 表格拖曳排序工具      | * |
+| [gank](https://github.com/jqhph/dcat-admin-gank) | 干货集中营      |* |
 
 
 ## 贡献
@@ -131,18 +132,23 @@ php artisan admin:install
 + [font-awesome](http://fontawesome.io)
 + [jquery-form](https://github.com/jquery-form/form)
 + [moment](http://momentjs.com/)
-+ [Google map](https://www.google.com/maps)
-+ [Tencent map](http://lbs.qq.com/)
++ [webuploader](http://fex.baidu.com/webuploader/)
 + [bootstrap-fileinput](https://github.com/kartik-v/bootstrap-fileinput)
 + [jquery-pjax](https://github.com/defunkt/jquery-pjax)
 + [Nestable](http://dbushell.github.io/Nestable/)
 + [toastr](http://codeseven.github.io/toastr/)
++ [editor-md](https://github.com/pandao/editor.md)
 + [X-editable](http://github.com/vitalets/x-editable)
 + [bootstrap-number-input](https://github.com/wpic/bootstrap-number-input)
 + [fontawesome-iconpicker](https://github.com/itsjavi/fontawesome-iconpicker)
 + [layer弹出层](http://layer.layui.com/)
 + [waves](https://github.com/fians/Waves)
-
++ [bootstrap-duallistbox](https://www.virtuosoft.eu/code/bootstrap-duallistbox/)
++ [char.js](https://www.chartjs.org)
++ [nprogress](https://ricostacruz.com/nprogress/)
++ [bootstrap-validator](https://github.com/1000hz/bootstrap-validator)
++ [Google map](https://www.google.com/maps)
++ [Tencent map](http://lbs.qq.com/)
 
 ## License
 ------------

+ 21 - 10
resources/views/dashboard/extensions.blade.php

@@ -9,14 +9,13 @@
         font-size:20px;
     }
 </style>
-<ul class="products-list product-list-in-box" id="extension-box" style="margin-top:10px">
-
+<ul class="products-list product-list-in-box" id="extension-box" style="margin-top:10px;min-height: 100px">
     @foreach($extensions as $extension)
-        <li class="item">
+        <li class="item hidden">
             <div class="product-img">
-                <i class="fa {{$extension['icon']}} fa-2x ext-icon"></i>
+                <i class="{{$extension['icon']}} fa-2x ext-icon"></i>
             </div>
-            <div class="product-info">
+            <div class="product-info" data-key="{{$extension['key']}}">
                 <a href="{{ $extension['link'] }}" target="_blank" class="">
                     {{ $extension['name'] }}
                 </a>
@@ -27,15 +26,27 @@
         </li>
 @endforeach
 
-<!-- /.item -->
 </ul>
-<!-- /.box-body -->
+
 <div class="box-footer text-center">
-    <a href="https://github.com/dcat-admin-extensions" target="_blank" class="uppercase">View All Extensions</a>
+    <a href="https://github.com/jqhph/dcat-admin#%E6%89%A9%E5%B1%95" target="_blank" class="uppercase">View All Extensions</a>
 </div>
 
 <script>LA.ready(function () {
-//    $('#extension-box').loading({style: 'left:0;right:0'});
+    var $box = $('#extension-box');
+    $box.loading();
+
+    $.ajax({
+        url: 'https://jqhph.github.io/dcat-admin/extra/extensions.html',
+        success: function (response) {
+            $box.loading(false);
 
+            $box.html(response);
+        },
+        error: function () {
+            $box.loading(false);
 
-})</script>
+            $box.find('.item').removeClass('hidden');
+        }
+    });
+})</script>

+ 11 - 6
src/Controllers/Dashboard.php

@@ -58,24 +58,29 @@ class Dashboard
     {
         $extensions = [
             'Dcat Page' => [
-                'name' => '一个简洁的静态站点生成工具 - Dcat Page',
+                'name' => 'Dcat Page 简洁的静态站点生成工具',
                 'link' => 'https://github.com/jqhph/dcat-page',
-                'icon' => ' fa-file-text-o',
+                'icon' => 'fa fa-file-text-o',
                 'key'  => 'dcat-page',
             ],
             'UEditor' => [
-                'name' => '百度在线编辑器 UEditor',
+                'name' => 'UEditor 百度在线编辑器',
                 'link' => 'https://github.com/jqhph/dcat-admin-ueditor',
-                'icon' => 'fa-underline',
+                'icon' => 'fa fa-underline',
                 'key'  => 'ueditor',
             ],
+            'Sortable' => [
+                'name' => 'Grid-sortable 列表拖曳排序工具',
+                'link' => 'https://github.com/jqhph/dcat-admin-grid-sortable',
+                'icon' => 'glyphicon glyphicon-sort ',
+                'key'  => 'grid-sortable',
+            ],
             '干货集中营' => [
                 'name' => '干货集中营',
                 'link' => 'https://github.com/jqhph/dcat-admin-gank',
-                'icon' => 'fa-newspaper-o',
+                'icon' => 'fa fa-newspaper-o',
                 'key'  => 'gank',
             ],
-
         ];
 
         foreach ($extensions as &$extension) {