diff --git a/.eslintignore b/.eslintignore index f082429a13..5249caf73e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -13,3 +13,5 @@ https-dev-config/localhost.key Dockerfile elk-translation-status.json docs/translation-status.json +telemetry/generated +telemetry/README.md diff --git a/.gitignore b/.gitignore index a7cd793f57..2234d3b0b2 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ public/emojis *~ *swp *swo + +.venv/ diff --git a/README.md b/README.md index 54f22b5b8e..b6950fd377 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ Clone the repository and run on the root folder: ``` pnpm i +pnpm run build:glean pnpm run dev ``` @@ -125,9 +126,18 @@ We recommend installing [ni](https://github.com/antfu/ni#ni), that will use the ``` ni +nr build:glean nr dev ``` +### Telemetry + +*Note: This section is a work in progress.* + +We are using [glean.js](https://github.com/mozilla/glean.js/) for analytics tracking. Build the necessary generated files by running the `build:glean` script before starting your server. + +For more details on developing in Glean, see the [Glean Development Guide](./telemetry/README.md) (note it's currently very much a work in progress). + ### Testing Elk uses [Vitest](https://vitest.dev). You can run the test suite with: diff --git a/components/nav/NavSide.vue b/components/nav/NavSide.vue index e67cdb7b95..8993028849 100644 --- a/components/nav/NavSide.vue +++ b/components/nav/NavSide.vue @@ -23,6 +23,7 @@ const useStarFavoriteIcon = usePreferences('useStarFavoriteIcon') + diff --git a/components/recommendation/RecommendationArticle.vue b/components/recommendation/RecommendationArticle.vue new file mode 100644 index 0000000000..14dbcb14f1 --- /dev/null +++ b/components/recommendation/RecommendationArticle.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/components/settings/SettingsColorMode.vue b/components/settings/SettingsColorMode.vue index 823f835d83..0fd610e160 100644 --- a/components/settings/SettingsColorMode.vue +++ b/components/settings/SettingsColorMode.vue @@ -31,6 +31,8 @@ const modes = [