Skip to content

Commit

Permalink
Merge pull request #954 from liyasthomas/refactor/imports
Browse files Browse the repository at this point in the history
Improving SEO
  • Loading branch information
liyasthomas committed Jun 21, 2020
2 parents 379d4f1 + 6ad2da1 commit 307e44a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
10 changes: 5 additions & 5 deletions components/layout/sidenav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<i class="material-icons">settings</i>
</nuxt-link>
</nav>
<div v-if="$route.path === '/'">
<div v-if="$route.path == '/'">
<nav class="secondary-nav">
<ul>
<li>
Expand All @@ -80,7 +80,7 @@
</ul>
</nav>
</div>
<div v-else-if="$route.path === '/realtime'">
<div v-else-if="$route.path.includes('/realtime')">
<nav class="secondary-nav">
<ul>
<li>
Expand All @@ -96,7 +96,7 @@
</ul>
</nav>
</div>
<div v-else-if="$route.path === '/graphql'">
<div v-else-if="$route.path.includes('/graphql')">
<nav class="secondary-nav">
<ul>
<li>
Expand All @@ -122,7 +122,7 @@
</ul>
</nav>
</div>
<div v-else-if="$route.path === '/doc'">
<div v-else-if="$route.path.includes('/doc')">
<nav class="secondary-nav">
<ul>
<li>
Expand All @@ -138,7 +138,7 @@
</ul>
</nav>
</div>
<div v-else-if="$route.path === '/settings'">
<div v-else-if="$route.path.includes('/settings')">
<nav class="secondary-nav">
<ul>
<li>
Expand Down
4 changes: 2 additions & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
host: "0.0.0.0", // default: localhost
},
head: {
title: `${options.name} \u2022 ${options.shortDescription}`,
title: `${options.name} ${options.shortDescription}`,
meta: [
{
name: "keywords",
Expand All @@ -49,7 +49,7 @@ export default {
},
{
itemprop: "name",
content: `${options.name} \u2022 ${options.shortDescription}`,
content: `${options.name} ${options.shortDescription}`,
},
{
itemprop: "description",
Expand Down
7 changes: 5 additions & 2 deletions pages/doc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,12 @@ export default {
"pw-section": () => import("~/components/layout/section"),
Editor: AceEditor,
},
data() {
return {
collectionJSON: "[]",
items: [],
}
},
methods: {
uploadCollection() {
this.rawInput = true
Expand Down Expand Up @@ -352,5 +350,10 @@ export default {
}
},
},
head() {
return {
title: `Documentation • ${this.$store.state.name}`,
}
},
}
</script>
7 changes: 5 additions & 2 deletions pages/graphql.vue
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ export default {
},
}
},
computed: {
url: {
get() {
Expand Down Expand Up @@ -445,7 +444,6 @@ export default {
mounted() {
if (this.$store.state.gql.schemaIntrospection && this.$store.state.gql.schema) {
const gqlSchema = gql.buildClientSchema(JSON.parse(this.$store.state.gql.schemaIntrospection))
this.getDocsFromSchema(gqlSchema)
}
},
Expand Down Expand Up @@ -744,5 +742,10 @@ export default {
})
},
},
head() {
return {
title: `GraphQL • ${this.$store.state.name}`,
}
},
}
</script>
5 changes: 5 additions & 0 deletions pages/realtime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ export default {
socketio: () => import("~/components/realtime/socketio"),
mqtt: () => import("~/components/realtime/mqtt"),
},
head() {
return {
title: `Realtime • ${this.$store.state.name}`,
}
},
}
</script>
10 changes: 5 additions & 5 deletions pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ export default {
login: () => import("~/components/firebase/login"),
logout: () => import("~/components/firebase/logout"),
},
data() {
return {
// NOTE:: You need to first set the CSS for your theme in /assets/css/themes.scss
Expand Down Expand Up @@ -327,7 +326,6 @@ export default {
fb,
}
},
watch: {
proxySettings: {
deep: true,
Expand All @@ -337,7 +335,6 @@ export default {
},
},
},
methods: {
applyTheme({ class: name, color, aceEditor }) {
this.applySetting("THEME_CLASS", name)
Expand Down Expand Up @@ -409,12 +406,10 @@ export default {
}
},
},
beforeMount() {
this.settings.THEME_CLASS = document.documentElement.className
this.settings.THEME_COLOR = this.getActiveColor()
},
computed: {
proxySettings() {
return {
Expand All @@ -423,5 +418,10 @@ export default {
}
},
},
head() {
return {
title: `Settings • ${this.$store.state.name}`,
}
},
}
</script>
1 change: 1 addition & 0 deletions store/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ export default () => ({
clientId: "",
scope: "",
},
name: "Postwoman",
})

0 comments on commit 307e44a

Please sign in to comment.