Skip to content

Commit 722628b

Browse files
committed
clean code
1 parent a6a79b6 commit 722628b

File tree

5 files changed

+2
-10
lines changed

5 files changed

+2
-10
lines changed

src/components/Consultant.vue

-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ export default class Phase extends Vue {
5757

5858
<!-- Add 'scoped' attribute to limit CSS to this component only -->
5959
<style scoped lang='scss'>
60-
.new-consultant-wrapper {
61-
}
6260
.new-consultant-wrapper * {
6361
margin: 6px;
6462
}

src/components/JehMaker.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
</div>
5050
<div class="ui fluid container scrollable">
5151
<table class="ui small celled table">
52-
<!-- <table class="cell"> -->
5352
<thead>
5453
<tr class="center aligned">
5554
<th></th>
@@ -58,7 +57,7 @@
5857
<th colspan="2" class="center aligned">JEH</th>
5958
<th colspan="2"></th>
6059
<th colspan="2" class="center aligned">Part JE</th>
61-
<th colspan="4" class="center aligned">Part intervenant(s)</th> <!-- todo: s que si plusieurs intervenants -->
60+
<th colspan="4" class="center aligned">Part intervenant</th>
6261
<th></th>
6362
</tr>
6463
<tr class="center aligned">
@@ -124,7 +123,6 @@
124123
<script lang="ts">
125124
import { Component, Prop, Vue, Watch } from 'vue-property-decorator'
126125
127-
// import DistributionChart from './DistributionChart'
128126
import DistributionChart from '../chart/ReadingChart.vue'
129127
import { PhaseObject, TauxObject } from '../types'
130128
import Phase from './Phase.vue'

src/components/Phase.vue

-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
<td>{{ phase.netConsultant | euro }}</td>
5353
<td>{{ phase.netByConsultant | euro }}</td>
5454
<td @click="deletePhaseEvent"><i class="icon close"></i></td>
55-
<!-- <td>{{ mode }}</td> -->
5655
</tr>
5756
</template>
5857

@@ -69,7 +68,6 @@ import MultipleSelect from './MultipleSelect.vue'
6968
export default class Phase extends Vue {
7069
// Props
7170
@Prop() private phase!: PhaseObject
72-
@Prop() private contributions!: any
7371
@Prop() private consultants!: string[]
7472
@Prop() private taux!: TauxObject
7573
@@ -170,7 +168,6 @@ export default class Phase extends Vue {
170168
this.phase.netByConsultant = 0
171169
this.phase.pcConsultant = 0
172170
}
173-
// toInt(strnb): [number, string] { // convert to integer and if possible then call calculate, otherwise call reset
174171
toInt (strnb: string): number { // convert to integer and if possible then call calculate, otherwise call reset
175172
let nb = parseInt(strnb)
176173
if (isNaN(nb)) {

src/components/Taux.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class Taux extends Vue {
4646
this.open = !this.open
4747
}
4848
49-
handleInput (e) {
49+
handleInput () {
5050
this.$emit('input', this.content)
5151
}
5252
}

tests/unit/types.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const testSetMethods = [
3737
},
3838
taux: new TauxObject(39.04, 0.30116, 0.042, 0.1605, 0)
3939
}
40-
// TODO Add values from 2020 with updated rates
4140
]
4241

4342
describe('TauxObject', () => {

0 commit comments

Comments
 (0)