-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25d6c43
commit d88675f
Showing
19 changed files
with
518 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/components/layout/modals/TheSettingsModal/AppSettings/LyricsOptions.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div class="main-settings-options-block"> | ||
<AnnotationsOption /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import AnnotationsOption from './LyricsOptions/AnnotationsOption.vue' | ||
export default { | ||
name: 'LyricsOptions', | ||
components: { | ||
AnnotationsOption | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="sass" scoped></style> |
45 changes: 45 additions & 0 deletions
45
...components/layout/modals/TheSettingsModal/AppSettings/LyricsOptions/AnnotationsOption.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div class="option"> | ||
<BaseHeader | ||
class="option-header" | ||
tag="h4" | ||
:text="annotationsText" | ||
/> | ||
|
||
<BaseToggle | ||
store-key="lyrics.isWithAnnotations" | ||
:is-checked="isLyricsWithAnnotations" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { | ||
mapState | ||
} from 'vuex' | ||
import BaseHeader from '@/components/BaseHeader.vue' | ||
import BaseToggle from '@/components/toggles/BaseToggle.vue' | ||
export default { | ||
name: 'AnnotationsOption', | ||
components: { | ||
BaseHeader, | ||
BaseToggle | ||
}, | ||
computed: { | ||
...mapState( | ||
'lyrics', | ||
{ | ||
isLyricsWithAnnotations: 'isWithAnnotations' | ||
} | ||
), | ||
annotationsText () { | ||
return this.$t( | ||
'settings.options.app.lyrics.annotations' | ||
) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="sass" scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/components/modals/track/BaseTrackLyricsModal/ContentSection.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div class="main-lyrics-container"> | ||
<p class="lyrics"> | ||
<LyricItem | ||
v-for="(lyricData, index) in lyrics" | ||
:key="index" | ||
:lyric-data="lyricData" | ||
/> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import LyricItem from './ContentSection/LyricItem.vue' | ||
export default { | ||
name: 'ContentSection', | ||
components: { | ||
LyricItem | ||
}, | ||
props: { | ||
lyrics: { | ||
type: Array, | ||
default () { | ||
return [] | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="sass" scoped></style> |
37 changes: 37 additions & 0 deletions
37
src/components/modals/track/BaseTrackLyricsModal/ContentSection/LyricItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<LyricAnnotationItem | ||
v-if="annotationId" | ||
:lyric-data="lyricData" | ||
/> | ||
<span | ||
v-else | ||
v-text="lyricData" | ||
/> | ||
</template> | ||
|
||
<script> | ||
import LyricAnnotationItem from './LyricItem/LyricAnnotationItem.vue' | ||
export default { | ||
name: 'LyricItem', | ||
components: { | ||
LyricAnnotationItem | ||
}, | ||
props: { | ||
lyricData: { | ||
type: [ | ||
String, | ||
Object | ||
], | ||
required: true | ||
} | ||
}, | ||
computed: { | ||
annotationId () { | ||
return this.lyricData.annotation_id | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="sass" scoped></style> |
Oops, something went wrong.