Skip to content

Commit b1b2dc6

Browse files
committed
Update babel config
1 parent bc9687f commit b1b2dc6

8 files changed

+42
-44
lines changed

.babelrc

-3
This file was deleted.

babel.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module.exports = {
2-
presets: ['@vue/app']
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
35
};

src/components/Blocks/BlockCard.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
no-body
77
class="table-responsive"
88
>
9-
<h2 slot="header">{{ blockTitle }}</h2>
9+
<template v-slot:header><h2>{{ blockTitle }}</h2></template>
1010
<b-table
1111
class="clickable"
1212
striped

src/components/Clubs/ClubsOverview.vue

+10-8
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
:fields="fields"
1010
@row-clicked="rowClicked"
1111
>
12-
<template slot="OarImage" slot-scope="row">
13-
<OarImage :club="row.item.clubshort"></OarImage>
12+
<template v-slot:cell(OarImage)="data">
13+
<OarImage :club="data.item.clubshort"></OarImage>
1414
</template>
1515
</b-table>
1616
</div>
@@ -29,33 +29,35 @@ export default {
2929
},
3030
data() {
3131
return {
32-
fields: {
33-
blad: {
32+
fields: [
33+
{
3434
label: 'Blad',
3535
key: 'OarImage',
3636
thClass: 'font-italic',
3737
class: 'text-center'
3838
},
39-
clubshort: {
39+
{
4040
label: 'Code',
41+
key: 'clubshort',
4142
thClass: 'font-italic',
4243
class: 'text-center',
4344
sortable: true
4445
},
45-
clubname: {
46+
{
4647
label: 'Vereniging',
48+
key: 'clubname',
4749
thClass: 'font-italic',
4850
class: 'text-center',
4951
sortable: true
5052
},
51-
numberofteams: {
53+
{
5254
label: 'Aantal ploegen',
5355
key: 'numberofteams',
5456
thClass: 'font-italic',
5557
class: 'text-center',
5658
sortable: true
5759
}
58-
}
60+
]
5961
};
6062
},
6163
methods: {

src/components/Crews/DrawOverview.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
thead-class="thead-dark"
1515
@row-clicked="openTeamDialog"
1616
>
17-
<template slot="OarImage" slot-scope="row">
18-
<OarImage :club="row.item.clubnameshort"></OarImage>
17+
<template v-slot:cell(OarImage)="data">
18+
<OarImage :club="data.item.clubnameshort"></OarImage>
1919
</template>
2020
<template slot="HEAD_OarImage">
2121
<div class="d-none d-sm-block">

src/components/Crews/ResultOverview.vue

+13-16
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@
1515
@row-clicked="openTeamDialog"
1616
:tbody-tr-class="highLightWinner"
1717
>
18-
<template slot="smallRank" slot-scope="row">
19-
{{ row.item.times[0].rank }}
18+
<template v-slot:cell(smallRank)="data">
19+
{{ data.item.times[0].rank }}
2020
</template>
21-
<template slot="HEAD_OarImage">
21+
<template v-slot:head(OarImage)>
2222
<div class="d-none d-sm-block">
2323
Blad
2424
</div>
2525
</template>
26-
<template slot="OarImage" slot-scope="row">
27-
<OarImage :club="row.item.clubnameshort"></OarImage>
26+
<template v-slot:cell(OarImage)="data">
27+
<OarImage :club="data.item.clubnameshort"></OarImage>
2828
</template>
29-
<template slot="FinishTime" slot-scope="row">
29+
<template v-slot:cell(FinishTime)="data">
3030
<FinalTime
31-
:time="getFinishTime(row.item.times[0].times)"
32-
:bonus-seconds="row.item.times[0].bonussecond"
33-
:status="row.item.times[0].status"
31+
:time="getFinishTime(data.item.times[0].times)"
32+
:bonus-seconds="data.item.times[0].bonussecond"
33+
:status="data.item.times[0].status"
3434
></FinalTime>
3535
</template>
36-
<template slot="FinishTimeSmall" slot-scope="row">
36+
<template v-slot:cell(FinishTimeSmall)="data">
3737
<FinalTime
38-
:time="getFinishTime(row.item.times[0].times)"
39-
:bonus-seconds="row.item.times[0].bonussecond"
40-
:status="row.item.times[0].status"
38+
:time="getFinishTime(data.item.times[0].times)"
39+
:bonus-seconds="data.item.times[0].bonussecond"
40+
:status="data.item.times[0].status"
4141
></FinalTime>
4242
</template>
4343
</b-table>
@@ -87,9 +87,6 @@ export default {
8787
fieldName() {
8888
return this.crews[0].fieldnameshort;
8989
},
90-
splashes() {
91-
return findClockingLocations(this.crews);
92-
},
9390
fields() {
9491
return [
9592
{

src/components/Crews/SearchOverview.vue

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,34 @@
1616
:sort-by.sync="sortBy"
1717
:sort-desc.sync="sortDesc"
1818
>
19-
<template slot="OarImage" slot-scope="row">
20-
<OarImage :club="row.item.clubnameshort"></OarImage>
19+
<template v-slot:cell(OarImage)="data">
20+
<OarImage :club="data.item.clubnameshort"></OarImage>
2121
</template>
22-
<template slot="fieldnameshortsub" slot-scope="row">
22+
<template v-slot:cell(fieldnameshortsub)="data">
2323
<b-link
2424
:href="
2525
toField(
2626
$router.currentRoute.params,
2727
'uitslagen',
28-
row.item.fieldnameshort
28+
data.item.fieldnameshort
2929
)
3030
"
3131
>
3232
{{ row.item.fieldnameshortsub }}
3333
</b-link>
3434
</template>
35-
<template slot="FinishTime" slot-scope="row">
35+
<template v-slot:cell(FinishTime)="data">
3636
<FinalTime
37-
:time="getFinishTime(row.item.times[0].times)"
38-
:bonus-seconds="row.item.times[0].bonussecond"
39-
:status="row.item.times[0].status"
37+
:time="getFinishTime(data.item.times[0].times)"
38+
:bonus-seconds="data.item.times[0].bonussecond"
39+
:status="data.item.times[0].status"
4040
></FinalTime>
4141
</template>
42-
<template slot="FinishTimeSmall" slot-scope="row">
42+
<template v-slot:cell(FinishTimeSmall)="data">
4343
<FinalTime
44-
:time="getFinishTime(row.item.times[0].times)"
45-
:bonus-seconds="row.item.times[0].bonussecond"
46-
:status="row.item.times[0].status"
44+
:time="getFinishTime(data.item.times[0].times)"
45+
:bonus-seconds="data.item.times[0].bonussecond"
46+
:status="data.item.times[0].status"
4747
></FinalTime>
4848
</template>
4949
</b-table>

src/components/Events/EventsOverview.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
no-body
88
title-link-class="link-unstyled"
99
>
10-
<template slot="title">
10+
<template v-slot:cell(title)>
1111
<RowerImage :n="n"></RowerImage>
1212
</template>
1313
<b-container class="mt-3">

0 commit comments

Comments
 (0)