Skip to content

Commit

Permalink
Upgrade packages and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeXC committed Nov 27, 2019
1 parent b920ead commit e4bb983
Show file tree
Hide file tree
Showing 34 changed files with 367 additions and 302 deletions.
2 changes: 1 addition & 1 deletion components/TopicList.vue
Expand Up @@ -20,8 +20,8 @@
<mu-card-actions>
<div class="chip-container">
<mu-chip
@click="toNode(item.node.name)"
class="chip"
@click="toNode(item.node.name)"
>
<mu-avatar :size="32">
<img
Expand Down
8 changes: 4 additions & 4 deletions components/TopicListChalk.vue
Expand Up @@ -9,8 +9,8 @@
class="clearfix"
>
<span
@click="toTopic(item.id)"
class="link"
@click="toTopic(item.id)"
>
{{ item.title }}
</span>
Expand All @@ -25,8 +25,8 @@
<div>
<div class="card-content">
<span
@click="toMember(item.member.username)"
class="link"
@click="toMember(item.member.username)"
>
{{ item.member.username }}
</span>
Expand All @@ -35,9 +35,9 @@
</div>
<div class="card-action">
<el-button
@click="toNode(item.node.name)"
size="small"
round
@click="toNode(item.node.name)"
>
<mu-avatar :size="29">
<img
Expand All @@ -49,8 +49,8 @@
</el-button>
<el-badge :value="item.replies">
<el-button
@click="toTopic(item.id)"
size="small"
@click="toTopic(item.id)"
>
评论
</el-button>
Expand Down
22 changes: 11 additions & 11 deletions layouts/mobile.vue
Expand Up @@ -3,8 +3,8 @@
<mu-appbar title="N2EX">
<mu-button
slot="left"
@click="toggle()"
icon
@click="toggle()"
>
<mu-icon value="menu" />
</mu-button>
Expand All @@ -23,62 +23,62 @@
<mu-appbar title="Tabs" />
<mu-list @itemClick="docked ? '' : toggle()">
<mu-list-item
@click="toTab('tech')"
button
@click="toTab('tech')"
>
<mu-list-item-title>技术</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('play')"
button
@click="toTab('play')"
>
<mu-list-item-title>好玩</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('apple')"
button
@click="toTab('apple')"
>
<mu-list-item-title>Apple</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('jobs')"
button
@click="toTab('jobs')"
>
<mu-list-item-title>酷工作</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('deals')"
button
@click="toTab('deals')"
>
<mu-list-item-title>交易</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('city')"
button
@click="toTab('city')"
>
<mu-list-item-title>城市</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('qna')"
button
@click="toTab('qna')"
>
<mu-list-item-title>问与答</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toHome()"
button
@click="toHome()"
>
<mu-list-item-title>最热</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toNew()"
button
@click="toNew()"
>
<mu-list-item-title>最新</mu-list-item-title>
</mu-list-item>
<mu-list-item
@click="toTab('nodes')"
button
@click="toTab('nodes')"
>
<mu-list-item-title>节点</mu-list-item-title>
</mu-list-item>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -17,19 +17,19 @@
"@nuxtjs/axios": "^5.8.0",
"@nuxtjs/pwa": "^3.0.0-beta.19",
"cross-env": "^6.0.3",
"element-ui": "^2.12.0",
"element-ui": "^2.13.0",
"koa": "^2.11.0",
"muse-ui": "^3.0.2",
"nuxt": "^2.10.2"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^1.1.2",
"@nuxtjs/eslint-config": "^2.0.0",
"@nuxtjs/eslint-module": "^1.1.0",
"@vue/test-utils": "^1.0.0-beta.29",
"babel-eslint": "^10.0.3",
"babel-jest": "^25.0.0",
"codecov": "^3.6.1",
"eslint": "^6.7.0",
"eslint": "^6.7.1",
"eslint-plugin-nuxt": "^0.5.0",
"jest": "^25.0.0",
"node-sass": "^4.13.0",
Expand Down
10 changes: 5 additions & 5 deletions pages/index.vue
Expand Up @@ -6,11 +6,6 @@
import TopicListChalk from '~/components/TopicListChalk'
export default {
head () {
return {
titleTemplate: '%s - 最热'
}
},
components: {
TopicListChalk
},
Expand All @@ -20,6 +15,11 @@ export default {
return {
hotList: data
}
},
head () {
return {
titleTemplate: '%s - 最热'
}
}
}
</script>
10 changes: 5 additions & 5 deletions pages/m/index.vue
Expand Up @@ -6,11 +6,6 @@
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - 最热'
}
},
components: {
TopicList
},
Expand All @@ -21,6 +16,11 @@ export default {
hotList: data
}
},
head () {
return {
titleTemplate: '%s - 最热'
}
},
layout: 'mobile'
}
</script>
18 changes: 9 additions & 9 deletions pages/m/member/_name.vue
Expand Up @@ -22,9 +22,9 @@
<div class="chip-container">
<mu-chip
v-if="user.website"
@click="toWebsite(user.website)"
class="chip"
color="greenA100"
@click="toWebsite(user.website)"
>
<mu-avatar
:size="32"
Expand All @@ -36,9 +36,9 @@
</mu-chip>
<mu-chip
v-if="user.twitter"
@click="toTwitter(user.twitter)"
class="chip"
color="lightBlue100"
@click="toTwitter(user.twitter)"
>
<mu-avatar :size="32">
<img
Expand All @@ -50,9 +50,9 @@
</mu-chip>
<mu-chip
v-if="user.github"
@click="toGithub(user.github)"
class="chip"
color="grey300"
@click="toGithub(user.github)"
>
<mu-avatar
:size="32"
Expand All @@ -67,9 +67,9 @@
</mu-chip>
<mu-chip
v-if="user.location"
@click="toMap(user.location)"
class="chip"
color="deepOrange100"
@click="toMap(user.location)"
>
<mu-avatar
:size="32"
Expand Down Expand Up @@ -103,11 +103,6 @@
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - 用户详情'
}
},
components: {
TopicList
},
Expand Down Expand Up @@ -140,6 +135,11 @@ export default {
window.open(`https://www.google.com/maps?q=${location}`)
}
},
head () {
return {
titleTemplate: '%s - 用户详情'
}
},
layout: 'mobile'
}
</script>
Expand Down
10 changes: 5 additions & 5 deletions pages/m/new.vue
Expand Up @@ -6,11 +6,6 @@
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - 最新'
}
},
components: {
TopicList
},
Expand All @@ -21,6 +16,11 @@ export default {
newList: data
}
},
head () {
return {
titleTemplate: '%s - 最新'
}
},
layout: 'mobile'
}
</script>
10 changes: 5 additions & 5 deletions pages/m/node/_name.vue
Expand Up @@ -44,11 +44,6 @@
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - 节点详情'
}
},
components: {
TopicList
},
Expand All @@ -67,6 +62,11 @@ export default {
topicList
}
},
head () {
return {
titleTemplate: '%s - 节点详情'
}
},
layout: 'mobile'
}
</script>
Expand Down
10 changes: 5 additions & 5 deletions pages/m/tab/apple.vue
Expand Up @@ -7,11 +7,6 @@ import { fetchTopicList } from '~/utils'
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - Apple'
}
},
components: {
TopicList
},
Expand All @@ -23,6 +18,11 @@ export default {
appleList
}
},
head () {
return {
titleTemplate: '%s - Apple'
}
},
layout: 'mobile'
}
</script>
10 changes: 5 additions & 5 deletions pages/m/tab/city.vue
Expand Up @@ -7,11 +7,6 @@ import { fetchTopicList } from '~/utils'
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - 城市'
}
},
components: {
TopicList
},
Expand All @@ -23,6 +18,11 @@ export default {
cityList
}
},
head () {
return {
titleTemplate: '%s - 城市'
}
},
layout: 'mobile'
}
</script>
10 changes: 5 additions & 5 deletions pages/m/tab/creative.vue
Expand Up @@ -7,11 +7,6 @@ import { fetchTopicList } from '~/utils'
import TopicList from '~/components/TopicList'
export default {
head () {
return {
titleTemplate: '%s - 创意'
}
},
components: {
TopicList
},
Expand All @@ -23,6 +18,11 @@ export default {
creativeList
}
},
head () {
return {
titleTemplate: '%s - 创意'
}
},
layout: 'mobile'
}
</script>

0 comments on commit e4bb983

Please sign in to comment.