@jx3box/jx3box-common-ui 5.5.19 → 5.5.21
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.
- package/index.js +1 -1
- package/package.json +3 -3
- package/service/author.js +1 -1
- package/src/author/Avatar.vue +3 -3
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import Breadcrumb from './src/Breadcrumb.vue'
|
|
|
5
5
|
import LeftSidebar from './src/LeftSidebar.vue'
|
|
6
6
|
import LeftSideToggle from './src/LeftSideToggle.vue'
|
|
7
7
|
import Author from './src/Author.vue'
|
|
8
|
-
import Avatar from './src/Avatar.vue'
|
|
8
|
+
import Avatar from './src/author/Avatar.vue'
|
|
9
9
|
import RightSidebar from './src/RightSidebar.vue'
|
|
10
10
|
import RightSideMsg from './src/RightSideMsg.vue'
|
|
11
11
|
import Main from './src/Main.vue'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.21",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"last 2 versions"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jx3box/jx3box-comment-ui": "^1.6.
|
|
34
|
-
"@jx3box/jx3box-common": "^7.0.
|
|
33
|
+
"@jx3box/jx3box-comment-ui": "^1.6.8",
|
|
34
|
+
"@jx3box/jx3box-common": "^7.0.18",
|
|
35
35
|
"@jx3box/jx3box-data": "^1.8.3",
|
|
36
36
|
"@jx3box/jx3box-editor": "^1.2.4",
|
|
37
37
|
"axios": "^0.19.2",
|
package/service/author.js
CHANGED
package/src/author/Avatar.vue
CHANGED
|
@@ -14,7 +14,7 @@ import { __server, __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
|
14
14
|
import { getFrames } from "../../service/author";
|
|
15
15
|
import { showAvatar, authorLink } from "@jx3box/jx3box-common/js/utils";
|
|
16
16
|
export default {
|
|
17
|
-
name: "",
|
|
17
|
+
name: "Avatar",
|
|
18
18
|
props: ["uid", "url", "size", "frame"],
|
|
19
19
|
components: {},
|
|
20
20
|
data: function() {
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
frameUrl: function() {
|
|
36
36
|
if (this.frameName) {
|
|
37
37
|
let fileName = this.frames[this.frameName].files[this.style].file;
|
|
38
|
-
return __imgPath + `
|
|
38
|
+
return __imgPath + `avatar/images/${this.frameName}/${fileName}`;
|
|
39
39
|
}
|
|
40
40
|
return "";
|
|
41
41
|
},
|
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
style: function() {
|
|
46
46
|
let style = ~~this.size;
|
|
47
47
|
for(let [i,v] of this.styles.entries()){
|
|
48
|
-
if(style < v){
|
|
48
|
+
if(style < v.size){
|
|
49
49
|
return this.styles[i]['cls']
|
|
50
50
|
}
|
|
51
51
|
}
|