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
3848448d
Commit
3848448d
authored
Mar 14, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[READ] cosmetics to read code.
parent
93c0523c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
PageRouter.purs
src/PageRouter.purs
+12
-12
SearchForm.purs
src/SearchForm.purs
+2
-2
No files found.
src/PageRouter.purs
View file @
3848448d
...
...
@@ -25,12 +25,12 @@ data Routes
instance showRoutes :: Show Routes where
show Home = "Home"
show Login = "Login"
show AddCorpus = "AddCorpus"
show DocView = "DocView"
show Home
= "Home"
show Login
= "Login"
show AddCorpus
= "AddCorpus"
show DocView
= "DocView"
show SearchView = "SearchView"
show UserPage = "UserPage"
show UserPage
= "UserPage"
int :: Match Int
int = floor <$> num
...
...
@@ -45,13 +45,13 @@ routing =
<|> addcorpusRoute
<|> home
where
userPageRoute
= UserPage
<$ route "userPage"
searchRoute = SearchView <$ route "search"
docviewRoute
= DocView
<$ route "docView"
addcorpusRoute = AddCorpus <$ route "addCorpus"
loginRoute
= Login
<$ route "login"
home
= Home
<$ lit ""
route str = lit "" *> lit str
userPageRoute
= UserPage
<$ route "userPage"
searchRoute
= SearchView <$ route "search"
docviewRoute
= DocView
<$ route "docView"
addcorpusRoute = AddCorpus
<$ route "addCorpus"
loginRoute
= Login
<$ route "login"
home
= Home
<$ lit ""
route str
= lit "" *> lit str
routeHandler :: forall e. (Maybe Routes -> Routes -> Eff ( dom :: DOM, console :: CONSOLE | e) Unit) -> Maybe Routes -> Routes -> Eff (dom :: DOM, console :: CONSOLE | e) Unit
routeHandler dispatchAction old new = do
...
...
src/SearchForm.purs
View file @
3848448d
...
...
@@ -73,10 +73,10 @@ searchSpec = simpleSpec performAction render
, br'[]
]
]
, div [className "col-md-2"]
, div [
className "col-md-2"]
[ br' []
, br' []
,
button [onClick \_ -> dispatch GO] [text "GO"]
, button [onClick \_ -> dispatch GO] [text "GO"]
]
, br' []
]
...
...
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