Skip to content

Commit

Permalink
add scarf
Browse files Browse the repository at this point in the history
  • Loading branch information
theoephraim committed Mar 3, 2025
1 parent d455b65 commit d0a30e0
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"@dmno/configraph": "workspace:*",
"@inquirer/core": "^8.0.1",
"@inquirer/prompts": "^5.0.1",
"@scarf/scarf": "catalog:",
"acorn": "^8.12.1",
"acorn-typescript": "^1.4.13",
"acorn-walk": "^8.3.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/docs-site/.dmno/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,13 @@ export default defineDmnoService({
SIGNUP_API_URL: {
value: 'https://signup-api.dmno.dev',
},

SCARF_PIXEL_ID: {
description: 'analytics pixel scarf.sh',
value: switchBy('DMNO_ENV', {
_default: undefined,
production: '58b1912e-d54f-4c10-9f07-1d4a4e63e2eb',
}),
}
}
});
8 changes: 8 additions & 0 deletions packages/docs-site/src/components/CustomStarlightFooter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ import EmailSignup from "./EmailSignup.vue";
<a href="/docs/footer/about/">About</a>
<a href="/docs/footer/legal/">Legal</a>
</div>
{
DMNO_PUBLIC_CONFIG.SCARF_PIXEL_ID && (
<img
referrerpolicy="no-referrer-when-downgrade"
src={`https://scarf.dmno.dev/a.png?x-pxid=${DMNO_PUBLIC_CONFIG.SCARF_PIXEL_ID}`}
/>
)
}
</footer>

<style>
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/1password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@
"devDependencies": {
"@dmno/eslint-config": "workspace:*",
"@dmno/tsconfig": "workspace:*",
"@types/lodash-es": "catalog:",
"@types/debug": "catalog:",
"@types/lodash-es": "catalog:",
"@types/node": "catalog:",
"dmno": "workspace:*",
"tsup": "catalog:",
"typescript": "catalog:"
},
"dependencies": {
"@1password/sdk": "^0.1.1",
"@scarf/scarf": "catalog:",
"debug": "catalog:",
"kleur": "^4.1.5",
"lodash-es": "catalog:"
Expand Down
13 changes: 12 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ catalog:
"vite-node": "^2.1.2"
"vitest": "^2.1.5"
"@dagrejs/graphlib": "^2.2.4"
"@scarf/scarf": "^1.4.0"
"@types/debug": "^4.1.12"
"@types/lodash-es": "^4.17.12"
"@types/node": "^20.14.11"

0 comments on commit d0a30e0

Please sign in to comment.