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
53f08d0c
Commit
53f08d0c
authored
Oct 15, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[cache] some cache work
parent
b479e52c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
Annuaire.purs
src/Gargantext/Components/Nodes/Annuaire.purs
+1
-1
Lists.purs
src/Gargantext/Components/Nodes/Lists.purs
+1
-1
Texts.purs
src/Gargantext/Components/Nodes/Texts.purs
+1
-1
Table.purs
src/Gargantext/Components/Table.purs
+5
-5
No files found.
src/Gargantext/Components/Nodes/Annuaire.purs
View file @
53f08d0c
...
...
@@ -91,7 +91,7 @@ annuaireCpt = R.hooksComponentWithModule thisModule "annuaire" cpt
cpt {session, path, info: info@(AnnuaireInfo {name, date: date'}), frontends} _ = do
pagePath <- R.useState' $ initialPagePath (fst path)
cacheState <- R.useState' NT.CacheO
n
cacheState <- R.useState' NT.CacheO
ff
pure $ R.fragment
[ T.tableHeaderLayout { afterCacheStateChange: \_ -> launchAff_ $ clearCache unit
...
...
src/Gargantext/Components/Nodes/Lists.purs
View file @
53f08d0c
...
...
@@ -49,7 +49,7 @@ listsLayoutWithKeyCpt = R.hooksComponentWithModule thisModule "listsLayoutWithKe
cpt { nodeId, session } _ = do
let path = { nodeId, session }
cacheState <- R.useState' NT.CacheO
n
cacheState <- R.useState' NT.CacheO
ff
useLoader path loadCorpusWithChild $
\corpusData@{ corpusId, corpusNode: NodePoly poly, defaultListId } ->
...
...
src/Gargantext/Components/Nodes/Texts.purs
View file @
53f08d0c
...
...
@@ -56,7 +56,7 @@ textsLayoutWithKeyCpt :: R.Component KeyProps
textsLayoutWithKeyCpt = R.hooksComponentWithModule thisModule "textsLayoutWithKey" cpt
where
cpt { frontends, nodeId, session } _ = do
cacheState <- R.useState' NT.CacheO
n
cacheState <- R.useState' NT.CacheO
ff
pure $ loader {session, nodeId} loadCorpusWithChild $
\corpusData@{ corpusId, corpusNode, defaultListId } -> do
...
...
src/Gargantext/Components/Table.purs
View file @
53f08d0c
...
...
@@ -120,26 +120,26 @@ tableHeaderLayoutCpt = R.hooksComponentWithModule thisModule "tableHeaderLayout"
[ H.div {className: "jumbotron1", style: {padding: "12px 0px 20px 12px"}}
[ H.div {className: "col-md-8 content"}
[ H.p {}
[ H.
i
{className: "fa fa-globe"} []
[ H.
span
{className: "fa fa-globe"} []
, H.text $ " " <> desc
]
, H.p {}
[ H.
i
{className: "fa fa-search-plus"} []
[ H.
span
{className: "fa fa-search-plus"} []
, H.text $ " " <> query
]
, H.p { className: "cache-toggle"
, on: { click: cacheClick cacheState afterCacheStateChange } }
[ H.
i {className: "fa " <> (cacheToggle cacheState)
} []
[ H.
span { className: "fa " <> (cacheToggle cacheState)
} []
, H.text $ cacheText cacheState
]
]
, H.div {className: "col-md-4 content"}
[ H.p {}
[ H.
i
{className: "fa fa-calendar"} []
[ H.
span
{className: "fa fa-calendar"} []
, H.text $ " " <> date
]
, H.p {}
[ H.
i
{className: "fa fa-user"} []
[ H.
span
{className: "fa fa-user"} []
, H.text $ " " <> user
]
]
...
...
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