Skip to content

Commit

Permalink
Rename mentions of denque to the proper dengue
Browse files Browse the repository at this point in the history
  • Loading branch information
rzats committed Sep 24, 2024
1 parent 31af158 commit c3e6c5b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/api/EpiData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
fluViewRegions,
gftLocations,
ghtLocations,
nidssDenqueLocations,
nidssDengueLocations,
nidssFluLocations,
nowcastLocations,
quidelLocations,
Expand Down Expand Up @@ -391,9 +391,9 @@ export function importGHT({
);
}

export function importNIDSSDenque({ locations }: { locations: string }): Promise<DataGroup | null> {
const regionLabel = nidssDenqueLocations.find((d) => d.value === locations)?.label ?? '?';
const title = `[API] NIDSS-Denque: ${regionLabel}`;
export function importNIDSSDengue({ locations }: { locations: string }): Promise<DataGroup | null> {
const regionLabel = nidssDengueLocations.find((d) => d.value === locations)?.label ?? '?';
const title = `[API] NIDSS-Dengue: ${regionLabel}`;
return loadDataSet(
title,
'nidss_dengue',
Expand Down
4 changes: 2 additions & 2 deletions src/components/dialogs/ImportAPIDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
| 'cdc'
| 'quidel'
| 'nidss_flu'
| 'nidss_denque'
| 'nidss_dengue'
| 'sensors'
| 'nowcast'
| 'covidcast'
Expand Down Expand Up @@ -156,7 +156,7 @@
<Wiki {id} bind:this={handler} />
{:else if dataSource === 'quidel'}
<Quidel {id} bind:this={handler} />
{:else if dataSource === 'nidss_denque'}
{:else if dataSource === 'nidss_dengue'}
<NidssDengue {id} bind:this={handler} />
{:else if dataSource === 'nidss_flu'}
<NidssFlu {id} bind:this={handler} />
Expand Down
6 changes: 3 additions & 3 deletions src/components/dialogs/dataSources/NIDSSDengue.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts">
import { importNIDSSDenque } from '../../../api/EpiData';
import { nidssDenqueLocations as regions } from '../../../data/data';
import { importNIDSSDengue } from '../../../api/EpiData';
import { nidssDengueLocations as regions } from '../../../data/data';
import SelectField from '../inputs/SelectField.svelte';
export let id: string;
let locations = regions[0].value;
export function importDataSet() {
return importNIDSSDenque({ locations });
return importNIDSSDengue({ locations });
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/data/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export const nidssFluLocations = [
{ value: 'taipei', label: 'Taipei' },
];

export const nidssDenqueLocations = [
export const nidssDengueLocations = [
{ value: 'nationwide', label: 'Taiwan National' },
{ value: 'central', label: 'Central' },
{ value: 'eastern', label: 'Eastern' },
Expand Down
4 changes: 2 additions & 2 deletions src/deriveLinkDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
importFluView,
importGFT,
importGHT,
importNIDSSDenque,
importNIDSSDengue,
importNIDSSFlu,
importNowcast,
importQuidel,
Expand Down Expand Up @@ -53,7 +53,7 @@ const lookups = {
fluview: importFluView,
gft: importGFT,
ght: importGHT,
nidss_denque: importNIDSSDenque,
nidss_dengue: importNIDSSDengue,
nidss_flu: importNIDSSFlu,
nowcast: importNowcast,
quidel: importQuidel,
Expand Down

0 comments on commit c3e6c5b

Please sign in to comment.