diff --git a/.vscode/settings.json b/.vscode/settings.json index bae72f48..f3ee2f3b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,4 +30,7 @@ "source.organizeImports": false, "source.fixAll.eslint": true }, + "cSpell.words": [ + "favorited" + ], } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7a9fa044..77873890 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "urlink-chrome-extension", - "version": "1.1.4", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5088,9 +5088,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001185", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001185.tgz", - "integrity": "sha512-Fpi4kVNtNvJ15H0F6vwmXtb3tukv3Zg3qhKkOGUq7KJ1J6b9kf4dnNgtEAFXhRsJo0gNj9W60+wBvn0JcTvdTg==" + "version": "1.0.30001264", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001264.tgz", + "integrity": "sha512-Ftfqqfcs/ePiUmyaySsQ4PUsdcYyXG2rfoBVsk3iY1ahHaJEw65vfb7Suzqm+cEkwwPIv/XWkg27iCpRavH4zA==" }, "capture-exit": { "version": "2.0.0", @@ -6320,11 +6320,11 @@ } }, "dom7": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/dom7/-/dom7-2.1.5.tgz", - "integrity": "sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dom7/-/dom7-3.0.0.tgz", + "integrity": "sha512-oNlcUdHsC4zb7Msx7JN3K0Nro1dzJ48knvBOnDPKJ2GV9wl1i5vydJZUSyOfrkKFDZEud/jBsTk92S/VGSAe/g==", "requires": { - "ssr-window": "^2.0.0" + "ssr-window": "^3.0.0-alpha.1" } }, "domain-browser": { @@ -8972,9 +8972,9 @@ "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==" }, "immer": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/immer/-/immer-8.0.1.tgz", - "integrity": "sha512-aqXhGP7//Gui2+UrEtvxZxSquQVXTpZ7KDxfCcKAF3Vysvw0CViVaW9RZ1j1xlIYqaaaipBoqdqeibkc18PNvA==" + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.6.tgz", + "integrity": "sha512-G95ivKpy+EvVAnAab4fVa4YGYn24J1SpEktnJX7JJ45Bd7xqME/SCplFzYFmTbrkwZbQ4xJK1xMTUYBkN6pWsQ==" }, "import-cwd": { "version": "2.1.0", @@ -15595,6 +15595,11 @@ "slash": "^3.0.0" } }, + "immer": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/immer/-/immer-8.0.1.tgz", + "integrity": "sha512-aqXhGP7//Gui2+UrEtvxZxSquQVXTpZ7KDxfCcKAF3Vysvw0CViVaW9RZ1j1xlIYqaaaipBoqdqeibkc18PNvA==" + }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -15652,6 +15657,11 @@ "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.9.tgz", "integrity": "sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==" }, + "react-ga": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/react-ga/-/react-ga-3.3.0.tgz", + "integrity": "sha512-o8RScHj6Lb8cwy3GMrVH6NJvL+y0zpJvKtc0+wmH7Bt23rszJmnqEQxRbyrqUzk9DTJIHoP42bfO5rswC9SWBQ==" + }, "react-hook-form": { "version": "6.13.1", "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-6.13.1.tgz", @@ -17240,9 +17250,9 @@ } }, "ssr-window": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-2.0.0.tgz", - "integrity": "sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-3.0.0.tgz", + "integrity": "sha512-q+8UfWDg9Itrg0yWK7oe5p/XRCJpJF9OBtXfOPgSJl+u3Xd5KI328RUEvUqSMVM9CiQUEf1QdBzJMkYGErj9QA==" }, "ssri": { "version": "8.0.1", @@ -17594,12 +17604,12 @@ } }, "swiper": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/swiper/-/swiper-5.4.5.tgz", - "integrity": "sha512-7QjA0XpdOmiMoClfaZ2lYN6ICHcMm72LXiY+NF4fQLFidigameaofvpjEEiTQuw3xm5eksG5hzkaRsjQX57vtA==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-6.5.1.tgz", + "integrity": "sha512-iuyg4cr+L7wo5EI0fWUuW+lT3BnNtVTYtInhUC5JImTr0i8jNranx8BPyN8AOSKa6jBYN+oaCzj8DAwGK+ngRg==", "requires": { - "dom7": "^2.1.5", - "ssr-window": "^2.0.0" + "dom7": "^3.0.0", + "ssr-window": "^3.0.0" } }, "symbol-observable": { diff --git a/package.json b/package.json index 7ede8715..c641fa85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "urlink-chrome-extension", - "version": "1.1.4", + "version": "1.2.0", "private": true, "dependencies": { "@craco/craco": "^6.1.1", @@ -17,12 +17,13 @@ "axios": "^0.21.1", "clsx": "^1.1.0", "history": "^4.10.1", - "immer": "^8.0.1", + "immer": "^9.0.6", "moment": "^2.26.0", "node-sass": "^4.14.1", "react": "^16.13.0", "react-chrome-extension-router": "^1.1.0", "react-dom": "^16.13.0", + "react-ga": "^3.3.0", "react-hook-form": "^6.13.1", "react-id-swiper": "^4.0.0", "react-redux": "^7.2.2", @@ -32,7 +33,7 @@ "redux-devtools-extension": "^2.13.8", "redux-saga": "^1.1.3", "redux-thunk": "^2.3.0", - "swiper": "^5.4.5", + "swiper": "^6.5.1", "yup": "^0.32.8" }, "scripts": { diff --git a/public/analytics.js b/public/analytics.js new file mode 100644 index 00000000..d49def09 --- /dev/null +++ b/public/analytics.js @@ -0,0 +1,20 @@ +/* eslint-disable no-undef */ +/* eslint-disable no-unused-expressions */ + +;(function (i, s, o, g, r, a, m) { + i['GoogleAnalyticsObject'] = r + ;(i[r] = + i[r] || + function () { + ;(i[r].q = i[r].q || []).push(arguments) + }), + (i[r].l = 1 * new Date()) + ;(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]) + a.async = 1 + a.src = g + m.parentNode.insertBefore(a, m) +})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga') + +ga('create', 'UA-207149982-2', 'auto') +ga('set', 'checkProtocolTask', null) +ga('send', 'pageview') diff --git a/public/background.html b/public/background.html index b0d4b973..18cb83c2 100644 --- a/public/background.html +++ b/public/background.html @@ -1,12 +1,10 @@ - -
- + +