Skip to content

Commit

Permalink
Drop logs and run linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoves committed May 8, 2024
1 parent 7e593df commit 25ed27b
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/components/HistoricalBuildingDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@
<th scope="col">
Year
</th>
<th v-if="renderedColumns.includes('GrossFloorArea')" scope="col">
<th
v-if="renderedColumns.includes('GrossFloorArea')"
scope="col"
>
Floor Area <span class="unit">sqft</span>
</th>
<th v-if="renderedColumns.includes('ChicagoEnergyRating')" scope="col">
<th
v-if="renderedColumns.includes('ChicagoEnergyRating')"
scope="col"
>
Chicago Energy<br> Rating
</th>
<th v-if="renderedColumns.includes('ENERGYSTARScore')" scope="col">
<th
v-if="renderedColumns.includes('ENERGYSTARScore')"
scope="col"
>
Energy Star<br> Score
</th>
<th scope="col">
Expand All @@ -28,7 +37,10 @@
<th scope="col">
Natural Gas Use <span class="unit">kBtu</span>
</th>
<th v-if="renderedColumns.includes('DistrictSteamUse')" scope="col">
<th
v-if="renderedColumns.includes('DistrictSteamUse')"
scope="col"
>
District Steam Use <span class="unit">kBtu</span>
</th>
</tr>
Expand All @@ -39,7 +51,7 @@
:key="benchmark.DataYear"
>
<td>{{ benchmark.DataYear }}</td>
<td v-if="renderedColumns.includes('GrossFloorArea')">
<td v-if="renderedColumns.includes('GrossFloorArea')">
{{ benchmark.GrossFloorArea | optionalInt }}
</td>
<td v-if="renderedColumns.includes('ChicagoEnergyRating')">
Expand Down Expand Up @@ -87,7 +99,7 @@ import {IHistoricData} from '../common-functions.vue';
return parseInt(value).toLocaleString();
},
}
},
})
export default class BuildingImage extends Vue {
@Prop({required: true}) historicBenchmarks!: Array<IHistoricData>;
Expand All @@ -112,10 +124,7 @@ export default class BuildingImage extends Vue {
}
created(): void {
// const emptyColumns =
console.log('historicBenchmarks', this.historicBenchmarks);
this.renderedColumns = this.getRenderedColumns();
console.log('renderedColumns', this.renderedColumns);
}
}
</script>
Expand Down

0 comments on commit 25ed27b

Please sign in to comment.