Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
6f470f3c
Commit
6f470f3c
authored
Mar 16, 2018
by
Abinaya Sudhir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://gitlab.iscpif.fr:20022/gargantext/purescript-gargantext
parents
76e18024
dd5645c9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
26 deletions
+28
-26
AddCorpusview.purs
src/AddCorpusview.purs
+2
-2
DocView.purs
src/DocView.purs
+3
-3
Landing.purs
src/Landing.purs
+2
-2
Navigation.purs
src/Navigation.purs
+19
-17
UserPage.purs
src/UserPage.purs
+2
-2
No files found.
src/AddCorpusview.purs
View file @
6f470f3c
...
...
@@ -89,8 +89,8 @@ performAction GO _ _ = void do
addcorpusviewSpec
:: forall props eff . Spec (console::CONSOLE, ajax::AJAX, dom::DOM | eff) State props Action
addcorpusviewSpec
= simpleSpec performAction render
layoutAddcorpus
:: forall props eff . Spec (console::CONSOLE, ajax::AJAX, dom::DOM | eff) State props Action
layoutAddcorpus
= simpleSpec performAction render
where
render :: Render State props Action
render dispatch _ state _ =
...
...
src/DocView.purs
View file @
6f470f3c
...
...
@@ -34,7 +34,7 @@ import Unsafe.Coerce (unsafeCoerce)
main :: forall e. Eff (dom:: DOM, console :: CONSOLE, ajax :: AJAX | e) Unit
main = do
case createReactSpec
spec
tdata of
case createReactSpec
layoutDocview
tdata of
{ spec, dispatcher } -> void $ do
document <- DOM.window >>= DOM.document
container <- unsafePartial (fromJust <$> DOM.querySelector (QuerySelector "#app") (DOM.htmlDocumentToParentNode document))
...
...
@@ -111,8 +111,8 @@ toggleNode sid (NNode iid open name ary) =
toggleNode sid a = a
spec
:: Spec _ State _ Action
spec
= simpleSpec performAction render
layoutDocview
:: Spec _ State _ Action
layoutDocview
= simpleSpec performAction render
where
render :: Render State _ Action
render dispatch _ state@(TableData d) _ =
...
...
src/Landing.purs
View file @
6f470f3c
...
...
@@ -97,8 +97,8 @@ imageEnter action = div [className "row"]
]
h
ome :: forall props eff . Spec (console::CONSOLE, ajax::AJAX, dom::DOM | eff) State props Action
h
ome = simpleSpec performAction render
layoutH
ome :: forall props eff . Spec (console::CONSOLE, ajax::AJAX, dom::DOM | eff) State props Action
layoutH
ome = simpleSpec performAction render
where
render :: Render State props Action
render dispatch _ state _ =
...
...
src/Navigation.purs
View file @
6f470f3c
...
...
@@ -147,29 +147,31 @@ pagesComponent s =
| eff
) AppState props Action
selectSpec Login = focus _loginState _loginAction LN.renderSpec
selectSpec Home = wrap $ focus _landingState _landingAction L.home
selectSpec AddCorpus = wrap $ focus _addCorpusState _addCorpusAction AC.addcorpusviewSpec
selectSpec DocView = wrap $ focus _docViewState _docViewAction DV.spec
selectSpec SearchView = wrap $ focus _searchState _searchAction S.searchSpec
selectSpec UserPage = wrap $ focus _userPageState _userPageAction UP.userPageSpec
selectSpec Home = layout0 $ focus _landingState _landingAction L.layoutHome
selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview
selectSpec UserPage = layout0 $ focus _userPageState _userPageAction UP.layoutUser
-- To be removed
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
routingSpec :: forall props eff. Spec (dom :: DOM |eff) AppState props Action
routingSpec = simpleSpec performAction defaultRender
wrap
:: forall eff props. Spec (E eff) AppState props Action -> Spec (E eff) AppState props Action
wrap spec
=
layout0
:: forall eff props. Spec (E eff) AppState props Action -> Spec (E eff) AppState props Action
layout0 layout
=
fold
[
sidebarnavSpec
-- TODO Add
Tree to the templat
e
[
layoutSidebar
-- TODO Add
layoutTre
e
--, exampleTree'
, inner
Container $ spec
,
footerLegalInfo
, inner
Layout $ layout
,
layoutFooter
]
where
inner
Container
:: Spec (E eff) AppState props Action -> Spec (E eff) AppState props Action
inner
Container
= over _render \render d p s c ->
inner
Layout
:: Spec (E eff) AppState props Action -> Spec (E eff) AppState props Action
inner
Layout
= over _render \render d p s c ->
[ div [_id "page-wrapper"]
[
div [className "container-fluid"] (render d p s c)
...
...
@@ -183,8 +185,8 @@ wrap spec =
-- render dispatch _ state _ = DV.toHtml dispatch DV.exampleTree
sidebarnavSpec
:: forall props eff. Spec (dom :: DOM |eff) AppState props Action
sidebarnavSpec
= simpleSpec performAction render
layoutSidebar
:: forall props eff. Spec (dom :: DOM |eff) AppState props Action
layoutSidebar
= simpleSpec performAction render
where
render :: Render AppState props Action
render dispatch _ state _ =
...
...
@@ -333,8 +335,8 @@ divDropdownRight = ul [className "nav navbar-nav pull-right"]
footerLegalInfo
:: forall props eff. Spec (dom :: DOM |eff) AppState props Action
footerLegalInfo
= simpleSpec performAction render
layoutFooter
:: forall props eff. Spec (dom :: DOM |eff) AppState props Action
layoutFooter
= simpleSpec performAction render
where
render :: Render AppState props Action
render dispatch _ state _ = [div [ className "container" ] [ hr [] [], footerLegalInfo']]
...
...
src/UserPage.purs
View file @
6f470f3c
...
...
@@ -28,12 +28,12 @@ performAction NoOp _ _ = void do
modifyState id
userPageSpec
:: forall props eff . Spec ( console :: CONSOLE
layoutUser
:: forall props eff . Spec ( console :: CONSOLE
, ajax :: AJAX
, dom :: DOM
| eff
) State props Action
userPageSpec
= simpleSpec performAction render
layoutUser
= simpleSpec performAction render
where
render :: Render State props Action
render dispatch _ state _ =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment