From 2c0e17cb977a1e8782799b337df8b1583d019906 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 12 Oct 2015 22:36:01 +0200 Subject: bootstraping react --- src/web/js/constants/JarrConstants.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/web/js/constants/JarrConstants.js (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js new file mode 100644 index 00000000..a0850283 --- /dev/null +++ b/src/web/js/constants/JarrConstants.js @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2014-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * TodoConstants + */ + +var keyMirror = require('keymirror'); + +module.exports = { + MenuActionTypes: keyMirror({ + RELOAD_MENU: null, + MENU_FILTER_ALL: null, + MENU_FILTER_UNREAD: null, + MENU_FILTER_ERROR: null, + }), + MiddlePanelActionTypes: keyMirror({ + RELOAD_MIDDLE_PANEL: null, + MIDDLE_PANEL_PARENT_FILTER: null, + MIDDLE_PANEL_FILTER_ALL: null, + MIDDLE_PANEL_FILTER_UNREAD: null, + MIDDLE_PANEL_FILTER_LIKED: null, + }), +}; -- cgit From 94a18fbdecaa798d67a5bf7ad0f2b8ee4e0c7851 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Sat, 23 Jan 2016 03:21:41 +0100 Subject: meh, kinda works, sleep now --- src/web/js/constants/JarrConstants.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js index a0850283..3d334ee3 100644 --- a/src/web/js/constants/JarrConstants.js +++ b/src/web/js/constants/JarrConstants.js @@ -21,8 +21,6 @@ module.exports = { MiddlePanelActionTypes: keyMirror({ RELOAD_MIDDLE_PANEL: null, MIDDLE_PANEL_PARENT_FILTER: null, - MIDDLE_PANEL_FILTER_ALL: null, - MIDDLE_PANEL_FILTER_UNREAD: null, - MIDDLE_PANEL_FILTER_LIKED: null, + MIDDLE_PANEL_FILTER: null, }), }; -- cgit From 3644d4ef190d2d509c64fdf5c29382cb8a41e235 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Sat, 23 Jan 2016 12:47:18 +0100 Subject: doing some design wip toogle read / like --- src/web/js/constants/JarrConstants.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js index 3d334ee3..d00f24a8 100644 --- a/src/web/js/constants/JarrConstants.js +++ b/src/web/js/constants/JarrConstants.js @@ -14,13 +14,13 @@ var keyMirror = require('keymirror'); module.exports = { MenuActionTypes: keyMirror({ RELOAD_MENU: null, - MENU_FILTER_ALL: null, - MENU_FILTER_UNREAD: null, - MENU_FILTER_ERROR: null, + PARENT_FILTER: null, + MENU_FILTER: null, }), MiddlePanelActionTypes: keyMirror({ + PARENT_FILTER: null, RELOAD_MIDDLE_PANEL: null, - MIDDLE_PANEL_PARENT_FILTER: null, MIDDLE_PANEL_FILTER: null, + CHANGE_ATTR: null, }), }; -- cgit From f0dd6d526160fdb98a5f55b4e45b84652590df58 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 25 Jan 2016 12:40:23 +0100 Subject: bootstraping right panel --- src/web/js/constants/JarrConstants.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js index d00f24a8..c7b419e4 100644 --- a/src/web/js/constants/JarrConstants.js +++ b/src/web/js/constants/JarrConstants.js @@ -23,4 +23,7 @@ module.exports = { MIDDLE_PANEL_FILTER: null, CHANGE_ATTR: null, }), + RightPanelActionTypes: keyMirror({ + LOAD_RIGHT_PANEL: null, + }), }; -- cgit From 15c4ed6bebdeb277c24bd92dab5bba900fc90de4 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 25 Jan 2016 13:14:06 +0100 Subject: redoing constant, handling read / unread in menu, removing bad optim for loading articles --- src/web/js/constants/JarrConstants.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js index c7b419e4..ca5eacc7 100644 --- a/src/web/js/constants/JarrConstants.js +++ b/src/web/js/constants/JarrConstants.js @@ -11,19 +11,12 @@ var keyMirror = require('keymirror'); -module.exports = { - MenuActionTypes: keyMirror({ +module.exports = keyMirror({ RELOAD_MENU: null, PARENT_FILTER: null, MENU_FILTER: null, - }), - MiddlePanelActionTypes: keyMirror({ - PARENT_FILTER: null, + CHANGE_ATTR: null, RELOAD_MIDDLE_PANEL: null, MIDDLE_PANEL_FILTER: null, - CHANGE_ATTR: null, - }), - RightPanelActionTypes: keyMirror({ LOAD_RIGHT_PANEL: null, - }), -}; +}); -- cgit From 4098a0de815013c521618b6419d91f997c986ef0 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Fri, 29 Jan 2016 14:26:02 +0100 Subject: draft displaying article --- src/web/js/constants/JarrConstants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js index ca5eacc7..4a673cf8 100644 --- a/src/web/js/constants/JarrConstants.js +++ b/src/web/js/constants/JarrConstants.js @@ -18,5 +18,5 @@ module.exports = keyMirror({ CHANGE_ATTR: null, RELOAD_MIDDLE_PANEL: null, MIDDLE_PANEL_FILTER: null, - LOAD_RIGHT_PANEL: null, + LOAD_ARTICLE: null, }); -- cgit From 9ad36d04c3a352afc6f9a1322c7401200332877a Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Tue, 2 Feb 2016 23:05:16 +0100 Subject: reload and fold all button --- src/web/js/constants/JarrConstants.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/web/js/constants') diff --git a/src/web/js/constants/JarrConstants.js b/src/web/js/constants/JarrConstants.js index 4a673cf8..0ea42aad 100644 --- a/src/web/js/constants/JarrConstants.js +++ b/src/web/js/constants/JarrConstants.js @@ -12,6 +12,7 @@ var keyMirror = require('keymirror'); module.exports = keyMirror({ + TOGGLE_MENU_FOLD: null, RELOAD_MENU: null, PARENT_FILTER: null, MENU_FILTER: null, -- cgit