From 92bffe1045a42c7b7098b5586215f18f01d00790 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Tue, 2 Jul 2024 21:06:59 +0900 Subject: [PATCH] (sec) no 3rd party --- app/frontend/src/components/Alpine.astro | 12 ++++++++++++ app/frontend/src/components/ReadmeDashboard.astro | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app/frontend/src/components/Alpine.astro diff --git a/app/frontend/src/components/Alpine.astro b/app/frontend/src/components/Alpine.astro new file mode 100644 index 0000000..16977b0 --- /dev/null +++ b/app/frontend/src/components/Alpine.astro @@ -0,0 +1,12 @@ +--- +// source from https://unpkg.com/alpinejs@3.0.7/dist/cdn.min.js +// doing this to avoid including alpine from unpkg, we all know what happened with pollyfill.io +--- + + diff --git a/app/frontend/src/components/ReadmeDashboard.astro b/app/frontend/src/components/ReadmeDashboard.astro index 62422aa..f523faf 100644 --- a/app/frontend/src/components/ReadmeDashboard.astro +++ b/app/frontend/src/components/ReadmeDashboard.astro @@ -9,6 +9,8 @@ import FullCharts from "@components/partials/readme_dashboard/full_charts.astro" import TypesCharts from "@components/partials/readme_dashboard/types_charts.astro"; import BranchesCharts from "@components/partials/readme_dashboard/branches_charts.astro"; import UsersCharts from "@components/partials/readme_dashboard/users_charts.astro"; +import Alpine from "@components/Alpine.astro"; + const baseURL = import.meta.env.PUBLIC_BASE_URL; --- @@ -33,7 +35,7 @@ const baseURL = import.meta.env.PUBLIC_BASE_URL; - +