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
141
Issues
141
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
gargantext
purescript-gargantext
Commits
281327fe
Commit
281327fe
authored
Mar 15, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[COSMETICS] reading code.
parent
29eb4675
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
98 additions
and
99 deletions
+98
-99
Chart.purs
src/Chart.purs
+97
-98
Landing.purs
src/Landing.purs
+1
-1
No files found.
src/Chart.purs
View file @
281327fe
...
@@ -44,47 +44,47 @@ group = unsafeMkProps "group"
...
@@ -44,47 +44,47 @@ group = unsafeMkProps "group"
-- onEvents :: String -- PropTypes.object
-- onEvents :: String -- PropTypes.object
type EchartsProps eff =
type EchartsProps eff =
{ className :: String,
{ className
:: String,
style :: String, -- object,
style
:: String, -- object,
theme :: String,
theme
:: String,
group :: String,
group
:: String,
option :: Option, -- PropTypes.object.isRequired,
option
:: Option, -- PropTypes.object.isRequired,
initOpts :: String, -- PropTypes.object,
initOpts
:: String, -- PropTypes.object,
notMerge :: Boolean,
notMerge
:: Boolean,
lazyUpdate:: Boolean,
lazyUpdate
:: Boolean,
loading :: Boolean,
loading
:: Boolean,
optsLoading
::
OptsLoading, -- PropTypes.object,
optsLoading
::
OptsLoading, -- PropTypes.object,
onReady :: String, -- PropTypes.func,
onReady
:: String, -- PropTypes.func,
resizable :: Boolean, -- PropTypes.bool,
resizable
:: Boolean, -- PropTypes.bool,
onEvents :: String -- PropTypes.object
onEvents
:: String -- PropTypes.object
}
}
type OptsLoading =
type OptsLoading =
{ text :: String,
{ text
:: String,
color :: Color, --- color
color
:: Color, --- color
textColor :: Color, --color
textColor :: Color, --color
maskColor:: Color, --color
maskColor
:: Color, --color
zlevel :: Int
zlevel
:: Int
}
}
type Option =
type Option =
{ title :: Title
{ title
:: Title
, legend :: Legend
, legend
:: Legend
, tooltip :: Tooltip
, tooltip
:: Tooltip
, grid :: Grid
, grid
:: Grid
, xAxis :: Array XAxis
, xAxis
:: Array XAxis
, yAxis :: Array YAxis
, yAxis
:: Array YAxis
, series :: Array Series
, series
:: Array Series
, dataZoom :: Array DataZoom
, dataZoom :: Array DataZoom
}
}
type DataZoom =
type DataZoom =
{"type":: String
{"type"
:: String
, xAxisIndex:: Int
, xAxisIndex
:: Int
, filterMode:: String
, filterMode
:: String
, start:: Int
, start
:: Int
, end:: Int
, end
:: Int
}
}
type Grid =
type Grid =
...
@@ -92,66 +92,66 @@ type Grid =
...
@@ -92,66 +92,66 @@ type Grid =
}
}
type Legend =
type Legend =
{"type" :: String
{"type"
:: String
, show :: Boolean
, show
:: Boolean
, zlevel :: Number
, zlevel :: Number
, z :: Number
, z
:: Number
, left :: Number
, left
:: Number
, top :: Number
, top
:: Number
, right :: Number
, right
:: Number
, bottom :: Number
, bottom :: Number
, width :: Number
, width
:: Number
, height :: Number
, height :: Number
, orient :: String
, orient :: String
, align :: String
, align
:: String
, padding :: Number
, padding
:: Number
, itemGap :: Number
, itemGap
:: Number
, itemWidth :: Number
, itemWidth
:: Number
, itemHeight :: Number
, itemHeight
:: Number
, formatter :: String
, formatter
:: String
, selectedMode :: Boolean
, selectedMode
:: Boolean
, inactiveColor :: Color
, inactiveColor :: Color
, selected :: String -- object
, selected
:: String -- object
, "data" :: Array Data
, "data"
:: Array Data
}
}
type Data =
type Data =
{
name
:: String
{
name
:: String
, icon :: String
, icon
:: String
, textStyle :: {}
, textStyle :: {}
}
}
type SubtextStyle =
type SubtextStyle =
{ color :: Color
{ color
:: Color
, fontStyle :: String
, fontStyle
:: String
, fontWeight :: String
, fontWeight :: String
, fontFamily :: String
, fontFamily :: String
, fontSize :: Int
, fontSize
:: Int
, align :: String
, align
:: String
, verticalAlign :: String
, verticalAlign :: String
, lineHeight :: Number
, lineHeight
:: Number
, width :: Number
, width
:: Number
, height :: Number
, height
:: Number
, textBorderColor :: String
, textBorderColor :: String
, textBorderWidth :: Number
, textBorderWidth :: Number
, textShadowColor :: String
, textShadowColor :: String
, textShadowBlur :: Number
, textShadowBlur
:: Number
, textShadowOffsetX :: Number
, textShadowOffsetX :: Number
, textShadowOffsetY :: Number
, textShadowOffsetY :: Number
, rich :: Rich
, rich
:: Rich
}
}
type Tooltip =
type Tooltip =
{ trigger :: String
{ trigger
:: String
, formatter :: String -- TODO function
, formatter :: String -- TODO function
}
}
type XAxis =
type XAxis =
{ "data" :: Array String
{ "data"
:: Array String
, "type" :: String
, "type"
:: String
, axisTick :: AxisTick
, axisTick :: AxisTick
}
}
type AxisTick =
type AxisTick =
...
@@ -160,10 +160,10 @@ type AxisTick =
...
@@ -160,10 +160,10 @@ type AxisTick =
}
}
type YAxis =
type YAxis =
{ "type" :: String
{ "type"
:: String
, name :: String
, name
:: String
, min :: Int
, min
:: Int
, position :: String
, position
:: String
, axisLabel :: AxisLabel
, axisLabel :: AxisLabel
}
}
...
@@ -173,37 +173,37 @@ type AxisLabel =
...
@@ -173,37 +173,37 @@ type AxisLabel =
type Series =
type Series =
{
name
:: String
{
name
:: String
, "type" :: String
, "type" :: String
, "data" :: Array Int
, "data" :: Array Int
}
}
type Title =
type Title =
{ text :: String
{ text
:: String
, show :: Boolean
, show
:: Boolean
, link :: String
, link
:: String
, target :: String
, target
:: String
, textStyle :: TextStyle
, textStyle
:: TextStyle
, subtext :: String
, subtext
:: String
, sublink :: String
, sublink
:: String
, subtarget :: String
, subtarget
:: String
, subtextStyle :: SubtextStyle
, subtextStyle :: SubtextStyle
, padding :: Number
, padding
:: Number
, itemGap :: Number
, itemGap
:: Number
, zlevel :: Number
, zlevel
:: Number
, z :: Number
, z
:: Number
, left :: Number
, left
:: Number
, top :: Number
, top
:: Number
, right :: Number
, right
:: Number
, bottom :: Number
, bottom
:: Number
, backgroundColor :: Color
, backgroundColor :: Color
, borderColor :: Color
, borderColor
:: Color
, borderWidth :: Number
, borderWidth
:: Number
, borderRadius :: Number -- NumberOrArray
, borderRadius
:: Number -- NumberOrArray
, shadowBlur :: Number
, shadowBlur
:: Number
, shadowColor :: Color
, shadowColor
:: Color
, shadowOffsetX :: Number
, shadowOffsetX
:: Number
, shadowOffsetY :: Number
, shadowOffsetY
:: Number
}
}
-- data NumberOrArray = Number | Array Number
-- data NumberOrArray = Number | Array Number
...
@@ -224,23 +224,23 @@ loading :: Boolean -> Props
...
@@ -224,23 +224,23 @@ loading :: Boolean -> Props
loading = unsafeMkProps "loading"
loading = unsafeMkProps "loading"
type TextStyle =
type TextStyle =
{ color :: Color
{ color
:: Color
, fontStyle :: String
, fontStyle
:: String
, fontWeight :: String
, fontWeight :: String
, fontFamily :: String
, fontFamily :: String
, fontSize :: Int
, fontSize
:: Int
, align :: String
, align
:: String
, verticalAlign :: String
, verticalAlign
:: String
, lineHeight :: Int
, lineHeight
:: Int
, width :: Int
, width
:: Int
, height :: Int
, height
:: Int
, textBorderColor :: String
, textBorderColor :: String
, textBorderWidth :: Int
, textBorderWidth :: Int
, textShadowColor :: String
, textShadowColor :: String
, textShadowBlur :: Int
, textShadowBlur
:: Int
, textShadowOffsetX :: Int
, textShadowOffsetX :: Int
, textShadowOffsetY :: Int
, textShadowOffsetY :: Int
, rich :: Rich
, rich
:: Rich
}
}
foreign import data TextStyleProps :: Type
foreign import data TextStyleProps :: Type
...
@@ -439,7 +439,6 @@ sd1 = unsafeFromPropsArray
...
@@ -439,7 +439,6 @@ sd1 = unsafeFromPropsArray
, data' [95, 80, 75, 35, 30, 50, 70, 80, 95, 95, 95, 99]
, data' [95, 80, 75, 35, 30, 50, 70, 80, 95, 95, 95, 99]
]
]
sd3 = unsafeFromPropsArray
sd3 = unsafeFromPropsArray
[ name "All"
[ name "All"
, type' "bar"
, type' "bar"
...
...
src/Landing.purs
View file @
281327fe
...
@@ -80,7 +80,7 @@ jumboTitle b = div jumbo
...
@@ -80,7 +80,7 @@ jumboTitle b = div jumbo
]
]
where
where
jumbo = case b of
jumbo = case b of
true -> [className "jumbotron"
]
true -> [className "jumbotron"]
false -> []
false -> []
...
...
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