@jx3box/jx3box-ui 0.0.1
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/.env +6 -0
- package/README.md +4 -0
- package/assets/css/bread/admin.less +131 -0
- package/assets/css/bread/breadcrumb.less +163 -0
- package/assets/css/bread/crumb.less +17 -0
- package/assets/css/comment/quick-reply.less +56 -0
- package/assets/css/common/bottom.less +21 -0
- package/assets/css/common/footer.less +78 -0
- package/assets/css/common/left-sidebar.less +137 -0
- package/assets/css/common/main.less +75 -0
- package/assets/css/common/right-sidebar.less +193 -0
- package/assets/css/common/suspend-common.less +343 -0
- package/assets/css/editor/article.less +36 -0
- package/assets/css/editor/combo.less +311 -0
- package/assets/css/editor/resource.less +335 -0
- package/assets/css/editor/tinymce.less +80 -0
- package/assets/css/editor/upload.less +111 -0
- package/assets/css/filters/client-by.less +33 -0
- package/assets/css/header/box.less +181 -0
- package/assets/css/interact/like2.less +20 -0
- package/assets/css/interact/share2.less +101 -0
- package/assets/css/mixin.less +64 -0
- package/assets/css/module/author.less +190 -0
- package/assets/css/module/buff.less +78 -0
- package/assets/css/module/directory.less +143 -0
- package/assets/css/module/icon.less +21 -0
- package/assets/css/module/item.less +229 -0
- package/assets/css/module/item_simple.less +51 -0
- package/assets/css/module/jx3_element.less +4 -0
- package/assets/css/module/macro.less +72 -0
- package/assets/css/module/npc.less +220 -0
- package/assets/css/module/resource.less +80 -0
- package/assets/css/module/skill.less +65 -0
- package/assets/css/module/talent.less +424 -0
- package/assets/css/single/author.less +101 -0
- package/assets/css/single/cms-single.less +55 -0
- package/assets/css/single/thx.less +230 -0
- package/assets/css/tinymce/_.less +28 -0
- package/assets/css/tinymce/a.less +29 -0
- package/assets/css/tinymce/code.less +159 -0
- package/assets/css/tinymce/combo.less +86 -0
- package/assets/css/tinymce/fold.less +70 -0
- package/assets/css/tinymce/h.less +58 -0
- package/assets/css/tinymce/hr.less +9 -0
- package/assets/css/tinymce/img.less +16 -0
- package/assets/css/tinymce/imgpreview.less +14 -0
- package/assets/css/tinymce/latex.less +43 -0
- package/assets/css/tinymce/list.less +65 -0
- package/assets/css/tinymce/macro.less +40 -0
- package/assets/css/tinymce/nextpage.less +65 -0
- package/assets/css/tinymce/p.less +8 -0
- package/assets/css/tinymce/plugin.less +3 -0
- package/assets/css/tinymce/pz.less +39 -0
- package/assets/css/tinymce/qixue.less +39 -0
- package/assets/css/tinymce/quote.less +12 -0
- package/assets/css/tinymce/table.less +59 -0
- package/assets/css/tinymce/video.less +61 -0
- package/assets/css/var.less +1 -0
- package/assets/data/box.json +184 -0
- package/assets/data/box2.json +606 -0
- package/assets/data/detach_type.json +29 -0
- package/assets/data/game_font.json +242 -0
- package/assets/data/nav.json +12 -0
- package/assets/data/panel.json +27 -0
- package/assets/data/reply_template.json +6 -0
- package/assets/data/weapon_type.json +20 -0
- package/assets/data/zlp.json +5 -0
- package/assets/img/author/bilibili.png +0 -0
- package/assets/img/author/bilibili.svg +1 -0
- package/assets/img/author/chat.png +0 -0
- package/assets/img/author/douyu.png +0 -0
- package/assets/img/author/douyu.svg +1 -0
- package/assets/img/author/github.svg +1 -0
- package/assets/img/author/huya.png +0 -0
- package/assets/img/author/huya.svg +1 -0
- package/assets/img/author/msg.svg +55 -0
- package/assets/img/author/tuilan.png +0 -0
- package/assets/img/author/weibo.svg +70 -0
- package/assets/img/bread/menu.svg +1 -0
- package/assets/img/comment/comment.svg +1 -0
- package/assets/img/comment/heart_1.svg +1 -0
- package/assets/img/comment/heart_2.svg +1 -0
- package/assets/img/comment/hide.svg +1 -0
- package/assets/img/common/add.svg +1 -0
- package/assets/img/common/android.svg +1 -0
- package/assets/img/common/bell.svg +1 -0
- package/assets/img/common/bilibili-black.svg +1 -0
- package/assets/img/common/bilibili.svg +1 -0
- package/assets/img/common/check.svg +1 -0
- package/assets/img/common/coin.svg +1 -0
- package/assets/img/common/coupon.svg +56 -0
- package/assets/img/common/douyin.svg +1 -0
- package/assets/img/common/edit.svg +1 -0
- package/assets/img/common/followus.svg +18 -0
- package/assets/img/common/gift.svg +1 -0
- package/assets/img/common/harmony.svg +1 -0
- package/assets/img/common/ios.svg +1 -0
- package/assets/img/common/jx3-origin.svg +15 -0
- package/assets/img/common/jx3-www.svg +9 -0
- package/assets/img/common/lang.svg +6 -0
- package/assets/img/common/logo.svg +5 -0
- package/assets/img/common/manage.svg +1 -0
- package/assets/img/common/miniprogram.jpg +0 -0
- package/assets/img/common/miniprogram.svg +1 -0
- package/assets/img/common/mp.jpg +0 -0
- package/assets/img/common/msg.svg +1 -0
- package/assets/img/common/news.svg +20 -0
- package/assets/img/common/qqbot.svg +7 -0
- package/assets/img/common/qrcode.svg +1 -0
- package/assets/img/common/search-key-slash.svg +5 -0
- package/assets/img/common/send.svg +56 -0
- package/assets/img/common/setting.svg +1 -0
- package/assets/img/common/vip.svg +1 -0
- package/assets/img/common/wechat.svg +48 -0
- package/assets/img/common/weibo.svg +70 -0
- package/assets/img/editor/buff.svg +1 -0
- package/assets/img/editor/file.svg +51 -0
- package/assets/img/editor/icons.svg +15 -0
- package/assets/img/editor/item.svg +46 -0
- package/assets/img/editor/jx3.svg +11 -0
- package/assets/img/editor/jx3box.svg +5 -0
- package/assets/img/editor/skill.svg +53 -0
- package/assets/img/editor/view.svg +1 -0
- package/assets/img/footer/android.svg +1 -0
- package/assets/img/footer/china.svg +1 -0
- package/assets/img/footer/harmony.svg +1 -0
- package/assets/img/footer/ios.svg +1 -0
- package/assets/img/footer/logo.svg +5 -0
- package/assets/img/footer/miniprogram.svg +1 -0
- package/assets/img/footer/qqbot.svg +7 -0
- package/assets/img/header/add.svg +1 -0
- package/assets/img/header/bell.svg +1 -0
- package/assets/img/header/check.svg +1 -0
- package/assets/img/header/coin.svg +1 -0
- package/assets/img/header/edit.svg +1 -0
- package/assets/img/header/gift.svg +1 -0
- package/assets/img/header/logo.svg +5 -0
- package/assets/img/header/manage.svg +1 -0
- package/assets/img/header/msg.svg +1 -0
- package/assets/img/header/search-key-slash.svg +5 -0
- package/assets/img/header/send.svg +56 -0
- package/assets/img/header/setting.svg +1 -0
- package/assets/img/header/translator.svg +1 -0
- package/assets/img/header/vip.svg +1 -0
- package/assets/img/leftsidebar/arrow.svg +64 -0
- package/assets/img/leftsidebar/close.svg +49 -0
- package/assets/img/leftsidebar/fans.svg +1 -0
- package/assets/img/leftsidebar/medal.svg +1 -0
- package/assets/img/leftsidebar/more.svg +50 -0
- package/assets/img/leftsidebar/open.svg +51 -0
- package/assets/img/leftsidebar/post.svg +46 -0
- package/assets/img/leftsidebar/team.svg +1 -0
- package/assets/img/leftsidebar/united.svg +1 -0
- package/assets/img/list/post.svg +1 -0
- package/assets/img/mobile/miniprogram.jpg +0 -0
- package/assets/img/mobile/mp.jpg +0 -0
- package/assets/img/npc/attack.svg +69 -0
- package/assets/img/npc/buff.svg +20 -0
- package/assets/img/npc/energy.svg +1 -0
- package/assets/img/npc/miss.svg +1 -0
- package/assets/img/npc/npc.svg +1 -0
- package/assets/img/npc/radar.svg +45 -0
- package/assets/img/npc/shield.svg +1 -0
- package/assets/img/npc/sight.svg +1 -0
- package/assets/img/npc/skull.svg +15 -0
- package/assets/img/npc/target.svg +55 -0
- package/assets/img/price/jin.png +0 -0
- package/assets/img/price/tong.png +0 -0
- package/assets/img/price/yin.png +0 -0
- package/assets/img/price/zhuan.png +0 -0
- package/assets/img/rightsidebar/ac.svg +1 -0
- package/assets/img/rightsidebar/github.svg +1 -0
- package/assets/img/rightsidebar/repo.svg +1 -0
- package/assets/img/rightsidebar/topic_bg.svg +1 -0
- package/assets/img/rightsidebar/topic_bg_bps.svg +113 -0
- package/assets/img/single/author.svg +1 -0
- package/assets/img/single/directory-header.svg +1 -0
- package/assets/img/single/lock.svg +1 -0
- package/assets/img/single/modate.svg +24 -0
- package/assets/img/single/podate.svg +23 -0
- package/assets/img/single/ticket.svg +1 -0
- package/assets/img/suspend/ArrowsLeftRight.svg +1 -0
- package/assets/img/suspend/circle.svg +7 -0
- package/assets/img/suspend/collect.svg +1 -0
- package/assets/img/suspend/collect_slash.svg +1 -0
- package/assets/img/suspend/collect_slash_touchbar.svg +1 -0
- package/assets/img/suspend/collect_slash_touchbar_100.svg +1 -0
- package/assets/img/suspend/collect_touchbar.svg +1 -0
- package/assets/img/suspend/collect_touchbar_100.svg +1 -0
- package/assets/img/suspend/lafter_touchbar.svg +1 -0
- package/assets/img/suspend/later-on.svg +1 -0
- package/assets/img/suspend/line.svg +3 -0
- package/assets/img/suspend/more.svg +1 -0
- package/assets/img/suspend/pin_slash_24.svg +1 -0
- package/assets/img/suspend/pin_slash_touchbar.svg +1 -0
- package/assets/img/suspend/pin_slash_touchbar_24.svg +1 -0
- package/assets/img/suspend/pin_slash_touchbar_40.svg +1 -0
- package/assets/img/suspend/pin_touchbar.svg +1 -0
- package/assets/img/suspend/pin_touchbar_100.svg +1 -0
- package/assets/img/suspend/pin_touchbar_24.svg +1 -0
- package/assets/img/suspend/report_100.svg +1 -0
- package/assets/img/suspend/rss_touchbar.svg +1 -0
- package/assets/img/suspend/rss_touchbar_100.svg +1 -0
- package/assets/img/suspend/search.svg +3 -0
- package/assets/img/suspend/search_touchbar.svg +1 -0
- package/assets/img/widget/admin_gift.svg +10 -0
- package/assets/img/widget/gift.svg +1 -0
- package/assets/img/widget/heart.svg +17 -0
- package/assets/img/widget/heart1.svg +1 -0
- package/assets/img/widget/heart2.svg +11 -0
- package/assets/img/widget/heart3.svg +37 -0
- package/assets/img/widget/like.svg +1 -0
- package/assets/img/widget/like2.svg +1 -0
- package/assets/img/widget/like3.svg +14 -0
- package/assets/img/widget/like4.png +0 -0
- package/assets/img/widget/like4ing.gif +0 -0
- package/assets/img/widget/qq.svg +1 -0
- package/assets/img/widget/qr-code.svg +1 -0
- package/assets/img/widget/qzone.svg +1 -0
- package/assets/img/widget/records.svg +1 -0
- package/assets/img/widget/share-link.png +0 -0
- package/assets/img/widget/share.svg +13 -0
- package/assets/img/widget/share2.svg +19 -0
- package/assets/img/widget/star.svg +9 -0
- package/assets/img/widget/tieba.svg +1 -0
- package/assets/img/widget/unstar.svg +21 -0
- package/assets/img/widget/web_heart_animation.png +0 -0
- package/assets/img/widget/weibo.svg +1 -0
- package/assets/img/widget/weixin.svg +1 -0
- package/assets/js/a.js +46 -0
- package/assets/js/app.js +7 -0
- package/assets/js/code.js +13 -0
- package/assets/js/combo.js +40 -0
- package/assets/js/directory.js +114 -0
- package/assets/js/filter2.js +186 -0
- package/assets/js/fold.js +11 -0
- package/assets/js/gallery.js +14 -0
- package/assets/js/hljs_languages.js +177 -0
- package/assets/js/iframe.js +38 -0
- package/assets/js/img.js +23 -0
- package/assets/js/item/attribute_percent.js +88 -0
- package/assets/js/item/bind.js +18 -0
- package/assets/js/item/border.js +19 -0
- package/assets/js/item/border_quest.js +12 -0
- package/assets/js/item/color.js +25 -0
- package/assets/js/item/hljs_languages.js +177 -0
- package/assets/js/item/icon_url.js +15 -0
- package/assets/js/item/second_format.js +19 -0
- package/assets/js/jx3_element.js +73 -0
- package/assets/js/katex.js +181 -0
- package/assets/js/macro.js +16 -0
- package/assets/js/nextpage.js +4 -0
- package/assets/js/pswp.js +67 -0
- package/assets/js/pswp_template.js +66 -0
- package/assets/js/pz_iframe.js +30 -0
- package/assets/js/qixue.js +28 -0
- package/assets/js/renderImgPreview.js +18 -0
- package/assets/js/script.js +6 -0
- package/assets/js/stat.js +107 -0
- package/assets/js/talent2.js +21 -0
- package/assets/js/tex-mml-chtml.js +36310 -0
- package/assets/js/voice.js +238 -0
- package/assets/js/xss.js +130 -0
- package/babel.config.js +3 -0
- package/docs/README.md +78 -0
- package/i18n/index.js +134 -0
- package/i18n/messages/en-US.js +124 -0
- package/i18n/messages/vi.js +124 -0
- package/i18n/messages/zh-CN.js +124 -0
- package/i18n/messages/zh-TW.js +124 -0
- package/i18n/mixin.js +23 -0
- package/index.js +73 -0
- package/package.json +97 -0
- package/postcss.config.js +3 -0
- package/service/admin.js +20 -0
- package/service/author.js +94 -0
- package/service/breadcrumb.js +13 -0
- package/service/cms.js +137 -0
- package/service/comment.js +187 -0
- package/service/database.js +115 -0
- package/service/design.js +13 -0
- package/service/enum/CollectionPublic.js +13 -0
- package/service/enum/EquipPosition.js +48 -0
- package/service/enum/EquipType.js +33 -0
- package/service/fav.js +27 -0
- package/service/follow.js +55 -0
- package/service/github.js +15 -0
- package/service/header.js +42 -0
- package/service/item.js +22 -0
- package/service/resource.js +31 -0
- package/service/suspend.js +81 -0
- package/service/thx.js +60 -0
- package/src/App.vue +212 -0
- package/src/Bottom.vue +23 -0
- package/src/Box.vue +149 -0
- package/src/Breadcrumb.vue +141 -0
- package/src/CommonFooter.vue +69 -0
- package/src/CommonHeader.vue +270 -0
- package/src/Footer.vue +45 -0
- package/src/LeftSideToggle.vue +64 -0
- package/src/LeftSidebar.vue +123 -0
- package/src/Main.vue +48 -0
- package/src/RightSidebar.vue +61 -0
- package/src/SuspendCommon.vue +705 -0
- package/src/author/AuthorFans.vue +170 -0
- package/src/author/AuthorFollow.vue +205 -0
- package/src/author/AuthorGift.vue +286 -0
- package/src/author/AuthorHonor.vue +128 -0
- package/src/author/AuthorInfo.vue +245 -0
- package/src/author/AuthorLink.vue +113 -0
- package/src/author/AuthorMedals.vue +87 -0
- package/src/author/AuthorMsg.vue +25 -0
- package/src/author/AuthorPosts.vue +114 -0
- package/src/author/AuthorRss.vue +160 -0
- package/src/author/AuthorTeams.vue +106 -0
- package/src/author/Avatar.vue +168 -0
- package/src/author/UserPop.vue +198 -0
- package/src/bread/Admin.vue +400 -0
- package/src/bread/AdminButton.vue +31 -0
- package/src/bread/AdminDirectMessage.vue +73 -0
- package/src/bread/AdminDrop.vue +155 -0
- package/src/bread/Crumb.vue +27 -0
- package/src/bread/DesignTask.vue +194 -0
- package/src/comment/Avatar.vue +124 -0
- package/src/comment/CommentContent.vue +486 -0
- package/src/comment/CommentContentSimple.vue +240 -0
- package/src/comment/CommentInputForm.vue +182 -0
- package/src/comment/CommentWithReply.vue +261 -0
- package/src/comment/QuickReply.vue +64 -0
- package/src/comment/ReplyForReply.vue +127 -0
- package/src/comment/ReplyItem.vue +92 -0
- package/src/comment/ReplyList.vue +126 -0
- package/src/comment/Upload.vue +108 -0
- package/src/editor/Article.vue +230 -0
- package/src/editor/BoxResource.vue +441 -0
- package/src/editor/Resource.vue +623 -0
- package/src/editor/Tinymce.vue +204 -0
- package/src/editor/Upload.vue +277 -0
- package/src/editor/UploadAlum.vue +176 -0
- package/src/editor/UploadBanner.vue +156 -0
- package/src/editor/components/Author.vue +322 -0
- package/src/editor/components/Avatar.vue +95 -0
- package/src/editor/components/Buff.vue +80 -0
- package/src/editor/components/Combo.vue +259 -0
- package/src/editor/components/Equip.vue +299 -0
- package/src/editor/components/GameText.vue +242 -0
- package/src/editor/components/Item.vue +325 -0
- package/src/editor/components/ItemSimple.vue +134 -0
- package/src/editor/components/Medal.vue +43 -0
- package/src/editor/components/Npc.vue +215 -0
- package/src/editor/components/PostAuthor.vue +102 -0
- package/src/editor/components/Skill.vue +71 -0
- package/src/filters/clientBy.vue +96 -0
- package/src/filters/markBy.vue +177 -0
- package/src/filters/menuBy.vue +63 -0
- package/src/filters/orderBy.vue +170 -0
- package/src/filters/tagBy.vue +171 -0
- package/src/filters/topicBy.vue +151 -0
- package/src/filters/versionBy.vue +49 -0
- package/src/filters/zlpBy.vue +70 -0
- package/src/footer/copyright.vue +59 -0
- package/src/footer/links.vue +79 -0
- package/src/footer/official.vue +142 -0
- package/src/footer/resource.vue +146 -0
- package/src/header/alternate.vue +299 -0
- package/src/header/asset.vue +180 -0
- package/src/header/box.vue +161 -0
- package/src/header/box2.vue +479 -0
- package/src/header/bus.js +9 -0
- package/src/header/client.vue +183 -0
- package/src/header/lang.vue +136 -0
- package/src/header/logo.vue +95 -0
- package/src/header/manage.vue +200 -0
- package/src/header/message.vue +93 -0
- package/src/header/nav.vue +356 -0
- package/src/header/publish.vue +38 -0
- package/src/header/search.vue +120 -0
- package/src/header/search_map.json +3 -0
- package/src/header/shop.vue +121 -0
- package/src/header/user.vue +250 -0
- package/src/header/userInfo.vue +621 -0
- package/src/header/utils.js +126 -0
- package/src/header/vip.vue +120 -0
- package/src/interact/BoxcoinAdmin.vue +185 -0
- package/src/interact/BoxcoinRecords.vue +153 -0
- package/src/interact/BoxcoinUser.vue +194 -0
- package/src/interact/Contributors.vue +111 -0
- package/src/interact/Fav.vue +95 -0
- package/src/interact/Like.vue +61 -0
- package/src/interact/Rss.vue +163 -0
- package/src/interact/Share.vue +166 -0
- package/src/interact/WatchLater.vue +108 -0
- package/src/main.js +72 -0
- package/src/single/Author.vue +72 -0
- package/src/single/Collection.vue +176 -0
- package/src/single/Comment.vue +454 -0
- package/src/single/Creators.vue +214 -0
- package/src/single/PostDirectory.vue +147 -0
- package/src/single/PostHeader.vue +397 -0
- package/src/single/PostTopic.vue +127 -0
- package/src/single/SimpleThx.vue +217 -0
- package/src/single/Thx.vue +260 -0
- package/src/single/cms-single.vue +235 -0
- package/tailwind.config.js +13 -0
- package/utils/bus.js +5 -0
- package/utils/emotion.js +21 -0
- package/utils/index.js +36 -0
- package/vue.config.js +158 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-filter-topic" ref="tagBy">
|
|
3
|
+
<el-popover
|
|
4
|
+
v-model:visible="visible"
|
|
5
|
+
trigger="manual"
|
|
6
|
+
ref="pop"
|
|
7
|
+
:width="380"
|
|
8
|
+
popper-class="w-filter-topic__pop"
|
|
9
|
+
:popper-options="{ boundariesElement: 'parent' }"
|
|
10
|
+
>
|
|
11
|
+
<div class="w-filter-topic__content">
|
|
12
|
+
<div class="u-group">
|
|
13
|
+
<el-tag
|
|
14
|
+
v-for="item in computedTopics"
|
|
15
|
+
:key="item"
|
|
16
|
+
@click="onTagClick(item)"
|
|
17
|
+
class="u-group-item u-topic"
|
|
18
|
+
:effect="item === value ? 'dark' : 'light'"
|
|
19
|
+
size="small"
|
|
20
|
+
>{{ item }}</el-tag
|
|
21
|
+
>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<template #reference>
|
|
26
|
+
<span @click="onToggle" class="u-toggle" :class="{ active: !!value }">
|
|
27
|
+
<el-icon> <operation /> </el-icon>
|
|
28
|
+
{{ activeText }}
|
|
29
|
+
<el-icon>
|
|
30
|
+
<arrow-down />
|
|
31
|
+
</el-icon>
|
|
32
|
+
</span>
|
|
33
|
+
</template>
|
|
34
|
+
</el-popover>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
export default {
|
|
40
|
+
name: "topicBy",
|
|
41
|
+
props: {
|
|
42
|
+
topics: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => [],
|
|
45
|
+
},
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "",
|
|
49
|
+
},
|
|
50
|
+
label: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "主题",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
emits: ["update:modelValue"],
|
|
56
|
+
model: {
|
|
57
|
+
prop: "modelValue",
|
|
58
|
+
event: "update:modelValue",
|
|
59
|
+
},
|
|
60
|
+
data() {
|
|
61
|
+
return {
|
|
62
|
+
visible: false,
|
|
63
|
+
value: "全部",
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
computed: {
|
|
67
|
+
activeText() {
|
|
68
|
+
const { value } = this;
|
|
69
|
+
return value === "全部" ? this.label : value;
|
|
70
|
+
},
|
|
71
|
+
computedTopics() {
|
|
72
|
+
return ["全部", ...this.topics];
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
watch: {
|
|
76
|
+
modelValue: {
|
|
77
|
+
immediate: true,
|
|
78
|
+
handler(val) {
|
|
79
|
+
this.value = val === "" ? "全部" : val;
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
value(val) {
|
|
83
|
+
if (val === "全部") val = "";
|
|
84
|
+
this.$emit("update:modelValue", val);
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
mounted() {
|
|
88
|
+
document.addEventListener("click", this.clickOutside);
|
|
89
|
+
},
|
|
90
|
+
beforeUnmount() {
|
|
91
|
+
document.removeEventListener("click", this.clickOutside);
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
onToggle() {
|
|
95
|
+
this.visible = !this.visible;
|
|
96
|
+
},
|
|
97
|
+
onTagClick(item) {
|
|
98
|
+
this.value = item;
|
|
99
|
+
|
|
100
|
+
setTimeout(() => {
|
|
101
|
+
this.visible = false;
|
|
102
|
+
}, 100);
|
|
103
|
+
},
|
|
104
|
+
clickOutside(e) {
|
|
105
|
+
const tagBy = this.$refs.tagBy;
|
|
106
|
+
const pop = this.$refs.pop;
|
|
107
|
+
|
|
108
|
+
if (tagBy && !tagBy.contains(e.target) && pop && !pop.$el.contains(e.target)) {
|
|
109
|
+
this.visible = false;
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
</script>
|
|
115
|
+
|
|
116
|
+
<style lang="less">
|
|
117
|
+
.w-filter-topic {
|
|
118
|
+
display: inline-block;
|
|
119
|
+
.u-toggle {
|
|
120
|
+
color: #606266;
|
|
121
|
+
font-size: 12px;
|
|
122
|
+
.pointer;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.w-filter-topic__content {
|
|
126
|
+
padding: 5px;
|
|
127
|
+
}
|
|
128
|
+
.w-filter-topic__pop {
|
|
129
|
+
.u-group-title {
|
|
130
|
+
color: #606266;
|
|
131
|
+
padding-bottom: 10px;
|
|
132
|
+
}
|
|
133
|
+
.u-group {
|
|
134
|
+
.flex;
|
|
135
|
+
flex-wrap: wrap;
|
|
136
|
+
gap: 10px;
|
|
137
|
+
}
|
|
138
|
+
.u-topic {
|
|
139
|
+
.pointer;
|
|
140
|
+
border: 1px solid transparent;
|
|
141
|
+
line-height: 26px;
|
|
142
|
+
height: 28px;
|
|
143
|
+
&:not(.el-tag--dark) {
|
|
144
|
+
background-color: #f1f8ff;
|
|
145
|
+
}
|
|
146
|
+
&:hover {
|
|
147
|
+
border: 1px solid @color-link;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-filter-client">
|
|
3
|
+
<ul>
|
|
4
|
+
<li class="u-client" :class="{on: version == ''}" @click="filter('')">
|
|
5
|
+
双端
|
|
6
|
+
</li>
|
|
7
|
+
<li
|
|
8
|
+
class="u-client"
|
|
9
|
+
:class="{ on: version == value }"
|
|
10
|
+
v-for="(label, value) in versions"
|
|
11
|
+
:key="value"
|
|
12
|
+
@click="filter(value)"
|
|
13
|
+
>{{ label }}</li>
|
|
14
|
+
</ul>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
name: "versionBy",
|
|
21
|
+
props: ["value"],
|
|
22
|
+
emits: ["filter"],
|
|
23
|
+
data: function () {
|
|
24
|
+
return {
|
|
25
|
+
version: this.value || "",
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
29
|
+
versions: function () {
|
|
30
|
+
const versions = {
|
|
31
|
+
0: "旗舰",
|
|
32
|
+
1: "无界"
|
|
33
|
+
}
|
|
34
|
+
return versions;
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
filter: function (val) {
|
|
39
|
+
this.version = val;
|
|
40
|
+
this.$emit("filter", { type: "version", val: val });
|
|
41
|
+
this.$forceUpdate();
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style lang="less">
|
|
48
|
+
@import "../../assets/css/filters/client-by.less";
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span class="w-filter-menu">
|
|
3
|
+
<el-dropdown>
|
|
4
|
+
<span class="el-dropdown-link">
|
|
5
|
+
<span class="u-menu-label">
|
|
6
|
+
<el-icon> <operation /> </el-icon>
|
|
7
|
+
{{ value ? value : "资料片" }}
|
|
8
|
+
<el-icon>
|
|
9
|
+
<arrow-down />
|
|
10
|
+
</el-icon>
|
|
11
|
+
</span>
|
|
12
|
+
</span>
|
|
13
|
+
<template #dropdown>
|
|
14
|
+
<el-dropdown-menu>
|
|
15
|
+
<el-dropdown-item @click="filter('')">
|
|
16
|
+
{{ "全部" }}
|
|
17
|
+
</el-dropdown-item>
|
|
18
|
+
<el-dropdown-item v-for="item in data" :key="item" @click="filter(item)">{{
|
|
19
|
+
item
|
|
20
|
+
}}</el-dropdown-item>
|
|
21
|
+
</el-dropdown-menu>
|
|
22
|
+
</template>
|
|
23
|
+
</el-dropdown>
|
|
24
|
+
</span>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import zlps from "@jx3box/jx3box-common/data/jx3_zlp.json";
|
|
29
|
+
export default {
|
|
30
|
+
name: "zlpBy",
|
|
31
|
+
emits: ["filter"],
|
|
32
|
+
props: ["client"],
|
|
33
|
+
data: function () {
|
|
34
|
+
return {
|
|
35
|
+
value: "",
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
data: function () {
|
|
40
|
+
let client = this.client || "all";
|
|
41
|
+
return zlps[client];
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
watch: {
|
|
45
|
+
client: function () {
|
|
46
|
+
this.value = "";
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
filter: function (key) {
|
|
51
|
+
this.value = key;
|
|
52
|
+
this.$emit("filter", { type: "zlp", val: key });
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
mounted: function () {},
|
|
56
|
+
components: {},
|
|
57
|
+
};
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="less">
|
|
61
|
+
.w-filter-menu {
|
|
62
|
+
.pointer;
|
|
63
|
+
.u-menu-label {
|
|
64
|
+
i {
|
|
65
|
+
.mr(5px);
|
|
66
|
+
}
|
|
67
|
+
.fz(12px);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="flex flex-col items-center justify-between pt-8 text-gray-500 md:flex-row"
|
|
4
|
+
style="border-top: 1px solid rgba(55, 65, 81, 1); font-size: 11px"
|
|
5
|
+
>
|
|
6
|
+
<div class="flex flex-wrap items-center justify-center gap-x-6 gap-y-2 md:justify-start">
|
|
7
|
+
<span>{{
|
|
8
|
+
$jx3boxT("jx3boxUi.footer.copyright", "© 2019-{year} JX3BOX {poweredBy}", {
|
|
9
|
+
year: new Date().getFullYear(),
|
|
10
|
+
poweredBy: $jx3boxT("jx3boxUi.footer.poweredBy", "All rights reserved."),
|
|
11
|
+
})
|
|
12
|
+
}}</span>
|
|
13
|
+
<a
|
|
14
|
+
class="text-gray-500 hover:underline"
|
|
15
|
+
href="https://beian.miit.gov.cn/"
|
|
16
|
+
target="_blank"
|
|
17
|
+
rel="noopener noreferrer"
|
|
18
|
+
>
|
|
19
|
+
{{ $jx3boxT("jx3boxUi.footer.icp", "湘ICP备2021002288号") }}
|
|
20
|
+
</a>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="mt-4 flex items-center space-x-6 md:mt-0">
|
|
23
|
+
<a
|
|
24
|
+
class="text-gray-500 transition-colors hover:text-white"
|
|
25
|
+
href="https://rx-planet.com/contact"
|
|
26
|
+
target="_blank"
|
|
27
|
+
rel="noopener noreferrer"
|
|
28
|
+
>
|
|
29
|
+
{{ $jx3boxT("jx3boxUi.footer.contactUs", "联系我们") }}
|
|
30
|
+
</a>
|
|
31
|
+
<a
|
|
32
|
+
class="text-gray-500 transition-colors hover:text-white"
|
|
33
|
+
href="https://www.jx3box.com/feedback"
|
|
34
|
+
target="_blank"
|
|
35
|
+
rel="noopener noreferrer"
|
|
36
|
+
>
|
|
37
|
+
{{ $jx3boxT("jx3boxUi.footer.feedback", "反馈建议") }}
|
|
38
|
+
</a>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
import i18nMixin from "../../i18n/mixin";
|
|
45
|
+
export default {
|
|
46
|
+
name: "FooterCopyright",
|
|
47
|
+
mixins: [i18nMixin],
|
|
48
|
+
props: [],
|
|
49
|
+
components: {},
|
|
50
|
+
data: function () {
|
|
51
|
+
return {};
|
|
52
|
+
},
|
|
53
|
+
computed: {},
|
|
54
|
+
watch: {},
|
|
55
|
+
methods: {},
|
|
56
|
+
created: function () {},
|
|
57
|
+
mounted: function () {},
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section class="lg:col-span-4">
|
|
3
|
+
<div class="grid grid-cols-1 gap-8 sm:grid-cols-3">
|
|
4
|
+
<div v-for="group in footerGroups" :key="group.title">
|
|
5
|
+
<h3 class="text-sm font-semibold tracking-wide text-white">
|
|
6
|
+
{{ $jx3boxT(`jx3boxUi.footer.${group.key}`, group.title) }}
|
|
7
|
+
</h3>
|
|
8
|
+
<div class="mt-4 space-y-3">
|
|
9
|
+
<a
|
|
10
|
+
v-for="item in group.links"
|
|
11
|
+
:key="item.name"
|
|
12
|
+
class="block text-xs text-gray-400 transition hover:text-indigo-400"
|
|
13
|
+
:href="item.href"
|
|
14
|
+
target="_blank"
|
|
15
|
+
rel="noopener noreferrer"
|
|
16
|
+
>
|
|
17
|
+
{{ $jx3boxT(`jx3boxUi.footer.${item.key}`, item.name) }}
|
|
18
|
+
</a>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import i18nMixin from "../../i18n/mixin";
|
|
27
|
+
export default {
|
|
28
|
+
name: "FooterLinks",
|
|
29
|
+
mixins: [i18nMixin],
|
|
30
|
+
props: [],
|
|
31
|
+
components: {},
|
|
32
|
+
data: function () {
|
|
33
|
+
return {
|
|
34
|
+
aboutLinks: [
|
|
35
|
+
{ key: "teamMembers", name: "团队成员", href: "https://www.jx3box.com/about/" },
|
|
36
|
+
{ key: "joinUs", name: "加入我们", href: "https://www.jx3box.com/notice/21899" },
|
|
37
|
+
{ key: "devDocs", name: "开发文档", href: "https://www.jx3box.com/tool?subtype=4" },
|
|
38
|
+
{ key: "codeRepo", name: "代码仓库", href: "https://github.com/JX3BOX" },
|
|
39
|
+
],
|
|
40
|
+
legalLinks: [
|
|
41
|
+
{ key: "userAgreement", name: "用户协议", href: "https://www.jx3box.com/about/license" },
|
|
42
|
+
{ key: "creatorTreaty", name: "创作公约", href: "https://www.jx3box.com/about/treaty" },
|
|
43
|
+
{ key: "privacyPolicy", name: "隐私政策", href: "https://www.jx3box.com/about/privacy" },
|
|
44
|
+
{ key: "creatorIncentives", name: "创作激励", href: "https://www.jx3box.com/about/incentives" },
|
|
45
|
+
],
|
|
46
|
+
extraLinks: [
|
|
47
|
+
{ key: "gameVersion", name: "游戏版本", href: "https://www.jx3box.com/topic" },
|
|
48
|
+
{ key: "eventCenter", name: "活动中心", href: "https://www.jx3box.com/event" },
|
|
49
|
+
{ key: "siteMap", name: "全站地图", href: "https://www.jx3box.com/app/" },
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
footerGroups() {
|
|
55
|
+
return [
|
|
56
|
+
{
|
|
57
|
+
key: "linksAbout",
|
|
58
|
+
title: "关于我们",
|
|
59
|
+
links: this.aboutLinks,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: "linksLegal",
|
|
63
|
+
title: "法律合规",
|
|
64
|
+
links: this.legalLinks,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: "linksMore",
|
|
68
|
+
title: "更多入口",
|
|
69
|
+
links: this.extraLinks,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
watch: {},
|
|
75
|
+
methods: {},
|
|
76
|
+
created: function () {},
|
|
77
|
+
mounted: function () {},
|
|
78
|
+
};
|
|
79
|
+
</script>
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="c-footer-official mt-6 flex flex-wrap gap-3">
|
|
3
|
+
<div v-for="item in socials" :key="item.name">
|
|
4
|
+
<el-popover
|
|
5
|
+
v-if="item.qrcode"
|
|
6
|
+
ref="officialPopover"
|
|
7
|
+
trigger="hover"
|
|
8
|
+
placement="top"
|
|
9
|
+
popper-class="c-footer--v4__popover"
|
|
10
|
+
@show="handlePopoverShow"
|
|
11
|
+
>
|
|
12
|
+
<div class="flex w-36 flex-col items-center p-3">
|
|
13
|
+
<img
|
|
14
|
+
class="h-32 w-32 rounded-md object-cover"
|
|
15
|
+
:src="item.qrcode"
|
|
16
|
+
:alt="getSocialName(item)"
|
|
17
|
+
@load="handleQrcodeLoad"
|
|
18
|
+
/>
|
|
19
|
+
<span class="mt-2 text-xs font-black">{{ item.label || getSocialName(item) }}</span>
|
|
20
|
+
</div>
|
|
21
|
+
<template #reference>
|
|
22
|
+
<a
|
|
23
|
+
class="u-link flex h-11 w-11 items-center justify-center rounded-full border border-gray-700 bg-gray-800 transition"
|
|
24
|
+
:title="item.label"
|
|
25
|
+
href="javascript:;"
|
|
26
|
+
>
|
|
27
|
+
<img class="h-5 w-5" :src="item.icon" :alt="getSocialName(item)" />
|
|
28
|
+
</a>
|
|
29
|
+
</template>
|
|
30
|
+
</el-popover>
|
|
31
|
+
<a
|
|
32
|
+
v-else
|
|
33
|
+
class="u-link flex h-11 w-11 items-center justify-center rounded-full border border-gray-700 bg-gray-800 transition"
|
|
34
|
+
:href="item.href"
|
|
35
|
+
target="_blank"
|
|
36
|
+
rel="noopener noreferrer"
|
|
37
|
+
:title="item.label"
|
|
38
|
+
>
|
|
39
|
+
<img class="h-5 w-5" :src="item.icon" :alt="getSocialName(item)" />
|
|
40
|
+
</a>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
// import wechatIcon from "@/assets/img/icons/wechat.svg?url";
|
|
47
|
+
// import bilibiliIcon from "@/assets/img/icons/bilibili.svg?url";
|
|
48
|
+
// import weiboIcon from "@/assets/img/icons/weibo.svg?url";
|
|
49
|
+
// import douyinIcon from "@/assets/img/icons/douyin.svg?url";
|
|
50
|
+
// import wechatQrcode from "@/assets/img/icons/mp.jpg";
|
|
51
|
+
|
|
52
|
+
import i18nMixin from "../../i18n/mixin";
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
name: "FooterOfficial",
|
|
56
|
+
mixins: [i18nMixin],
|
|
57
|
+
props: [],
|
|
58
|
+
components: {},
|
|
59
|
+
data: function () {
|
|
60
|
+
return {
|
|
61
|
+
socials: [
|
|
62
|
+
{
|
|
63
|
+
name: "公众号",
|
|
64
|
+
key: "wechat",
|
|
65
|
+
href: "",
|
|
66
|
+
icon: require('../../assets/img/common/wechat.svg'),
|
|
67
|
+
qrcode: require('../../assets/img/common/mp.jpg'),
|
|
68
|
+
label: "剑三魔盒",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "B站",
|
|
72
|
+
key: "bilibili",
|
|
73
|
+
href: "https://space.bilibili.com/2066064028",
|
|
74
|
+
icon: require('../../assets/img/common/bilibili.svg'),
|
|
75
|
+
label: "剑网3魔盒",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "微博",
|
|
79
|
+
key: "weibo",
|
|
80
|
+
href: "https://weibo.com/jx3box",
|
|
81
|
+
icon: require('../../assets/img/common/weibo.svg'),
|
|
82
|
+
label: "剑网3魔盒",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "抖音",
|
|
86
|
+
key: "douyin",
|
|
87
|
+
href: "https://www.douyin.com/user/MS4wLjABAAAAP3OHPy-BYsW6IMiPZfP1FP3J_zYAAYNVVlk9XyoKhOs",
|
|
88
|
+
icon: require('../../assets/img/common/douyin.svg'),
|
|
89
|
+
label: "剑网3魔盒",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
computed: {},
|
|
95
|
+
watch: {},
|
|
96
|
+
methods: {
|
|
97
|
+
getPopoverInstance() {
|
|
98
|
+
const popoverRef = this.$refs?.officialPopover;
|
|
99
|
+
if (Array.isArray(popoverRef)) return popoverRef[0] || null;
|
|
100
|
+
return popoverRef || null;
|
|
101
|
+
},
|
|
102
|
+
updatePopoverPosition() {
|
|
103
|
+
const popover = this.getPopoverInstance();
|
|
104
|
+
if (popover && typeof popover.updatePopper === "function") popover.updatePopper();
|
|
105
|
+
},
|
|
106
|
+
handlePopoverShow() {
|
|
107
|
+
this.$nextTick(() => {
|
|
108
|
+
this.updatePopoverPosition();
|
|
109
|
+
if (typeof requestAnimationFrame === "function") {
|
|
110
|
+
requestAnimationFrame(() => this.updatePopoverPosition());
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
handleQrcodeLoad() {
|
|
115
|
+
this.$nextTick(() => this.updatePopoverPosition());
|
|
116
|
+
},
|
|
117
|
+
getSocialName(item) {
|
|
118
|
+
if (!item?.key) return item?.name || "";
|
|
119
|
+
const map = {
|
|
120
|
+
wechat: "wechatOA",
|
|
121
|
+
bilibili: "bilibili",
|
|
122
|
+
weibo: "weibo",
|
|
123
|
+
douyin: "douyin",
|
|
124
|
+
};
|
|
125
|
+
const tKey = map[item.key] || item.key;
|
|
126
|
+
return this.$jx3boxT(`jx3boxUi.footer.${tKey}`, item.name || tKey);
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
created: function () {},
|
|
130
|
+
mounted: function () {},
|
|
131
|
+
};
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
<style lang="less">
|
|
135
|
+
.c-footer-official {
|
|
136
|
+
.u-link {
|
|
137
|
+
&:hover {
|
|
138
|
+
background-color: rgba(255, 255, 255, 1);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</style>
|