@jx3box/jx3box-ui 2.0.5 → 2.0.7
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/.storybook/preview.js +22 -13
- package/.storybook/storybookMocks.js +214 -0
- package/README.md +39 -43
- package/assets/css/bread/admin.less +20 -2
- package/assets/css/bread/breadcrumb.less +5 -2
- package/assets/css/comment/quick-reply.less +1 -1
- package/assets/css/common/left-sidebar.less +1 -1
- package/assets/css/interact/like2.less +5 -2
- package/assets/css/interact/qrcode.less +69 -0
- package/assets/css/single/author.less +15 -10
- package/assets/css/single/cms-single.less +1 -0
- package/assets/css/single/thx.less +34 -11
- package/assets/css/wiki/wiki-comments.less +176 -0
- package/assets/css/wiki/wiki-panel.less +177 -0
- package/assets/css/wiki/wiki-revisions.less +62 -0
- package/assets/data/nav.json +344 -10
- package/assets/img/comment/comment.svg +1 -1
- package/assets/img/comment/heart_1.svg +1 -1
- package/assets/img/comment/hide.svg +1 -1
- package/assets/img/leftsidebar/medal.svg +1 -1
- package/assets/img/leftsidebar/post.svg +27 -46
- package/i18n/messages/en-US.js +357 -22
- package/i18n/messages/vi.js +350 -22
- package/i18n/messages/zh-CN.js +469 -20
- package/i18n/messages/zh-TW.js +350 -22
- package/index.js +19 -7
- package/package.json +8 -5
- package/service/cms.js +22 -0
- package/service/commit-history.js +18 -0
- package/service/community.js +60 -0
- package/service/fav.js +5 -6
- package/src/App.vue +210 -80
- package/src/Breadcrumb.vue +24 -11
- package/src/CommonFooter.vue +2 -2
- package/src/Footer.vue +13 -5
- package/src/LeftSideToggle.vue +10 -3
- package/src/LeftSidebar.vue +19 -5
- package/src/Main.vue +9 -2
- package/src/RightSidebar.vue +12 -3
- package/src/SuspendCommon.vue +52 -38
- package/src/author/AuthorFans.vue +7 -5
- package/src/author/AuthorFollow.vue +14 -7
- package/src/author/AuthorGift.vue +25 -17
- package/src/author/AuthorInfo.vue +46 -19
- package/src/author/AuthorLink.vue +3 -1
- package/src/author/AuthorMedals.vue +5 -2
- package/src/author/AuthorPosts.vue +31 -13
- package/src/author/AuthorRss.vue +7 -3
- package/src/author/AuthorTeams.vue +3 -1
- package/src/author/UserPop.vue +29 -17
- package/src/bread/Admin.vue +55 -32
- package/src/bread/AdminDirectMessage.vue +15 -8
- package/src/bread/AdminDrop.vue +124 -45
- package/src/bread/CommunityAdmin.vue +527 -0
- package/src/bread/DesignTask.vue +30 -26
- package/src/bread/ListAdmin.vue +199 -0
- package/src/bread/MigrateCommunity.vue +192 -0
- package/src/bread/MoveToCommunityDialog.vue +234 -0
- package/src/comment/Avatar.vue +18 -24
- package/src/comment/CommentContent.vue +57 -37
- package/src/comment/CommentContentSimple.vue +61 -63
- package/src/comment/CommentInputForm.vue +45 -34
- package/src/comment/CommentWithReply.vue +9 -6
- package/src/comment/QuickReply.vue +5 -1
- package/src/comment/ReplyForReply.vue +6 -4
- package/src/comment/ReplyList.vue +28 -18
- package/src/comment/Upload.vue +24 -6
- package/src/filters/clientBy.vue +10 -8
- package/src/filters/markBy.vue +35 -31
- package/src/filters/menuBy.vue +20 -22
- package/src/filters/orderBy.vue +17 -11
- package/src/filters/tagBy.vue +4 -2
- package/src/filters/topicBy.vue +12 -10
- package/src/filters/versionBy.vue +5 -3
- package/src/filters/zlpBy.vue +29 -25
- package/src/footer/copyright.vue +5 -5
- package/src/footer/links.vue +2 -2
- package/src/footer/official.vue +1 -1
- package/src/footer/resource.vue +6 -6
- package/src/header/alternate.vue +35 -18
- package/src/header/asset.vue +9 -19
- package/src/header/box.vue +20 -8
- package/src/header/box2.vue +16 -9
- package/src/header/client.vue +7 -7
- package/src/header/lang.vue +41 -6
- package/src/header/logo.vue +2 -3
- package/src/header/manage.vue +2 -2
- package/src/header/message.vue +3 -3
- package/src/header/nav.vue +26 -23
- package/src/header/publish.vue +2 -2
- package/src/header/search.vue +2 -2
- package/src/header/shop.vue +2 -2
- package/src/header/user.vue +4 -4
- package/src/header/userInfo.vue +22 -24
- package/src/header/vip.vue +2 -2
- package/src/interact/BoxcoinAdmin.vue +30 -16
- package/src/interact/BoxcoinRecords.vue +28 -11
- package/src/interact/BoxcoinUser.vue +33 -17
- package/src/interact/Fav.vue +5 -1
- package/src/interact/Homework.vue +317 -0
- package/src/interact/Like.vue +4 -2
- package/src/interact/QRcode.vue +104 -0
- package/src/interact/Rss.vue +10 -4
- package/src/interact/Share.vue +18 -19
- package/src/interact/WatchLater.vue +5 -1
- package/src/main.js +1 -0
- package/src/single/Author.vue +5 -1
- package/src/single/CmsSingle.vue +29 -15
- package/src/single/Collection.vue +36 -26
- package/src/single/Comment.vue +19 -13
- package/src/single/Creators.vue +5 -3
- package/src/single/PostCollection.vue +158 -0
- package/src/single/PostDirectory.vue +0 -126
- package/src/single/PostGuide.vue +93 -0
- package/src/single/PostHeader.vue +39 -17
- package/src/single/PostTopic.vue +3 -3
- package/src/single/PostVersion.vue +219 -0
- package/src/single/RightAffix.vue +160 -0
- package/src/single/SimpleThx.vue +4 -2
- package/src/single/Thx.vue +14 -2
- package/src/single/VersionDialog.vue +238 -0
- package/src/stories/components/StoryPropsTable.vue +137 -0
- package/src/stories/filters/FilterGallery.stories.js +110 -0
- package/src/stories/filters/clientBy.stories.js +24 -0
- package/src/stories/filters/markBy.stories.js +6 -0
- package/src/stories/filters/menuBy.stories.js +6 -0
- package/src/stories/filters/orderBy.stories.js +6 -0
- package/src/stories/filters/tagBy.stories.js +6 -0
- package/src/stories/filters/topicBy.stories.js +6 -0
- package/src/stories/filters/versionBy.stories.js +6 -0
- package/src/stories/filters/zlpBy.stories.js +6 -0
- package/src/stories/interact/QRcode.stories.js +59 -0
- package/src/stories/layout/BaseShell.stories.js +38 -0
- package/src/stories/layout/Breadcrumb.stories.js +40 -0
- package/src/stories/layout/CommonFooter.stories.js +1 -1
- package/src/stories/layout/CommonHeader.stories.js +1 -1
- package/src/stories/layout/LeftSideToggle.stories.js +78 -0
- package/src/stories/layout/LeftSidebar.stories.js +40 -0
- package/src/stories/layout/Main.stories.js +41 -0
- package/src/stories/layout/RightSidebar.stories.js +36 -0
- package/src/stories/layout/StorybookShell.vue +271 -0
- package/src/stories/layout/SuspendCommon.stories.js +67 -0
- package/src/stories/layout/SuspendCommonStage.vue +143 -0
- package/src/stories/mockData.js +369 -0
- package/src/stories/other/UserPop.stories.js +51 -0
- package/src/stories/single/Author.stories.js +19 -0
- package/src/stories/single/AuthorStoryStage.vue +103 -0
- package/src/stories/single/CmsSingle.stories.js +19 -0
- package/src/stories/single/CmsSingleStoryStage.vue +118 -0
- package/src/stories/single/Collection.stories.js +34 -0
- package/src/stories/single/Comment.stories.js +36 -0
- package/src/stories/single/Creators.stories.js +34 -0
- package/src/stories/single/PostCollection.stories.js +34 -0
- package/src/stories/single/PostDirectory.stories.js +31 -0
- package/src/stories/single/PostGuide.stories.js +47 -0
- package/src/stories/single/PostHeader.stories.js +39 -0
- package/src/stories/single/PostVersion.stories.js +41 -0
- package/src/stories/single/RightAffix.stories.js +84 -0
- package/src/stories/single/SimpleThx.stories.js +39 -0
- package/src/stories/single/SingleGallery.stories.js +207 -0
- package/src/stories/single/Thx.stories.js +38 -0
- package/src/stories/wiki/GamePrice.stories.js +64 -0
- package/src/stories/wiki/WikiComments.stories.js +58 -0
- package/src/stories/wiki/WikiPanel.stories.js +69 -0
- package/src/stories/wiki/WikiRevisions.stories.js +47 -0
- package/src/wiki/GamePrice.vue +107 -0
- package/src/wiki/WikiComment.vue +153 -0
- package/src/wiki/WikiComments.vue +206 -0
- package/src/wiki/WikiPanel.vue +121 -0
- package/src/wiki/WikiRevisions.vue +125 -0
- package/vue.config.js +2 -12
- package/assets/css/common/bottom.less +0 -25
- package/assets/css/editor/article.less +0 -36
- package/assets/css/editor/combo.less +0 -362
- package/assets/css/editor/resource.less +0 -399
- package/assets/css/editor/tinymce.less +0 -100
- package/assets/css/editor/upload.less +0 -136
- package/assets/css/module/author.less +0 -231
- package/assets/css/module/buff.less +0 -88
- package/assets/css/module/directory.less +0 -165
- package/assets/css/module/icon.less +0 -25
- package/assets/css/module/item.less +0 -279
- package/assets/css/module/item_simple.less +0 -58
- package/assets/css/module/jx3_element.less +0 -5
- package/assets/css/module/macro.less +0 -89
- package/assets/css/module/npc.less +0 -265
- package/assets/css/module/resource.less +0 -93
- package/assets/css/module/skill.less +0 -74
- package/assets/css/module/talent.less +0 -495
- package/assets/js/a.js +0 -46
- package/assets/js/code.js +0 -13
- package/assets/js/combo.js +0 -40
- package/assets/js/directory.js +0 -114
- package/assets/js/filter2.js +0 -186
- package/assets/js/fold.js +0 -11
- package/assets/js/gallery.js +0 -14
- package/assets/js/hljs_languages.js +0 -177
- package/assets/js/iframe.js +0 -38
- package/assets/js/img.js +0 -23
- package/assets/js/item/attribute_percent.js +0 -88
- package/assets/js/item/bind.js +0 -18
- package/assets/js/item/border.js +0 -19
- package/assets/js/item/border_quest.js +0 -12
- package/assets/js/item/color.js +0 -25
- package/assets/js/item/hljs_languages.js +0 -177
- package/assets/js/item/icon_url.js +0 -15
- package/assets/js/item/second_format.js +0 -19
- package/assets/js/jx3_element.js +0 -73
- package/assets/js/katex.js +0 -181
- package/assets/js/macro.js +0 -16
- package/assets/js/nextpage.js +0 -4
- package/assets/js/pswp.js +0 -67
- package/assets/js/pswp_template.js +0 -66
- package/assets/js/pz_iframe.js +0 -30
- package/assets/js/qixue.js +0 -28
- package/assets/js/renderImgPreview.js +0 -18
- package/assets/js/script.js +0 -6
- package/assets/js/stat.js +0 -107
- package/assets/js/talent2.js +0 -21
- package/assets/js/tex-mml-chtml.js +0 -36310
- package/assets/js/voice.js +0 -238
- package/assets/js/xss.js +0 -130
- package/src/editor/Article.vue +0 -230
- package/src/editor/BoxResource.vue +0 -441
- package/src/editor/Resource.vue +0 -623
- package/src/editor/Tinymce.vue +0 -204
- package/src/editor/Upload.vue +0 -277
- package/src/editor/UploadAlum.vue +0 -176
- package/src/editor/UploadBanner.vue +0 -156
- package/src/editor/components/Author.vue +0 -322
- package/src/editor/components/Avatar.vue +0 -95
- package/src/editor/components/Buff.vue +0 -80
- package/src/editor/components/Combo.vue +0 -259
- package/src/editor/components/Equip.vue +0 -299
- package/src/editor/components/GameText.vue +0 -242
- package/src/editor/components/Item.vue +0 -325
- package/src/editor/components/ItemSimple.vue +0 -134
- package/src/editor/components/Medal.vue +0 -43
- package/src/editor/components/Npc.vue +0 -215
- package/src/editor/components/PostAuthor.vue +0 -102
- package/src/editor/components/Skill.vue +0 -71
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-popover
|
|
3
|
-
v-if="item && !noPop"
|
|
4
|
-
placement="right-end"
|
|
5
|
-
popper-class="m-simple-item-popup"
|
|
6
|
-
width="auto"
|
|
7
|
-
:visible-arrow="false"
|
|
8
|
-
trigger="hover"
|
|
9
|
-
transition="none"
|
|
10
|
-
:close-delay="0"
|
|
11
|
-
v-model="visible"
|
|
12
|
-
:effect="effect || 'light'"
|
|
13
|
-
@show="item_id = item.id"
|
|
14
|
-
>
|
|
15
|
-
<template #reference>
|
|
16
|
-
<div class="m-simple-item" @mousedown="visible = false" :class="{ onlyIcon: onlyIcon, withName: withName }">
|
|
17
|
-
<div class="m-icon">
|
|
18
|
-
<div
|
|
19
|
-
class="u-border"
|
|
20
|
-
:style="{
|
|
21
|
-
backgroundImage: item_border(item),
|
|
22
|
-
opacity: item.Quality == 5 ? 0.9 : 1,
|
|
23
|
-
}"
|
|
24
|
-
></div>
|
|
25
|
-
<div class="u-border-quest" :style="{ backgroundImage: item_border_quest(item) }"></div>
|
|
26
|
-
<img
|
|
27
|
-
class="u-icon"
|
|
28
|
-
:src="icon_url(item.IconID)"
|
|
29
|
-
:alt="`IconID:${item.IconID}`"
|
|
30
|
-
:style="{ width: iconSize, height: iconSize }"
|
|
31
|
-
/>
|
|
32
|
-
</div>
|
|
33
|
-
<span class="u-name" :style="{ color: item_color(item.Quality) }" v-text="item.Name"></span>
|
|
34
|
-
<span class="u-uiid fr" v-text="`ID: ${item.id}`"></span>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
<jx3-item :item_id="item_id" :jx3-client-type="jx3ClientType" />
|
|
38
|
-
</el-popover>
|
|
39
|
-
<div
|
|
40
|
-
class="m-simple-item"
|
|
41
|
-
v-if="item && noPop"
|
|
42
|
-
@mousedown="visible = false"
|
|
43
|
-
:class="{ onlyIcon: onlyIcon, withName: withName }"
|
|
44
|
-
>
|
|
45
|
-
<div class="m-icon">
|
|
46
|
-
<div
|
|
47
|
-
class="u-border"
|
|
48
|
-
:style="{
|
|
49
|
-
backgroundImage: item_border(item),
|
|
50
|
-
opacity: item.Quality == 5 ? 0.9 : 1,
|
|
51
|
-
}"
|
|
52
|
-
></div>
|
|
53
|
-
<div class="u-border-quest" :style="{ backgroundImage: item_border_quest(item) }"></div>
|
|
54
|
-
<img
|
|
55
|
-
class="u-icon"
|
|
56
|
-
:src="icon_url(item.IconID)"
|
|
57
|
-
:alt="`IconID:${item.IconID}`"
|
|
58
|
-
:style="{ width: iconSize, height: iconSize }"
|
|
59
|
-
/>
|
|
60
|
-
</div>
|
|
61
|
-
<span class="u-name" :style="{ color: item_color(item.Quality) }" v-text="item.Name"></span>
|
|
62
|
-
<span class="u-uiid fr" v-text="`ID: ${item.id}`"></span>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
import Item from "./Item.vue";
|
|
68
|
-
import icon_url from "../../../assets/js/item/icon_url.js";
|
|
69
|
-
import item_color from "../../../assets/js/item/color.js";
|
|
70
|
-
import item_border from "../../../assets/js/item/border.js";
|
|
71
|
-
import item_border_quest from "../../../assets/js/item/border_quest.js";
|
|
72
|
-
|
|
73
|
-
export default {
|
|
74
|
-
name: "ItemSimple",
|
|
75
|
-
props: ["item", "onlyIcon", "iconSize", "withName", "jx3ClientType", "effect", "noPop"],
|
|
76
|
-
data() {
|
|
77
|
-
return { visible: false, item_id: null };
|
|
78
|
-
},
|
|
79
|
-
methods: {
|
|
80
|
-
icon_url,
|
|
81
|
-
item_color,
|
|
82
|
-
item_border,
|
|
83
|
-
item_border_quest,
|
|
84
|
-
},
|
|
85
|
-
components: {
|
|
86
|
-
"jx3-item": Item,
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
</script>
|
|
90
|
-
|
|
91
|
-
<style lang="less">
|
|
92
|
-
.m-simple-item-popup {
|
|
93
|
-
min-width: initial;
|
|
94
|
-
padding: 0;
|
|
95
|
-
border: none;
|
|
96
|
-
box-shadow: none;
|
|
97
|
-
background-color: transparent;
|
|
98
|
-
transform: translateY(-10px);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.m-simple-item {
|
|
102
|
-
.u-border {
|
|
103
|
-
background-repeat: no-repeat;
|
|
104
|
-
}
|
|
105
|
-
&.onlyIcon {
|
|
106
|
-
.dbi;
|
|
107
|
-
padding: 0;
|
|
108
|
-
margin: 0;
|
|
109
|
-
background-color: none;
|
|
110
|
-
.u-name,
|
|
111
|
-
.u-uiid {
|
|
112
|
-
.none !important;
|
|
113
|
-
}
|
|
114
|
-
.m-icon {
|
|
115
|
-
margin: 0 !important;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
&.withName {
|
|
119
|
-
background: none;
|
|
120
|
-
.w(90px);
|
|
121
|
-
.x;
|
|
122
|
-
.u-name {
|
|
123
|
-
.db !important;
|
|
124
|
-
color: #555;
|
|
125
|
-
text-shadow: none;
|
|
126
|
-
.mt(5px);
|
|
127
|
-
.bold;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
132
|
-
<style lang="less">
|
|
133
|
-
@import "../../../assets/css/module/item_simple.less";
|
|
134
|
-
</style>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<template>
|
|
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)">
|
|
5
|
-
</a>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
import { getMedalLink } from '@jx3box/jx3box-common/js/utils'
|
|
11
|
-
export default {
|
|
12
|
-
name: 'MedalComponent',
|
|
13
|
-
props: {
|
|
14
|
-
medals: {
|
|
15
|
-
type: Array,
|
|
16
|
-
default: () => [], // [{ rank_id, medal_desc, medal }]
|
|
17
|
-
},
|
|
18
|
-
showIcon: {
|
|
19
|
-
type: Function,
|
|
20
|
-
default: () => true,
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
methods: {
|
|
24
|
-
|
|
25
|
-
medalLink({ rank_id, medal_type = 'rank' }) {
|
|
26
|
-
return getMedalLink(rank_id, medal_type)
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<style lang="less">
|
|
33
|
-
.m-medal {
|
|
34
|
-
display: flex;
|
|
35
|
-
.u-medal {
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
.u-medal-img {
|
|
38
|
-
width: 20px;
|
|
39
|
-
height: 20px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</style>
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="w-npc" v-if="data">
|
|
3
|
-
<div class="w-npc-wrapper">
|
|
4
|
-
<div class="w-npc-content">
|
|
5
|
-
<div class="u-npc">
|
|
6
|
-
<div class="u-title">
|
|
7
|
-
<span class="u-name">{{ data.Name }}</span>
|
|
8
|
-
<span class="u-name-add">
|
|
9
|
-
<span v-if="data.Title || data.Level"><</span>
|
|
10
|
-
<span class="u-nick" v-if="data.Title">
|
|
11
|
-
{{ data.Title }}
|
|
12
|
-
</span>
|
|
13
|
-
<span v-if="data.Title && data.Level">·</span>
|
|
14
|
-
<b class="u-level" v-if="data.Level">{{ data.Level }}</b>
|
|
15
|
-
<span v-if="data.Title || data.Level">></span>
|
|
16
|
-
</span>
|
|
17
|
-
<div class="u-base">
|
|
18
|
-
<span class="u-atmap" v-if="data.MapName">
|
|
19
|
-
{{ data.MapName }}
|
|
20
|
-
</span>
|
|
21
|
-
<span class="u-intensity" v-if="data.Intensity">
|
|
22
|
-
强度
|
|
23
|
-
{{ data.Intensity }}
|
|
24
|
-
</span>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="u-primary">
|
|
28
|
-
<div class="u-life">
|
|
29
|
-
<img class="u-descicon u-descicon-life" svg-inline src="../../../assets/img/npc/energy.svg" />
|
|
30
|
-
<b>血量</b>
|
|
31
|
-
<em>MaxLife</em>
|
|
32
|
-
<strong>{{ data.MaxLife }}</strong>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="u-mana">
|
|
35
|
-
<img class="u-descicon u-descicon-mana" svg-inline src="../../../assets/img/npc/energy.svg" />
|
|
36
|
-
<b>内力</b>
|
|
37
|
-
<em>MaxMana</em>
|
|
38
|
-
<strong>{{ data.MaxMana }}</strong>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="u-touch" v-if="data.TouchRange">
|
|
41
|
-
<img class="u-descicon u-descicon-touch" svg-inline src="../../../assets/img/npc/radar.svg" />
|
|
42
|
-
<b>范围</b>
|
|
43
|
-
<em>TouchRange</em>
|
|
44
|
-
<strong>{{ data.TouchRange }}</strong>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="u-sense" v-if="data.Sense">
|
|
47
|
-
<img class="u-descicon u-descicon-sense" svg-inline src="../../../assets/img/npc/sight.svg" />
|
|
48
|
-
<b>识破</b>
|
|
49
|
-
<em>Sense</em>
|
|
50
|
-
<strong>{{ data.Sense }}</strong>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="u-dodge" v-if="data.Dodge">
|
|
53
|
-
<img class="u-descicon u-descicon-dodge" svg-inline src="../../../assets/img/npc/miss.svg" />
|
|
54
|
-
<b>闪避</b>
|
|
55
|
-
<em>Dodge</em>
|
|
56
|
-
<strong>{{ data.Dodge }}</strong>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="u-dodge" v-if="data.Parry">
|
|
59
|
-
<img class="u-descicon u-descicon-dodge" svg-inline src="../../../assets/img/npc/miss.svg" />
|
|
60
|
-
<b>招架</b>
|
|
61
|
-
<em>Parry</em>
|
|
62
|
-
<strong>{{ data.ParryValue }}</strong>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="u-shield">
|
|
65
|
-
<img class="u-descicon u-descicon-shield" svg-inline src="../../../assets/img/npc/shield.svg" />
|
|
66
|
-
<b>防御</b>
|
|
67
|
-
<em>Shield</em>
|
|
68
|
-
<span class="u-sitem">
|
|
69
|
-
外功防御
|
|
70
|
-
<em>PhysicsShieldBase</em>
|
|
71
|
-
<span class="u-value">{{ ~~data.PhysicsShieldBase }}</span>
|
|
72
|
-
</span>
|
|
73
|
-
<span class="u-sitem">
|
|
74
|
-
混元防御
|
|
75
|
-
<em>NeutralMagicDefence</em>
|
|
76
|
-
<span class="u-value">{{ ~~data.NeutralMagicDefence }}</span>
|
|
77
|
-
</span>
|
|
78
|
-
<span class="u-sitem">
|
|
79
|
-
阳性防御
|
|
80
|
-
<em>SolarMagicDefence</em>
|
|
81
|
-
<span class="u-value">{{ ~~data.SolarMagicDefence }}</span>
|
|
82
|
-
</span>
|
|
83
|
-
<span class="u-sitem">
|
|
84
|
-
阴性防御
|
|
85
|
-
<em>LunarMagicDefence</em>
|
|
86
|
-
<span class="u-value">{{ ~~data.LunarMagicDefence }}</span>
|
|
87
|
-
</span>
|
|
88
|
-
<span class="u-sitem">
|
|
89
|
-
毒性防御
|
|
90
|
-
<em>PoisonMagicDefence</em>
|
|
91
|
-
<span class="u-value">{{ ~~data.PoisonMagicDefence }}</span>
|
|
92
|
-
</span>
|
|
93
|
-
</div>
|
|
94
|
-
<div class="u-critical">
|
|
95
|
-
<img class="u-descicon u-descicon-attack" svg-inline src="../../../assets/img/npc/attack.svg" />
|
|
96
|
-
<b>会心</b>
|
|
97
|
-
<em>Critical</em>
|
|
98
|
-
<span class="u-sitem">
|
|
99
|
-
外功会心
|
|
100
|
-
<em>PhysicsCriticalStrike</em>
|
|
101
|
-
<span class="u-value">{{ ~~data.PhysicsCriticalStrike }}</span>
|
|
102
|
-
</span>
|
|
103
|
-
<span class="u-sitem">
|
|
104
|
-
混元会心
|
|
105
|
-
<em>NeutralCriticalStrike</em>
|
|
106
|
-
<span class="u-value">{{ ~~data.NeutralCriticalStrike }}</span>
|
|
107
|
-
</span>
|
|
108
|
-
<span class="u-sitem">
|
|
109
|
-
阳性会心
|
|
110
|
-
<em>SolarCriticalStrike</em>
|
|
111
|
-
<span class="u-value">{{ ~~data.SolarCriticalStrike }}</span>
|
|
112
|
-
</span>
|
|
113
|
-
<span class="u-sitem">
|
|
114
|
-
阴性会心
|
|
115
|
-
<em>LunarCriticalStrike</em>
|
|
116
|
-
<span class="u-value">{{ ~~data.LunarCriticalStrike }}</span>
|
|
117
|
-
</span>
|
|
118
|
-
<span class="u-sitem">
|
|
119
|
-
毒性会心
|
|
120
|
-
<em>PoisonCriticalStrike</em>
|
|
121
|
-
<span class="u-value">{{ ~~data.PoisonCriticalStrike }}</span>
|
|
122
|
-
</span>
|
|
123
|
-
</div>
|
|
124
|
-
<div class="u-attack">
|
|
125
|
-
<img class="u-descicon u-descicon-attack" svg-inline src="../../../assets/img/npc/target.svg" />
|
|
126
|
-
<b>命中</b>
|
|
127
|
-
<em>Attack</em>
|
|
128
|
-
<span class="u-sitem">
|
|
129
|
-
外功命中
|
|
130
|
-
<em>PhysicsAttackHit</em>
|
|
131
|
-
<span class="u-value">{{ ~~data.PhysicsAttackHit }}</span>
|
|
132
|
-
</span>
|
|
133
|
-
<span class="u-sitem">
|
|
134
|
-
混元命中
|
|
135
|
-
<em>NeutralMagicHit</em>
|
|
136
|
-
<span class="u-value">{{ ~~data.NeutralMagicHit }}</span>
|
|
137
|
-
</span>
|
|
138
|
-
<span class="u-sitem">
|
|
139
|
-
阳性命中
|
|
140
|
-
<em>SolarMagicHit</em>
|
|
141
|
-
<span class="u-value">{{ ~~data.SolarMagicHit }}</span>
|
|
142
|
-
</span>
|
|
143
|
-
<span class="u-sitem">
|
|
144
|
-
阴性命中
|
|
145
|
-
<em>LunarMagicHit</em>
|
|
146
|
-
<span class="u-value">{{ ~~data.LunarMagicHit }}</span>
|
|
147
|
-
</span>
|
|
148
|
-
<span class="u-sitem">
|
|
149
|
-
毒性命中
|
|
150
|
-
<em>PoisonMagicHit</em>
|
|
151
|
-
<span class="u-value">{{ ~~data.PoisonMagicHit }}</span>
|
|
152
|
-
</span>
|
|
153
|
-
</div>
|
|
154
|
-
</div>
|
|
155
|
-
<div class="u-id">
|
|
156
|
-
ID : {{id}}
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
</template>
|
|
163
|
-
|
|
164
|
-
<script>
|
|
165
|
-
import { getNpc } from "../../../service/database.js";
|
|
166
|
-
import * as utilModule from "@jx3box/jx3box-common/js/utils";
|
|
167
|
-
const { iconLink } = utilModule;
|
|
168
|
-
export default {
|
|
169
|
-
name: "NpcComponent",
|
|
170
|
-
props: ["client", "id"],
|
|
171
|
-
data: () => ({
|
|
172
|
-
data: null,
|
|
173
|
-
}),
|
|
174
|
-
computed: {
|
|
175
|
-
params: function() {
|
|
176
|
-
return [this.client, this.id];
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
watch: {
|
|
180
|
-
params: {
|
|
181
|
-
immediate: true,
|
|
182
|
-
deep: true,
|
|
183
|
-
handler(val) {
|
|
184
|
-
if (val) {
|
|
185
|
-
let [client, id] = val;
|
|
186
|
-
// 读取本地数据
|
|
187
|
-
const cache = sessionStorage.getItem(`npc-${client}-${id}`);
|
|
188
|
-
if (cache) {
|
|
189
|
-
this.data = JSON.parse(cache);
|
|
190
|
-
// 没有缓存则发起请求获取数据
|
|
191
|
-
} else {
|
|
192
|
-
id &&
|
|
193
|
-
getNpc(...this.params).then((res) => {
|
|
194
|
-
let data = res.data?.list?.[0];
|
|
195
|
-
this.data = data;
|
|
196
|
-
|
|
197
|
-
// 将数据放入 sessionStorage
|
|
198
|
-
sessionStorage.setItem(`npc-${client}-${id}`, JSON.stringify(data));
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
methods: {
|
|
206
|
-
iconLink: function(id) {
|
|
207
|
-
return iconLink(id, this.client);
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
};
|
|
211
|
-
</script>
|
|
212
|
-
|
|
213
|
-
<style lang="less">
|
|
214
|
-
@import "../../../assets/css/module/npc.less";
|
|
215
|
-
</style>
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: iRuxu
|
|
3
|
-
* @Date: 2022-07-17 00:13:35
|
|
4
|
-
* @LastEditTime: 2022-07-17 00:40:25
|
|
5
|
-
* @Description:
|
|
6
|
-
-->
|
|
7
|
-
<template>
|
|
8
|
-
<div class="w-author w-author__post" v-loading="loading">
|
|
9
|
-
<div class="w-author-wrapper el-popover" v-if="data">
|
|
10
|
-
<div class="u-meta">
|
|
11
|
-
<span class="u-meta-label">作者</span>
|
|
12
|
-
<span class="u-meta-value">
|
|
13
|
-
<a class="u-user" :href="authorLink(data.user_id)" target="_blank">
|
|
14
|
-
<Avatar class="u-user-avatar" :uid="data.user_id" :url="data.user_info.user_avatar" :size="32" />
|
|
15
|
-
<span class="u-user-name">{{ data.user_info.display_name }}</span>
|
|
16
|
-
</a>
|
|
17
|
-
</span>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="u-meta">
|
|
20
|
-
<div class="u-meta-label">更新</div>
|
|
21
|
-
<div class="u-meta-value">
|
|
22
|
-
{{ formatTime(data.created_at) }}
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="u-meta">
|
|
26
|
-
<div class="u-meta-label">信息</div>
|
|
27
|
-
<div class="u-meta-value">{{ data.desc }}</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
import * as utilModule from "@jx3box/jx3box-common/js/utils";
|
|
35
|
-
const { authorLink } = utilModule;
|
|
36
|
-
import { getEmotion } from "../../../service/author";
|
|
37
|
-
import dayjs from "dayjs";
|
|
38
|
-
import Avatar from "./Avatar.vue";
|
|
39
|
-
export default {
|
|
40
|
-
name: "PostAuthor",
|
|
41
|
-
components: {
|
|
42
|
-
Avatar,
|
|
43
|
-
},
|
|
44
|
-
props: ["id"],
|
|
45
|
-
data: () => ({
|
|
46
|
-
data: null,
|
|
47
|
-
loading: false,
|
|
48
|
-
}),
|
|
49
|
-
computed: {},
|
|
50
|
-
watch: {
|
|
51
|
-
id: {
|
|
52
|
-
immediate: true,
|
|
53
|
-
handler(val) {
|
|
54
|
-
if (val) {
|
|
55
|
-
this.loadData();
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
authorLink,
|
|
62
|
-
loadData() {
|
|
63
|
-
this.loading = true;
|
|
64
|
-
getEmotion(this.id).then((res) => {
|
|
65
|
-
this.data = res.data.data;
|
|
66
|
-
this.loading = false;
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
formatTime(val) {
|
|
70
|
-
return (val && dayjs(val).format("YYYY-MM-DD HH:mm:ss")) || "";
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
<style scoped lang="less">
|
|
77
|
-
@import "../../../assets/css/module/author.less";
|
|
78
|
-
.w-author {
|
|
79
|
-
.u-meta {
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
.fz(12px,24px);
|
|
83
|
-
.h(24px);
|
|
84
|
-
.mb(5px);
|
|
85
|
-
}
|
|
86
|
-
.u-meta-label {
|
|
87
|
-
.mr(10px);
|
|
88
|
-
background-color: @bg-gray;
|
|
89
|
-
padding: 0 8px;
|
|
90
|
-
.r(2px);
|
|
91
|
-
}
|
|
92
|
-
.u-meta-value,
|
|
93
|
-
.u-user {
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
}
|
|
97
|
-
.u-user-avatar {
|
|
98
|
-
.size(24px);
|
|
99
|
-
.mr(5px);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
</style>
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="w-skill" v-if="data">
|
|
3
|
-
<div class="w-skill-wrapper">
|
|
4
|
-
<img class="w-skill-icon" :src="iconLink(data.IconID || 13)" :alt="data.Name" />
|
|
5
|
-
<div class="w-skill-content">
|
|
6
|
-
<span class="w-skill-name">{{data.Name}}</span>
|
|
7
|
-
<span class="w-skill-desc">{{data.Desc}}</span>
|
|
8
|
-
<span class="w-skill-meta">ID : {{data.SkillID}}</span>
|
|
9
|
-
<span class="w-skill-meta">Level : {{data.Level}}</span>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
import { getSkill } from "../../../service/database.js";
|
|
17
|
-
import * as utilModule from "@jx3box/jx3box-common/js/utils";
|
|
18
|
-
const { iconLink } = utilModule;
|
|
19
|
-
export default {
|
|
20
|
-
name: "SkillComponent",
|
|
21
|
-
props: ["client", "id", "level"],
|
|
22
|
-
data: () => ({
|
|
23
|
-
data: null,
|
|
24
|
-
}),
|
|
25
|
-
computed: {
|
|
26
|
-
params: function () {
|
|
27
|
-
return [this.client, this.id, this.level];
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
watch: {
|
|
31
|
-
params: {
|
|
32
|
-
immediate: true,
|
|
33
|
-
deep: true,
|
|
34
|
-
handler(val) {
|
|
35
|
-
if (val) {
|
|
36
|
-
let [client, id, level] = val;
|
|
37
|
-
// 读取本地数据
|
|
38
|
-
const cache = sessionStorage.getItem(
|
|
39
|
-
`skill-${client}-${id}-${level}`
|
|
40
|
-
);
|
|
41
|
-
if (cache) {
|
|
42
|
-
this.data = JSON.parse(cache);
|
|
43
|
-
// 没有缓存则发起请求获取数据
|
|
44
|
-
} else {
|
|
45
|
-
id &&
|
|
46
|
-
getSkill(...this.params).then((res) => {
|
|
47
|
-
let data = res.data?.list?.[0];
|
|
48
|
-
this.data = data;
|
|
49
|
-
|
|
50
|
-
// 将数据放入 sessionStorage
|
|
51
|
-
sessionStorage.setItem(
|
|
52
|
-
`skill-${client}-${id}-${level}`,
|
|
53
|
-
JSON.stringify(data)
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
methods : {
|
|
62
|
-
iconLink : function (id){
|
|
63
|
-
return iconLink(id,this.client)
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
</script>
|
|
68
|
-
|
|
69
|
-
<style lang="less">
|
|
70
|
-
@import "../../../assets/css/module/skill.less";
|
|
71
|
-
</style>
|