Skip to content

Commit

Permalink
v2.9.17+10
Browse files Browse the repository at this point in the history
  • Loading branch information
cabbagelol committed Jan 7, 2025
1 parent bb1655a commit c061ed9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion front/public/config/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
{
"name": "Fishbat627",
"url": "//bfban.com/account/28889"
"url": "//bfban.com/space/28889"
}
]
},
Expand Down
8 changes: 6 additions & 2 deletions front/public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ User-agent: *
Disallow: /api
Disallow: /account?
Disallow: /account/
Allow:
Disallow: /space?
Disallow: /space/
Disallow: /report
Disallow: /profile/chat

Sitemap: /sitemap.xml
Allow:
Sitemap: /sitemap.xml
6 changes: 0 additions & 6 deletions front/src/assets/js/notification.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import {NoticeConfig} from "view-design";
import store from "@/store";
import message from "@/views/account/chat";

export default class NotificationApp {
constructor() {

}

init () {
return new Promise((resolve, reject) => {
if (!("Notification" in window)) {
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/BusinessCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<AchievementsTag trigger="hover" :data="userInfo.attr.achievements || []" v-if="userInfo.attr && userInfo.attr.achievements"></AchievementsTag>
</Col>
<Col>
<router-link :to="{path: '/account/' + userInfo.id, query: {repeat: true}}">
<router-link :to="{path: '/space/' + userInfo.id, query: {repeat: true}}">
<Button>
<Icon type="ios-send" size="20"/>
</Button>
Expand Down
2 changes: 1 addition & 1 deletion front/src/components/Html.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default {
if (p_data[0])
switch (p_data[0]) {
case "user":
_p[i].innerHTML = `<span><a href="/account/${p_data[1]}">@${p_data[1]}</a></span>`;
_p[i].innerHTML = `<span><a href="/space/${p_data[1]}">@${p_data[1]}</a></span>`;
break;
case "player":
_p[i].innerHTML = `<htmlplayercard :id="${p_data[1].toString()}"></htmlplayercard>`;
Expand Down
8 changes: 8 additions & 0 deletions front/src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<Col :xs="{span: 24}" :sm="{span: 18}" :md="{span: 18}">
<div class="search-input search-input-show ivu-input ivu-input-large">
<Row :gutter="10">
<Col>
<RadioGroup type="button" v-model="searchTypeValue" size="small" @on-change="onTabClick">
<Radio label="player" value="player">{{ $t('search.tabs.player') }}</Radio>
<Radio label="user" value="user" :disabled="!isLogin">{{ $t('search.tabs.user') }}</Radio>
</RadioGroup>
</Col>
<Col flex="1">
<Dropdown style="width: 100%">
<Input
Expand Down Expand Up @@ -439,6 +445,7 @@ import Empty from "@/components/Empty";
import TimeView from "@/components/TimeView.vue";
import game from '../../public/config/gameName.json';
import tag from "view-design/src/components/tag";
export default new Application({
name: "search",
Expand Down Expand Up @@ -595,6 +602,7 @@ export default new Application({
* @param tagName
*/
onTabClick(tagName) {
console.log(tagName)
this.searchTypeValue = tagName;
this.handleSearch();
},
Expand Down
14 changes: 7 additions & 7 deletions front/src/views/SiteStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@
<Card dis-hover>
<div slot="title">{{ $t('sitestats.communityParticipation') }} · {{ $t(timeArray.find(i => i.value == timeRange).name) }}</div>
<Row :gutter="5">
<Col span="12">
<Col span="14">
<ol class="sitestats-ul" v-if="active.community.length > 0">
<li v-for="(i, index) in active.community" :key="index">
<Row :gutter="10" type="flex" align="middle">
<Col>
<businessCard :id="i.id">
<HtmlLink :text="i.username" :is-poptip="false" :href="`/space/${i.id}`"></HtmlLink>
<HtmlLink :text="i.username" :is-poptip="false" :href="`/space/${i.id}?username=${i.username}`"></HtmlLink>
</businessCard>
</Col>
<Col flex="1">
Expand All @@ -125,7 +125,7 @@
</ol>
<Empty :notHint="false" v-else></Empty>
</Col>
<Col span="12">
<Col span="10">
<v-chart class="chart chart-min" :option="active.communityConf"/>
</Col>
</Row>
Expand All @@ -142,7 +142,7 @@
<Row :gutter="10" type="flex" align="middle">
<Col>
<businessCard :id="i.id">
<HtmlLink :text="i.username" :is-poptip="false" :href="`/space/${i.id}`"></HtmlLink>
<HtmlLink :text="i.username" :is-poptip="false" :href="`/space/${i.id}?username=${i.username}`"></HtmlLink>
</businessCard>
</Col>
<Col flex="1">
Expand Down Expand Up @@ -202,7 +202,7 @@
<li v-for="(i, index) in active.achievement" :key="index">
<Row :gutter="10" type="flex" align="middle">
<Col class="text-distinguishing-letter">
<HtmlLink :text="i.username" :is-poptip="false" :href="`/space/${i.id}`"></HtmlLink>
<HtmlLink :text="i.username" :is-poptip="false" :href="`/space/${i.id}?username=${i.username}`"></HtmlLink>
</Col>
<Col flex="1">
<Divider dashed style="margin: 0"></Divider>
Expand Down Expand Up @@ -414,7 +414,7 @@ export default new Application({
data: [{xAxis: 1}, {xAxis: 3}, {xAxis: 5}, {xAxis: 7}]
},
areaStyle: {
opacity: .2,
opacity: .5,
color: i.lineColor
},
data: []
Expand Down Expand Up @@ -567,7 +567,7 @@ export default new Application({
.chart-min {
width: 100%;
height: 250px;
height: 350px;
}
.sitestats-ul {
Expand Down

0 comments on commit c061ed9

Please sign in to comment.