瀏覽代碼

no message

kuaifan 5 年之前
父節點
當前提交
7afa389176

+ 1 - 0
app/Http/Controllers/Api/SystemController.php

@@ -66,6 +66,7 @@ class SystemController extends Controller
             $setting = Base::setting('system');
         }
         $setting['logo'] = Base::fillUrl($setting['logo']);
+        $setting['enterprise'] = env('ENTERPRISE_SHOW') ? 'show': '';
         return Base::retSuccess('success', $setting ? $setting : json_decode('{}'));
     }
 

File diff suppressed because it is too large
+ 1061 - 0
resources/assets/js/main/pages/contrast.vue


+ 12 - 1
resources/assets/js/main/pages/index.vue

@@ -15,6 +15,7 @@
                 <div class="z-1">
                     <dl>
                         <dd>
+                            <Button v-if="systemConfig.enterprise=='show'" type="success" size="small" class="right-enterprise" @click="enterpriseOpen">{{$L('企业版')}}</Button>
                             <a v-if="systemConfig.github=='show'" class="right-info" target="_blank" href="https://github.com/kuaifan/wookteam">
                                 <Icon class="right-icon" type="logo-github"/>
                             </a>
@@ -200,6 +201,14 @@
                             color: #fff;
                             cursor: pointer;
                             margin-right: 1px;
+                            .right-enterprise {
+                                padding: 1px 10px;
+                                font-size: 12px;
+                                color: #f6ca9d;
+                                background: #1d1e23;
+                                background: linear-gradient(90deg, #1d1e23, #3f4045);
+                                border: none;
+                            }
                             .right-info {
                                 display: inline-block;
                                 cursor: pointer;
@@ -440,7 +449,9 @@
                     }
                 });
             },
-
+            enterpriseOpen() {
+                this.goForward({path: '/contrast'});
+            },
             loginChack() {
                 if ($A.getToken() !== false) {
                     this.goForward({path: '/todo'}, true);

+ 4 - 0
resources/assets/js/main/routes.js

@@ -39,6 +39,10 @@ export default [
         meta: { slide: false, tabActive: 'team' },
         component: resolve => require(['./pages/team.vue'], resolve)
     }, {
+        path: '/contrast',
+        name: 'contrast',
+        component: resolve => require(['./pages/contrast.vue'], resolve)
+    }, {
         path: '*',
         name: '404',
         component: resolve => require(['./pages/404.vue'], resolve)

+ 10 - 0
resources/assets/sass/main.scss

@@ -292,6 +292,16 @@
     }
 }
 
+.ivu-drawer-body {
+    .ivu-tabs-bar {
+        padding-right: 32px;
+    }
+}
+
+.ivu-select-dropdown-max {
+    max-height: 300px;
+}
+
 .ivu-modal-wrap {
     &.simple-modal {
         .ivu-modal-header,

File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/1.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/2.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/3.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/4.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/5.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/6.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/7.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/8.svg


File diff suppressed because it is too large
+ 1 - 0
resources/assets/statics/images/contrast/9.svg


二進制
resources/assets/statics/images/contrast/Ultimate.png


二進制
resources/assets/statics/images/contrast/banner-bg.png


二進制
resources/assets/statics/images/contrast/bg_04.jpg


二進制
resources/assets/statics/images/contrast/free.png


二進制
resources/assets/statics/images/contrast/pro.png


二進制
resources/assets/statics/images/contrast/wechat.png


+ 15 - 0
resources/lang/en/general.js

@@ -494,4 +494,19 @@ export default {
     "使用换行添加多个子任务": "Add multiple subtasks using line feeds",
     "批量添加子任务": "Batch add subtasks",
     "添加至列表结尾": "Add to the end of the list",
+    "文件/图片": "File / Picture",
+    "企业版": "Enterprise Edition",
+    "修改成员信息": "Modify Member Information",
+    "修改团队成员": "Modify team member",
+    "留空不修改": "Does not modify the blank",
+    "修改": "Modify",
+    "加载下一页...": "Loads next ...",
+    "筛选": "Filter",
+    "列表": "List",
+    "文件": "File",
+    "动态": "Dynamic",
+    "暂无子任务": "No subtasks",
+    "所属项目:": "View project:",
+    "拖动到这里添加附件至 %": "Drag here to add attachments to%",
+    "拖动到这里发送给 %": "Send to drag%",
 }