@jx3box/jx3box-ui 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/README.md +101 -2
  2. package/assets/css/bread/admin.less +32 -0
  3. package/assets/css/bread/breadcrumb.less +38 -0
  4. package/assets/css/bread/crumb.less +6 -0
  5. package/assets/css/comment/quick-reply.less +12 -1
  6. package/assets/css/common/bottom.less +4 -0
  7. package/assets/css/common/footer.less +23 -0
  8. package/assets/css/common/left-sidebar.less +28 -0
  9. package/assets/css/common/main.less +21 -0
  10. package/assets/css/common/right-sidebar.less +31 -0
  11. package/assets/css/common/suspend-common.less +51 -0
  12. package/assets/css/editor/combo.less +51 -0
  13. package/assets/css/editor/resource.less +64 -0
  14. package/assets/css/editor/tinymce.less +20 -0
  15. package/assets/css/editor/upload.less +25 -0
  16. package/assets/css/filters/client-by.less +6 -0
  17. package/assets/css/header/box.less +34 -0
  18. package/assets/css/interact/like2.less +4 -0
  19. package/assets/css/interact/share2.less +17 -0
  20. package/assets/css/mixin.less +3 -0
  21. package/assets/css/module/author.less +41 -0
  22. package/assets/css/module/buff.less +10 -0
  23. package/assets/css/module/directory.less +22 -0
  24. package/assets/css/module/icon.less +4 -0
  25. package/assets/css/module/item.less +50 -0
  26. package/assets/css/module/item_simple.less +7 -0
  27. package/assets/css/module/jx3_element.less +2 -1
  28. package/assets/css/module/macro.less +17 -0
  29. package/assets/css/module/npc.less +46 -1
  30. package/assets/css/module/resource.less +13 -0
  31. package/assets/css/module/skill.less +9 -0
  32. package/assets/css/module/talent.less +71 -0
  33. package/assets/css/single/author.less +24 -10
  34. package/assets/css/single/cms-single.less +16 -0
  35. package/assets/css/single/thx.less +51 -0
  36. package/assets/css/tinymce/_.less +7 -1
  37. package/assets/css/tinymce/a.less +5 -0
  38. package/assets/css/tinymce/code.less +22 -0
  39. package/assets/css/tinymce/combo.less +12 -0
  40. package/assets/css/tinymce/fold.less +12 -0
  41. package/assets/css/tinymce/h.less +10 -0
  42. package/assets/css/tinymce/hr.less +2 -0
  43. package/assets/css/tinymce/img.less +3 -0
  44. package/assets/css/tinymce/imgpreview.less +6 -1
  45. package/assets/css/tinymce/latex.less +7 -1
  46. package/assets/css/tinymce/list.less +12 -0
  47. package/assets/css/tinymce/macro.less +7 -1
  48. package/assets/css/tinymce/nextpage.less +14 -0
  49. package/assets/css/tinymce/p.less +2 -0
  50. package/assets/css/tinymce/pz.less +6 -0
  51. package/assets/css/tinymce/qixue.less +6 -0
  52. package/assets/css/tinymce/quote.less +2 -0
  53. package/assets/css/tinymce/table.less +13 -1
  54. package/assets/css/tinymce/video.less +18 -0
  55. package/assets/img/author/rss.svg +1 -0
  56. package/assets/img/common/logo-v2.svg +14 -0
  57. package/i18n/messages/en-US.js +1 -0
  58. package/i18n/messages/vi.js +1 -0
  59. package/i18n/messages/zh-CN.js +1 -0
  60. package/i18n/messages/zh-TW.js +1 -0
  61. package/index.js +2 -0
  62. package/package.json +1 -1
  63. package/service/comment.js +56 -96
  64. package/src/App.vue +31 -31
  65. package/src/Breadcrumb.vue +16 -20
  66. package/src/Icon.vue +53 -0
  67. package/src/author/AuthorFans.vue +15 -5
  68. package/src/author/AuthorFollow.vue +1 -1
  69. package/src/author/AuthorGift.vue +9 -9
  70. package/src/author/AuthorHonor.vue +9 -8
  71. package/src/author/AuthorInfo.vue +10 -1
  72. package/src/author/AuthorLink.vue +8 -1
  73. package/src/author/AuthorPosts.vue +14 -8
  74. package/src/author/AuthorRss.vue +28 -34
  75. package/src/bread/Admin.vue +19 -6
  76. package/src/bread/Crumb.vue +7 -2
  77. package/src/bread/DesignTask.vue +44 -37
  78. package/src/comment/Avatar.vue +26 -8
  79. package/src/comment/CommentContent.vue +62 -17
  80. package/src/comment/CommentContentSimple.vue +54 -15
  81. package/src/comment/CommentWithReply.vue +22 -1
  82. package/src/comment/ReplyForReply.vue +14 -1
  83. package/src/comment/ReplyItem.vue +10 -1
  84. package/src/comment/ReplyList.vue +19 -1
  85. package/src/editor/BoxResource.vue +2 -2
  86. package/src/editor/Resource.vue +6 -6
  87. package/src/filters/clientBy.vue +14 -1
  88. package/src/filters/menuBy.vue +14 -1
  89. package/src/filters/orderBy.vue +1 -1
  90. package/src/filters/tagBy.vue +10 -1
  91. package/src/filters/versionBy.vue +6 -1
  92. package/src/filters/zlpBy.vue +6 -1
  93. package/src/footer/resource.vue +3 -1
  94. package/src/header/alternate.vue +2 -2
  95. package/src/header/asset.vue +13 -1
  96. package/src/header/box.vue +10 -5
  97. package/src/header/box2.vue +279 -247
  98. package/src/header/client.vue +6 -1
  99. package/src/header/lang.vue +1 -2
  100. package/src/header/logo.vue +3 -3
  101. package/src/header/manage.vue +0 -1
  102. package/src/header/nav.vue +1 -1
  103. package/src/header/userInfo.vue +18 -5
  104. package/src/interact/BoxcoinAdmin.vue +46 -5
  105. package/src/interact/BoxcoinRecords.vue +22 -1
  106. package/src/interact/BoxcoinUser.vue +49 -8
  107. package/src/interact/Contributors.vue +7 -11
  108. package/src/interact/Fav.vue +22 -1
  109. package/src/interact/Like.vue +10 -1
  110. package/src/interact/Share.vue +18 -1
  111. package/src/interact/WatchLater.vue +3 -3
  112. package/src/main.js +3 -1
  113. package/src/single/Author.vue +15 -10
  114. package/src/single/{cms-single.vue → CmsSingle.vue} +10 -1
  115. package/src/single/Collection.vue +10 -1
  116. package/src/single/Comment.vue +20 -3
  117. package/src/single/Creators.vue +10 -1
  118. package/src/single/PostDirectory.vue +1 -1
  119. package/src/single/PostHeader.vue +18 -1
  120. package/src/single/SimpleThx.vue +2 -2
  121. package/src/single/Thx.vue +45 -27
  122. package/assets/img/author/msg.svg +0 -55
  123. package/src/Bottom.vue +0 -23
  124. package/src/Box.vue +0 -149
  125. package/src/author/AuthorMsg.vue +0 -25
  126. package/src/bread/AdminButton.vue +0 -31
  127. package/src/header/bus.js +0 -9
  128. /package/docs/{README.md → i18n.md} +0 -0
@@ -10,8 +10,8 @@
10
10
  <div class="c-resource-content" v-loading="loading">
11
11
  <div class="m-database-search">
12
12
  <el-radio-group class="u-client" v-model="client" @change="search">
13
- <el-radio-button label="std">剑三</el-radio-button>
14
- <el-radio-button label="origin">缘起</el-radio-button>
13
+ <el-radio-button value="std">剑三</el-radio-button>
14
+ <el-radio-button value="origin">缘起</el-radio-button>
15
15
  </el-radio-group>
16
16
  <el-input
17
17
  class="u-input"
@@ -47,8 +47,8 @@
47
47
  <div class="u-mode">
48
48
  插入模式:
49
49
  <el-radio-group v-model="buff_mode" size="small" @change="changeMode">
50
- <el-radio-button label="simple">简版</el-radio-button>
51
- <el-radio-button label="full">完整版</el-radio-button>
50
+ <el-radio-button value="simple">简版</el-radio-button>
51
+ <el-radio-button value="full">完整版</el-radio-button>
52
52
  </el-radio-group>
53
53
  </div>
54
54
  </div>
@@ -91,8 +91,8 @@
91
91
  <div class="u-mode">
92
92
  插入模式:
93
93
  <el-radio-group v-model="skill_mode" size="small" @change="changeMode">
94
- <el-radio-button label="simple">简版</el-radio-button>
95
- <el-radio-button label="full">完整版</el-radio-button>
94
+ <el-radio-button value="simple">简版</el-radio-button>
95
+ <el-radio-button value="full">完整版</el-radio-button>
96
96
  </el-radio-group>
97
97
  </div>
98
98
  </div>
@@ -26,7 +26,20 @@ const clients = {
26
26
  export default {
27
27
  name: "clientBy",
28
28
  emits: ["filter"],
29
- props: ["type", "clients", "showWujie"],
29
+ props: {
30
+ type: {
31
+ type: String,
32
+ default: "",
33
+ },
34
+ clients: {
35
+ type: Object,
36
+ default: () => null,
37
+ },
38
+ showWujie: {
39
+ type: Boolean,
40
+ default: false,
41
+ },
42
+ },
30
43
  data: function () {
31
44
  return {
32
45
  client: this.type || "",
@@ -23,7 +23,20 @@
23
23
  export default {
24
24
  name: "menuBy",
25
25
  emits: ["filter"],
26
- props: ["data", "type", "placeholder"],
26
+ props: {
27
+ data: {
28
+ type: Object,
29
+ default: () => ({}),
30
+ },
31
+ type: {
32
+ type: String,
33
+ default: "menu",
34
+ },
35
+ placeholder: {
36
+ type: String,
37
+ default: "",
38
+ },
39
+ },
27
40
  data: function () {
28
41
  return {
29
42
  value: "",
@@ -40,7 +40,7 @@ const order_map = {
40
40
  export default {
41
41
  name: "orderBy",
42
42
  emits: ["filter"],
43
- props: [],
43
+ props: {},
44
44
  data: function () {
45
45
  return {
46
46
  visible: false,
@@ -43,7 +43,16 @@
43
43
  export default {
44
44
  name: "tagBy",
45
45
  emits: ["filter"],
46
- props: ["data", "type"],
46
+ props: {
47
+ data: {
48
+ type: Object,
49
+ default: () => ({}),
50
+ },
51
+ type: {
52
+ type: String,
53
+ default: "tag",
54
+ },
55
+ },
47
56
  data: function () {
48
57
  return {
49
58
  visible: false,
@@ -18,7 +18,12 @@
18
18
  <script>
19
19
  export default {
20
20
  name: "versionBy",
21
- props: ["value"],
21
+ props: {
22
+ value: {
23
+ type: [String, Number],
24
+ default: "",
25
+ },
26
+ },
22
27
  emits: ["filter"],
23
28
  data: function () {
24
29
  return {
@@ -29,7 +29,12 @@ import zlps from "@jx3box/jx3box-common/data/jx3_zlp.json";
29
29
  export default {
30
30
  name: "zlpBy",
31
31
  emits: ["filter"],
32
- props: ["client"],
32
+ props: {
33
+ client: {
34
+ type: String,
35
+ default: "",
36
+ },
37
+ },
33
38
  data: function () {
34
39
  return {
35
40
  value: "",
@@ -62,7 +62,7 @@
62
62
  :alt="$jx3boxT('jx3boxUi.footer.qqBot', 'QQ机器人')"
63
63
  />
64
64
  </div>
65
- <div>
65
+ <div @click="copyText('3889010020')" class="cursor-pointer">
66
66
  <p class="font-bold uppercase tracking-wider text-gray-500" style="font-size: 10px">
67
67
  {{ $jx3boxT("jx3boxUi.footer.qqBotService", "QQ 机器人服务") }}
68
68
  </p>
@@ -82,6 +82,7 @@
82
82
  </template>
83
83
 
84
84
  <script>
85
+ import { copyText } from "../../utils";
85
86
  import i18nMixin from "../../i18n/mixin";
86
87
  export default {
87
88
  name: "FooterResource",
@@ -127,6 +128,7 @@ export default {
127
128
  computed: {},
128
129
  watch: {},
129
130
  methods: {
131
+ copyText,
130
132
  getDownloadName(item) {
131
133
  if (item?.key) {
132
134
  const k = item.key === "harmonyNext" ? "harmonyNext" : item.key;
@@ -42,7 +42,7 @@
42
42
  </template>
43
43
 
44
44
  <script>
45
- import Bus from "./bus";
45
+ import Bus from "../../utils/bus";
46
46
  import { showAvatar } from "@jx3box/jx3box-common/js/utils";
47
47
  import dayjs from "dayjs";
48
48
  import User from "@jx3box/jx3box-common/js/user";
@@ -75,7 +75,7 @@ export default {
75
75
  },
76
76
  },
77
77
  mounted() {
78
- Bus.$on("showAlternate", () => {
78
+ Bus.on("showAlternate", () => {
79
79
  this.visible = true;
80
80
  });
81
81
  this.init();
@@ -84,7 +84,19 @@ export default {
84
84
  components: {
85
85
  // coinIcon,
86
86
  },
87
- props: ["asset"],
87
+ props: {
88
+ asset: {
89
+ type: Object,
90
+ default: () => ({
91
+ experience: 0,
92
+ box_coin: 0,
93
+ points: 0,
94
+ ext_info: {
95
+ keycode: 0,
96
+ },
97
+ }),
98
+ },
99
+ },
88
100
  data() {
89
101
  return {
90
102
  // VIP
@@ -30,7 +30,7 @@
30
30
  <script>
31
31
  import search from "./search.vue";
32
32
  import _ from "lodash";
33
- import Bus from "./bus";
33
+ import Bus from "../../utils/bus";
34
34
  import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
35
35
  import i18nMixin from "../../i18n/mixin";
36
36
  import box from "../../assets/data/box.json";
@@ -41,7 +41,12 @@ const { __imgPath, __cdn } = JX3BOX;
41
41
  export default {
42
42
  name: "Box",
43
43
  mixins: [i18nMixin],
44
- props: ["overlayEnable"],
44
+ props: {
45
+ overlayEnable: {
46
+ type: Boolean,
47
+ default: false,
48
+ },
49
+ },
45
50
  data: function () {
46
51
  return {
47
52
  status: false,
@@ -71,7 +76,7 @@ export default {
71
76
  },
72
77
  methods: {
73
78
  closeBox: function () {
74
- Bus.$emit("toggleBox", false);
79
+ Bus.emit("toggleBox", false);
75
80
  },
76
81
  matchedClient: function (client) {
77
82
  return client == "all" ? true : client == this.client;
@@ -121,7 +126,7 @@ export default {
121
126
  this.loadMenu();
122
127
  },
123
128
  mounted: function () {
124
- Bus.$on("toggleBox", (status) => {
129
+ Bus.on("toggleBox", (status) => {
125
130
  if (status == undefined) {
126
131
  this.status = !this.status;
127
132
  } else {
@@ -129,7 +134,7 @@ export default {
129
134
  }
130
135
  });
131
136
  document.addEventListener("click", function () {
132
- Bus.$emit("toggleBox", false);
137
+ Bus.emit("toggleBox", false);
133
138
  });
134
139
  },
135
140
  components: {