Browse Source

Merge branch 'release/v1.2.3' of npm/comment into master

AdamFu 4 years ago
parent
commit
ba1f0a0626
5 changed files with 13 additions and 9 deletions
  1. 4
    2
      lib/lang/index.js
  2. 1
    1
      lib/lang/index.js.map
  3. 3
    3
      lib/version.json
  4. 1
    1
      package.json
  5. 4
    2
      src/lang/index.js

+ 4
- 2
lib/lang/index.js View File

@@ -26,7 +26,8 @@ var LOCALES_RESPONSE = exports.LOCALES_RESPONSE = {
26 26
     "create reply failed": "回复失败",
27 27
     "reply favor failed": "点赞失败",
28 28
     "delete reply favor failed": "取消点赞失败",
29
-    "get replies failed": "回复加载失败"
29
+    "get replies failed": "回复加载失败",
30
+    content_illegal: "内容违规,请检查"
30 31
   },
31 32
   "en-US": {
32 33
     "not found": "No data",
@@ -38,7 +39,8 @@ var LOCALES_RESPONSE = exports.LOCALES_RESPONSE = {
38 39
     "create reply failed": "Replying failed",
39 40
     "reply favor failed": "Liking failed",
40 41
     "delete reply favor failed": "Unliking failed",
41
-    "get replies failed": "Loading of replies failed"
42
+    "get replies failed": "Loading of replies failed",
43
+    content_illegal: "Please modify censored contents"
42 44
   }
43 45
 };
44 46
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/lang/index.js.map View File

@@ -1 +1 @@
1
-{"version":3,"sources":["../../src/lang/index.js"],"names":["SUPPORT_LOCALES","name","value","LOCALES_RESPONSE"],"mappings":";;;;;AAAA;;;AAGO,IAAMA,4CAAkB,CAC7B;AACEC,QAAM,SADR;AAEEC,SAAO;AAFT,CAD6B,EAK7B;AACED,QAAM,MADR;AAEEC,SAAO;AAFT,CAL6B,CAAxB;;AAWP;AACO,IAAMC,8CAAmB;AAC9B,WAAS;AACP,iBAAa,MADN;AAEP,mBAAe,MAFR;AAGP,6BAAyB,OAHlB;AAIP,4BAAwB,MAJjB;AAKP,mCAA+B,QALxB;AAMP,2BAAuB,QANhB;AAOP,2BAAuB,MAPhB;AAQP,0BAAsB,MARf;AASP,iCAA6B,QATtB;AAUP,0BAAsB;AAVf,GADqB;AAa9B,WAAS;AACP,iBAAa,SADN;AAEP,mBAAe,cAFR;AAGP,6BAAyB,mBAHlB;AAIP,4BAAwB,eAJjB;AAKP,mCAA+B,iBALxB;AAMP,2BAAuB,yBANhB;AAOP,2BAAuB,iBAPhB;AAQP,0BAAsB,eARf;AASP,iCAA6B,iBATtB;AAUP,0BAAsB;AAVf;AAbqB,CAAzB","file":"index.js","sourcesContent":["/**\n * 当前支持的语言\n */\nexport const SUPPORT_LOCALES = [\n  {\n    name: \"English\",\n    value: \"en-US\"\n  },\n  {\n    name: \"简体中文\",\n    value: \"zh-CN\"\n  }\n];\n\n// 服务端返回的英文短语和中文提示的对应\nexport const LOCALES_RESPONSE = {\n  \"zh-CN\": {\n    \"not found\": \"没有数据\",\n    \"auth failed\": \"请先登录\",\n    \"create comment failed\": \"评论未发送\",\n    \"comment favor failed\": \"点赞失败\",\n    \"delete comment favor failed\": \"取消点赞失败\",\n    \"get comments failed\": \"评论加载失败\",\n    \"create reply failed\": \"回复失败\",\n    \"reply favor failed\": \"点赞失败\",\n    \"delete reply favor failed\": \"取消点赞失败\",\n    \"get replies failed\": \"回复加载失败\"\n  },\n  \"en-US\": {\n    \"not found\": \"No data\",\n    \"auth failed\": \"Please Login\",\n    \"create comment failed\": \"Comments not sent\",\n    \"comment favor failed\": \"Liking failed\",\n    \"delete comment favor failed\": \"Unliking failed\",\n    \"get comments failed\": \"Comments loading failed\",\n    \"create reply failed\": \"Replying failed\",\n    \"reply favor failed\": \"Liking failed\",\n    \"delete reply favor failed\": \"Unliking failed\",\n    \"get replies failed\": \"Loading of replies failed\"\n  }\n};\n"]}
1
+{"version":3,"sources":["../../src/lang/index.js"],"names":["SUPPORT_LOCALES","name","value","LOCALES_RESPONSE","content_illegal"],"mappings":";;;;;AAAA;;;AAGO,IAAMA,4CAAkB,CAC7B;AACEC,QAAM,SADR;AAEEC,SAAO;AAFT,CAD6B,EAK7B;AACED,QAAM,MADR;AAEEC,SAAO;AAFT,CAL6B,CAAxB;;AAWP;AACO,IAAMC,8CAAmB;AAC9B,WAAS;AACP,iBAAa,MADN;AAEP,mBAAe,MAFR;AAGP,6BAAyB,OAHlB;AAIP,4BAAwB,MAJjB;AAKP,mCAA+B,QALxB;AAMP,2BAAuB,QANhB;AAOP,2BAAuB,MAPhB;AAQP,0BAAsB,MARf;AASP,iCAA6B,QATtB;AAUP,0BAAsB,QAVf;AAWPC,qBAAiB;AAXV,GADqB;AAc9B,WAAS;AACP,iBAAa,SADN;AAEP,mBAAe,cAFR;AAGP,6BAAyB,mBAHlB;AAIP,4BAAwB,eAJjB;AAKP,mCAA+B,iBALxB;AAMP,2BAAuB,yBANhB;AAOP,2BAAuB,iBAPhB;AAQP,0BAAsB,eARf;AASP,iCAA6B,iBATtB;AAUP,0BAAsB,2BAVf;AAWPA,qBAAiB;AAXV;AAdqB,CAAzB","file":"index.js","sourcesContent":["/**\n * 当前支持的语言\n */\nexport const SUPPORT_LOCALES = [\n  {\n    name: \"English\",\n    value: \"en-US\"\n  },\n  {\n    name: \"简体中文\",\n    value: \"zh-CN\"\n  }\n];\n\n// 服务端返回的英文短语和中文提示的对应\nexport const LOCALES_RESPONSE = {\n  \"zh-CN\": {\n    \"not found\": \"没有数据\",\n    \"auth failed\": \"请先登录\",\n    \"create comment failed\": \"评论未发送\",\n    \"comment favor failed\": \"点赞失败\",\n    \"delete comment favor failed\": \"取消点赞失败\",\n    \"get comments failed\": \"评论加载失败\",\n    \"create reply failed\": \"回复失败\",\n    \"reply favor failed\": \"点赞失败\",\n    \"delete reply favor failed\": \"取消点赞失败\",\n    \"get replies failed\": \"回复加载失败\",\n    content_illegal: \"内容违规,请检查\"\n  },\n  \"en-US\": {\n    \"not found\": \"No data\",\n    \"auth failed\": \"Please Login\",\n    \"create comment failed\": \"Comments not sent\",\n    \"comment favor failed\": \"Liking failed\",\n    \"delete comment favor failed\": \"Unliking failed\",\n    \"get comments failed\": \"Comments loading failed\",\n    \"create reply failed\": \"Replying failed\",\n    \"reply favor failed\": \"Liking failed\",\n    \"delete reply favor failed\": \"Unliking failed\",\n    \"get replies failed\": \"Loading of replies failed\",\n    content_illegal: \"Please modify censored contents\"\n  }\n};\n"]}

+ 3
- 3
lib/version.json View File

@@ -1,8 +1,8 @@
1 1
 {
2 2
     "name":       "comment",
3
-    "buildDate":  1603885106565,
3
+    "buildDate":  1604757339795,
4 4
     "version":    "1.0.4",
5
-    "numCommits": 220,
6
-    "hash":       "8fb6487",
5
+    "numCommits": 219,
6
+    "hash":       "1e52141",
7 7
     "dirty":      false
8 8
 }

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "comment",
3
-  "version": "1.0.4",
3
+  "version": "1.2.3",
4 4
   "main": "lib/App.js",
5 5
   "description": "通用评论",
6 6
   "keywords": [

+ 4
- 2
src/lang/index.js View File

@@ -24,7 +24,8 @@ export const LOCALES_RESPONSE = {
24 24
     "create reply failed": "回复失败",
25 25
     "reply favor failed": "点赞失败",
26 26
     "delete reply favor failed": "取消点赞失败",
27
-    "get replies failed": "回复加载失败"
27
+    "get replies failed": "回复加载失败",
28
+    content_illegal: "内容违规,请检查"
28 29
   },
29 30
   "en-US": {
30 31
     "not found": "No data",
@@ -36,6 +37,7 @@ export const LOCALES_RESPONSE = {
36 37
     "create reply failed": "Replying failed",
37 38
     "reply favor failed": "Liking failed",
38 39
     "delete reply favor failed": "Unliking failed",
39
-    "get replies failed": "Loading of replies failed"
40
+    "get replies failed": "Loading of replies failed",
41
+    content_illegal: "Please modify censored contents"
40 42
   }
41 43
 };