Procházet zdrojové kódy

Merge pull request #684 from visuddhinanda/laravel

:wrench: HELP_SERVER GRAMMAR_SERVER
visuddhinanda před 4 roky
rodič
revize
46a20c7a10
5 změnil soubory, kde provedl 48 přidání a 2 odebrání
  1. 3 1
      .env.example
  2. 33 0
      README.md
  3. 5 0
      change-logs.md
  4. 4 1
      public/app/config.sample.js
  5. 3 0
      public/app/config.sample.php

+ 3 - 1
.env.example

@@ -55,4 +55,6 @@ PUSHER_APP_CLUSTER=mt1
 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
 MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
 
-ASSETS_SERVER="https://assets-hk.wikipali.org"
+ASSETS_SERVER="https://assets-hk.wikipali.org"
+HELP_SERVER="https://help-hk.wikipali.org"
+GRAMMAR_SERVER="https://grammar-hk.wikipali.org"

+ 33 - 0
README.md

@@ -151,7 +151,14 @@ define("Redis",[
 ]);
 ```
 
+**ASSETS_SERVER**
+
+**HELP_SERVER**
+
+**GRAMMAR_SERVER**
 
+参照下文 config.js
+ 
 #### public/app/config.js
 
 复制 `<项目目录>/public/app/config.example.js` 改文件名为`config.js`
@@ -174,6 +181,32 @@ ASSETS_SERVER :网站资源文件,非用户的图片,音频,视频
 var ASSETS_SERVER = "http://127.0.0.1:8000/tmp";
 ```
 
+**HELP_SERVER**
+
+网站帮助文档
+
+- 直接引用离您最近的 help server
+
+范例:
+>ip port根据你的 dev server 修改
+
+```
+var HELP_SERVER = "https://help-hk.wikipali.org";
+```
+
+**GRAMMAR_SERVER**
+
+语法手册文档
+
+- 直接引用离您最近的 help server
+
+范例:
+>ip port根据你的 dev server 修改
+
+```
+var GRAMMAR_SERVER = "https://grammar-hk.wikipali.org";
+```
+
 ### 复制巴利语全文搜索单词表
 
 获取pg share dir

+ 5 - 0
change-logs.md

@@ -20,3 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - remove config.migrate in config.sample.php
 - remove file config.migrate.sample.php
 - finish command Install:wordbook
+
+## [1.0.1] - 2022-01-15
+
+- add HELP_SERVER to .env.sample /public/app/config.sample.js /public/app/config.sample.php
+- add GRAMMAR_SERVER to .env.sample /public/app/config.sample.js /public/app/config.sample.php

+ 4 - 1
public/app/config.sample.js

@@ -11,4 +11,7 @@ var RPC_DOMAIN_NAME="rpc.wikipali.org";
   |或直接引用离您最近的assets server
   |------------------------
 */
-var ASSETS_SERVER = "https://assets-hk.wikipali.org";
+
+var ASSETS_SERVER = "https://assets-hk.wikipali.org"
+var HELP_SERVER = "https://help-hk.wikipali.org"
+var GRAMMAR_SERVER = "https://grammar-hk.wikipali.org"

+ 3 - 0
public/app/config.sample.php

@@ -5,6 +5,9 @@
 define("WWW_DOMAIN_PROTOCOL","https");
 define("WWW_DOMAIN_NAME","www.wikipali.org");
 define("RPC_DOMAIN_NAME","rpc.wikipali.org");
+define("ASSETS_SERVER","https://assets-hk.wikipali.org");
+define("HELP_SERVER","https://help-hk.wikipali.org");
+define("GRAMMAR_SERVER","https://grammar-hk.wikipali.org");
 
 /*
 电子邮件设置