Commit 87460766 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev' into dev-bootstrap-v4-upgrade

parents c64fb8a2 bed52987
{
"name": "Gargantext",
"version": "0.0.2.4",
"version": "0.0.2.5",
"scripts": {
"rebase-set": "spago package-set-upgrade && spago psc-package-insdhall",
"rebuild-set": "spago psc-package-insdhall",
......
......@@ -74,13 +74,7 @@ homeLayoutCpt = R.hooksComponentWithModule thisModule "homeLayout" cpt
, H.div { className: "home-research-form container1" } [] -- TODO put research form
, if Array.length (unSessions $ fst sessions) > 0
then H.div { className: "mx-auto container" }
[ H.h1 {} [H.text "Welcome! Just watch the tutoriel now"]
, H.img { src: "images/Gargantextuel-212x300.jpg"
, id: "funnyimg"
, title: "tutoriel video here"
}
]
then tutorial
else joinButton
, H.div { className: "home-public container1" } [ renderPublic { backend
......@@ -99,6 +93,197 @@ homeLayoutCpt = R.hooksComponentWithModule thisModule "homeLayout" cpt
, license
]
where
tutorial = H.div {className: "mx-auto container"}
$ [ H.h1 {} [H.text "Welcome!"]
, H.h2 {} [H.text "For easy start, just watch the tutorials"]
]
<> [ H.div { className: "" } summary ]
<> tutos
summary :: Array R.Element
summary = [ H.h3 {} [ H.text "Tutorial summary"]
, H.ol {} [ H.div {className: "alert alert-info"}
[ H.li {} [ H.h4 {} [H.text "How to start (beginner users) ?"]
, H.ol {} (toSummary start_tutos)
]
]
, H.div {className: "alert alert-warning"}
[ H.li {} [ H.h4 {} [H.text "How to play (advanced users)?"]
, H.ol {} (toSummary play_tutos)
]
]
, H.div {className: "alert alert-danger"}
[ H.li {} [ H.h4 {} [H.text "How to master (expert users)?"]
, H.ol {} (toSummary expert_tutos)
]
]
]
]
where
toSummary x = map (\(Tuto x) -> H.li {} [H.a {href : "#" <> x.id} [H.text x.title]]) x
tutos :: Array R.Element
tutos = [ H.h3 {} [H.text "Tutorial resources"]
, H.div {className : ""}
$ [ H.h4 {} [H.text "How to start ?"] ]
<> map (\ (Tuto x) -> H.div { className : "alert alert-info", id : x.id}
[ video x.id
, H.h4 {} [H.text x.title]
, H.p {} [H.text x.text ]
]
) start_tutos
, H.div {className : ""}
$ [H.h4 {} [H.text "How to play ?"]]
<> map (\ (Tuto x) -> H.div { className : "alert alert-warning", id : x.id}
[ video x.id
, H.h4 {} [H.text x.title]
, H.p {} [H.text x.text]
]
) play_tutos
, H.div {className : ""}
$ [H.h4 {} [H.text "How to master ?"]]
<> map (\ (Tuto x) -> H.div { className : "alert alert-danger", id : x.id}
[ video x.id
, H.h4 {} [H.text x.title]
, H.p {} [H.text x.text]
]
) expert_tutos
]
start_tutos :: Array Tuto
start_tutos = [ Tuto { title : "The tree is your friend"
, id : "video_tutoriel.mp4#t=,8"
, text : "The tree enables you to control all your actions. The Tree has typed nodes. Each node has some attributes and some methods which depend on its type. This specific ergonomy helps the memorization of all the complexity of the GarganTexts' features: hence you do not need to remember all the documentation! Just remember these simple axioms, the Tree is built with parent-children relations of nodes which have specific attributes and methods. To get its methods and attributes, just click on the wheel near its name (for this feature, see advanced tutorial: how to play with GarganText)."
}
, Tuto { title : "Edit your profile"
, id : "video_tutoriel.mp4#t=9,24"
, text : "At the root of the tree, there is your user node, parent of all others nodes. Your profile is what others users will see or search for to reach you or to watch/follow your work. If you delete it you remove all your data from the specified instance, clear and simple."
}
, Tuto { title : "Discover the nodes of the tree"
, id : "video_tutoriel.mp4#t=25,42"
, text : "Under your user node you have 3 main nodes: private, shared and public nodes. Each node has its specific attributes and methods! Under private node, all your work is private only. Under shared folder you can create teams to invite your partners, students or colleagues. Under public node, you can publish your work with the world: hello word!"
}
, Tuto { title : "Read a corpus"
, id : "video_tutoriel.mp4#t=43,79"
, text : "Each fresh corpus node has 4 children only: docs, list, board, graph. The docs node enable you to manage your documents and rate it. The list node let the user to manage its ngrams. The board node sum up your analysis with the main charts you made with your ngrams. The graph node let you explore your data in a new way. Others new type of nodes are coming such as Phylo node..."
}
, Tuto { title : "Manage your ngrams"
, id : "video_tutoriel.mp4#t=80,214"
, text : "By default, 4 types of ngrams are created: Terms extracted from text fields such as title or abstract, Institutes are extracted from the Institute field of the metadata, Sources, Authors. In that tutorial, you will learn how to change the status of ngrams, group it or create new categories. Remember you need to save your work with the sycn button. Then the charts are updated after each sync. Your work is either synchronous or asynchronous: you can save locally your data, disconnect your device and sync when your Internet connection is back."
}
, Tuto { title : "Watch with the board"
, id : "video_tutoriel.mp4#t=215,237"
, text : "Build your own watchboard! Easy. All your list enable you to have charts to follow the evolution of your corpus."
}
, Tuto { title : "Explore with the graph"
, id : "video_tutoriel.mp4#t=238,293"
, text : "With the map terms you have selected already, the graph is built. 3 main panels can be hidden or shown to give you more visual space: tree, controls, side panel. The side panel shows the legend, the selected data and the community you are watching. You can link your corpus with a community (check nodes methods to do this)."
}
, Tuto { title : "Edit ngrams in your documents"
, id : "video_tutoriel.mp4#t=294,312"
, text : "All selected ngrams can be updated in the document and they are autmatically updated in the lists."
}
]
play_tutos :: Array Tuto
play_tutos = [ Tuto { title : "Again the tree is your friend"
, id : "video_tutorial_1.ogv#t=,46"
, text : "At the right of each node, its wheel shows its attributes or enables the execution of its methods. Each type of node has different attributes and methods to help user in an ergonomic way."
}
, Tuto { title : "Build your analysis"
, id : "video_tutorial_1.ogv#t=47,146"
, text : "To build your analysis you need to create a corpus. Suppose you want to create it in your private folder in this tutorial. Use the wheel to execute any function on the corpus node in the tree. You can search the local database instance, the web or through apis connected to public databases. It becomes easy to add many documents to your dynamic corpus."
}
, Tuto { title : "Add documents with files and download your data"
, id : "video_tutorial_1.ogv#t=157,166"
, text : "You can add CSV files from Gargantext V3 legacy version: in your previous account, export your corpus and download it on your device. Then, upload it to v4 as CSV file."
}
, Tuto { title : "Move your corpus elsewhere in the tree"
, id : "video_tutorial_1.ogv#t=167,175"
, text : "Each node can be moved with this function. Move it in your team to share it. Remove it to unshare it. Some nodes can not be moved, it depends on the types methods."
}
, Tuto { title : "Rename your corpus"
, id : "video_tutorial_1.ogv#t=145,160"
, text : "Some nodes can be renamed, most of them. But you can not rename your User Node which is the root of the tree."
}
, Tuto { title : "Delete your corpus"
, id : "video_tutorial_1.ogv#t=179,182"
, text : "Each node can be deleted with its children."
}
]
expert_tutos :: Array Tuto
expert_tutos = [ Tuto { title : "Share with a team and send invitations"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Multi instance connections"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Freeze a graph"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Publish"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Link a set of document (corpus) with a set of persons (community)"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Social lists: cumulative work made easy"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Data mining with calc"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Collaborative sync edition notes"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Coding with our notebooks"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "Our api"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
, Tuto { title : "A tour in the code"
, id : "video_tutorial_2.ogv#t=,46"
, text : "[Link to update]"
}
]
video fileDuration = H.div {className:"center"}
[ H.video { src: "http://dl.gargantext.org/" <> fileDuration
, title: "tutorial video here"
, id: "source_" <> fileDuration
, width: "900"
, "type": "video/ogg"
, controls: "true"
, muted : "true"
} [H.text "Sorry your browser is not compatible: use Firefox or Chromium instead."]
]
joinButton = H.div { className:"flex-space-around center"
, paddingTop: "100px"
, paddingBottom: "100px"
......@@ -112,6 +297,10 @@ homeLayoutCpt = R.hooksComponentWithModule thisModule "homeLayout" cpt
click _ = log "click!" *> (snd backend) (const $ Just publicBackend)
*> (snd visible) (const true)
data Tuto = Tuto { title :: String
, id :: String
, text :: String
}
------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment