From 52fe01e4d8c6b9c783f8606ac1ece6a66371508a Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Mon, 3 Sep 2018 14:43:10 +0900 Subject: mock features panel --- src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index c455c18c..9d7ecea0 100644 --- a/src/App.js +++ b/src/App.js @@ -2,8 +2,9 @@ import UserPanel from './components/user_panel/user_panel.vue' import NavPanel from './components/nav_panel/nav_panel.vue' import Notifications from './components/notifications/notifications.vue' import UserFinder from './components/user_finder/user_finder.vue' -import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue' +import FeaturesPanel from './components/features_panel/features_panel.vue' import InstanceSpecificPanel from './components/instance_specific_panel/instance_specific_panel.vue' +import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue' import ChatPanel from './components/chat_panel/chat_panel.vue' export default { -- cgit v1.2.3-70-g09d2 From 07ef43c7b5efb875eccdbdb328a2fd9b50c99c53 Mon Sep 17 00:00:00 2001 From: hakabahitoyo Date: Mon, 3 Sep 2018 14:55:40 +0900 Subject: debug --- src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index 9d7ecea0..bdd97b85 100644 --- a/src/App.js +++ b/src/App.js @@ -14,8 +14,9 @@ export default { NavPanel, Notifications, UserFinder, - WhoToFollowPanel, + FeaturesPanel, InstanceSpecificPanel, + WhoToFollowPanel, ChatPanel }, data: () => ({ -- cgit v1.2.3-70-g09d2 From 38b683b30cd8ffd2fc4ab444f1a4690dc1ed3808 Mon Sep 17 00:00:00 2001 From: hakabahitoyo Date: Mon, 3 Sep 2018 15:57:22 +0900 Subject: update --- src/App.js | 4 ++-- src/App.vue | 2 +- src/components/features_panel/features_panel.vue | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index bdd97b85..be6548f3 100644 --- a/src/App.js +++ b/src/App.js @@ -2,8 +2,8 @@ import UserPanel from './components/user_panel/user_panel.vue' import NavPanel from './components/nav_panel/nav_panel.vue' import Notifications from './components/notifications/notifications.vue' import UserFinder from './components/user_finder/user_finder.vue' -import FeaturesPanel from './components/features_panel/features_panel.vue' import InstanceSpecificPanel from './components/instance_specific_panel/instance_specific_panel.vue' +import FeaturesPanel from './components/features_panel/features_panel.vue' import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue' import ChatPanel from './components/chat_panel/chat_panel.vue' @@ -14,8 +14,8 @@ export default { NavPanel, Notifications, UserFinder, - FeaturesPanel, InstanceSpecificPanel, + FeaturesPanel, WhoToFollowPanel, ChatPanel }, diff --git a/src/App.vue b/src/App.vue index 8480d1b6..bfe1f760 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,8 +27,8 @@ diff --git a/src/components/features_panel/features_panel.vue b/src/components/features_panel/features_panel.vue index 92fdb1ff..5ec4d255 100644 --- a/src/components/features_panel/features_panel.vue +++ b/src/components/features_panel/features_panel.vue @@ -6,13 +6,13 @@ Features -
+
  • Media proxy
  • Who to follow
  • Scope options
  • Formatting options
  • -
  • Text limit={{textlimit}}
  • +
  • Text limit = {{textlimit}}
@@ -22,4 +22,7 @@ -- cgit v1.2.3-70-g09d2 From 2db991fc7fb1eda11b94d585d3b56f9d94c81286 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 9 Sep 2018 19:36:13 +0300 Subject: some recategorization of options... --- src/App.js | 6 ++-- src/components/login_form/login_form.js | 2 +- src/components/registration/registration.js | 4 +-- src/components/settings/settings.js | 3 +- src/components/settings/settings.vue | 16 +++++---- src/main.js | 13 ++++--- src/modules/config.js | 28 +-------------- src/modules/interface.js | 53 +++++++++++++++++++++++++++++ 8 files changed, 78 insertions(+), 47 deletions(-) create mode 100644 src/modules/interface.js (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index be6548f3..251fdfca 100644 --- a/src/App.js +++ b/src/App.js @@ -60,10 +60,10 @@ export default { }, logo () { return this.$store.state.config.logo }, style () { return { 'background-image': `url(${this.background})` } }, - sitename () { return this.$store.state.config.name }, + sitename () { return this.$store.state.interface.name }, chat () { return this.$store.state.chat.channel.state === 'joined' }, - suggestionsEnabled () { return this.$store.state.config.suggestionsEnabled }, - showInstanceSpecificPanel () { return this.$store.state.config.showInstanceSpecificPanel } + suggestionsEnabled () { return this.$store.state.interface.suggestionsEnabled }, + showInstanceSpecificPanel () { return this.$store.state.interface.showInstanceSpecificPanel } }, methods: { activatePanel (panelName) { diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js index a117b76f..12144324 100644 --- a/src/components/login_form/login_form.js +++ b/src/components/login_form/login_form.js @@ -5,7 +5,7 @@ const LoginForm = { }), computed: { loggingIn () { return this.$store.state.users.loggingIn }, - registrationOpen () { return this.$store.state.config.registrationOpen } + registrationOpen () { return this.$store.state.interface.registrationOpen } }, methods: { submit () { diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 73840608..e53fa4e5 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -5,11 +5,11 @@ const registration = { registering: false }), created () { - if ((!this.$store.state.config.registrationOpen && !this.token) || !!this.$store.state.users.currentUser) { + if ((!this.$store.state.interface.registrationOpen && !this.token) || !!this.$store.state.users.currentUser) { this.$router.push('/main/all') } // Seems like this doesn't work at first page open for some reason - if (this.$store.state.config.registrationOpen && this.token) { + if (this.$store.state.interface.registrationOpen && this.token) { this.$router.push('/registration') } }, diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 5e28c1af..6d481820 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -44,8 +44,7 @@ const settings = { return this.$store.state.users.currentUser }, currentSaveStateNotice () { - console.log(this.$store.state.config._internal.currentSaveStateNotice && this.$store.state.config._internal.currentSaveStateNotice.error) - return this.$store.state.config._internal.currentSaveStateNotice + return this.$store.state.interface.settings.currentSaveStateNotice } }, watch: { diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index be7c64a7..481cdf09 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -5,15 +5,17 @@ {{$t('settings.settings')}} -