-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DE-149 analytics integration (#485)
* add env to git ignore * add es lint and prettier * combine prettier and eslint * fix lint errors * remove uneeded packa attributes * only lint source * remove env from eslint * lint gh action * lint gh action v2 * rename gh lint action * add amplitude dependency * test with npm package * uniswap analytics pkgs integration * add web vitals * add POC trace events on homepage * add page name tracking * add top landing page metrics * new break down and page views * new analytics events version * replace dash with space * get browser from analytics pkg * define props * remove eslint skips * add app origin * pull analytics from npm * updated lockfile * track referer * use try catch * add documentation and renaming * feat: de 149- analytics integration v2 (#487) * menu and navbar clicks * log search bar clicks * add div for click * comments on extra div * stop event propagation * comment and page name * adjust naming for version change * protocol version as section * update comment * update switch statement * remove fallback * comment on default switch * update analytics events * fix import * whole path name * add comment for try/catch on init
- Loading branch information
1 parent
11351ab
commit 7471839
Showing
14 changed files
with
1,020 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,54 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"root": true, | ||
"extends": [ | ||
"plugin:prettier/recommended", | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
"plugin:react-hooks/recommended", | ||
"prettier/@typescript-eslint", | ||
"plugin:prettier/recommended" | ||
], | ||
"overrides": [], | ||
"plugins": [ | ||
"prettier", | ||
"@typescript-eslint" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
// Allows for the parsing of JSX | ||
"jsx": true | ||
} | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"node_modules", | ||
"coverage", | ||
"build", | ||
"dist", | ||
".DS_Store", | ||
".env.local", | ||
".env.development.local", | ||
".env.test.local", | ||
".env.production.local", | ||
".vscode/", | ||
"package-lock.json", | ||
"yarn.lock", | ||
"docusaurus.config.js" | ||
"plugins": [ | ||
"typescript-sort-keys" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error" | ||
"typescript-sort-keys/string-enum": [ | ||
"error", | ||
"asc", | ||
{ | ||
"caseSensitive": true | ||
} | ||
], | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/naming-convention": [ | ||
"warn", | ||
{ | ||
"selector": "enum", | ||
"format": [ | ||
"StrictPascalCase" | ||
] | ||
} | ||
], | ||
"curly": [ | ||
"warn", | ||
"all" | ||
], | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"argsIgnorePattern": "_", | ||
"varsIgnorePattern": "_", | ||
"caughtErrorsIgnorePattern": "_" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7471839
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./
docs.uniswap.org
docs-uniswap.vercel.app
docs-git-main-uniswap.vercel.app