Parcourir la source

新增gitee图标、更新开源协议

kuaifan il y a 4 ans
Parent
commit
3f289708c9

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
     "name": "wookteam",
-    "version": "1.5.21",
+    "version": "1.5.22",
     "description": "WookTeam是一款轻量级的开源在线团队协作工具,提供各类文档工具、在线思维导图、在线流程图、项目管理、任务分发、即时IM,知识库管理等工具。",
     "scripts": {
         "ide-helper": "php artisan ide-helper:generate",
@@ -19,7 +19,7 @@
         "url": "git+https://github.com/kuaifan/wookteam.git"
     },
     "author": "kuaifan <aipaw@live.cn>",
-    "license": "MIT",
+    "license": "AGPL-3.0",
     "devDependencies": {
         "axios": "^0.19.2",
         "cross-env": "^7.0.2",

+ 2 - 2
resources/assets/js/main/components/WHeader.vue

@@ -53,12 +53,12 @@
             </div>
         </div>
         <WDrawer v-model="systemDrawerShow" maxWidth="640" :title="$L('系统设置')">
-            <Form ref="formSystem" :model="formSystem" :label-width="120" @submit.native.prevent>
+            <Form ref="formSystem" :model="formSystem" :label-width="150" @submit.native.prevent>
                 <FormItem :label="$L('首页Logo')">
                     <ImgUpload v-model="formSystem.logo" :num="1"></ImgUpload>
                     <span style="color:#777">{{$L('建议尺寸:%', '300x52')}}</span>
                 </FormItem>
-                <FormItem :label="$L('Github图标')">
+                <FormItem :label="$L('Github/Gitee图标')">
                     <RadioGroup v-model="formSystem.github">
                         <Radio label="show">{{$L('显示')}}</Radio>
                         <Radio label="hidden">{{$L('隐藏')}}</Radio>

+ 6 - 0
resources/assets/js/main/pages/index.vue

@@ -22,6 +22,9 @@
                     <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'" href='https://gitee.com/aipaw/wookteam' class="right-info" target="_blank">
+                                <img class="right-img" src="https://gitee.com/aipaw/wookteam/badge/star.svg?theme=gvp" alt="star"/>
+                            </a>
                             <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>
@@ -240,6 +243,9 @@
                                 font-size: 26px;
                                 vertical-align: middle;
                             }
+                            .right-img {
+                                vertical-align: middle;
+                            }
                         }
                     }
                 }

+ 1 - 1
resources/lang/en/general.js

@@ -2,7 +2,7 @@ export default {
     "3天": "3 days",
     "5天": "5 days",
     "7天": "7 days",
-    "Github图标": "Github icon",
+    "Github/Gitee图标": "Github/Gitee icon",
     "MD编辑器": "Markdown Cell",
     "[任务消息]": "[Task message]",
     "[图片]": "[image]",