-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove vulnerable dependencies from google analytics app
- Loading branch information
1 parent
50f0319
commit c64f875
Showing
10 changed files
with
3,013 additions
and
30,592 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="./src/index.tsx"></script> | ||
<script> | ||
(function(w, d, s, g, js, fjs) { | ||
g = w.gapi || (w.gapi = {}); | ||
g.analytics = { | ||
q: [], | ||
ready: function(cb) { | ||
this.q.push(cb); | ||
} | ||
}; | ||
js = d.createElement(s); | ||
fjs = d.getElementsByTagName(s)[0]; | ||
js.src = 'https://apis.google.com/js/platform.js'; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
js.onload = function() { | ||
g.load('analytics'); | ||
}; | ||
})(window, document, 'script'); | ||
</script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare module '*.svg' { | ||
import React = require('react'); | ||
const content: React.FunctionComponent<React.SVGProps<SVGSVGElement> & { title?: string }>; | ||
export default content; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { defineConfig } from 'vite'; | ||
|
||
export default defineConfig({ | ||
server: { | ||
port: 3000, | ||
}, | ||
build: { | ||
outDir: 'build', | ||
lib: { | ||
entry: 'src/index.tsx', | ||
name: 'google-analytics', | ||
}, | ||
}, | ||
}); |