Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wotwizard-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
clients
wotwizard-ui
Commits
83c85a11
Commit
83c85a11
authored
3 years ago
by
Pierre-Jean CHANCELLIER
Browse files
Options
Downloads
Patches
Plain Diff
improve previsions page
parent
da7e0daf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/badge/Dispo.vue
+3
-4
3 additions, 4 deletions
components/badge/Dispo.vue
components/member/List.vue
+1
-1
1 addition, 1 deletion
components/member/List.vue
pages/previsions/index.vue
+61
-38
61 additions, 38 deletions
pages/previsions/index.vue
with
65 additions
and
43 deletions
components/badge/Dispo.vue
+
3
−
4
View file @
83c85a11
...
...
@@ -7,16 +7,15 @@
}">
<span
v-if=
"isDispo"
>
{{
$t
(
"
membre.dispo
"
)
}}
</span>
<span
v-else
>
⏱
{{
>
⏱
{{
dateDispo
==
null
?
"
N/A
"
:
nbPendingCertifs
+
"
(
"
+
$d
(
new
Date
(
dateDispo
*
1000
),
"
short
"
)
+
"
)
"
}}
</span
>
}}
</span
>
</span>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
components/member/List.vue
+
1
−
1
View file @
83c85a11
...
...
@@ -89,7 +89,7 @@
<tbody>
<tr
v-for=
"member in membersSorted"
:key=
"member.uid"
>
<td
@
click=
"redirect(member.hash)"
>
<div
class=
"d-flex
uid-content
"
>
<div
class=
"d-flex"
>
<div
class=
"d-flex flex-column align-items-center justify-content-evenly flex-grow-1"
>
<div
class=
"d-flex justify-content-center mw-100"
>
...
...
This diff is collapsed.
Click to expand it.
pages/previsions/index.vue
+
61
−
38
View file @
83c85a11
...
...
@@ -59,33 +59,36 @@
})
)
">
<th
scope=
"row"
>
<span
v-if=
"$favourites.list.includes(forecast.member.uid)"
>
★
</span
>
{{
forecast
.
member
.
uid
}}
<BadgeStatus
:membre=
"forecast.member"
/>
</th>
<td
class=
"p-0"
>
<td
class=
"td-uid"
>
<span
class=
"text-truncate mw-100 d-inline-block"
>
<span
v-if=
"
$favourites.list.includes(forecast.member.uid)
"
>
★
</span
>
{{
forecast
.
member
.
uid
}}
</span>
</td>
<td>
<div
class=
"d-flex justify-content-
between p-3
"
class=
"
p-date
d-flex justify-content-
evenly gap-1 align-items-center
"
v-for=
"date in forecast.forecasts"
:key=
"date.date"
>
<div
class=
"
forecast_date me-3
"
class=
"
text-center
"
v-if=
"date.date
<
9999999999"
>
{{
$d
(
new
Date
(
date
.
date
*
1000
),
"
short
"
)
}}
{{
$t
(
"
time.a
"
)
}}
{{
{{
$t
(
"
time.a
"
)
}}
{{
$d
(
new
Date
(
date
.
date
*
1000
),
"
hour
"
).
replace
(
"
"
,
"
"
)
}}
</div>
<div
class=
"forecast_date me-3"
v-else
>
N/A
</div>
<div>
{{
Math
.
round
(
date
.
proba
*
100
)
}}
%
</div>
<div
class=
"text-center"
v-else
>
N/A
</div>
<div
class=
"badge bg-info"
>
{{
Math
.
round
(
date
.
proba
*
100
)
}}
%
</div>
</div>
</td>
</tr>
...
...
@@ -101,35 +104,37 @@
<tr
v-for=
"forecast in wwResult.forecastsByDates"
:key=
"forecast.date"
>
<th
scope=
"row"
class=
"forecast_date"
v-if=
"forecast.date
<
9999999999"
>
<td
class=
"text-center"
v-if=
"forecast.date
<
9999999999"
>
{{
$d
(
new
Date
(
forecast
.
date
*
1000
),
"
short
"
)
}}
{{
$t
(
"
time.a
"
)
}}
{{
$d
(
new
Date
(
forecast
.
date
*
1000
),
"
hour
"
)
}}
</th>
<th
scope=
"row"
class=
"forecast_date"
v-else
>
N/A
</th>
<td
class=
"p-0"
>
<div
class=
"list-group rounded-0"
>
{{
$t
(
"
time.a
"
)
}}
{{
$d
(
new
Date
(
forecast
.
date
*
1000
),
"
hour
"
).
replace
(
"
"
,
"
"
)
}}
</td>
<td
v-else
>
N/A
</td>
<td
class=
"p-0 td-uid"
>
<div
class=
"list-group"
>
<nuxt-link
class=
"list-group-item list-group-item-action border-0 d-flex justify-content-between
p-3
"
class=
"list-group-item list-group-item-action border-0 d-flex justify-content-between
align-items-center
"
:to=
"
localePath('/membre/?hash=' + member.member.hash)
"
v-for=
"member in forecast.forecasts"
:key=
"member.member.uid"
>
<div
class=
"me-3"
>
<span
v-if=
"
$favourites.list.includes(member.member.uid)
"
>
★
</span
>
{{
member
.
member
.
uid
}}
<BadgeStatus
:membre=
"member.member"
/>
<div
class=
"mw-100 text-center"
>
<span
class=
"text-truncate d-inline-block mw-100"
>
<span
v-if=
"
$favourites.list.includes(member.member.uid)
"
>
★
</span
>
{{
member
.
member
.
uid
}}
</span>
</div>
<div>
<div
class=
"badge bg-info"
>
{{
Math
.
round
(
member
.
proba
*
100
)
}}
%
</div>
</nuxt-link>
...
...
@@ -271,15 +276,33 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.p-date
,
.list-group-item
{
flex-direction
:
column
;
&
:not
(
:last-child
)
{
border-bottom
:
1px
solid
var
(
--
border-color
)
!
important
;
}
}
.list-group-item
{
background
:
transparent
;
&
:hover
{
background
:
var
(
--
bg-secondary-color
);
color
:
var
(
--
txt-primary-color
);
}
}
.forecast_date
{
min-width
:
150px
;
.td-uid
{
width
:
50%
;
}
@media
(
min-width
:
576px
)
{
.p-date
,
.list-group-item
{
flex-direction
:
row
;
padding
:
0
.5rem
;
}
}
</
style
>
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