Skip to content

Commit

Permalink
updated global no csv
Browse files Browse the repository at this point in the history
  • Loading branch information
SuragNuthulapaty committed Jan 10, 2024
1 parent df985e9 commit 6537260
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/DataDisclaimer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<details class="data-disclaimer">
<summary>Note: Data only includes large Chicago buildings from 2020</summary>
<summary>Note: Data only includes large Chicago buildings from {{LatestDataYear}}, unless explicitly stated otherwise.</summary>

Check failure

Code scanning / ESLint

Enforce a maximum line length Error

This line has a length of 132. Maximum allowed is 100.

Check warning

Code scanning / ESLint

enforce unified spacing in mustache interpolations Warning

Expected 1 space after '{', but not found.

Check warning

Code scanning / ESLint

enforce unified spacing in mustache interpolations Warning

Expected 1 space before '}', but not found.

<p class="constrained">
<strong>Note:</strong> This data only includes buildings whose emissions are reported
Expand All @@ -25,15 +25,21 @@

<script lang="ts">
import NewTabIcon from './NewTabIcon.vue';
import { LatestDataYear } from '../constants/globals.vue';
import { Component, Vue } from 'vue-property-decorator';
/**
* A tile that can show the stats for a building, including whether it's
* doing better or worse than average, it's rank and percentile rank
*/
export default {
@Component({
name: 'DataDisclaimer',
components: {NewTabIcon},
};
})
export default class DataDisclaimer extends Vue {
readonly LatestDataYear: number = LatestDataYear
}

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Missing semicolon.
</script>

<style lang="scss">
Expand Down
4 changes: 4 additions & 0 deletions src/constants/globals.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<script lang="ts">
export default {};
export const LatestDataYear = 2021
</script>

Check failure

Code scanning / ESLint

Require or disallow semicolons instead of ASI Error

Missing semicolon.

0 comments on commit 6537260

Please sign in to comment.