Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PStA WP2 OmarElkadi1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omar Elkadi
PStA WP2 OmarElkadi1
Commits
a2c03268
Commit
a2c03268
authored
3 years ago
by
Omar Elkadi
Browse files
Options
Downloads
Patches
Plain Diff
add icons to corona stat view
parent
eafcb005
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/CoronaStat.vue
+24
-12
24 additions, 12 deletions
src/views/CoronaStat.vue
with
24 additions
and
12 deletions
src/views/CoronaStat.vue
+
24
−
12
View file @
a2c03268
<
template
>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<!--
<div
v-for=
"CityHistory in CasesHistory.data['09271'].history"
:key=
"CityHistory.date"
class=
"weather-data"
>
<div
class=
"cases"
>
<div>
...
...
@@ -15,10 +17,10 @@
<div
class=
"card"
>
<!-- Card header -->
<div
class=
"d-flex justify-content-around p-3"
>
<
button
type=
"button"
class=
"
btn btn-outline-secondary"
@
click=
"add4"
>
2 Monaten weiter
</button
>
<
button
type=
"button"
class=
"
btn btn-outline-secondary"
@
click=
"minus4"
>
2 Monten züruck
</button
>
<
button
type=
"button"
class=
"
btn btn-outline-secondary
"
@
click=
"
showLas
tMonth"
>
Letzte Montat
</button
>
<
button
type=
"button"
class=
"
btn btn-outline-secondary"
@
click=
"fullview"
>
Voller Ansicht
</button
>
<
a
type=
"button"
class=
"
"
@
click=
"monthAxisBack"
><i
class=
"material-icons"
>
chevron_left
</i></a
>
<
a
type=
"button"
class=
"
"
@
click=
"fullView"
><i
class=
"material-icons"
>
fullscreen
</i></a
>
<
a
type=
"button"
class=
""
@
click=
"
curren
tMonth"
>
<i
class=
"material-icons"
>
today
</i></a
>
<
a
type=
"button"
class=
"
"
@
click=
"monthAxisForward"
><i
class=
"material-icons"
>
chevron_right
</i></a
>
</div>
<!-- Card body -->
<div
class=
"card-body "
>
...
...
@@ -36,6 +38,16 @@
</div>
</
template
>
<
style
lang=
"scss"
>
@import
"../assets/app.scss"
;
$big_icon
:
36px
!
important
;
i
{
color
:
$thddonaublue
;
font-size
:
$big_icon
;
};
</
style
>
<
script
lang=
"ts"
>
import
axios
from
'
axios
'
import
Vue3ChartJs
from
'
@j-t-mcc/vue3-chartjs
'
...
...
@@ -144,28 +156,28 @@ export default {
}
}
const
showLas
tMonth
=
()
=>
{
const
curren
tMonth
=
()
=>
{
lineChart
.
options
.
scales
.
x
.
min
=
dateslength
-
30
lineChart
.
options
.
scales
.
x
.
max
=
dateslength
console
.
log
(
'
here
'
)
chartRef
.
value
.
update
(
250
)
}
const
add4
=
()
=>
{
const
monthAxisForward
=
()
=>
{
if
(
lineChart
.
options
.
scales
.
x
.
max
<=
dateslength
-
30
)
{
lineChart
.
options
.
scales
.
x
.
min
+=
30
lineChart
.
options
.
scales
.
x
.
max
+=
30
}
chartRef
.
value
.
update
(
250
)
}
const
m
inus4
=
()
=>
{
const
m
onthAxisBack
=
()
=>
{
if
(
lineChart
.
options
.
scales
.
x
.
min
>=
0
)
{
lineChart
.
options
.
scales
.
x
.
min
-=
30
lineChart
.
options
.
scales
.
x
.
max
-=
30
}
chartRef
.
value
.
update
(
250
)
}
const
full
v
iew
=
()
=>
{
const
full
V
iew
=
()
=>
{
lineChart
.
options
.
scales
.
x
.
min
=
0
lineChart
.
options
.
scales
.
x
.
max
=
dateslength
chartRef
.
value
.
update
(
250
)
...
...
@@ -174,11 +186,11 @@ export default {
lineChart
,
CasesHistory
,
CoronaStatBY
,
showLas
tMonth
,
curren
tMonth
,
chartRef
,
add4
,
m
inus4
,
full
v
iew
monthAxisForward
,
m
onthAxisBack
,
full
V
iew
}
},
data
()
{
...
...
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