Spaces:
Running
Running
thibaud frere
commited on
Commit
·
a2df917
1
Parent(s):
b27e0a3
update color palette and fix mutation observer
Browse files- .gitignore +3 -1
- app/src/pages/index.astro +3 -1
- app/{public → src}/scripts/color-palettes.js +0 -0
.gitignore
CHANGED
|
@@ -23,4 +23,6 @@ node_modules/
|
|
| 23 |
app/public/*.pdf
|
| 24 |
app/public/*.png
|
| 25 |
app/public/*.jpg
|
| 26 |
-
app/public/data/**/*
|
|
|
|
|
|
|
|
|
| 23 |
app/public/*.pdf
|
| 24 |
app/public/*.png
|
| 25 |
app/public/*.jpg
|
| 26 |
+
app/public/data/**/*
|
| 27 |
+
|
| 28 |
+
.astro/
|
app/src/pages/index.astro
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
import * as ArticleMod from '../content/article.mdx';
|
|
|
|
| 3 |
import Hero from '../components/Hero.astro';
|
| 4 |
import Footer from '../components/Footer.astro';
|
| 5 |
import ThemeToggle from '../components/ThemeToggle.astro';
|
| 6 |
import Seo from '../components/Seo.astro';
|
| 7 |
import TableOfContents from '../components/TableOfContents.astro';
|
|
|
|
| 8 |
// Default OG image served from public/
|
| 9 |
const ogDefaultUrl = '/thumb.auto.jpg';
|
| 10 |
import 'katex/dist/katex.min.css';
|
|
@@ -142,7 +144,7 @@ const licence = (articleFM as any)?.licence ?? (articleFM as any)?.license ?? (a
|
|
| 142 |
} catch {}
|
| 143 |
})();
|
| 144 |
</script>
|
| 145 |
-
<script
|
| 146 |
|
| 147 |
<!-- TO MANAGE PROPERLY -->
|
| 148 |
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
|
|
|
| 1 |
---
|
| 2 |
import * as ArticleMod from '../content/article.mdx';
|
| 3 |
+
|
| 4 |
import Hero from '../components/Hero.astro';
|
| 5 |
import Footer from '../components/Footer.astro';
|
| 6 |
import ThemeToggle from '../components/ThemeToggle.astro';
|
| 7 |
import Seo from '../components/Seo.astro';
|
| 8 |
import TableOfContents from '../components/TableOfContents.astro';
|
| 9 |
+
import colorPalettesUrl from '../scripts/color-palettes.js?url';
|
| 10 |
// Default OG image served from public/
|
| 11 |
const ogDefaultUrl = '/thumb.auto.jpg';
|
| 12 |
import 'katex/dist/katex.min.css';
|
|
|
|
| 144 |
} catch {}
|
| 145 |
})();
|
| 146 |
</script>
|
| 147 |
+
<script type="module" src={colorPalettesUrl}></script>
|
| 148 |
|
| 149 |
<!-- TO MANAGE PROPERLY -->
|
| 150 |
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
app/{public → src}/scripts/color-palettes.js
RENAMED
|
File without changes
|