|
@@ -10,9 +10,9 @@ import Data.Maybe (Maybe(..), isJust)
|
|
|
import Data.NonEmpty (NonEmpty(..))
|
|
import Data.NonEmpty (NonEmpty(..))
|
|
|
import Data.Traversable (traverse)
|
|
import Data.Traversable (traverse)
|
|
|
import Effect (Effect)
|
|
import Effect (Effect)
|
|
|
|
|
+import LinkedIn (LinkedInUIElement(..), getJobsUnifiedTopCard)
|
|
|
import LinkedIn.DetachedNode (DetachedNode(..), toDetached)
|
|
import LinkedIn.DetachedNode (DetachedNode(..), toDetached)
|
|
|
import LinkedIn.JobsUnifiedTopCard (JobsUnifiedTopCardElement(..), TopCardAction(..), TopCardInsight(..), TopCardInsightContent(..), TopCardPrimaryDescription(..), TopCardSecondaryInsight(..), queryJobsUnifiedTopCardElement)
|
|
import LinkedIn.JobsUnifiedTopCard (JobsUnifiedTopCardElement(..), TopCardAction(..), TopCardInsight(..), TopCardInsightContent(..), TopCardPrimaryDescription(..), TopCardSecondaryInsight(..), queryJobsUnifiedTopCardElement)
|
|
|
-import LinkedIn (LinkedInUIElement(..), getJobsUnifiedTopCard)
|
|
|
|
|
import LinkedIn.QueryRunner (QueryError, runQuery)
|
|
import LinkedIn.QueryRunner (QueryError, runQuery)
|
|
|
import Node.JsDom (jsDomFromFile)
|
|
import Node.JsDom (jsDomFromFile)
|
|
|
import Partial.Unsafe (unsafePartial)
|
|
import Partial.Unsafe (unsafePartial)
|
|
@@ -65,34 +65,21 @@ testJobsUnifiedTopCard = do
|
|
|
id: (Just "undefined"),
|
|
id: (Just "undefined"),
|
|
|
tag: "SPAN"
|
|
tag: "SPAN"
|
|
|
})) : Nil))) }),
|
|
})) : Nil))) }),
|
|
|
- icon: (DetachedElement {
|
|
|
|
|
- classes: ("" : Nil),
|
|
|
|
|
- content: "",
|
|
|
|
|
- id: Nothing,
|
|
|
|
|
- tag: "LI-ICON"
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ icon: DetachedLiIcon "job"
|
|
|
}) ((TopCardInsight {
|
|
}) ((TopCardInsight {
|
|
|
content: (TopCardInsightContentSingle (DetachedElement {
|
|
content: (TopCardInsightContentSingle (DetachedElement {
|
|
|
classes: ("" : Nil),
|
|
classes: ("" : Nil),
|
|
|
content: "201-500 employés · Technologies et services de l’information",
|
|
content: "201-500 employés · Technologies et services de l’information",
|
|
|
id: (Just "undefined"),
|
|
id: (Just "undefined"),
|
|
|
tag: "SPAN" })),
|
|
tag: "SPAN" })),
|
|
|
- icon: (DetachedElement {
|
|
|
|
|
- classes: ("" : Nil),
|
|
|
|
|
- content: "",
|
|
|
|
|
- id: Nothing,
|
|
|
|
|
- tag: "LI-ICON" })
|
|
|
|
|
|
|
+ icon: DetachedLiIcon "company"
|
|
|
}) : (TopCardInsight {
|
|
}) : (TopCardInsight {
|
|
|
content: (TopCardInsightContentSingle (DetachedElement {
|
|
content: (TopCardInsightContentSingle (DetachedElement {
|
|
|
classes: ("" : Nil),
|
|
classes: ("" : Nil),
|
|
|
content: "2 anciens élèves travaillent ici",
|
|
content: "2 anciens élèves travaillent ici",
|
|
|
id: (Just "undefined"),
|
|
id: (Just "undefined"),
|
|
|
tag: "SPAN" })),
|
|
tag: "SPAN" })),
|
|
|
- icon: (DetachedElement {
|
|
|
|
|
- classes: ("" : Nil),
|
|
|
|
|
- content: "",
|
|
|
|
|
- id: Nothing,
|
|
|
|
|
- tag: "LI-ICON" })
|
|
|
|
|
|
|
+ icon: DetachedLiIcon "people"
|
|
|
}) : (TopCardInsight {
|
|
}) : (TopCardInsight {
|
|
|
content: (TopCardInsightContentSingle (DetachedElement {
|
|
content: (TopCardInsightContentSingle (DetachedElement {
|
|
|
classes: ("" : Nil),
|
|
classes: ("" : Nil),
|