From e71d0e711fa19c844aaded7f1abe3ff0fff2626e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Jun 2019 22:00:48 -0600 Subject: [PATCH] Update Timeline component --- resources/assets/js/components/Timeline.vue | 69 +-------------------- 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 1e29f8ae8..924d424a3 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -223,7 +223,7 @@

{{profile.display_name || 'loading...'}}

- +
@@ -247,28 +247,6 @@ -
-
-
-
- - -
- -
- - -
-
-

BETA FEATURES

-
Experimental features have been moved to the Labs settings page.
-
-
-
-
@@ -447,12 +425,10 @@ loading: true, replies: [], replyId: null, - optionMenuState: false, modes: { 'mod': false, 'dark': false, 'notify': true, - 'infinite': true, 'distractionFree': false }, followers: [], @@ -932,49 +908,6 @@ } }, - toggleOptionsMenu() { - this.optionMenuState = !this.optionMenuState; - }, - - modeModToggle() { - this.modes.mod = !this.modes.mod; - //window.ls.set('pixelfed-classicui-settings', this.modes); - }, - - modeNotifyToggle() { - this.modes.notify = !this.modes.notify; - //window.ls.set('pixelfed-classicui-settings', this.modes); - }, - - modeDarkToggle() { - // todo: more graceful stylesheet change - if(this.modes.dark == true) { - axios.post('/i/metro/dark-mode', { - mode: 'light' - }).then(res => { - $('link[data-stylesheet=dark]') - .attr('data-stylesheet', 'light') - .attr('href', '/css/app.css?v=' + Date.now()); - this.modes.dark = false; - }); - } else { - axios.post('/i/metro/dark-mode', { - mode: 'dark' - }).then(res => { - $('link[data-stylesheet=light]') - .attr('data-stylesheet', 'dark') - .attr('href', '/css/appdark.css?v=' + Date.now()); - this.modes.dark = true; - }); - } - //window.ls.set('pixelfed-classicui-settings', this.modes); - }, - - modeInfiniteToggle() { - this.modes.infinite = !this.modes.infinite - //window.ls.set('pixelfed-classicui-settings', this.modes); - }, - followingModal() { if(this.following.length > 0) { this.$refs.followingModal.show();