Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-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
Przemyslaw Kaminski
haskell-gargantext
Commits
824d5aba
Commit
824d5aba
authored
Apr 25, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ihaskell] some development towards codebook integration
parent
1bad1c4e
Pipeline
#2748
failed with stage
in 89 minutes and 59 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
9 deletions
+33
-9
gargantext.cabal
gargantext.cabal
+4
-2
pkgs.nix
nix/pkgs.nix
+1
-0
package.yaml
package.yaml
+1
-0
Config.hs
src/Gargantext/Database/Admin/Config.hs
+2
-0
Hyperdata.hs
src/Gargantext/Database/Admin/Types/Hyperdata.hs
+2
-0
Codebook.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Codebook.hs
+14
-0
Default.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
+6
-0
Frame.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Frame.hs
+0
-7
Node.hs
src/Gargantext/Database/Admin/Types/Node.hs
+3
-0
No files found.
gargantext.cabal
View file @
824d5aba
cabal-version:
0.0.5.8.6
cabal-version:
1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
name: gargantext
version: 0.0.5.8.6
version:
0.0.5.8.6
synopsis: Search, map, share
description: Please see README.md
category: Data
...
...
@@ -248,6 +248,7 @@ library
Gargantext.Database.Admin.Trigger.Contexts
Gargantext.Database.Admin.Trigger.NodesContexts
Gargantext.Database.Admin.Types.Hyperdata.Any
Gargantext.Database.Admin.Types.Hyperdata.Codebook
Gargantext.Database.Admin.Types.Hyperdata.Contact
Gargantext.Database.Admin.Types.Hyperdata.Corpus
Gargantext.Database.Admin.Types.Hyperdata.CorpusField
...
...
@@ -398,6 +399,7 @@ library
, http-media
, http-types
, hxt
, ihaskell
, ini
, insert-ordered-containers
, jose
...
...
nix/pkgs.nix
View file @
824d5aba
...
...
@@ -9,6 +9,7 @@ rec {
];
nonhsBuildInputs
=
with
pkgs
;
[
bzip2
czmq
docker-compose
git
gmp
...
...
package.yaml
View file @
824d5aba
...
...
@@ -187,6 +187,7 @@ library:
-
http-media
-
http-types
-
hxt
-
ihaskell
-
ini
-
insert-ordered-containers
-
jose
...
...
src/Gargantext/Database/Admin/Config.hs
View file @
824d5aba
...
...
@@ -66,6 +66,8 @@ nodeTypeId n =
NodeListCooc
->
50
NodeModel
->
52
NodeCodebook
->
6
---- Scores
-- NodeOccurrences -> 10
NodeGraph
->
9
...
...
src/Gargantext/Database/Admin/Types/Hyperdata.hs
View file @
824d5aba
...
...
@@ -14,6 +14,7 @@ Portability : POSIX
module
Gargantext.Database.Admin.Types.Hyperdata
(
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Any
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Contact
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Codebook
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Corpus
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Dashboard
,
module
Gargantext
.
Database
.
Admin
.
Types
.
Hyperdata
.
Document
...
...
@@ -32,6 +33,7 @@ module Gargantext.Database.Admin.Types.Hyperdata
import
Gargantext.Database.Admin.Types.Hyperdata.Any
import
Gargantext.Database.Admin.Types.Hyperdata.Contact
import
Gargantext.Database.Admin.Types.Hyperdata.Codebook
import
Gargantext.Database.Admin.Types.Hyperdata.Corpus
import
Gargantext.Database.Admin.Types.Hyperdata.Dashboard
import
Gargantext.Database.Admin.Types.Hyperdata.Document
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/Codebook.hs
0 → 100644
View file @
824d5aba
{-# LANGUAGE TemplateHaskell #-}
module
Gargantext.Database.Admin.Types.Hyperdata.Codebook
where
import
Gargantext.Database.Admin.Types.Hyperdata.Prelude
data
HyperdataCodebook
=
HyperdataCodebook
{
_hco_name
::
!
Text
}
defaultHyperdataCodebook
::
HyperdataCodebook
defaultHyperdataCodebook
=
HyperdataCodebook
""
$
(
deriveJSON
(
unPrefix
"_hco_"
)
''
H
yperdataCodebook
)
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
View file @
824d5aba
...
...
@@ -57,6 +57,8 @@ data DefaultHyperdata =
|
DefaultFile
HyperdataFile
|
DefaultCodebook
HyperdataCodebook
instance
Hyperdata
DefaultHyperdata
instance
ToJSON
DefaultHyperdata
where
...
...
@@ -90,6 +92,8 @@ instance ToJSON DefaultHyperdata where
toJSON
(
DefaultFile
x
)
=
toJSON
x
toJSON
(
DefaultCodebook
x
)
=
toJSON
x
defaultHyperdata
::
NodeType
->
DefaultHyperdata
defaultHyperdata
NodeUser
=
DefaultUser
defaultHyperdataUser
...
...
@@ -121,3 +125,5 @@ defaultHyperdata NodeFrameVisio = DefaultFrameVisio defaultHyperdataFrame
defaultHyperdata
NodeFrameNotebook
=
DefaultFrameCalc
defaultHyperdataFrame
defaultHyperdata
NodeFile
=
DefaultFile
defaultHyperdataFile
defaultHyperdata
NodeCodebook
=
DefaultCodebook
defaultHyperdataCodebook
src/Gargantext/Database/Admin/Types/Hyperdata/Frame.hs
View file @
824d5aba
...
...
@@ -9,13 +9,6 @@ Portability : POSIX
-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module
Gargantext.Database.Admin.Types.Hyperdata.Frame
...
...
src/Gargantext/Database/Admin/Types/Node.hs
View file @
824d5aba
...
...
@@ -353,6 +353,7 @@ data NodeType = NodeUser
-- Optional Nodes
|
NodeFrameWrite
|
NodeFrameCalc
|
NodeFrameVisio
|
NodeFrameNotebook
|
NodeFile
|
NodeCodebook
deriving
(
Show
,
Read
,
Eq
,
Generic
,
Bounded
,
Enum
)
...
...
@@ -393,6 +394,8 @@ defaultName NodeFrameNotebook = "Code"
defaultName
NodeFile
=
"File"
defaultName
NodeCodebook
=
"Codebook"
instance
FromJSON
NodeType
instance
ToJSON
NodeType
...
...
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