Skip to content

Commit ebfd197

Browse files
committed
Remove nuxt-children
1 parent ac38372 commit ebfd197

File tree

4 files changed

+8
-27
lines changed

4 files changed

+8
-27
lines changed

components/navigation.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@
6363
>
6464
Blog
6565
</div>
66-
<nuxt-link
67-
class="c-navigation-link"
68-
to="/talks"
69-
@click.native="hideNavigation"
66+
<div
67+
class="c-navigation-link c-navigation-link--wip"
7068
>
7169
Talks
72-
</nuxt-link>
70+
</div>
7371
</div>
7472
<div
7573
class="c-navigation-links-donate"

pages/talks/piter.vue renamed to pages/piter.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ this is a very long line which we normally shouldn't be using`,
139139
}
140140
},
141141
},
142+
created: function() {
143+
this.$store.state.presentation.isLive = true
144+
},
142145
}
143146
</script>
144147

File renamed without changes.

pages/talks.vue

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22
<div
33
class="p-talks"
44
>
5-
<template v-if="$store.state.presentation.isLive">
6-
<nuxt-child/>
7-
</template>
85
<section
9-
v-else
106
class="p-index-section u-lineLength u-container u-section"
117
>
128
<h1>Talks</h1>
139
<ul>
14-
<li
15-
v-for="talk of talks"
16-
:key="talk"
17-
>
10+
<li>
1811
<nuxt-link
19-
:to="`/${$route.path}/${talk}`"
12+
to="/piter"
2013
class="c-navigation-link"
2114
>
2215
{{ talk }}
@@ -29,19 +22,6 @@
2922

3023
<script>
3124
export default {
32-
computed: {
33-
talks() {
34-
const files = require.context('./talks', true, /\.vue$/)
35-
const filenames = files
36-
.keys()
37-
.map(name => name.replace('./', '').replace('.vue', ''))
38-
return filenames
39-
},
40-
},
41-
mounted: function() {
42-
this.$store.state.presentation.isLive =
43-
this.$route.path.split('/').length > 2
44-
},
4525
transition() {
4626
return {
4727
mode: '',

0 commit comments

Comments
 (0)