Specify lang for imported style files

This commit is contained in:
AkiraFukushima 2020-08-20 22:38:30 +09:00
parent 801903c2ff
commit 88ab922273
8 changed files with 38 additions and 38 deletions

View File

@ -57,7 +57,7 @@ export default {
unreadNotification: state => state.TimelineSpace.unreadNotification
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -83,7 +83,7 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
@ -113,14 +113,14 @@ export default {
}
},
watch: {
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState && this.heading) {
this.$store.commit('TimelineSpace/Contents/DirectMessages/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -253,4 +253,4 @@ export default {
}
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -55,7 +55,7 @@ export default {
filter: state => state.TimelineSpace.Contents.Hashtag.Tag.filter
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -78,27 +78,27 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
},
watch: {
tag: function(newTag, _oldTag) {
tag: function (newTag, _oldTag) {
this.$store.commit('TimelineSpace/Contents/changeLoading', true)
this.reset()
this.load(newTag).finally(() => {
this.$store.commit('TimelineSpace/Contents/changeLoading', false)
})
},
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState && this.heading) {
this.$store.commit('TimelineSpace/Contents/Hashtag/Tag/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -257,4 +257,4 @@ export default {
transition: all 0.5s;
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -234,4 +234,4 @@ export default {
}
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -55,7 +55,7 @@ export default {
filter: state => state.TimelineSpace.Contents.Lists.Show.filter
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -79,26 +79,26 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
},
watch: {
list_id: function() {
list_id: function () {
this.$store.commit('TimelineSpace/Contents/changeLoading', true)
this.load().finally(() => {
this.$store.commit('TimelineSpace/Contents/changeLoading', false)
})
},
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState && this.heading) {
this.$store.commit('TimelineSpace/Contents/Lists/Show/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -257,4 +257,4 @@ export default {
transition: all 0.5s;
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -57,7 +57,7 @@ export default {
unreadNotification: state => state.TimelineSpace.unreadNotification
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -83,7 +83,7 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
@ -113,14 +113,14 @@ export default {
}
},
watch: {
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState && this.heading) {
this.$store.commit('TimelineSpace/Contents/Local/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -246,4 +246,4 @@ export default {
}
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -59,7 +59,7 @@ export default {
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
...mapGetters('TimelineSpace/Contents/Mentions', ['mentions']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -78,7 +78,7 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
@ -101,14 +101,14 @@ export default {
}
},
watch: {
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState && this.heading) {
this.$store.commit('TimelineSpace/Contents/Mentions/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -225,4 +225,4 @@ export default {
}
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -53,7 +53,7 @@ export default {
filter: state => state.TimelineSpace.Contents.Notifications.filter
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -74,7 +74,7 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
@ -97,14 +97,14 @@ export default {
}
},
watch: {
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState >= 0 && this.heading) {
this.$store.commit('TimelineSpace/Contents/Notifications/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -225,4 +225,4 @@ export default {
}
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>

View File

@ -57,7 +57,7 @@ export default {
unreadNotification: state => state.TimelineSpace.unreadNotification
}),
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
shortcutEnabled: function() {
shortcutEnabled: function () {
if (this.modalOpened) {
return false
}
@ -83,7 +83,7 @@ export default {
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
const previousFocusedId = this.focusedId
this.focusedId = 0
this.$nextTick(function() {
this.$nextTick(function () {
this.focusedId = previousFocusedId
})
})
@ -113,14 +113,14 @@ export default {
}
},
watch: {
startReload: function(newState, oldState) {
startReload: function (newState, oldState) {
if (!oldState && newState) {
this.reload().finally(() => {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
})
}
},
focusedId: function(newState, _oldState) {
focusedId: function (newState, _oldState) {
if (newState && this.heading) {
this.$store.commit('TimelineSpace/Contents/Public/changeHeading', false)
} else if (newState === null && !this.heading) {
@ -246,4 +246,4 @@ export default {
}
}
</style>
<style src="@/assets/timeline-transition.scss"></style>
<style lang="scss" src="@/assets/timeline-transition.scss"></style>