Fix wrong link in user info panel

This commit is contained in:
the1812 2019-09-11 13:13:17 +08:00
parent 5e92414782
commit a1850933cd
9 changed files with 15 additions and 15 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,7 @@
"custom-control-background.min.js": "6B6B7E99E88E9242AB4AB3A0B108AADBF48BD43D6A8F11F0E281F476A7D84C47",
"custom-navbar.min.css": "149BA01C24D109A7889D46AFE76679745499123A14E4B3B90650D600E43C492A",
"custom-navbar.min.html": "72A66BCE1D82163555AFBEAC651A0BB42A661338878C55B9BE8CE3655767A3CC",
"custom-navbar.min.js": "D3DAD64FE08D80BA1B557101D43EB025F8DB8ED6D8656E5F6F774C66FEE7E16E",
"custom-navbar.min.js": "34D0620E1625BC637A7A3FF99EC5197B38F521FAE1E1DF22D72884528445D3D5",
"danmaku-converter.min.js": "E056FD0E80469D3EC4C11BDD78435A1EBFA319DA8DAD9063286E1CA50037EA94",
"dark-important.min.css": "7FC057E91B5BE14BF91A549EB33D9828D044546DBC5F47EF8E7829CD64BD5774",
"dark-navbar.min.css": "C02A4001942DE8E26C61520C2499D80512D8CBA0BBA81E7065BA219C4DF9C11D",
@ -85,7 +85,7 @@
"medal-helper.min.css": "205A02CC6E8B2DBDA222A0660D83EA6E4B24F0B5A753E269FED099AB8AE31B6C",
"medal-helper.min.html": "5D7057259368BE97DED3375DD904695B245AA2BF338C5E18CB3CF61DD913617C",
"medal-helper.min.js": "33751914C5DE205D79E059F7BF285E325E4D6DBFC68AE7E4D4B6307672F23B6E",
"minimal-home.vue.min.js": "FBB0C85AF63E275F62CB7558FFC21BE6E40C63E0DE73D56A6E48F6B82A41E186",
"minimal-home.vue.min.js": "C86F3E7912779B317278477919FC54078674AF8A27A124870C40DEBDF7F4593A",
"narrow-danmaku.min.js": "12475431A527EFF15100AF57C9C53D0603BC27723126D966CB01240917602253",
"new-styles.min.js": "3D7E8E25C5B5B6BD3F784BC05D403C35F0658E67197F878874A9554C2FF5127B",
"no-banner.min.css": "DA096F94E7FA26992F3F71245E704D69A1C222D0ADA6F1990FA5D948507CE15F",

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(()=>{return(e,a)=>{const i=`<div class=minimal-home><div class=minimal-home-header><icon class=logo icon=logo type=main></icon><div class=home-tabs><div v-for="(tab, index) of tabs":key=index class=tab :class="{active: tab.active}":data-tab=tab.name @click=changeTab(tab)>{{tab.displayName}}</div></div><search></search></div><div class=minimal-home-content><component :is=content></component></div></div>`;a.applyStyleFromText(`.minimal-home,.minimal-home *{box-sizing:border-box;transition:.2s ease-out}.minimal-home .logo{font-size:48px;color:var(--theme-color)}.minimal-home .minimal-home-header{display:flex;align-items:center;justify-content:space-between}.minimal-home .minimal-home-header .home-tabs{display:flex;flex-grow:1;justify-content:space-around}.minimal-home .minimal-home-header .home-tabs .tab{color:#707070;opacity:.75;position:relative}body.dark .minimal-home .minimal-home-header .home-tabs .tab{color:#eee}.minimal-home .minimal-home-header .home-tabs .tab.active{transform:scale(1.2);opacity:1;font-weight:700}.minimal-home .minimal-home-header .home-tabs .tab::after{content:"";position:absolute;bottom:-8px;left:50%;transform:translateX(-50%) scaleX(0);height:3px;width:80%;background-color:var(--theme-color);border-radius:2px}.minimal-home .minimal-home-header .home-tabs .tab.active::after{transform:translateX(-50%) scaleX(1)}.minimal-home .minimal-home-content{margin-top:64px;width:calc(var(--card-column-count) * (var(--card-width) + var(--card-margin)))}`,"minimal-home-style");return{export:Object.assign({template:i},{components:{Icon:()=>a.importAsync("icon.vue"),Search:()=>a.importAsync("search.vue"),HomeVideo:()=>a.importAsync("home-video.vue")},data(){return{tabs:[{name:"video",displayName:"视频动态",active:true,more:"https://t.bilibili.com/?tab=8"},{name:"ranking7",displayName:"一周排行",active:false,more:"https://www.bilibili.com/ranking/all/0/0/7"},{name:"ranking3",displayName:"三日排行",active:false,more:"https://www.bilibili.com/ranking"},{name:"ranking1",displayName:"昨日排行",active:false,more:"https://www.bilibili.com/ranking/all/0/0/1"}],content:"HomeVideo"}},methods:{changeTab(e){if(e.active){window.open(e.more,"_blank");return}const a=this.tabs.find(e=>e.active);a.active=false;e.active=true}}})}}})();
(()=>{return(e,a)=>{const i=`<div class=minimal-home><div class=minimal-home-header><icon class=logo icon=logo type=main></icon><div class=home-tabs><div v-for="(tab, index) of tabs":key=index class=tab :class="{active: tab.active}":data-tab=tab.name @click=changeTab(tab)>{{tab.displayName}}</div></div><search></search></div><div class=minimal-home-content><component :is=content></component></div></div>`;a.applyStyleFromText(`.minimal-home,.minimal-home *{box-sizing:border-box;transition:.2s ease-out}.minimal-home .logo{font-size:48px;color:var(--theme-color)}.minimal-home .minimal-home-header{display:flex;align-items:center;justify-content:space-between}.minimal-home .minimal-home-header .home-tabs{display:flex;flex-grow:1;justify-content:space-around}.minimal-home .minimal-home-header .home-tabs .tab{color:#707070;opacity:.75;position:relative}body.dark .minimal-home .minimal-home-header .home-tabs .tab{color:#eee}.minimal-home .minimal-home-header .home-tabs .tab.active{transform:scale(1.2);opacity:1;font-weight:700}.minimal-home .minimal-home-header .home-tabs .tab::after{content:"";position:absolute;bottom:-8px;left:50%;transform:translateX(-50%) scaleX(0);height:3px;width:80%;background-color:var(--theme-color);border-radius:2px;transition:.2s ease-out}.minimal-home .minimal-home-header .home-tabs .tab.active::after{transform:translateX(-50%) scaleX(1)}.minimal-home .minimal-home-content{margin-top:64px;width:calc(var(--card-column-count) * (var(--card-width) + var(--card-margin)))}`,"minimal-home-style");return{export:Object.assign({template:i},{components:{Icon:()=>a.importAsync("icon.vue"),Search:()=>a.importAsync("search.vue"),HomeVideo:()=>a.importAsync("home-video.vue")},data(){return{tabs:[{name:"video",displayName:"视频动态",active:true,more:"https://t.bilibili.com/?tab=8"},{name:"ranking7",displayName:"一周排行",active:false,more:"https://www.bilibili.com/ranking/all/0/0/7"},{name:"ranking3",displayName:"三日排行",active:false,more:"https://www.bilibili.com/ranking"},{name:"ranking1",displayName:"昨日排行",active:false,more:"https://www.bilibili.com/ranking/all/0/0/1"}],content:"HomeVideo"}},methods:{changeTab(e){if(e.active){window.open(e.more,"_blank");return}const a=this.tabs.find(e=>e.active);a.active=false;e.active=true}}})}}})();

View File

@ -555,7 +555,7 @@ class UserInfo extends NavbarComponent {
<a class="name" target="_blank" href="https://space.bilibili.com/">{{uname}}</a>
<a class="type" target="_blank" href="https://account.bilibili.com/account/big">{{userType}}</a>
<div class="level-info row">
<a target="_blank" title="等级" href="https://account.bilibili.com/site/record?type=exp"
<a target="_blank" title="等级" href="https://account.bilibili.com/account/record"
class="level">
<i class="custom-navbar-iconfont-extended" v-bind:class="'custom-navbar-icon-lv' + level_info.current_level"></i>
</a>