Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1d1bab1

Browse files
committed
Style changes
1 parent 74d3310 commit 1d1bab1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Chapter 7: Vue
22

3-
Numbered branches (`0` and up) have the most up-to-date code (often newer than the most recent published revision of the book). When code has changed between book revisions, a new code version is created, and each branch is tagged, with the naming format `[step]_[version]`. For instance, revision `r7` of the book was published with version `1.0.0` of this repo, so the tag for step 2 was [`2_1.0.0`](https://github.com/GraphQLGuide/guide-vue/releases/tag/2_1.1.0).
3+
Numbered branches (`0` and up) have the most up-to-date code (often newer than the most recent published revision of the book). When code has changed between book revisions, a new code version is created, and each branch is tagged, with the naming format `[step]_[version]`. For instance, revision `r6` of the book was published with version `1.0.0` of this repo, so the tag for step 2 was [`2_1.0.0`](https://github.com/GraphQLGuide/guide-vue/releases/tag/2_1.1.0).
44

55
## Supporting
66

‎babel.config.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module.exports = {
2-
presets: [
3-
'@vue/cli-plugin-babel/preset'
4-
]
2+
presets: ['@vue/cli-plugin-babel/preset']
53
}

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "guide-vue",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

‎src/components/SectionList.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default {
4848
return {
4949
loading,
5050
error,
51-
noSections:computed(() =>sections.value.length===1),
52-
sections
51+
sections,
52+
noSections:computed(() =>sections.value.length===1)
5353
}
5454
}
5555
}

‎src/components/TableOfContents.vue‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<ul>
99
<li v-for="chapter of chapters" :key="chapter.id">
1010
<a @click="updateCurrentSection(chapter.id)">
11-
{{ (chapter.number ? chapter.number + '. ' : '') + chapter.title }}
11+
{{
12+
chapter.number ? `${chapter.number}. ${chapter.title}` : chapter.title
13+
}}
1214
</a>
1315
</li>
1416
</ul>
@@ -31,6 +33,8 @@ export default {
3133
SectionList
3234
},
3335
setup() {
36+
const currentSection = ref(PREFACE_ID)
37+
3438
const { result, loading, error } = useQuery(gql`
3539
query ChapterList {
3640
chapters {
@@ -43,8 +47,6 @@ export default {
4347
4448
const chapters = useResult(result, [])
4549
46-
const currentSection = ref(PREFACE_ID)
47-
4850
return {
4951
loading,
5052
error,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /