@jx3box/jx3box-common-ui 8.0.7 → 8.0.9

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.
@@ -84,6 +84,7 @@
84
84
 
85
85
  .u-meta {
86
86
  .mr(15px);
87
+ .mt(5px);
87
88
 
88
89
  &:last-child {
89
90
  .mr(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "8.0.7",
3
+ "version": "8.0.9",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^1.7.16",
34
- "@jx3box/jx3box-common": "^8.0.3",
35
- "@jx3box/jx3box-data": "^3.5.3",
36
- "@jx3box/jx3box-editor": "^1.9.9",
33
+ "@jx3box/jx3box-comment-ui": "^1.8.1",
34
+ "@jx3box/jx3box-common": "^8.1.3",
35
+ "@jx3box/jx3box-data": "^3.5.6",
36
+ "@jx3box/jx3box-editor": "^2.0.9",
37
37
  "@jx3box/reporter": "^0.0.4",
38
38
  "axios": "^0.26.1",
39
39
  "dayjs": "^1.11.0",
package/src/App.vue CHANGED
@@ -15,9 +15,9 @@
15
15
  bread info
16
16
  </Breadcrumb>
17
17
 
18
- <LeftSidebar :open="true" :uid="8">
18
+ <LeftSidebar :open="true" :uid="2">
19
19
  <LeftSideToggle :mobileOnly="true" />
20
- <Author :author="author" :uid="8" />
20
+ <Author :author="author" :uid="2" />
21
21
  </LeftSidebar>
22
22
 
23
23
  <Main :withoutLeft="false" :withoutRight="false">
@@ -58,7 +58,7 @@ export default {
58
58
  return __imgPath + "image/medals/user/" + medal + ".gif";
59
59
  },
60
60
  getMedalLink(medal) {
61
- return getMedalLink(medal.rank_id, medal.medal_type || "rank");
61
+ return medal.rank_id ? getMedalLink(medal.rank_id, medal.medal_type || "rank") : "";
62
62
  },
63
63
  },
64
64
  created: function () {},
@@ -1,15 +1,22 @@
1
1
  <template>
2
2
  <div class="m-medal">
3
- <a :href="medalLink(item)" target="_blank" class="u-medal" v-for="item in medals" :key="item.id" :title="item.medal_desc">
4
- <img class="u-medal-img" :src="showIcon(item.medal)">
3
+ <a
4
+ :href="medalLink(item)"
5
+ target="_blank"
6
+ class="u-medal"
7
+ v-for="item in medals"
8
+ :key="item.id"
9
+ :title="item.medal_desc"
10
+ >
11
+ <img class="u-medal-img" :src="showIcon(item.medal)" />
5
12
  </a>
6
13
  </div>
7
14
  </template>
8
15
 
9
16
  <script>
10
- import { getMedalLink } from '@jx3box/jx3box-common/js/utils'
17
+ import { getMedalLink } from "@jx3box/jx3box-common/js/utils";
11
18
  export default {
12
- name: 'author_medal',
19
+ name: "author_medal",
13
20
  props: {
14
21
  medals: {
15
22
  type: Array,
@@ -18,14 +25,14 @@ export default {
18
25
  showIcon: {
19
26
  type: Function,
20
27
  default: () => true,
21
- }
28
+ },
22
29
  },
23
30
  methods: {
24
- medalLink({ rank_id, medal_type = 'rank' }) {
25
- return getMedalLink(rank_id, medal_type)
26
- }
27
- }
28
- }
31
+ medalLink({ rank_id, medal_type = "rank" }) {
32
+ return rank_id ? getMedalLink(rank_id, medal_type) : "";
33
+ },
34
+ },
35
+ };
29
36
  </script>
30
37
 
31
38
  <style lang="less">
@@ -78,9 +78,9 @@
78
78
  import _ from "lodash";
79
79
  import QRcode from "../interact/QRcode";
80
80
  import {
81
- getThumbnail,
82
81
  authorLink,
83
82
  ts2str,
83
+ showAvatar,
84
84
  } from "@jx3box/jx3box-common/js/utils";
85
85
  import { getStat } from "@jx3box/jx3box-common/js/stat";
86
86
  export default {
@@ -128,7 +128,7 @@ export default {
128
128
  author_url: authorLink,
129
129
  ts2str,
130
130
  thumbnail_url: function(val) {
131
- return getThumbnail(val, 72, true);
131
+ return showAvatar(val);
132
132
  },
133
133
  },
134
134
  components: {
@@ -40,7 +40,7 @@
40
40
 
41
41
  <script>
42
42
  import WikiPanel from "./WikiPanel";
43
- import { wiki } from "@jx3box/jx3box-common/js/wiki";
43
+ import { wiki } from "@jx3box/jx3box-common/js/wiki_v2";
44
44
  import { getLink, authorLink, ts2str } from "@jx3box/jx3box-common/js/utils";
45
45
  import { __Root, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
46
46
 
@@ -49,7 +49,7 @@ export default {
49
49
  props: ["type", "sourceId", "isGame"],
50
50
  data: function () {
51
51
  return {
52
- versions: null,
52
+ versions: [],
53
53
  };
54
54
  },
55
55
  computed: {
@@ -94,10 +94,10 @@ export default {
94
94
  .then(
95
95
  (res) => {
96
96
  res = res.data;
97
- this.versions = res.code === 200 ? res.data.versions : false;
97
+ this.versions = res.data || [];
98
98
  },
99
99
  () => {
100
- this.versions = false;
100
+ this.versions = [];
101
101
  }
102
102
  );
103
103
  }