diff --git a/src/renderer/components/distraction-settings/distraction-settings.js b/src/renderer/components/distraction-settings/distraction-settings.js new file mode 100644 index 00000000..104c1edc --- /dev/null +++ b/src/renderer/components/distraction-settings/distraction-settings.js @@ -0,0 +1,56 @@ +import Vue from 'vue' +import { mapActions } from 'vuex' +import FtCard from '../ft-card/ft-card.vue' +import FtToggleSwitch from '../ft-toggle-switch/ft-toggle-switch.vue' +import FtButton from '../ft-button/ft-button.vue' +import FtSelect from '../ft-select/ft-select.vue' +import FtFlexBox from '../ft-flex-box/ft-flex-box.vue' + +export default Vue.extend({ + name: 'PlayerSettings', + components: { + 'ft-card': FtCard, + 'ft-toggle-switch': FtToggleSwitch, + 'ft-button': FtButton, + 'ft-select': FtSelect, + 'ft-flex-box': FtFlexBox + }, + computed: { + hideVideoViews: function () { + return this.$store.getters.getHideVideoViews + }, + hideVideoLikesAndDislikes: function () { + return this.$store.getters.getHideVideoLikesAndDislikes + }, + hideChannelSubscriptions: function () { + return this.$store.getters.getHideChannelSubscriptions + }, + hideCommentLikes: function () { + return this.$store.getters.getHideCommentLikes + }, + hideRecommendedVideos: function () { + return this.$store.getters.getHideRecommendedVideos + }, + hideTrendingVideos: function () { + return this.$store.getters.getHideTrendingVideos + }, + hidePopularVideos: function () { + return this.$store.getters.getHidePopularVideos + }, + hideLiveChat: function () { + return this.$store.getters.getHideLiveChat + } + }, + methods: { + ...mapActions([ + 'updateHideVideoViews', + 'updateHideVideoLikesAndDislikes', + 'updateHideChannelSubscriptions', + 'updateHideCommentLikes', + 'updateHideRecommendedVideos', + 'updateHideTrendingVideos', + 'updateHidePopularVideos', + 'updateHideLiveChat' + ]) + } +}) diff --git a/src/renderer/components/distraction-settings/distraction-settings.sass b/src/renderer/components/distraction-settings/distraction-settings.sass new file mode 100644 index 00000000..05cb0dfb --- /dev/null +++ b/src/renderer/components/distraction-settings/distraction-settings.sass @@ -0,0 +1 @@ +@use "../../sass-partials/settings" diff --git a/src/renderer/components/distraction-settings/distraction-settings.vue b/src/renderer/components/distraction-settings/distraction-settings.vue new file mode 100644 index 00000000..0f9dfede --- /dev/null +++ b/src/renderer/components/distraction-settings/distraction-settings.vue @@ -0,0 +1,85 @@ + + +