Skip to content

Commit

Permalink
declare module periodic-table-data.ts + clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jun 4, 2022
1 parent 6b2953e commit 6b9f717
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 69 deletions.
5 changes: 5 additions & 0 deletions src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/// <reference types="@sveltejs/kit" />

declare module '*periodic-table-data.ts' {
const elements: import('./types').Element[]
export default elements
}
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Svelte Periodic Table</title>
<title>Periodic Table</title>
<meta name="author" content="Janosh Riebesell" />
<meta
name="description"
content="Interactive periodic table of elements written in Svelte"
content="Periodic table of elements written in Svelte"
/>

<meta charset="utf-8" />
Expand Down
61 changes: 0 additions & 61 deletions src/lib/ToolTip.svelte

This file was deleted.

12 changes: 6 additions & 6 deletions src/lib/periodic-table-data.ts → src/periodic-table-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ export default [
melting_point: 1808.15,
boiling_point: 3134,
number_of_isotopes: 10,
year: `before 5000 BC`,
year: `~5000 BC`,
specific_heat: 0.449,
n_shells: 4,
n_valence: null,
Expand Down Expand Up @@ -1402,7 +1402,7 @@ export default [
melting_point: 1357.75,
boiling_point: 2835,
number_of_isotopes: 11,
year: `9000 BC`,
year: `~9000 BC`,
specific_heat: 0.385,
n_shells: 4,
n_valence: null,
Expand Down Expand Up @@ -2248,7 +2248,7 @@ export default [
melting_point: 1234.15,
boiling_point: 2435,
number_of_isotopes: 27,
year: `3000 BC`,
year: `~3000 BC`,
specific_heat: 0.235,
n_shells: 5,
n_valence: null,
Expand Down Expand Up @@ -2386,7 +2386,7 @@ export default [
melting_point: 505.21,
boiling_point: 2875,
number_of_isotopes: 28,
year: `3500 BC`,
year: `~3500 BC`,
specific_heat: 0.228,
n_shells: 5,
n_valence: 4,
Expand Down Expand Up @@ -2432,7 +2432,7 @@ export default [
melting_point: 904.05,
boiling_point: 1860,
number_of_isotopes: 29,
year: `1600 BC`,
year: `~1600 BC`,
specific_heat: 0.207,
n_shells: 5,
n_valence: 5,
Expand Down Expand Up @@ -3858,7 +3858,7 @@ export default [
melting_point: 600.75,
boiling_point: 2022,
number_of_isotopes: 29,
year: `5000 BC`,
year: `~5000 BC`,
specific_heat: 0.129,
n_shells: 6,
n_valence: 4,
Expand Down

0 comments on commit 6b9f717

Please sign in to comment.