mirror of
https://ark.sudovanilla.org/Korbs/butterflyvu.git
synced 2024-12-22 23:33:54 +00:00
update
This commit is contained in:
parent
88c1c549ed
commit
d3bcd4d1a2
|
@ -9,13 +9,11 @@ import {
|
|||
} from './src/utils/GetConfig'
|
||||
|
||||
// Adapters
|
||||
import node from '@astrojs/node';
|
||||
import bun from 'astro-bun-adapter';
|
||||
|
||||
// Integrations
|
||||
import keystatic from '@keystatic/astro';
|
||||
import mdx from '@astrojs/mdx';
|
||||
import partytown from '@astrojs/partytown';
|
||||
import react from '@astrojs/react';
|
||||
|
||||
export default defineConfig({
|
||||
// Information
|
||||
|
@ -24,7 +22,6 @@ export default defineConfig({
|
|||
// Integrations
|
||||
integrations: [
|
||||
mdx(),
|
||||
partytown(),
|
||||
vue(),
|
||||
// Disable Keystatic in production
|
||||
// https://keystatic.com/docs/recipes/astro-disable-admin-ui-in-production
|
||||
|
@ -33,9 +30,7 @@ export default defineConfig({
|
|||
// Server Output
|
||||
output: "hybrid",
|
||||
prefetch: true,
|
||||
adapter: node({
|
||||
mode: 'standalone',
|
||||
}),
|
||||
adapter: bun(),
|
||||
server: {
|
||||
port: 2014,
|
||||
host: true
|
||||
|
|
|
@ -32,11 +32,7 @@
|
|||
"docker:push": "docker push ark.sudovanilla.org/korbs/butterlyvu:amd64"
|
||||
},
|
||||
"dependencies": {
|
||||
"@aptabase/react": "^0.3.4",
|
||||
"@aptabase/web": "^0.4.3",
|
||||
"@astrojs/mdx": "^3.1.6",
|
||||
"@astrojs/node": "^8.3.3",
|
||||
"@astrojs/partytown": "^2.1.2",
|
||||
"@astrojs/prism": "^3.1.0",
|
||||
"@astrojs/vue": "^4.5.1",
|
||||
"@keystatic/astro": "^5.0.0",
|
||||
|
@ -45,9 +41,9 @@
|
|||
"astro": "4.15.7",
|
||||
"astro-analytics": "^2.7.0",
|
||||
"astro-breadcrumbs": "^3.1.0",
|
||||
"astro-bun-adapter": "^1.0.2",
|
||||
"astro-feelback": "^0.3.4",
|
||||
"astro-seo": "^0.8.4",
|
||||
"dayjs": "^1.11.13",
|
||||
"markdoc": "^0.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
---
|
||||
// Environment Variables
|
||||
import {
|
||||
ANALYTICS,
|
||||
MATOMO_ID,
|
||||
MATOMO_SRC,
|
||||
PLAUSIBLE_DOMAIN,
|
||||
PLAUSIBLE_SRC,
|
||||
UMAMI_ID,
|
||||
UMAMI_SRC,
|
||||
AMPLITUDE_APIKEY,
|
||||
METRICAL_APP,
|
||||
FATHOM_SITE,
|
||||
FATHOM_SRC,
|
||||
MINIAML_ID,
|
||||
SWETRIX_SRC,
|
||||
SWETRIX_API,
|
||||
SWETRIX_PROJECT_ID,
|
||||
SIMPLEANALYTICS_DOMAIN
|
||||
} from '@utils/GetConfig'
|
||||
|
||||
// Get Astro Analytics
|
||||
import {
|
||||
Fathom,
|
||||
Metrical,
|
||||
Plausible,
|
||||
SimpleAnalytics,
|
||||
Umami,
|
||||
Amplitude,
|
||||
Matomo,
|
||||
MinimalAnalytics
|
||||
} from 'astro-analytics'
|
||||
---
|
||||
|
||||
<!-- https://gist.sudovanilla.org/Korbs/fac0f5b99a6e43679c1d38d614721b5e -->
|
||||
{
|
||||
()=> {
|
||||
if (ANALYTICS === "None") {
|
||||
return null
|
||||
} else if (ANALYTICS === "Plausible") {
|
||||
<Plausible domain={PLAUSIBLE_DOMAIN} src={PLAUSIBLE_SRC + "/yoursript.js"} />
|
||||
} else if (ANALYTICS === "Umami") {
|
||||
<Umami id="4fb7fa4c-5b46-438d-94b3-3a8fb9bc2e8b" src={UMAMI_SRC + "/umami.js"} />
|
||||
} else if (ANALYTICS === "Amplitude") {
|
||||
<Amplitude apiKey={AMPLITUDE_APIKEY} />
|
||||
} else if (ANALYTICS === "Matomo") {
|
||||
<Matomo id={MATOMO_ID} src={MATOMO_SRC} />
|
||||
} else if (ANALYTICS === "Metrical") {
|
||||
<Metrical app={METRICAL_APP} />
|
||||
} else if (ANALYTICS === "Fathom") {
|
||||
<Fathom site={FATHOM_SITE} src={FATHOM_SRC} />
|
||||
} else if (ANALYTICS === "MinimalAnalytics") {
|
||||
<MinimalAnalytics id={MINIAML_ID} />
|
||||
} else if (ANALYTICS === "Swetrix") {
|
||||
<script is:inline src={SWETRIX_SRC} defer></script>
|
||||
<script is:inline>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
swetrix.init({SWETRIX_PROJECT_ID})
|
||||
swetrix.trackViews()
|
||||
})
|
||||
</script>
|
||||
<noscript><img src={SWETRIX_API + '/log/noscript?pid=' + SWETRIX_PROJECT_ID} alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
|
||||
} else if (ANALYTICS === "Simple Analytics") {
|
||||
<script is:inline async defer data-hostname={SIMPLEANALYTICS_DOMAIN} src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
|
||||
<noscript><img src={'https://queue.simpleanalyticscdn.com/noscript.gif?hostname=' + SIMPLEANALYTICS_DOMAIN} alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
|
||||
} else if (ANALYTICS === "Tianji") {
|
||||
<script async defer src="http://192.168.1.175:51257/tracker.js" data-website-id="clxcrsbjb000559gojgt9qdmi"></script>
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,9 +1,6 @@
|
|||
---
|
||||
// Properties
|
||||
const { Title } = Astro.props;
|
||||
|
||||
// Components
|
||||
import Analytics from "@components/global/Analytics.astro"
|
||||
---
|
||||
|
||||
<head>
|
||||
|
@ -21,5 +18,4 @@ import Analytics from "@components/global/Analytics.astro"
|
|||
<!-- Favicon -->
|
||||
<link rel="apple-touch-icon" href="favicon.svg" />
|
||||
<link rel="icon" href="favicon.svg" />
|
||||
<Analytics/>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue