Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
infovis-projekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Informationsvisualisierung 2024
infovis-projekt
Commits
57032dfb
Commit
57032dfb
authored
3 months ago
by
Aamon Paul Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
added spinner to data loading
parent
6515f811
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#24402
failed
3 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Main.elm
+22
-10
22 additions, 10 deletions
src/Main.elm
with
22 additions
and
10 deletions
src/Main.elm
+
22
−
10
View file @
57032dfb
...
...
@@ -188,20 +188,32 @@ viewContent : Model -> Html Msg
viewContent
(
global
,
local
)
=
let
message
=
case
global
.
progress
of
Loading
->
"
Insert some loading icon here..."
Failure
msg
->
msg
|>
(
++
)
"
Error while loading data. "
Success
->
"
Data was loaded successfully!"
Html
.
div
[
Html
.
Attributes
.
style
"
justify-items"
"
center"
,
Html
.
Attributes
.
style
"
align-content"
"
center"
,
Html
.
Attributes
.
style
"
flex-grow"
"
1"
]
(
case
global
.
progress
of
Loading
->
[
Html
.
div
[
Html
.
Attributes
.
class
"
loader"
]
[]
,
Html
.
div
[
Html
.
Attributes
.
style
"
position"
"
relative"
,
Html
.
Attributes
.
style
"
bottom"
"
5rem"
]
[
Html
.
text
"
Loading Data..."
]
]
Failure
msg
->
[
Html
.
text
(
msg
|>
(
++
)
"
Error while loading data. "
)
]
Success
->
[
Html
.
text
"
Data was loaded successfully!"
]
)
in
case
global
.
view
of
Home
->
div
[
Html
.
Attributes
.
class
"
content"
]
[
text
message
]
[
message
]
Other
->
div
[
Html
.
Attributes
.
class
"
content"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment