diff --git a/apps/help.js b/apps/help.js index e3697ea..674c594 100644 --- a/apps/help.js +++ b/apps/help.js @@ -1,5 +1,4 @@ import plugin from '../../../lib/plugins/plugin.js' -import { segment } from 'oicq' export class Help extends plugin { constructor() { @@ -25,9 +24,6 @@ export class Help extends plugin { // 帮助 async help() { let msg = [ - segment.image('https://api.ixiaowai.cn/api/api.php'), - '通知帮助 by 超市椰羊\n', - '---------------------\n', '#闪照通知 (开启|关闭)\n', '#禁言通知 (开启|关闭)\n', '#群撤回通知 (开启|关闭)\n', @@ -43,15 +39,12 @@ export class Help extends plugin { '#好友列表变动通知 (开启|关闭)\n', '#群聊列表变动通知 (开启|关闭)\n', '#设置删除缓存时间 <时间>(s)\n', - '#通知设置\n', + '#通知设置', ] this.e.reply(msg) } async helps(e) { let msg = [ - segment.image("https://api.ixiaowai.cn/api/api.php"), - "小助手 by 超市椰羊 \n", - "--------------------\n", "#发群聊 <群号> <内容> \n", "#发好友 <内容> \n", "#改头像 <图片> \n", diff --git a/apps/set.js b/apps/set.js index 064d146..e2a6ad8 100644 --- a/apps/set.js +++ b/apps/set.js @@ -1,5 +1,6 @@ import plugin from '../../../lib/plugins/plugin.js' + export class NewConfig extends plugin { constructor() { super({ @@ -80,7 +81,7 @@ export class NewConfig extends plugin { } } - async SeeConfig() { + async SeeConfig(e) { let config = {} for (let i in configs) { let res = await redis.get(`yenai:notice:${configs[i]}`) @@ -102,7 +103,7 @@ export class NewConfig extends plugin { `群聊列表变动 ${config.groupNumberChange ? '✅' : '❎'}\n`, `全部管理发送 ${config.notificationsAll ? '✅' : '❎'}\n`, `删除缓存时间:${config.deltime}` - ] + ] await this.e.reply(msg) } } diff --git a/resources/common/base.css b/resources/common/base.css deleted file mode 100644 index 9916185..0000000 --- a/resources/common/base.css +++ /dev/null @@ -1,7 +0,0 @@ -.font-ys { - font-family: Number, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; -} -.font-nzbz { - font-family: Number, "印品南征北战NZBZ体", NZBZ, PingFangSC-Medium, "PingFang SC", sans-serif; -} -/*# sourceMappingURL=base.css.map */ \ No newline at end of file diff --git a/resources/common/base.less b/resources/common/base.less deleted file mode 100644 index e065b8b..0000000 --- a/resources/common/base.less +++ /dev/null @@ -1,7 +0,0 @@ -.font-YS { - font-family: Number, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; -} - -.font-NZBZ { - font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; -} \ No newline at end of file diff --git a/resources/common/bg/bg-anemo.jpg b/resources/common/bg/bg-anemo.jpg deleted file mode 100644 index 985a7d4..0000000 Binary files a/resources/common/bg/bg-anemo.jpg and /dev/null differ diff --git a/resources/common/bg/bg-cryo.jpg b/resources/common/bg/bg-cryo.jpg deleted file mode 100644 index cf4bd1d..0000000 Binary files a/resources/common/bg/bg-cryo.jpg and /dev/null differ diff --git a/resources/common/bg/bg-dendro.jpg b/resources/common/bg/bg-dendro.jpg deleted file mode 100644 index b900d28..0000000 Binary files a/resources/common/bg/bg-dendro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-electro.jpg b/resources/common/bg/bg-electro.jpg deleted file mode 100644 index 5dec746..0000000 Binary files a/resources/common/bg/bg-electro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-geo.jpg b/resources/common/bg/bg-geo.jpg deleted file mode 100644 index d68405f..0000000 Binary files a/resources/common/bg/bg-geo.jpg and /dev/null differ diff --git a/resources/common/bg/bg-hydro.jpg b/resources/common/bg/bg-hydro.jpg deleted file mode 100644 index cc262f7..0000000 Binary files a/resources/common/bg/bg-hydro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-pyro.jpg b/resources/common/bg/bg-pyro.jpg deleted file mode 100644 index 302d612..0000000 Binary files a/resources/common/bg/bg-pyro.jpg and /dev/null differ diff --git a/resources/common/bg/talent-anemo.png b/resources/common/bg/talent-anemo.png deleted file mode 100644 index e9926f2..0000000 Binary files a/resources/common/bg/talent-anemo.png and /dev/null differ diff --git a/resources/common/bg/talent-cryo.png b/resources/common/bg/talent-cryo.png deleted file mode 100644 index 2defb36..0000000 Binary files a/resources/common/bg/talent-cryo.png and /dev/null differ diff --git a/resources/common/bg/talent-dendro.png b/resources/common/bg/talent-dendro.png deleted file mode 100644 index 2359d71..0000000 Binary files a/resources/common/bg/talent-dendro.png and /dev/null differ diff --git a/resources/common/bg/talent-electro.png b/resources/common/bg/talent-electro.png deleted file mode 100644 index 8e3c59d..0000000 Binary files a/resources/common/bg/talent-electro.png and /dev/null differ diff --git a/resources/common/bg/talent-geo.png b/resources/common/bg/talent-geo.png deleted file mode 100644 index 87d7d0d..0000000 Binary files a/resources/common/bg/talent-geo.png and /dev/null differ diff --git a/resources/common/bg/talent-hydro.png b/resources/common/bg/talent-hydro.png deleted file mode 100644 index 9408117..0000000 Binary files a/resources/common/bg/talent-hydro.png and /dev/null differ diff --git a/resources/common/bg/talent-pyro.png b/resources/common/bg/talent-pyro.png deleted file mode 100644 index 3349fde..0000000 Binary files a/resources/common/bg/talent-pyro.png and /dev/null differ diff --git a/resources/common/common.css b/resources/common/common.css deleted file mode 100644 index c3a191a..0000000 --- a/resources/common/common.css +++ /dev/null @@ -1,455 +0,0 @@ -@font-face { - font-family: 'Number'; - src: url("./font/tttgbnumber.woff") format('woff'), url("./font/tttgbnumber.ttf") format('truetype'); -} -@font-face { - font-family: 'NZBZ'; - src: url("./font/NZBZ.woff") format('woff'), url("./font/NZBZ.ttf") format('truetype'); -} -@font-face { - font-family: 'YS'; - src: url("./font/HYWH-65W.woff") format('woff'), url("./font/HYWH-65W.ttf") format('truetype'); -} -.font-YS { - font-family: Number, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; -} -.font-NZBZ { - font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; -} -* { - margin: 0; - padding: 0; - box-sizing: border-box; - -webkit-user-select: none; - user-select: none; -} -body { - font-size: 18px; - color: #1e1f20; - font-family: Number, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; - transform: scale(1.4); - transform-origin: 0 0; - width: 600px; -} -.container { - width: 600px; - padding: 20px 15px 10px 15px; - background-size: contain; -} -.head-box { - border-radius: 15px; - padding: 10px 20px; - position: relative; - color: #fff; - margin-top: 30px; -} -.head-box .title { - font-family: Number, "印品南征北战NZBZ体", NZBZ, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; - font-size: 36px; - text-shadow: 0 0 1px #000, 1px 1px 3px rgba(0, 0, 0, 0.9); -} -.head-box .title .label { - display: inline-block; - margin-left: 10px; -} -.head-box .genshin_logo { - position: absolute; - top: 1px; - right: 15px; - width: 97px; -} -.head-box .label { - font-size: 16px; - text-shadow: 0 0 1px #000, 1px 1px 3px rgba(0, 0, 0, 0.9); -} -.head-box .label span { - color: #d3bc8e; - padding: 0 2px; -} -.notice { - color: #888; - font-size: 12px; - text-align: right; - padding: 12px 5px 5px; -} -.notice-center { - color: #fff; - text-align: center; - margin-bottom: 10px; - text-shadow: 1px 1px 1px #333; -} -.copyright { - font-size: 14px; - text-align: center; - color: #fff; - position: relative; - padding-left: 10px; - text-shadow: 1px 1px 1px #000; - margin: 10px 0; -} -.copyright .version { - color: #d3bc8e; - display: inline-block; - padding: 0 3px; -} -/* */ -.cons { - display: inline-block; - vertical-align: middle; - padding: 0 5px; - border-radius: 4px; -} -.cons-0 { - background: #666; - color: #fff; -} -.cons-n0 { - background: #404949; - color: #fff; -} -.cons-1 { - background: #5cbac2; - color: #fff; -} -.cons-2 { - background: #339d61; - color: #fff; -} -.cons-3 { - background: #3e95b9; - color: #fff; -} -.cons-4 { - background: #3955b7; - color: #fff; -} -.cons-5 { - background: #531ba9cf; - color: #fff; -} -.cons-6 { - background: #ff5722; - color: #fff; -} -.cons2-0 { - border-radius: 4px; - background: #666; - color: #fff; -} -.cons2-1 { - border-radius: 4px; - background: #71b1b7; - color: #fff; -} -.cons2-2 { - border-radius: 4px; - background: #369961; - color: #fff; -} -.cons2-3 { - border-radius: 4px; - background: #4596b9; - color: #fff; -} -.cons2-4 { - border-radius: 4px; - background: #4560b9; - color: #fff; -} -.cons2-5 { - border-radius: 4px; - background: #531ba9cf; - color: #fff; -} -.cons2-6 { - border-radius: 4px; - background: #ff5722; - color: #fff; -} -/******** Fetter ********/ -.fetter { - width: 50px; - height: 50px; - display: inline-block; - background: url('./item/fetter.png'); - background-size: auto 100%; -} -.fetter.fetter1 { - background-position: 0% 0; -} -.fetter.fetter2 { - background-position: 11.11111111% 0; -} -.fetter.fetter3 { - background-position: 22.22222222% 0; -} -.fetter.fetter4 { - background-position: 33.33333333% 0; -} -.fetter.fetter5 { - background-position: 44.44444444% 0; -} -.fetter.fetter6 { - background-position: 55.55555556% 0; -} -.fetter.fetter7 { - background-position: 66.66666667% 0; -} -.fetter.fetter8 { - background-position: 77.77777778% 0; -} -.fetter.fetter9 { - background-position: 88.88888889% 0; -} -.fetter.fetter10 { - background-position: 100% 0; -} -/******** ELEM ********/ -.elem-hydro .talent-icon { - background-image: url("./bg/talent-hydro.png"); -} -.elem-hydro .elem-bg, -.hydro-bg { - background-image: url("./bg/bg-hydro.jpg"); -} -.elem-anemo .talent-icon { - background-image: url("./bg/talent-anemo.png"); -} -.elem-anemo .elem-bg, -.anemo-bg { - background-image: url("./bg/bg-anemo.jpg"); -} -.elem-cryo .talent-icon { - background-image: url("./bg/talent-cryo.png"); -} -.elem-cryo .elem-bg, -.cryo-bg { - background-image: url("./bg/bg-cryo.jpg"); -} -.elem-electro .talent-icon { - background-image: url("./bg/talent-electro.png"); -} -.elem-electro .elem-bg, -.electro-bg { - background-image: url("./bg/bg-electro.jpg"); -} -.elem-geo .talent-icon { - background-image: url("./bg/talent-geo.png"); -} -.elem-geo .elem-bg, -.geo-bg { - background-image: url("./bg/bg-geo.jpg"); -} -.elem-pyro .talent-icon { - background-image: url("./bg/talent-pyro.png"); -} -.elem-pyro .elem-bg, -.pyro-bg { - background-image: url("./bg/bg-pyro.jpg"); -} -.elem-dendro .talent-icon { - background-image: url("./bg/talent-dendro.png"); -} -.elem-dendro .elem-bg, -.dendro-bg { - background-image: url("./bg/bg-dendro.jpg"); -} -/* cont */ -.cont { - border-radius: 10px; - background: url("../common/cont/card-bg.png") top left repeat-x; - background-size: auto 100%; - margin: 5px 15px 5px 10px; - position: relative; - box-shadow: 0 0 1px 0 #ccc, 2px 2px 4px 0 rgba(50, 50, 50, 0.8); - overflow: hidden; - color: #fff; - font-size: 16px; -} -.cont-title { - background: rgba(0, 0, 0, 0.4); - box-shadow: 0 0 1px 0 #fff; - color: #d3bc8e; - padding: 10px 20px; - text-align: left; - border-radius: 10px 10px 0 0; -} -.cont-title span { - font-size: 12px; - color: #aaa; - margin-left: 10px; - font-weight: normal; -} -.cont-title.border-less { - background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); - box-shadow: none; - padding-bottom: 5px; -} -.cont-body { - padding: 10px 15px; - font-size: 12px; - background: rgba(0, 0, 0, 0.5); - box-shadow: 0 0 1px 0 #fff; - font-weight: normal; -} -.cont-footer { - padding: 10px 15px; - font-size: 12px; - background: rgba(0, 0, 0, 0.5); - font-weight: normal; -} -.cont > ul.cont-msg { - display: block; - padding: 5px 10px; - background: rgba(0, 0, 0, 0.5); -} -ul.cont-msg, -.cont-footer ul { - padding-left: 15px; -} -ul.cont-msg li, -.cont-footer ul li { - margin: 5px 0; - margin-left: 15px; -} -ul.cont-msg li strong, -.cont-footer ul li strong { - font-weight: normal; - margin: 0 2px; - color: #d3bc8e; -} -.cont-table { - display: table; - width: 100%; -} -.cont-table .tr { - display: table-row; -} -.cont-table .tr:nth-child(even) { - background: rgba(0, 0, 0, 0.4); -} -.cont-table .tr:nth-child(odd) { - background: rgba(50, 50, 50, 0.4); -} -.cont-table .tr > div, -.cont-table .tr > td { - display: table-cell; - box-shadow: 0 0 1px 0 #fff; -} -.cont-table .tr > div.value-full { - display: table; - width: 200%; -} -.cont-table .tr > div.value-none { - box-shadow: none; -} -.cont-table .thead { - text-align: center; -} -.cont-table .thead > div, -.cont-table .thead > td { - color: #d3bc8e; - background: rgba(0, 0, 0, 0.4); - line-height: 40px; - height: 40px; -} -.cont-table .title, -.cont-table .th { - color: #d3bc8e; - padding-right: 15px; - text-align: right; - background: rgba(0, 0, 0, 0.4); - min-width: 100px; - vertical-align: middle; -} -.logo { - font-size: 18px; - text-align: center; - color: #fff; - margin: 20px 0 10px 0; -} -/* item-icon */ -.item-icon { - width: 100%; - height: 100%; - border-radius: 4px; - position: relative; - overflow: hidden; -} -.item-icon .img { - width: 100%; - height: 100%; - display: block; - background-size: contain; - background-position: center; - background-repeat: no-repeat; -} -.item-icon.artis .img { - width: 84%; - height: 84%; - margin: 8%; -} -.item-icon.star1 { - background-image: url("../common/item/bg1.png"); -} -.item-icon.opacity-bg.star1 { - background-image: url("../common/item/bg1-o.png"); -} -.item-icon.star2 { - background-image: url("../common/item/bg2.png"); -} -.item-icon.opacity-bg.star2 { - background-image: url("../common/item/bg2-o.png"); -} -.item-icon.star3 { - background-image: url("../common/item/bg3.png"); -} -.item-icon.opacity-bg.star3 { - background-image: url("../common/item/bg3-o.png"); -} -.item-icon.star4 { - background-image: url("../common/item/bg4.png"); -} -.item-icon.opacity-bg.star4 { - background-image: url("../common/item/bg4-o.png"); -} -.item-icon.star5 { - background-image: url("../common/item/bg5.png"); -} -.item-icon.opacity-bg.star5 { - background-image: url("../common/item/bg5-o.png"); -} -.item-list { - display: flex; -} -.item-list .item-card { - width: 70px; - background: #e7e5d9; -} -.item-list .item-icon { - border-bottom-left-radius: 0; - border-bottom-right-radius: 12px; -} -.item-list .item-title { - color: #222; - font-size: 13px; - text-align: center; - padding: 2px; - white-space: nowrap; - overflow: hidden; -} -.item-list .item-icon { - height: initial; -} -.item-list .item-badge { - position: absolute; - display: block; - left: 0; - top: 0; - background: rgba(0, 0, 0, 0.6); - font-size: 12px; - color: #fff; - padding: 4px 5px 3px; - border-radius: 0 0 6px 0; -} -/*# sourceMappingURL=common.css.map */ \ No newline at end of file diff --git a/resources/common/common.less b/resources/common/common.less deleted file mode 100644 index 85fad95..0000000 --- a/resources/common/common.less +++ /dev/null @@ -1,390 +0,0 @@ -.font(@name, @file) { - @font-face { - font-family: @name; - src: url("./font/@{file}.woff") format('woff'), url("./font/@{file}.ttf") format('truetype'); - } -} - -.font('Number', 'tttgbnumber'); -.font('NZBZ', 'NZBZ'); -.font('YS', 'HYWH-65W'); - -@import "base.less"; - -* { - margin: 0; - padding: 0; - box-sizing: border-box; - -webkit-user-select: none; - user-select: none; -} - -body { - font-size: 18px; - color: #1e1f20; - font-family: Number, "汉仪文黑-65W", YS, PingFangSC-Medium, "PingFang SC", sans-serif; - transform: scale(1.4); - transform-origin: 0 0; - width: 600px; -} - -.container { - width: 600px; - padding: 20px 15px 10px 15px; - background-size: contain; -} - - -.head-box { - border-radius: 15px; - padding: 10px 20px; - position: relative; - color: #fff; - margin-top: 30px; - - .title { - .font-NZBZ; - font-size: 36px; - text-shadow: 0 0 1px #000, 1px 1px 3px rgba(0, 0, 0, .9); - - .label { - display: inline-block; - margin-left: 10px; - } - } - - .genshin_logo { - position: absolute; - top: 1px; - right: 15px; - width: 97px; - } - - .label { - font-size: 16px; - text-shadow: 0 0 1px #000, 1px 1px 3px rgba(0, 0, 0, .9); - - span { - color: #d3bc8e; - padding: 0 2px; - } - } -} - - -.notice { - color: #888; - font-size: 12px; - text-align: right; - padding: 12px 5px 5px; -} - -.notice-center { - color: #fff; - text-align: center; - margin-bottom: 10px; - text-shadow: 1px 1px 1px #333; -} - -.copyright { - font-size: 14px; - text-align: center; - color: #fff; - position: relative; - padding-left: 10px; - text-shadow: 1px 1px 1px #000; - margin: 10px 0; - - .version { - color: #d3bc8e; - display: inline-block; - padding: 0 3px; - } -} - - -/* */ - -.cons { - display: inline-block; - vertical-align: middle; - padding: 0 5px; - border-radius: 4px; -} - - -.cons(@idx, @bg, @color:#fff) { - .cons-@{idx} { - background: @bg; - color: @color; - } -} - -.cons(0, #666); -.cons(n0, #404949); -.cons(1, #5cbac2); -.cons(2, #339d61); -.cons(3, #3e95b9); -.cons(4, #3955b7); -.cons(5, #531ba9cf); -.cons(6, #ff5722); - -.cons2(@idx, @bg, @color:#fff) { - .cons2-@{idx} { - border-radius: 4px; - background: @bg; - color: @color; - } -} - -.cons2(0, #666); -.cons2(1, #71b1b7); -.cons2(2, #369961); -.cons2(3, #4596b9); -.cons2(4, #4560b9); -.cons2(5, #531ba9cf); -.cons2(6, #ff5722); - -/******** Fetter ********/ - -.fetter { - width: 50px; - height: 50px; - display: inline-block; - background: url('./item/fetter.png'); - background-size: auto 100%; - @fetters: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; - each(@fetters, { - &.fetter@{value} { - background-position: (-100%/9)+(100%/9)*@value 0; - } - }) -} - -/******** ELEM ********/ - -@elems: hydro, anemo, cryo, electro, geo, pyro, dendro; - -each(@elems, { - .elem-@{value} .talent-icon { - background-image: url("./bg/talent-@{value}.png"); - } - - .elem-@{value} .elem-bg, - .@{value}-bg { - background-image: url("./bg/bg-@{value}.jpg"); - } -}) - - -/* cont */ - -.cont { - border-radius: 10px; - background: url("../common/cont/card-bg.png") top left repeat-x; - background-size: auto 100%; - // backdrop-filter: blur(3px); - margin: 5px 15px 5px 10px; - position: relative; - box-shadow: 0 0 1px 0 #ccc, 2px 2px 4px 0 rgba(50, 50, 50, .8); - overflow: hidden; - color: #fff; - font-size: 16px; -} - - -.cont-title { - background: rgba(0, 0, 0, .4); - box-shadow: 0 0 1px 0 #fff; - color: #d3bc8e; - padding: 10px 20px; - text-align: left; - border-radius: 10px 10px 0 0; - - span { - font-size: 12px; - color: #aaa; - margin-left: 10px; - font-weight: normal; - } - - &.border-less { - background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); - box-shadow: none; - padding-bottom: 5px; - } -} - -.cont-body { - padding: 10px 15px; - font-size: 12px; - background: rgba(0, 0, 0, 0.5); - box-shadow: 0 0 1px 0 #fff; - font-weight: normal; -} - - -.cont-footer { - padding: 10px 15px; - font-size: 12px; - background: rgba(0, 0, 0, 0.5); - font-weight: normal; -} - -.cont > ul.cont-msg { - display: block; - padding: 5px 10px; - background: rgba(0, 0, 0, 0.5); -} - -ul.cont-msg, .cont-footer ul { - padding-left: 15px; - - li { - margin: 5px 0; - margin-left: 15px; - - strong { - font-weight: normal; - margin: 0 2px; - color: #d3bc8e; - } - } -} - -.cont-table { - display: table; - width: 100%; -} - -.cont-table .tr { - display: table-row; -} - -.cont-table .tr:nth-child(even) { - background: rgba(0, 0, 0, .4); -} - -.cont-table .tr:nth-child(odd) { - background: rgba(50, 50, 50, .4); -} - -.cont-table .tr > div, -.cont-table .tr > td { - display: table-cell; - box-shadow: 0 0 1px 0 #fff; -} - -.cont-table .tr > div.value-full { - display: table; - width: 200%; -} - -.cont-table .tr > div.value-none { - box-shadow: none; -} - -.cont-table .thead { - text-align: center; -} - -.cont-table .thead > div, -.cont-table .thead > td { - color: #d3bc8e; - background: rgba(0, 0, 0, .4); - line-height: 40px; - height: 40px; -} - - -.cont-table .title, -.cont-table .th { - color: #d3bc8e; - padding-right: 15px; - text-align: right; - background: rgba(0, 0, 0, .4); - min-width: 100px; - vertical-align: middle; -} - -.logo { - font-size: 18px; - text-align: center; - color: #fff; - margin: 20px 0 10px 0; -} - -/* item-icon */ -.item-icon { - width: 100%; - height: 100%; - border-radius: 4px; - position: relative; - overflow: hidden; - - .img { - width: 100%; - height: 100%; - display: block; - background-size: contain; - background-position: center; - background-repeat: no-repeat; - } - - &.artis { - .img { - width: 84%; - height: 84%; - margin: 8%; - } - } - - @stars: 1, 2, 3, 4, 5; - each(@stars, { - &.star@{value} { - background-image: url("../common/item/bg@{value}.png"); - } - &.opacity-bg.star@{value} { - background-image: url("../common/item/bg@{value}-o.png"); - } - }) -} - -.item-list { - display: flex; - - .item-card { - width: 70px; - background: #e7e5d9; - } - - .item-icon { - border-bottom-left-radius: 0; - border-bottom-right-radius: 12px; - } - - .item-title { - color: #222; - font-size: 13px; - text-align: center; - padding: 2px; - white-space: nowrap; - overflow: hidden; - } - - .item-icon { - height: initial; - } - - .item-badge { - position: absolute; - display: block; - left: 0; - top: 0; - background: rgba(0, 0, 0, 0.6); - font-size: 12px; - color: #fff; - padding: 4px 5px 3px; - border-radius: 0 0 6px 0; - } -} \ No newline at end of file diff --git a/resources/common/cont/card-bg.png b/resources/common/cont/card-bg.png deleted file mode 100644 index 036d416..0000000 Binary files a/resources/common/cont/card-bg.png and /dev/null differ diff --git a/resources/common/cont/logo.png b/resources/common/cont/logo.png deleted file mode 100644 index a8cb922..0000000 Binary files a/resources/common/cont/logo.png and /dev/null differ diff --git a/resources/common/face/what.jpg b/resources/common/face/what.jpg deleted file mode 100644 index e9a57f3..0000000 Binary files a/resources/common/face/what.jpg and /dev/null differ diff --git a/resources/common/font/HYWH-65W.ttf b/resources/common/font/HYWH-65W.ttf deleted file mode 100644 index e3cfe72..0000000 Binary files a/resources/common/font/HYWH-65W.ttf and /dev/null differ diff --git a/resources/common/font/HYWH-65W.woff b/resources/common/font/HYWH-65W.woff deleted file mode 100644 index 7cf8a82..0000000 Binary files a/resources/common/font/HYWH-65W.woff and /dev/null differ diff --git a/resources/common/font/NZBZ.ttf b/resources/common/font/NZBZ.ttf deleted file mode 100644 index a10dd11..0000000 Binary files a/resources/common/font/NZBZ.ttf and /dev/null differ diff --git a/resources/common/font/NZBZ.woff b/resources/common/font/NZBZ.woff deleted file mode 100644 index edf38df..0000000 Binary files a/resources/common/font/NZBZ.woff and /dev/null differ diff --git a/resources/common/font/tttgbnumber.ttf b/resources/common/font/tttgbnumber.ttf deleted file mode 100644 index 89a392f..0000000 Binary files a/resources/common/font/tttgbnumber.ttf and /dev/null differ diff --git a/resources/common/font/tttgbnumber.woff b/resources/common/font/tttgbnumber.woff deleted file mode 100644 index b35ab09..0000000 Binary files a/resources/common/font/tttgbnumber.woff and /dev/null differ diff --git a/resources/common/font/华文中宋.TTF b/resources/common/font/华文中宋.TTF deleted file mode 100644 index 2ddb8b2..0000000 Binary files a/resources/common/font/华文中宋.TTF and /dev/null differ diff --git a/resources/common/item/artifact-icon.webp b/resources/common/item/artifact-icon.webp deleted file mode 100644 index 4fb39d9..0000000 Binary files a/resources/common/item/artifact-icon.webp and /dev/null differ diff --git a/resources/common/item/bg1-o.png b/resources/common/item/bg1-o.png deleted file mode 100644 index 937aca4..0000000 Binary files a/resources/common/item/bg1-o.png and /dev/null differ diff --git a/resources/common/item/bg1.png b/resources/common/item/bg1.png deleted file mode 100644 index 5811598..0000000 Binary files a/resources/common/item/bg1.png and /dev/null differ diff --git a/resources/common/item/bg2-o.png b/resources/common/item/bg2-o.png deleted file mode 100644 index 84b9d88..0000000 Binary files a/resources/common/item/bg2-o.png and /dev/null differ diff --git a/resources/common/item/bg2.png b/resources/common/item/bg2.png deleted file mode 100644 index cf8e63c..0000000 Binary files a/resources/common/item/bg2.png and /dev/null differ diff --git a/resources/common/item/bg3-o.png b/resources/common/item/bg3-o.png deleted file mode 100644 index cd2191f..0000000 Binary files a/resources/common/item/bg3-o.png and /dev/null differ diff --git a/resources/common/item/bg3.png b/resources/common/item/bg3.png deleted file mode 100644 index c7d4578..0000000 Binary files a/resources/common/item/bg3.png and /dev/null differ diff --git a/resources/common/item/bg4-o.png b/resources/common/item/bg4-o.png deleted file mode 100644 index eddbe8a..0000000 Binary files a/resources/common/item/bg4-o.png and /dev/null differ diff --git a/resources/common/item/bg4.png b/resources/common/item/bg4.png deleted file mode 100644 index 8079547..0000000 Binary files a/resources/common/item/bg4.png and /dev/null differ diff --git a/resources/common/item/bg5-o.png b/resources/common/item/bg5-o.png deleted file mode 100644 index 23bf9fe..0000000 Binary files a/resources/common/item/bg5-o.png and /dev/null differ diff --git a/resources/common/item/bg5.png b/resources/common/item/bg5.png deleted file mode 100644 index 2630db5..0000000 Binary files a/resources/common/item/bg5.png and /dev/null differ diff --git a/resources/common/item/bg5.psd b/resources/common/item/bg5.psd deleted file mode 100644 index 588f141..0000000 Binary files a/resources/common/item/bg5.psd and /dev/null differ diff --git a/resources/common/item/cons0.webp b/resources/common/item/cons0.webp deleted file mode 100644 index 31c2102..0000000 Binary files a/resources/common/item/cons0.webp and /dev/null differ diff --git a/resources/common/item/crown-o.png b/resources/common/item/crown-o.png deleted file mode 100644 index 177c58e..0000000 Binary files a/resources/common/item/crown-o.png and /dev/null differ diff --git a/resources/common/item/fetter.png b/resources/common/item/fetter.png deleted file mode 100644 index 1ccdcf0..0000000 Binary files a/resources/common/item/fetter.png and /dev/null differ diff --git a/resources/common/item/star-ltr.png b/resources/common/item/star-ltr.png deleted file mode 100644 index f0895d6..0000000 Binary files a/resources/common/item/star-ltr.png and /dev/null differ diff --git a/resources/common/item/star.png b/resources/common/item/star.png deleted file mode 100644 index 80d1888..0000000 Binary files a/resources/common/item/star.png and /dev/null differ diff --git a/resources/common/layout/default.html b/resources/common/layout/default.html deleted file mode 100644 index a78af10..0000000 --- a/resources/common/layout/default.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - miao-plugin - {{block 'css'}} - {{/block}} - - -
- {{block 'main'}}{{/block}} - -
- - \ No newline at end of file diff --git a/resources/common/layout/elem.html b/resources/common/layout/elem.html deleted file mode 100644 index 388a8e7..0000000 --- a/resources/common/layout/elem.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - miao-plugin - {{block 'css'}} - {{/block}} - - -
- {{block 'main'}}{{/block}} - -
- - \ No newline at end of file diff --git a/resources/common/theme/bg-01.jpg b/resources/common/theme/bg-01.jpg deleted file mode 100644 index 6726b9a..0000000 Binary files a/resources/common/theme/bg-01.jpg and /dev/null differ diff --git a/resources/common/theme/main-01.png b/resources/common/theme/main-01.png deleted file mode 100644 index a3e8918..0000000 Binary files a/resources/common/theme/main-01.png and /dev/null differ diff --git a/resources/common/tpl.css b/resources/common/tpl.css deleted file mode 100644 index c63d73e..0000000 --- a/resources/common/tpl.css +++ /dev/null @@ -1,332 +0,0 @@ -.item-card { - width: 66px; - margin: 4px; - position: relative; - border-radius: 5px; -} -.item-card .badge { - overflow: hidden; - border-radius: 50%; - display: block; - width: 26px; - height: 26px; - position: absolute; - right: -4px; - top: -4px; - background: #e9e5dc; - box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.8), 2px 2px 2px rgba(50, 50, 50, 0.5); - z-index: 10; -} -.item-card .badge img { - width: 140%; - left: -27%; - top: -45%; - overflow: hidden; - background-size: 100%; - background-repeat: no-repeat; - position: absolute; -} -.item-card .item-bg { - width: 100%; - padding: 100% 0 0; - background-size: contain; - background-repeat: no-repeat; - background-position: center; - margin: 0; -} -.item-card .bg1 { - background-image: url("./item/bg1.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg-1 { - background-image: url("./item/bg1.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg2 { - background-image: url("./item/bg2.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg-2 { - background-image: url("./item/bg2.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg3 { - background-image: url("./item/bg3.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg-3 { - background-image: url("./item/bg3.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg4 { - background-image: url("./item/bg4.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg-4 { - background-image: url("./item/bg4.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg5 { - background-image: url("./item/bg5.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .bg-5 { - background-image: url("./item/bg5.png"); - border-radius: 5px 5px 15px 0; -} -.item-card .box { - border-radius: 5px; - overflow: hidden; - background: #e9e5dc; -} -.item-card .box .item-desc { - display: block; - font-weight: 500; - text-align: center; - bottom: 0; - background: #e9e5dc; - width: 100%; - font-size: 12px; - line-height: 16px; - white-space: nowrap; - overflow: hidden; - padding: 0 3px; -} -.item-card .box .item-desc:last-child { - padding-bottom: 2px; -} -.item-card .box .name { - overflow: hidden; - white-space: nowrap; - margin-top: 5px; - font-weight: 500; - text-align: center; - font-size: 14px; -} -.item-card .box .item-img { - width: 100%; - overflow: hidden; - background-size: 100%; - background-repeat: no-repeat; - position: absolute; - top: 0; -} -.item-card .item-life { - position: absolute; - top: 0; - left: 0; - z-index: 9; - font-size: 13px; - text-align: center; - color: #fff; - padding: 1px 4px; - border-radius: 3px; -} -.item-card .life1 { - background-color: #62a8ea; -} -.item-card .life2 { - background-color: #62a8ea; -} -.item-card .life3 { - background-color: #62a8ea; -} -.item-card .life4 { - background-color: #ff5722; -} -.item-card .life5 { - background-color: #ff5722; -} -.avatar-card { - margin: 3px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.8); - font-size: 13px; -} -.avatar-card .card { - border-radius: 7px; - box-shadow: 0 2px 6px 0 rgba(132, 93, 90, 0.3); - position: relative; - overflow: hidden; - background: #e7e5d9; - width: 70px; -} -.avatar-card .avatar-face { - width: 70px; - height: 70px; - border-radius: 7px 7px 15px 0; - background-size: 100% 100%; - background-repeat: no-repeat; - position: relative; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5); -} -.avatar-card .avatar-face .img { - background-position: center bottom; -} -.avatar-card .avatar-face .avatar-level { - position: absolute; - bottom: 0; - background: rgba(0, 0, 0, 0.6); - left: 0; - padding: 2px 5px 2px 3px; - border-radius: 0 4px 0 0; - color: #fff; -} -.avatar-card .cons { - border-radius: 0 0 0 5px; - padding: 2px 5px; - position: absolute; - right: 0; - top: 0; -} -.avatar-card .avatar-talent { - height: 21px; - padding: 3px 5px 2px; - font-size: 12px; - width: 100%; - color: #222; - text-align: center; - display: flex; -} -.avatar-card .avatar-talent .talent-item { - width: 20px; - height: 16px; - line-height: 17px; - margin: 0 2px; - text-align: center; - display: block; - background-size: contain; - opacity: 0.8; - position: relative; - border-radius: 3px; - box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5); -} -.avatar-card .avatar-talent .talent-item.talent-plus { - font-weight: bold; - color: #0284b9; -} -.avatar-card .avatar-talent .talent-item.talent-crown { - background: #d3bc8e; - color: #3a2702; - box-shadow: 0 0 2px 0 #000; -} -.avatar-card .avatar-talent.no-talent { - font-size: 12px; - color: rgba(100, 100, 100, 0.5); - text-align: center; - padding: 3px 0 2px; -} -.avatar-card .avatar-talent.no-talent span { - transform: scale(0.75); - white-space: nowrap; - margin-left: -1px; -} -.avatar-card.card-mini .wide, -.avatar-card.card-mini .line { - display: none; -} -.avatar-card .avatar-name { - padding: 8px 0 0 5px; - color: #333; -} -.avatar-card .avatar-name strong { - font-size: 14px; - display: block; - height: 23px; - line-height: 20px; -} -.avatar-card .avatar-name .cons { - position: initial; - border-radius: 4px; - padding: 1px 3px; - vertical-align: baseline; -} -.avatar-card.card-wide .mini { - display: none; -} -.avatar-card.card-wide .card { - width: 146px; - display: flex; -} -.avatar-card.card-wide .avatar-face { - height: 126px; - width: 76px; - border-radius: 7px 0 0 7px; -} -.avatar-card.card-wide .img { - background-size: 100% auto; - background-position: 0 10%; - height: 135px; - margin-top: -9px; -} -.avatar-card.card-wide .avatar-info { - width: 70px; -} -.avatar-card.card-wide .line { - display: block; - height: 1px; - width: 100%; - margin: 5px 0; - background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(100, 100, 100, 0.5) 20%, rgba(100, 100, 100, 0.5) 80%, rgba(0, 0, 0, 0)); - transform: scale(0.8); -} -.avatar-card.wide2 .card { - width: 298px; -} -.avatar-card.wide2 .avatar-face { - width: 146px; -} -.avatar-card.wide2 .avatar-face .img { - margin-top: -50px; - height: 176px; -} -.avatar-card.wide2 .avatar-info { - width: 146px; - padding-left: 5px; -} -.avatar-detail { - display: flex; - padding: 0 1px 2px; -} -.avatar-detail .item { - width: 31px; - height: 31px; - border-radius: 4px; - margin: 1px; -} -.avatar-weapon .icon { - border-radius: 4px; -} -.avatar-weapon .cons { - top: initial; - bottom: 0; - padding: 1px 3px; - border-radius: 3px 0 0 0; -} -.avatar-artis { - position: relative; -} -.avatar-artis .artis { - background: rgba(0, 0, 0, 0.5); -} -.avatar-artis.artis2 .img { - position: absolute; - transform: scale(0.7); - width: 92%; - height: 92%; - margin: 4%; -} -.avatar-artis.artis2 .img:first-child { - transform-origin: left top; -} -.avatar-artis.artis2 .img:last-child { - transform-origin: right bottom; -} -.item-list { - display: flex; - flex-wrap: wrap; - transform-origin: 0 0; -} -.item-list .item { - width: 65px; -} -/*# sourceMappingURL=tpl.css.map */ \ No newline at end of file diff --git a/resources/common/tpl.less b/resources/common/tpl.less deleted file mode 100644 index ac47da8..0000000 --- a/resources/common/tpl.less +++ /dev/null @@ -1,12 +0,0 @@ -@import url('tpl/item-card'); -@import url('tpl/avatar-card'); - -.item-list { - display: flex; - flex-wrap: wrap; - transform-origin: 0 0; -} - -.item-list .item { - width: 65px; -} \ No newline at end of file diff --git a/resources/common/tpl/artis-detail.css b/resources/common/tpl/artis-detail.css deleted file mode 100644 index 06ce5f2..0000000 --- a/resources/common/tpl/artis-detail.css +++ /dev/null @@ -1,116 +0,0 @@ -.arti-detail { - width: 185px; - border-radius: 10px; - background: url("../cont/card-bg.png") top left repeat-x; - background-size: auto 100%; - margin: 5px; - position: relative; - box-shadow: 0 0 1px 0 #ccc, 2px 2px 4px 0 rgba(50, 50, 50, 0.8); - height: 205px; - overflow: hidden; -} -.arti-detail .arti-icon { - width: 60px; - height: 60px; - position: absolute; - left: 2px; - top: 3px; -} -.arti-detail .arti-icon span { - position: absolute; - right: 2px; - bottom: 0; - margin-left: 5px; - background: rgba(0, 0, 0, 0.5); - border-radius: 5px; - height: 18px; - line-height: 18px; - padding: 0 3px; - color: #fff; - font-size: 12px; - display: block; -} -.arti-detail .arti-icon img { - width: 60px; - height: 60px; -} -.arti-detail .head { - color: #fff; - padding: 12px 0 8px 68px; -} -.arti-detail .head strong { - font-size: 15px; - display: block; - white-space: nowrap; - overflow: hidden; - font-font: YS; -} -.arti-detail .head span { - font-size: 14px; -} -.arti-detail .head .mark { - font-family: Number, YS; -} -.arti-detail ul.detail { - width: 100%; - padding: 0; - position: initial; - font-family: YS; -} -.arti-detail ul.detail li { - padding: 0 3px; - font-size: 14px; - position: initial; - width: 100%; - display: table; - line-height: 26px; - height: 26px; -} -.arti-detail ul.detail li.nouse span { - color: #888; -} -.arti-detail ul.detail li.arti-main { - font-size: 16px; - padding: 3px 3px; - font-weight: bold; -} -.arti-detail ul.detail li span { - position: initial; - display: table-cell; - color: #fff; - font-family: YS; -} -.arti-detail ul.detail li.title { - text-align: left; - padding-left: 10px; -} -.arti-detail ul.detail li.val { - text-align: right; - padding-right: 10px; - font-family: Number; -} -.arti-detail ul.detail:nth-child(even) { - background: rgba(0, 0, 0, 0.4); -} -.arti-detail ul.detail:nth-child(odd) { - background: rgba(50, 50, 50, 0.4); -} -.arti-detail .avatar { - position: absolute; - left: 32px; - top: 26px; - width: 38px; - height: 38px; - border-radius: 50%; - overflow: hidden; - z-index: 3; -} -.arti-detail .avatar img { - max-width: 100%; - max-height: 100%; -} -.arti-detail .arti-icon img { - width: 52px; - height: 52px; -} -/*# sourceMappingURL=artis-detail.less.map */ \ No newline at end of file diff --git a/resources/common/tpl/avatar-card.css b/resources/common/tpl/avatar-card.css deleted file mode 100644 index 379e768..0000000 --- a/resources/common/tpl/avatar-card.css +++ /dev/null @@ -1,57 +0,0 @@ -.avatar-card { - margin: 0 0 10px 10px; - border-radius: 7px; - box-shadow: 0 2px 6px 0 rgba(132, 93, 90, 0.3); - height: 88px; - position: relative; - overflow: hidden; - background: #e7e5d9; -} -.avatar-card img { - width: 70px; - height: 70px; - border-radius: 7px 7px 20px 0; -} -.avatar-card.star5 img { - background-image: url(../common/item/bg5.png); - width: 100%; - height: 70px; - /*filter: brightness(1.1);*/ - background-size: 100%; - background-repeat: no-repeat; -} -.avatar-card.star4 img { - width: 100%; - height: 70px; - background-image: url(../common/item/bg4.png); - background-size: 100%; - background-repeat: no-repeat; -} -.avatar-card .num { - position: absolute; - top: 0; - right: 0; - z-index: 9; - font-size: 18px; - text-align: center; - color: #fff; - padding: 1px 5px; - border-radius: 4px; - background: rgba(0, 0, 0, 0.5); -} -.avatar-card .name, -.avatar-card .num_name { - position: absolute; - top: 70px; - left: 0; - z-index: 9; - font-size: 12px; - text-align: center; - width: 100%; - height: 16px; - line-height: 18px; -} -.avatar-card .num_name { - font-size: 16px; -} -/*# sourceMappingURL=avatar-card.css.map */ \ No newline at end of file diff --git a/resources/common/tpl/avatar-card.html b/resources/common/tpl/avatar-card.html deleted file mode 100644 index e5e3c65..0000000 --- a/resources/common/tpl/avatar-card.html +++ /dev/null @@ -1,53 +0,0 @@ -{{set avatar = $data[0] || false }} -{{set {_res_path, cardType} = $data[1]}} -{{set weapon = avatar.weapon || {} }} -{{set talentMap = ['a','e','q'] }} - -
-
- {{if avatar}} -
-
-
- {{avatar.cons}} -
Lv{{avatar.level}}
-
-
- {{set talent = avatar.talent || {} }} - {{if talent.a && talent.a.level }} -
- {{avatar.abbr}} - {{avatar.cons}} - Lv{{avatar.level}} -
-
-
- {{each talentMap k}} - {{set t = talent[k] || {} }} {{t.level}} - {{/each}} -
- {{else}} -
暂无天赋数据
- {{/if}} -
-
-
-
- - {{weapon.affix}} -
-
-
-
- {{each avatar.artisSet?.imgs img}} -
- {{/each}} -
-
-
-
- {{/if}} -
-
-
\ No newline at end of file diff --git a/resources/common/tpl/avatar-card.less b/resources/common/tpl/avatar-card.less deleted file mode 100644 index f3ce5f9..0000000 --- a/resources/common/tpl/avatar-card.less +++ /dev/null @@ -1,237 +0,0 @@ -.avatar-card { - margin: 3px; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.8); - font-size: 13px; - - - .card { - border-radius: 7px; - box-shadow: 0 2px 6px 0 rgb(132 93 90 / 30%); - position: relative; - overflow: hidden; - background: #e7e5d9; - width: 70px; - } - - .avatar-face { - width: 70px; - height: 70px; - border-radius: 7px 7px 15px 0; - background-size: 100% 100%; - background-repeat: no-repeat; - position: relative; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .5); - - .img { - background-position: center bottom; - } - - - .avatar-level { - position: absolute; - bottom: 0; - background: rgba(0, 0, 0, 0.6); - left: 0; - padding: 2px 5px 2px 3px; - border-radius: 0 4px 0 0; - color: #fff; - } - - - } - - - .cons { - border-radius: 0 0 0 5px; - padding: 2px 5px; - position: absolute; - right: 0; - top: 0; - } - - .avatar-talent { - height: 21px; - padding: 3px 5px 2px; - font-size: 12px; - width: 100%; - color: #222; - text-align: center; - display: flex; - - .talent-item { - width: 20px; - height: 16px; - line-height: 17px; - margin: 0 2px; - text-align: center; - display: block; - background-size: contain; - opacity: 0.8; - position: relative; - border-radius: 3px; - box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5); - - &.talent-plus { - font-weight: bold; - color: #0284b9; - } - - &.talent-crown { - background: #d3bc8e; - color: #3a2702; - box-shadow: 0 0 2px 0 #000; - } - } - - &.no-talent { - font-size: 12px; - color: rgba(100, 100, 100, .5); - text-align: center; - padding: 3px 0 2px; - - span { - transform: scale(.75); - white-space: nowrap; - margin-left: -1px; - } - } - } - - &.card-mini { - .wide, .line { - display: none; - } - } - - .avatar-name { - padding: 8px 0 0 5px; - color: #333; - - strong { - font-size: 14px; - display: block; - height: 23px; - line-height: 20px; - } - - .cons { - position: initial; - border-radius: 4px; - padding: 1px 3px; - vertical-align: baseline; - } - } - - &.card-wide { - .mini { - display: none; - } - - .card { - width: 146px; - display: flex; - } - - .avatar-face { - height: 126px; - width: 76px; - border-radius: 7px 0 0 7px; - } - - .img { - background-size: 100% auto; - background-position: 0 10%; - height: 135px; - margin-top: -9px; - } - - .avatar-info { - width: 70px; - } - - .line { - display: block; - height: 1px; - width: 100%; - margin: 5px 0; - background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(100, 100, 100, .5) 20%, rgba(100, 100, 100, .5) 80%, rgba(0, 0, 0, 0)); - transform: scale(.8) - } - } - - &.wide2 { - .card { - width: 298px; - } - - .avatar-face { - width: 146px; - - .img { - margin-top: -50px; - height: 176px; - } - } - - .avatar-info { - width: 146px; - padding-left: 5px; - } - - - } - -} - -.avatar-detail { - display: flex; - padding: 0 1px 2px; - - .item { - width: 31px; - height: 31px; - border-radius: 4px; - margin: 1px; - } -} - -.avatar-weapon { - .icon { - border-radius: 4px; - } - - .cons { - top: initial; - bottom: 0; - padding: 1px 3px; - border-radius: 3px 0 0 0; - } -} - -.avatar-artis { - position: relative; - - .artis { - background: rgba(0, 0, 0, 0.5) - } - - &.artis2 { - .img { - position: absolute; - transform: scale(.7); - width: 92%; - height: 92%; - margin: 4%; - - &:first-child { - transform-origin: left top; - } - - &:last-child { - transform-origin: right bottom; - } - } - } - - -} \ No newline at end of file diff --git a/resources/common/tpl/avatar-profile.css b/resources/common/tpl/avatar-profile.css deleted file mode 100644 index edf1125..0000000 --- a/resources/common/tpl/avatar-profile.css +++ /dev/null @@ -1,204 +0,0 @@ -.profile { - position: relative; - margin-bottom: 10px; -} -.profile:after { - content: ""; - display: block; - position: absolute; - left: 8px; - top: 115px; - bottom: 0; - right: 8px; - box-shadow: 0 0 2px 0 #fff; - border-radius: 5px; - z-index: 1; -} -.profile .main-pic { - width: 800px; - height: 500px; - background-size: contain; - background-repeat: no-repeat; - background-position: center; - margin-left: -260px; - position: relative; - z-index: 2; -} -.profile .detail { - position: absolute; - right: 20px; - top: 20px; - color: #fff; - z-index: 3; -} -.profile .char-name { - font-size: 50px; - font-family: NZBZ; - text-shadow: 0 0 3px #000, 2px 2px 4px rgba(0, 0, 0, 0.7); - text-align: right; -} -.profile .char-lv { - font-family: Number; - margin-bottom: 20px; - text-shadow: 0 0 3px #000, 2px 2px 4px rgba(0, 0, 0, 0.7); - text-align: right; -} -.profile .attr { - border-radius: 4px; - overflow: hidden; -} -.profile .detail li { - width: 300px; - font-size: 17px; - list-style: none; - padding: 0 100px 0 35px; - position: relative; - font-family: YS; - height: 32px; - line-height: 32px; - text-shadow: 0 0 1px rgba(0, 0, 0, 0.5); -} -.profile .attr li i { - display: inline-block; - height: 20px; - width: 20px; - background-image: url("../../character/icon.png"); - background-size: auto 20px; - position: absolute; - left: 10px; - top: 8px; - opacity: 0.9; - transform: scale(0.9); -} -.profile .i-hp { - background-position: -20px 0; -} -.profile .i-atk { - background-position: -40px 0; -} -.profile .i-def { - background-position: -60px 0; -} -.profile .i-mastery { - background-position: -80px 0; -} -.profile .i-cr { - background-position: -100px 0; -} -.profile .i-cd { - background-position: -140px 0; -} -.profile .i-re { - background-position: -120px 0; -} -.profile .i-dmg { - background-position: -160px 0; -} -.profile .detail li:nth-child(even) { - background: rgba(0, 0, 0, 0.4); -} -.profile .detail li:nth-child(odd) { - background: rgba(50, 50, 50, 0.4); -} -.profile .detail li strong { - display: inline-block; - position: absolute; - right: 85px; - text-align: right; - font-family: Number, sans-serif; - font-weight: normal; -} -.profile .detail li span { - position: absolute; - right: 0; - text-align: left; - width: 75px; - display: inline-block; - font-family: Number, sans-serif; - color: #90e800; - font-size: 15px; -} -.profile .talent-icon { - width: 100px; - height: 100px; - padding: 5px; - display: table; - border-radius: 50%; - position: relative; - background-size: contain; - background-repeat: no-repeat; - background-position: center center; - z-index: 90; -} -.profile .talent-icon img, -.profile .talent-icon .profile .talent-icon-img { - width: 46%; - height: 46%; - position: absolute; - top: 50%; - left: 50%; - margin: -22% 0 0 -23%; - background-size: contain; - background-repeat: no-repeat; - background-position: center; -} -.profile .talent-icon span { - background: #fff; - width: 34px; - height: 26px; - line-height: 26px; - font-size: 17px; - text-align: center; - border-radius: 5px; - position: absolute; - bottom: 2px; - left: 50%; - margin-left: -15px; - color: #000; - box-shadow: 0 0 5px 0 #000; - font-family: Number; -} -.profile .talent-icon.talent-plus span { - background: #2e353e; - color: #ffdfa0; - font-weight: bold; - box-shadow: 0 0 1px 0 #d3bc8e, 1px 1px 2px 0 rgba(0, 0, 0, 0.5); -} -.profile .talent-icon.talent-crown:after { - content: ""; - display: block; - width: 28px; - height: 28px; - background: url("../character/imgs/crown.png") no-repeat; - background-size: contain; - position: absolute; - left: 50%; - top: 0; - margin-left: -14px; -} -.profile .char-talents { - display: flex; - width: 300px; - margin-bottom: 10px; -} -.profile .char-cons .talent-item, -.profile .char-talents .talent-item { - flex: 1; -} -.profile .char-cons { - display: flex; - width: 250px; - position: absolute; - bottom: 5px; - left: 20px; -} -.profile .char-cons .talent-icon { - width: 50px; - height: 50px; - margin: 0 -5px; -} -.profile .char-cons .talent-icon.off { - filter: grayscale(100%); - opacity: 0.4; -} -/*# sourceMappingURL=avatar-profile-source.css.map */ \ No newline at end of file diff --git a/resources/common/tpl/item-card.css b/resources/common/tpl/item-card.css deleted file mode 100644 index d5bfc61..0000000 --- a/resources/common/tpl/item-card.css +++ /dev/null @@ -1,113 +0,0 @@ -.item-card { - width: 52px; - margin: 0px 0 5px 7px; - position: relative; -} -.item-card .badge { - overflow: hidden; - border-radius: 5px; - position: relative; - background: #e9e5dc; - box-shadow: 0 2px 6px 0 rgba(132, 93, 90, 0.3); -} -.item-card .badge img { - width: 100%; - overflow: hidden; - background-size: 100%; - background-repeat: no-repeat; - position: absolute; - top: 0; - /*filter: contrast(95%);*/ -} -.item-card .bg1 { - background-image: url("imgs/bg1.png"); - width: 100%; - height: 70px; - background-size: 100%; - background-repeat: no-repeat; -} -.item-card .bg2 { - background-image: url("imgs/bg2.png"); - width: 100%; - height: 70px; - background-size: 100%; - background-repeat: no-repeat; -} -.item-card .bg3 { - background-image: url("imgs/bg3.png"); - width: 100%; - height: 70px; - background-size: 100%; - background-repeat: no-repeat; -} -.item-card .bg4 { - background-image: url("imgs/bg4.png"); - width: 100%; - height: 70px; - background-size: 100%; - background-repeat: no-repeat; -} -.item-card .bg5 { - background-image: url("imgs/bg5.png"); - width: 100%; - height: 70px; - background-size: 100%; - background-repeat: no-repeat; -} -.item-card .box:after { - content: ""; - display: block; - position: absolute; - width: 15px; - right: 0; - bottom: 15px; -} -.item-card .box .desc { - font-weight: 500; - text-align: center; - position: absolute; - bottom: 0; - background: #e9e5dc; - width: 100%; - height: 16px; - font-size: 12px; - line-height: 16px; - font-family: Number; -} -.item-card .box .name { - overflow: hidden; - white-space: nowrap; - margin-top: 5px; - font-weight: 500; - text-align: center; - font-size: 14px; -} -.item-card .life { - position: absolute; - top: 0px; - left: 0px; - z-index: 9; - font-size: 13px; - text-align: center; - color: #fff; - border-radius: 2px; - padding: 1px 4px; - border-radius: 3px; - font-family: "tttgbnumber"; -} -.item-card .life1 { - background-color: #62a8ea; -} -.item-card .life2 { - background-color: #62a8ea; -} -.item-card .life3 { - background-color: #62a8ea; -} -.item-card .life4 { - background-color: #ff5722; -} -.item-card .life5 { - background-color: #ff5722; -} -/*# sourceMappingURL=item-card.less.map */ \ No newline at end of file diff --git a/resources/common/tpl/item-card.less b/resources/common/tpl/item-card.less deleted file mode 100644 index 74eb0b9..0000000 --- a/resources/common/tpl/item-card.less +++ /dev/null @@ -1,120 +0,0 @@ - -.item-card { - width: 66px; - margin: 4px; - position: relative; - border-radius: 5px; - - - .badge { - overflow: hidden; - border-radius: 50%; - display: block; - width: 26px; - height: 26px; - position: absolute; - right: -4px; - top: -4px; - background: #e9e5dc; - box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.8), 2px 2px 2px rgba(50, 50, 50, .5); - z-index: 10; - - - img { - width: 140%; - left: -27%; - top: -45%; - overflow: hidden; - background-size: 100%; - background-repeat: no-repeat; - position: absolute; - } - } - - .item-bg { - width: 100%; - padding: 100% 0 0; - background-size: contain; - background-repeat: no-repeat; - background-position: center; - margin: 0; - } - - each(range(5), { - .bg@{value} { - background-image: url("./item/bg@{value}.png"); - border-radius: 5px 5px 15px 0; - } - .bg-@{value} { - background-image: url("./item/bg@{value}.png"); - border-radius: 5px 5px 15px 0; - } - }) - - .box { - border-radius: 5px; - overflow: hidden; - background: #e9e5dc; - - .item-desc { - display: block; - font-weight: 500; - text-align: center; - bottom: 0; - background: #e9e5dc; - width: 100%; - font-size: 12px; - line-height: 16px; - white-space: nowrap; - overflow: hidden; - padding: 0 3px; - - &:last-child { - padding-bottom: 2px; - } - } - - .name { - overflow: hidden; - white-space: nowrap; - margin-top: 5px; - font-weight: 500; - text-align: center; - font-size: 14px; - } - - .item-img { - width: 100%; - overflow: hidden; - background-size: 100%; - background-repeat: no-repeat; - position: absolute; - top: 0; - } - } - - .item-life { - position: absolute; - top: 0; - left: 0; - z-index: 9; - font-size: 13px; - text-align: center; - color: #fff; - padding: 1px 4px; - border-radius: 3px; - } - - .life(@idx, @color) { - .life@{idx} { - background-color: @color; - } - } - - .life(1, #62a8ea); - .life(2, #62a8ea); - .life(3, #62a8ea); - .life(4, #ff5722); - .life(5, #ff5722); -} - diff --git a/resources/common/tpl/talent-detail.html b/resources/common/tpl/talent-detail.html deleted file mode 100644 index 77d2e75..0000000 --- a/resources/common/tpl/talent-detail.html +++ /dev/null @@ -1,61 +0,0 @@ -{{set ds = $data[0] || false }} -{{set {_res_path, icon,lvs,type} = $data[1]}} - -
-
- -
-
-
{{ds.name}}
-
- {{each ds.desc d}} - {{ if d[0] === "<" }} - {{@d}} - {{else if d!=""}} -

{{d}}

- {{/if}} - {{/each}} -
-
- - {{if ds.tables && ds.tables.length > 0}} -
- {{each ds.tables tr}} - {{if tr.isSame}} -
- {{tr.name}}{{if tr.unit}}({{tr.unit}}){{/if}} - {{tr.values[0]}} -
- {{/if}} - {{/each}} -
- - - - {{each lvs lv idx}} - {{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}} - - {{/if}} - {{/each}} - - {{each ds.tables tr}} - {{if !tr.isSame}} - - - - {{each tr.values v idx}} - {{if (type=="a" && idx>4 && idx<11) || (type!="a" && idx>4 && idx < 13)}} - - {{/if}} - {{/each}} - {{/if}} - - {{/each}} -
{{lv}}
- {{tr.name}} - {{if tr.unit}} - ({{tr.unit}}) - {{/if}} - {{v}}
- {{/if}} -
diff --git a/resources/html/admin/imgs/bg.png b/resources/html/admin/imgs/bg.png new file mode 100644 index 0000000..db03ee1 Binary files /dev/null and b/resources/html/admin/imgs/bg.png differ diff --git a/resources/html/admin/imgs/cfg-right.jpg b/resources/html/admin/imgs/cfg-right.jpg new file mode 100644 index 0000000..5bf552a Binary files /dev/null and b/resources/html/admin/imgs/cfg-right.jpg differ diff --git a/resources/html/admin/imgs/cfg-right.png b/resources/html/admin/imgs/cfg-right.png new file mode 100644 index 0000000..fcee367 Binary files /dev/null and b/resources/html/admin/imgs/cfg-right.png differ diff --git a/resources/html/admin/index.css b/resources/html/admin/index.css new file mode 100644 index 0000000..0c976e6 --- /dev/null +++ b/resources/html/admin/index.css @@ -0,0 +1,83 @@ +body { + transform: scale(1); + width: 520px; +} + +.container { + background-size: 520px auto; + width: 520px; +} + +.head-box { + margin: 0 0 80px 0; +} + +.cfg-box { + border-radius: 15px; + margin-top: 20px; + margin-bottom: 20px; + padding: 5px 15px; + overflow: hidden; + background: #f5f5f5; + box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15); + position: relative; + background: rgba(35, 38, 57, 0.8); +} + +.cfg-group { + color: #ceb78b; + font-size: 18px; + font-weight: bold; + padding: 10px 20px; +} + +.cfg-li { + border-radius: 18px; + min-height: 36px; + position: relative; + overflow: hidden; + margin-bottom: 10px; + background: rgba(203, 196, 190, 0); +} + +.cfg-line { + color: #4e5769; + line-height: 36px; + padding-left: 20px; + font-weight: bold; + border-radius: 16px; + box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); + background: url("./imgs/cfg-right.jpg") right top #cbc4be no-repeat; + background-size: auto 36px; +} + +.cfg-hint { + font-size: 12px; + font-weight: normal; + margin-top: 3px; + margin-bottom: -3px; +} + +.cfg-status { + position: absolute; + top: 0; + right: 0; + height: 36px; + width: 160px; + text-align: center; + line-height: 36px; + font-size: 16px; + color: #495366; + font-weight: bold; + border-radius: 0 16px 16px 0; +} + +.cfg-status.status-off { + color: #a95151; +} + +.cfg-desc { + font-size: 12px; + color: #cbc4be; + margin: 5px 0 5px 20px; +} \ No newline at end of file diff --git a/resources/html/admin/index.html b/resources/html/admin/index.html new file mode 100644 index 0000000..b04af4f --- /dev/null +++ b/resources/html/admin/index.html @@ -0,0 +1,97 @@ + + + + + + + + Document + + + + +
+
+
#椰奶设置
+
椰奶管理面板
+
+
+
+
消息相关
+ +
+
+
角色资料与信息查询
+ +
+
+
系统设置
+ + +
+ + + \ No newline at end of file diff --git a/resources/html/admin/index.less b/resources/html/admin/index.less new file mode 100644 index 0000000..0d0fe81 --- /dev/null +++ b/resources/html/admin/index.less @@ -0,0 +1,89 @@ +body { + transform: scale(1); + width: 520px; +} + +.container { + background: url("./imgs/bg.png") #000144 left top no-repeat; + background-size: 520px auto; + width:520px; +} + +.head-box { + margin: 0 0 80px 0; +} + +.cfg-box { + border-radius: 15px; + margin-top: 20px; + margin-bottom: 20px; + padding: 5px 15px; + overflow: hidden; + background: #f5f5f5; + box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%); + position: relative; + background: rgba(35, 38, 57, .8); +} + + +.cfg-group { + color: #ceb78b; + font-size: 18px; + font-weight: bold; + padding: 10px 20px; +} + +.cfg-ul { + +} + +.cfg-li { + border-radius: 18px; + min-height: 36px; + position: relative; + overflow: hidden; + margin-bottom: 10px; + background: rgba(203, 196, 190, 0); +} + +.cfg-line { + color: #4e5769; + line-height: 36px; + padding-left: 20px; + font-weight: bold; + border-radius: 16px; + box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); + background: url("./imgs/cfg-right.jpg") right top #cbc4be no-repeat; + background-size: auto 36px; +} + +.cfg-hint { + font-size: 12px; + font-weight: normal; + margin-top: 3px; + margin-bottom: -3px; +} + +.cfg-status { + position: absolute; + top: 0; + right: 0; + height: 36px; + width: 160px; + text-align: center; + line-height: 36px; + font-size: 16px; + color: #495366; + font-weight: bold; + border-radius: 0 16px 16px 0; +} + +.cfg-status.status-off { + color: #a95151; +} + +.cfg-desc { + font-size: 12px; + color: #cbc4be; + margin: 5px 0 5px 20px; +} \ No newline at end of file