Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Outbound live stream notifications (#1663)

Gabe Kangasaadefeea9a2f
diff --git a/build/javascript/package-lock.json b/build/javascript/package-lock.json
index 16d2b7077d..3263de3e66 100644
--- a/build/javascript/package-lock.json
+++ b/build/javascript/package-lock.json
@@ -1,3111 +1,8 @@
{
"name": "owncast-dependencies",
"version": "1.0.0",
- "lockfileVersion": 2,
+ "lockfileVersion": 1,
"requires": true,
- "packages": {
- "": {
- "name": "owncast-dependencies",
- "version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "@joeattardi/emoji-button": "^4.6.2",
- "@videojs/themes": "^1.0.1",
- "htm": "^3.1.0",
- "mark.js": "^8.11.1",
- "micromodal": "^0.4.10",
- "preact": "10.6.6",
- "tailwindcss": "^1.9.6",
- "video.js": "7.17.0"
- },
- "devDependencies": {
- "cssnano": "5.1.0",
- "postcss": "8.4.7",
- "postcss-cli": "9.1.0"
- }
- },
- "node_modules/@babel/runtime": {
- "version": "7.17.2",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.2.tgz",
- "integrity": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==",
- "dependencies": {
- "regenerator-runtime": "^0.13.4"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
- "node_modules/@fortawesome/fontawesome-common-types": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.3.0.tgz",
- "integrity": "sha512-CA3MAZBTxVsF6SkfkHXDerkhcQs0QPofy43eFdbWJJkZiq3SfiaH1msOkac59rQaqto5EqWnASboY1dBuKen5w==",
- "hasInstallScript": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@fortawesome/fontawesome-svg-core": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.3.0.tgz",
- "integrity": "sha512-UIL6crBWhjTNQcONt96ExjUnKt1D68foe3xjEensLDclqQ6YagwCRYVQdrp/hW0ALRp/5Fv/VKw+MqTUWYYvPg==",
- "hasInstallScript": true,
- "dependencies": {
- "@fortawesome/fontawesome-common-types": "^0.3.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@fortawesome/free-regular-svg-icons": {
- "version": "5.15.4",
- "resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-5.15.4.tgz",
- "integrity": "sha512-9VNNnU3CXHy9XednJ3wzQp6SwNwT3XaM26oS4Rp391GsxVYA+0oDR2J194YCIWf7jNRCYKjUCOduxdceLrx+xw==",
- "hasInstallScript": true,
- "dependencies": {
- "@fortawesome/fontawesome-common-types": "^0.2.36"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@fortawesome/free-regular-svg-icons/node_modules/@fortawesome/fontawesome-common-types": {
- "version": "0.2.36",
- "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
- "integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg==",
- "hasInstallScript": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@fortawesome/free-solid-svg-icons": {
- "version": "5.15.4",
- "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.4.tgz",
- "integrity": "sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w==",
- "hasInstallScript": true,
- "dependencies": {
- "@fortawesome/fontawesome-common-types": "^0.2.36"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@fortawesome/free-solid-svg-icons/node_modules/@fortawesome/fontawesome-common-types": {
- "version": "0.2.36",
- "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
- "integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg==",
- "hasInstallScript": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/@fullhuman/postcss-purgecss/-/postcss-purgecss-2.3.0.tgz",
- "integrity": "sha512-qnKm5dIOyPGJ70kPZ5jiz0I9foVOic0j+cOzNDoo8KoCf6HjicIZ99UfO2OmE7vCYSKAAepEwJtNzpiiZAh9xw==",
- "dependencies": {
- "postcss": "7.0.32",
- "purgecss": "^2.3.0"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "dependencies": {
- "color-convert": "^1.9.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dependencies": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/chalk/node_modules/supports-color": {
- "version": "5.5.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
- "dependencies": {
- "has-flag": "^3.0.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "dependencies": {
- "color-name": "1.1.3"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/has-flag": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/postcss": {
- "version": "7.0.32",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz",
- "integrity": "sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==",
- "dependencies": {
- "chalk": "^2.4.2",
- "source-map": "^0.6.1",
- "supports-color": "^6.1.0"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- }
- },
- "node_modules/@fullhuman/postcss-purgecss/node_modules/supports-color": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
- "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
- "dependencies": {
- "has-flag": "^3.0.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@joeattardi/emoji-button": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/@joeattardi/emoji-button/-/emoji-button-4.6.2.tgz",
- "integrity": "sha512-FhuzTmW3nVHLVp2BJfNX17CYV77fqtKZlx328D4h6Dw3cPTT1gJRNXN0jV7BvHgsl6Q/tN8DIQQxTUIO4jW3gQ==",
- "dependencies": {
- "@fortawesome/fontawesome-svg-core": "^1.2.28",
- "@fortawesome/free-regular-svg-icons": "^5.13.0",
- "@fortawesome/free-solid-svg-icons": "^5.13.0",
- "@popperjs/core": "^2.4.0",
- "@types/twemoji": "^12.1.1",
- "escape-html": "^1.0.3",
- "focus-trap": "^5.1.0",
- "fuzzysort": "^1.1.4",
- "tiny-emitter": "^2.1.0",
- "tslib": "^2.0.0",
- "twemoji": "^13.0.0"
- }
- },
- "node_modules/@nodelib/fs.scandir": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
- "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
- "dev": true,
- "dependencies": {
- "@nodelib/fs.stat": "2.0.5",
- "run-parallel": "^1.1.9"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@nodelib/fs.stat": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
- "dev": true,
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@nodelib/fs.walk": {
- "version": "1.2.8",
- "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
- "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
- "dev": true,
- "dependencies": {
- "@nodelib/fs.scandir": "2.1.5",
- "fastq": "^1.6.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@popperjs/core": {
- "version": "2.11.2",
- "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.2.tgz",
- "integrity": "sha512-92FRmppjjqz29VMJ2dn+xdyXZBrMlE42AV6Kq6BwjWV7CNUW1hs2FtxSNLQE+gJhaZ6AAmYuO9y8dshhcBl7vA==",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/popperjs"
- }
- },
- "node_modules/@trysound/sax": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz",
- "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==",
- "dev": true,
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/@types/twemoji": {
- "version": "12.1.2",
- "resolved": "https://registry.npmjs.org/@types/twemoji/-/twemoji-12.1.2.tgz",
- "integrity": "sha512-3eMyKenMi0R1CeKzBYtk/Z2JIHsTMQrIrTah0q54o45pHTpWVNofU2oHx0jS8tqsDRhis2TbB6238WP9oh2l2w=="
- },
- "node_modules/@videojs/http-streaming": {
- "version": "2.12.0",
- "resolved": "https://registry.npmjs.org/@videojs/http-streaming/-/http-streaming-2.12.0.tgz",
- "integrity": "sha512-vdQA0lDYBXGJqV2T02AGqg1w4dcgyRoN+bYG+G8uF4DpCEMhEtUI0BA4tRu4/Njar8w/9D5k0a1KX40pcvM3fA==",
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "3.0.4",
- "aes-decrypter": "3.1.2",
- "global": "^4.4.0",
- "m3u8-parser": "4.7.0",
- "mpd-parser": "0.19.2",
- "mux.js": "5.14.1",
- "video.js": "^6 || ^7"
- },
- "engines": {
- "node": ">=8",
- "npm": ">=5"
- },
- "peerDependencies": {
- "video.js": "^6 || ^7"
- }
- },
- "node_modules/@videojs/themes": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@videojs/themes/-/themes-1.0.1.tgz",
- "integrity": "sha512-2b6YIIIz5x+/eSFdkSZ2RZJfHIMfP7bGODR3wDzLTqFF2kEKnJVIXxBUNzdZC/qiVETqAA2Ba6mCp+iXTUYt4A==",
- "dependencies": {
- "postcss-inline-svg": "^4.1.0"
- }
- },
- "node_modules/@videojs/vhs-utils": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/@videojs/vhs-utils/-/vhs-utils-3.0.4.tgz",
- "integrity": "sha512-hui4zOj2I1kLzDgf8QDVxD3IzrwjS/43KiS8IHQO0OeeSsb4pB/lgNt1NG7Dv0wMQfCccUpMVLGcK618s890Yg==",
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "global": "^4.4.0",
- "url-toolkit": "^2.2.1"
- },
- "engines": {
- "node": ">=8",
- "npm": ">=5"
- }
- },
- "node_modules/@videojs/xhr": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/@videojs/xhr/-/xhr-2.6.0.tgz",
- "integrity": "sha512-7J361GiN1tXpm+gd0xz2QWr3xNWBE+rytvo8J3KuggFaLg+U37gZQ2BuPLcnkfGffy2e+ozY70RHC8jt7zjA6Q==",
- "dependencies": {
- "@babel/runtime": "^7.5.5",
- "global": "~4.4.0",
- "is-function": "^1.0.1"
- }
- },
- "node_modules/@xmldom/xmldom": {
- "version": "0.7.5",
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.5.tgz",
- "integrity": "sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A==",
- "engines": {
- "node": ">=10.0.0"
- }
- },
- "node_modules/acorn": {
- "version": "7.4.1",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",
- "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
- "bin": {
- "acorn": "bin/acorn"
- },
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/acorn-node": {
- "version": "1.8.2",
- "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz",
- "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==",
- "dependencies": {
- "acorn": "^7.0.0",
- "acorn-walk": "^7.0.0",
- "xtend": "^4.0.2"
- }
- },
- "node_modules/acorn-walk": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz",
- "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==",
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/aes-decrypter": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/aes-decrypter/-/aes-decrypter-3.1.2.tgz",
- "integrity": "sha512-42nRwfQuPRj9R1zqZBdoxnaAmnIFyDi0MNyTVhjdFOd8fifXKKRfwIHIZ6AMn1or4x5WONzjwRTbTWcsIQ0O4A==",
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.0",
- "global": "^4.4.0",
- "pkcs7": "^1.0.4"
- }
- },
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/anymatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
- "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
- "dev": true,
- "dependencies": {
- "normalize-path": "^3.0.0",
- "picomatch": "^2.0.4"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/array-union": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/array-union/-/array-union-3.0.1.tgz",
- "integrity": "sha512-1OvF9IbWwaeiM9VhzYXVQacMibxpXOMYVNIvMtKRyX9SImBXpKcFr8XvFDeEslCyuH/t6KRt7HEO94AlP8Iatw==",
- "dev": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/autoprefixer": {
- "version": "9.8.8",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.8.8.tgz",
- "integrity": "sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA==",
- "dependencies": {
- "browserslist": "^4.12.0",
- "caniuse-lite": "^1.0.30001109",
- "normalize-range": "^0.1.2",
- "num2fraction": "^1.2.2",
- "picocolors": "^0.2.1",
- "postcss": "^7.0.32",
- "postcss-value-parser": "^4.1.0"
- },
- "bin": {
- "autoprefixer": "bin/autoprefixer"
- },
- "funding": {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/autoprefixer"
- }
- },
- "node_modules/autoprefixer/node_modules/picocolors": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
- "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
- },
- "node_modules/autoprefixer/node_modules/postcss": {
- "version": "7.0.39",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz",
- "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==",
- "dependencies": {
- "picocolors": "^0.2.1",
- "source-map": "^0.6.1"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- }
- },
- "node_modules/balanced-match": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
- },
- "node_modules/binary-extensions": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
- "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/boolbase": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
- "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="
- },
- "node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "node_modules/braces": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
- "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
- "dev": true,
- "dependencies": {
- "fill-range": "^7.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/browserslist": {
- "version": "4.20.0",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.0.tgz",
- "integrity": "sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ==",
- "dependencies": {
- "caniuse-lite": "^1.0.30001313",
- "electron-to-chromium": "^1.4.76",
- "escalade": "^3.1.1",
- "node-releases": "^2.0.2",
- "picocolors": "^1.0.0"
- },
- "bin": {
- "browserslist": "cli.js"
- },
- "engines": {
- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- }
- },
- "node_modules/bytes": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/camelcase-css": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
- "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/caniuse-api": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
- "integrity": "sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.0.0",
- "caniuse-lite": "^1.0.0",
- "lodash.memoize": "^4.1.2",
- "lodash.uniq": "^4.5.0"
- }
- },
- "node_modules/caniuse-lite": {
- "version": "1.0.30001314",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001314.tgz",
- "integrity": "sha512-0zaSO+TnCHtHJIbpLroX7nsD+vYuOVjl3uzFbJO1wMVbuveJA0RK2WcQA9ZUIOiO0/ArMiMgHJLxfEZhQiC0kw==",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/browserslist"
- }
- },
- "node_modules/chalk": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "dependencies": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/chokidar": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
- "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
- "dev": true,
- "funding": [
- {
- "type": "individual",
- "url": "https://paulmillr.com/funding/"
- }
- ],
- "dependencies": {
- "anymatch": "~3.1.2",
- "braces": "~3.0.2",
- "glob-parent": "~5.1.2",
- "is-binary-path": "~2.1.0",
- "is-glob": "~4.0.1",
- "normalize-path": "~3.0.0",
- "readdirp": "~3.6.0"
- },
- "engines": {
- "node": ">= 8.10.0"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.2"
- }
- },
- "node_modules/cliui": {
- "version": "7.0.4",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
- "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
- "dev": true,
- "dependencies": {
- "string-width": "^4.2.0",
- "strip-ansi": "^6.0.0",
- "wrap-ansi": "^7.0.0"
- }
- },
- "node_modules/color": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz",
- "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==",
- "dependencies": {
- "color-convert": "^1.9.3",
- "color-string": "^1.6.0"
- }
- },
- "node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
- "node_modules/color-string": {
- "version": "1.9.0",
- "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.0.tgz",
- "integrity": "sha512-9Mrz2AQLefkH1UvASKj6v6hj/7eWgjnT/cVsR8CumieLoT+g900exWeNogqtweI8dxloXN9BDQTYro1oWu/5CQ==",
- "dependencies": {
- "color-name": "^1.0.0",
- "simple-swizzle": "^0.2.2"
- }
- },
- "node_modules/color/node_modules/color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "dependencies": {
- "color-name": "1.1.3"
- }
- },
- "node_modules/color/node_modules/color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
- },
- "node_modules/colord": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.2.tgz",
- "integrity": "sha512-Uqbg+J445nc1TKn4FoDPS6ZZqAvEDnwrH42yo8B40JSOgSLxMZ/gt3h4nmCtPLQeXhjJJkqBx7SCY35WnIixaQ==",
- "dev": true
- },
- "node_modules/commander": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
- "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
- "dev": true,
- "engines": {
- "node": ">= 10"
- }
- },
- "node_modules/concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
- },
- "node_modules/css-declaration-sorter": {
- "version": "6.1.4",
- "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.4.tgz",
- "integrity": "sha512-lpfkqS0fctcmZotJGhnxkIyJWvBXgpyi2wsFd4J8VB7wzyrT6Ch/3Q+FMNJpjK4gu1+GN5khOnpU2ZVKrLbhCw==",
- "dev": true,
- "dependencies": {
- "timsort": "^0.3.0"
- },
- "engines": {
- "node": ">= 10"
- },
- "peerDependencies": {
- "postcss": "^8.0.9"
- }
- },
- "node_modules/css-select": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/css-select/-/css-select-2.1.0.tgz",
- "integrity": "sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ==",
- "dependencies": {
- "boolbase": "^1.0.0",
- "css-what": "^3.2.1",
- "domutils": "^1.7.0",
- "nth-check": "^1.0.2"
- }
- },
- "node_modules/css-tree": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
- "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",
- "dev": true,
- "dependencies": {
- "mdn-data": "2.0.14",
- "source-map": "^0.6.1"
- },
- "engines": {
- "node": ">=8.0.0"
- }
- },
- "node_modules/css-unit-converter": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/css-unit-converter/-/css-unit-converter-1.1.2.tgz",
- "integrity": "sha512-IiJwMC8rdZE0+xiEZHeru6YoONC4rfPMqGm2W85jMIbkFvv5nFTwJVFHam2eFrN6txmoUYFAFXiv8ICVeTO0MA=="
- },
- "node_modules/css-what": {
- "version": "3.4.2",
- "resolved": "https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz",
- "integrity": "sha512-ACUm3L0/jiZTqfzRM3Hi9Q8eZqd6IK37mMWPLz9PJxkLWllYeRf+EHUSHYEtFop2Eqytaq1FizFVh7XfBnXCDQ==",
- "engines": {
- "node": ">= 6"
- },
- "funding": {
- "url": "https://github.com/sponsors/fb55"
- }
- },
- "node_modules/cssesc": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
- "bin": {
- "cssesc": "bin/cssesc"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/cssnano": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.1.0.tgz",
- "integrity": "sha512-wWxave1wMlThGg4ueK98jFKaNqXnQd1nVZpSkQ9XvR+YymlzP1ofWqES1JkHtI250LksP9z5JH+oDcrKDJezAg==",
- "dev": true,
- "dependencies": {
- "cssnano-preset-default": "^5.2.0",
- "lilconfig": "^2.0.3",
- "yaml": "^1.10.2"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/cssnano"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/cssnano-preset-default": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.2.1.tgz",
- "integrity": "sha512-Y+CUCS5iZ1uzHn5KtmKIlysQVXrTtLCnYsYTOJcbdd5rghOwtw1gobvEXefBncjGO4fWwGZr9/n9hwZfo6W1Fw==",
- "dev": true,
- "dependencies": {
- "css-declaration-sorter": "^6.0.3",
- "cssnano-utils": "^3.1.0",
- "postcss-calc": "^8.2.3",
- "postcss-colormin": "^5.3.0",
- "postcss-convert-values": "^5.1.0",
- "postcss-discard-comments": "^5.1.1",
- "postcss-discard-duplicates": "^5.1.0",
- "postcss-discard-empty": "^5.1.0",
- "postcss-discard-overridden": "^5.1.0",
- "postcss-merge-longhand": "^5.1.0",
- "postcss-merge-rules": "^5.1.0",
- "postcss-minify-font-values": "^5.1.0",
- "postcss-minify-gradients": "^5.1.0",
- "postcss-minify-params": "^5.1.0",
- "postcss-minify-selectors": "^5.2.0",
- "postcss-normalize-charset": "^5.1.0",
- "postcss-normalize-display-values": "^5.1.0",
- "postcss-normalize-positions": "^5.1.0",
- "postcss-normalize-repeat-style": "^5.1.0",
- "postcss-normalize-string": "^5.1.0",
- "postcss-normalize-timing-functions": "^5.1.0",
- "postcss-normalize-unicode": "^5.1.0",
- "postcss-normalize-url": "^5.1.0",
- "postcss-normalize-whitespace": "^5.1.0",
- "postcss-ordered-values": "^5.1.0",
- "postcss-reduce-initial": "^5.1.0",
- "postcss-reduce-transforms": "^5.1.0",
- "postcss-svgo": "^5.1.0",
- "postcss-unique-selectors": "^5.1.1"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/cssnano-utils": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz",
- "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==",
- "dev": true,
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/csso": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz",
- "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==",
- "dev": true,
- "dependencies": {
- "css-tree": "^1.1.2"
- },
- "engines": {
- "node": ">=8.0.0"
- }
- },
- "node_modules/defined": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz",
- "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM="
- },
- "node_modules/dependency-graph": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz",
- "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==",
- "dev": true,
- "engines": {
- "node": ">= 0.6.0"
- }
- },
- "node_modules/detective": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.0.tgz",
- "integrity": "sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==",
- "dependencies": {
- "acorn-node": "^1.6.1",
- "defined": "^1.0.0",
- "minimist": "^1.1.1"
- },
- "bin": {
- "detective": "bin/detective.js"
- },
- "engines": {
- "node": ">=0.8.0"
- }
- },
- "node_modules/dir-glob": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
- "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
- "dev": true,
- "dependencies": {
- "path-type": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/dom-serializer": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz",
- "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==",
- "dependencies": {
- "domelementtype": "^1.3.0",
- "entities": "^1.1.1"
- }
- },
- "node_modules/dom-walk": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz",
- "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w=="
- },
- "node_modules/domelementtype": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
- "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w=="
- },
- "node_modules/domhandler": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz",
- "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==",
- "dependencies": {
- "domelementtype": "1"
- }
- },
- "node_modules/domutils": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz",
- "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==",
- "dependencies": {
- "dom-serializer": "0",
- "domelementtype": "1"
- }
- },
- "node_modules/electron-to-chromium": {
- "version": "1.4.78",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.78.tgz",
- "integrity": "sha512-o61+D/Lx7j/E0LIin/efOqeHpXhwi1TaQco9vUcRmr91m25SfZY6L5hWJDv/r+6kNjboFKgBw1LbfM0lbhuK6Q=="
- },
- "node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
- },
- "node_modules/entities": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz",
- "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w=="
- },
- "node_modules/escalade": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
- "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/escape-html": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
- "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
- },
- "node_modules/escape-string-regexp": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
- "engines": {
- "node": ">=0.8.0"
- }
- },
- "node_modules/fast-glob": {
- "version": "3.2.11",
- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz",
- "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==",
- "dev": true,
- "dependencies": {
- "@nodelib/fs.stat": "^2.0.2",
- "@nodelib/fs.walk": "^1.2.3",
- "glob-parent": "^5.1.2",
- "merge2": "^1.3.0",
- "micromatch": "^4.0.4"
- },
- "engines": {
- "node": ">=8.6.0"
- }
- },
- "node_modules/fastq": {
- "version": "1.13.0",
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz",
- "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",
- "dev": true,
- "dependencies": {
- "reusify": "^1.0.4"
- }
- },
- "node_modules/fill-range": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
- "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
- "dev": true,
- "dependencies": {
- "to-regex-range": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/focus-trap": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-5.1.0.tgz",
- "integrity": "sha512-CkB/nrO55069QAUjWFBpX6oc+9V90Qhgpe6fBWApzruMq5gnlh90Oo7iSSDK7pKiV5ugG6OY2AXM5mxcmL3lwQ==",
- "dependencies": {
- "tabbable": "^4.0.0",
- "xtend": "^4.0.1"
- }
- },
- "node_modules/fs-extra": {
- "version": "10.0.1",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz",
- "integrity": "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==",
- "dev": true,
- "dependencies": {
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^2.0.0"
- },
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
- },
- "node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "dev": true,
- "hasInstallScript": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
- "node_modules/function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
- },
- "node_modules/fuzzysort": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/fuzzysort/-/fuzzysort-1.2.1.tgz",
- "integrity": "sha512-egTSF3U6H6T9tXtAhEm5P5guSSDjd96/NUWrbmoGlIu3ATMdXra13gwQdEFRY6ehsFe8xec7UnQz+k34CGWCIg=="
- },
- "node_modules/get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "dev": true,
- "engines": {
- "node": "6.* || 8.* || >= 10.*"
- }
- },
- "node_modules/get-stdin": {
- "version": "9.0.0",
- "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz",
- "integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==",
- "dev": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/glob": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
- "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/glob-parent": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
- "dev": true,
- "dependencies": {
- "is-glob": "^4.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/global": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz",
- "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==",
- "dependencies": {
- "min-document": "^2.19.0",
- "process": "^0.11.10"
- }
- },
- "node_modules/globby": {
- "version": "12.2.0",
- "resolved": "https://registry.npmjs.org/globby/-/globby-12.2.0.tgz",
- "integrity": "sha512-wiSuFQLZ+urS9x2gGPl1H5drc5twabmm4m2gTR27XDFyjUHJUNsS8o/2aKyIF6IoBaR630atdher0XJ5g6OMmA==",
- "dev": true,
- "dependencies": {
- "array-union": "^3.0.1",
- "dir-glob": "^3.0.1",
- "fast-glob": "^3.2.7",
- "ignore": "^5.1.9",
- "merge2": "^1.4.1",
- "slash": "^4.0.0"
- },
- "engines": {
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/graceful-fs": {
- "version": "4.2.9",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz",
- "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ=="
- },
- "node_modules/has": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
- "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
- "dependencies": {
- "function-bind": "^1.1.1"
- },
- "engines": {
- "node": ">= 0.4.0"
- }
- },
- "node_modules/has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/htm": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/htm/-/htm-3.1.0.tgz",
- "integrity": "sha512-L0s3Sid5r6YwrEvkig14SK3Emmc+kIjlfLhEGn2Vy3bk21JyDEes4MoDsbJk6luaPp8bugErnxPz86ZuAw6e5Q=="
- },
- "node_modules/html-tags": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.1.0.tgz",
- "integrity": "sha512-1qYz89hW3lFDEazhjW0yVAV87lw8lVkrJocr72XmBkMKsoSVJCQx3W8BXsC7hO2qAt8BoVjYjtAcZ9perqGnNg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/htmlparser2": {
- "version": "3.10.1",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz",
- "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==",
- "dependencies": {
- "domelementtype": "^1.3.1",
- "domhandler": "^2.3.0",
- "domutils": "^1.5.1",
- "entities": "^1.1.1",
- "inherits": "^2.0.1",
- "readable-stream": "^3.1.1"
- }
- },
- "node_modules/ignore": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz",
- "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==",
- "dev": true,
- "engines": {
- "node": ">= 4"
- }
- },
- "node_modules/individual": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/individual/-/individual-2.0.0.tgz",
- "integrity": "sha1-gzsJfa0jKU52EXqY+zjg2a1hu5c="
- },
- "node_modules/inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "dependencies": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "node_modules/inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
- },
- "node_modules/is-arrayish": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
- "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
- },
- "node_modules/is-binary-path": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
- "dev": true,
- "dependencies": {
- "binary-extensions": "^2.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-core-module": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz",
- "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==",
- "dependencies": {
- "has": "^1.0.3"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-function": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz",
- "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ=="
- },
- "node_modules/is-glob": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "dev": true,
- "dependencies": {
- "is-extglob": "^2.1.1"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true,
- "engines": {
- "node": ">=0.12.0"
- }
- },
- "node_modules/jsonfile": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
- "dev": true,
- "dependencies": {
- "universalify": "^2.0.0"
- },
- "optionalDependencies": {
- "graceful-fs": "^4.1.6"
- }
- },
- "node_modules/keycode": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/keycode/-/keycode-2.2.1.tgz",
- "integrity": "sha512-Rdgz9Hl9Iv4QKi8b0OlCRQEzp4AgVxyCtz5S/+VIHezDmrDhkp2N2TqBWOLz0/gbeREXOOiI9/4b8BY9uw2vFg=="
- },
- "node_modules/lilconfig": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.4.tgz",
- "integrity": "sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/lodash": {
- "version": "4.17.21",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
- },
- "node_modules/lodash.memoize": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
- "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
- "dev": true
- },
- "node_modules/lodash.uniq": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
- "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=",
- "dev": true
- },
- "node_modules/m3u8-parser": {
- "version": "4.7.0",
- "resolved": "https://registry.npmjs.org/m3u8-parser/-/m3u8-parser-4.7.0.tgz",
- "integrity": "sha512-48l/OwRyjBm+QhNNigEEcRcgbRvnUjL7rxs597HmW9QSNbyNvt+RcZ9T/d9vxi9A9z7EZrB1POtZYhdRlwYQkQ==",
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.0",
- "global": "^4.4.0"
- }
- },
- "node_modules/mark.js": {
- "version": "8.11.1",
- "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz",
- "integrity": "sha1-GA8fnr74sOY45BZq1S24eb6y/8U="
- },
- "node_modules/mdn-data": {
- "version": "2.0.14",
- "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz",
- "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==",
- "dev": true
- },
- "node_modules/merge2": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
- "dev": true,
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/micromatch": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz",
- "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==",
- "dev": true,
- "dependencies": {
- "braces": "^3.0.1",
- "picomatch": "^2.2.3"
- },
- "engines": {
- "node": ">=8.6"
- }
- },
- "node_modules/micromodal": {
- "version": "0.4.10",
- "resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.10.tgz",
- "integrity": "sha512-BUrEnzMPFBwK8nOE4xUDYHLrlGlLULQVjpja99tpJQPSUEWgw3kTLp1n1qv0HmKU29AiHE7Y7sMLiRziDK4ghQ==",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/min-document": {
- "version": "2.19.0",
- "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz",
- "integrity": "sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=",
- "dependencies": {
- "dom-walk": "^0.1.0"
- }
- },
- "node_modules/minimatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
- "dependencies": {
- "brace-expansion": "^1.1.7"
- },
- "engines": {
- "node": "*"
- }
- },
- "node_modules/minimist": {
- "version": "1.2.5",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
- },
- "node_modules/mpd-parser": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/mpd-parser/-/mpd-parser-0.19.2.tgz",
- "integrity": "sha512-M5tAIdtBM2TN+OSTz/37T7V+h9ZLvhyNqq4TNIdtjAQ/Hg8UnMRf5nJQDjffcXag3POXi31yUJQEKOXdcAM/nw==",
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/vhs-utils": "^3.0.2",
- "@xmldom/xmldom": "^0.7.2",
- "global": "^4.4.0"
- },
- "bin": {
- "mpd-to-m3u8-json": "bin/parse.js"
- }
- },
- "node_modules/mux.js": {
- "version": "5.14.1",
- "resolved": "https://registry.npmjs.org/mux.js/-/mux.js-5.14.1.tgz",
- "integrity": "sha512-38kA/xjWRDzMbcpHQfhKbJAME8eTZVsb9U2Puk890oGvGqnyu8B/AkKdICKPHkigfqYX9MY20vje88TP14nhog==",
- "dependencies": {
- "@babel/runtime": "^7.11.2"
- },
- "bin": {
- "muxjs-transmux": "bin/transmux.js"
- },
- "engines": {
- "node": ">=8",
- "npm": ">=5"
- }
- },
- "node_modules/nanoid": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz",
- "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==",
- "dev": true,
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
- "node_modules/node-emoji": {
- "version": "1.11.0",
- "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz",
- "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==",
- "dependencies": {
- "lodash": "^4.17.21"
- }
- },
- "node_modules/node-releases": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.2.tgz",
- "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg=="
- },
- "node_modules/normalize-path": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/normalize-range": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
- "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/normalize-url": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",
- "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/normalize.css": {
- "version": "8.0.1",
- "resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-8.0.1.tgz",
- "integrity": "sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg=="
- },
- "node_modules/nth-check": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz",
- "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==",
- "dependencies": {
- "boolbase": "~1.0.0"
- }
- },
- "node_modules/num2fraction": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz",
- "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4="
- },
- "node_modules/object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/object-hash": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz",
- "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==",
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/path-parse": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="
- },
- "node_modules/path-type": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/picocolors": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
- "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
- },
- "node_modules/picomatch": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
- "dev": true,
- "engines": {
- "node": ">=8.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/pify": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
- "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/pkcs7": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/pkcs7/-/pkcs7-1.0.4.tgz",
- "integrity": "sha512-afRERtHn54AlwaF2/+LFszyAANTCggGilmcmILUzEjvs3XgFZT+xE6+QWQcAGmu4xajy+Xtj7acLOPdx5/eXWQ==",
- "dependencies": {
- "@babel/runtime": "^7.5.5"
- },
- "bin": {
- "pkcs7": "bin/cli.js"
- }
- },
- "node_modules/postcss": {
- "version": "8.4.7",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.7.tgz",
- "integrity": "sha512-L9Ye3r6hkkCeOETQX6iOaWZgjp3LL6Lpqm6EtgbKrgqGGteRMNb9vzBfRL96YOSu8o7x3MfIH9Mo5cPJFGrW6A==",
- "dev": true,
- "dependencies": {
- "nanoid": "^3.3.1",
- "picocolors": "^1.0.0",
- "source-map-js": "^1.0.2"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- }
- },
- "node_modules/postcss-calc": {
- "version": "8.2.4",
- "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.2.4.tgz",
- "integrity": "sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==",
- "dev": true,
- "dependencies": {
- "postcss-selector-parser": "^6.0.9",
- "postcss-value-parser": "^4.2.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.2"
- }
- },
- "node_modules/postcss-cli": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/postcss-cli/-/postcss-cli-9.1.0.tgz",
- "integrity": "sha512-zvDN2ADbWfza42sAnj+O2uUWyL0eRL1V+6giM2vi4SqTR3gTYy8XzcpfwccayF2szcUif0HMmXiEaDv9iEhcpw==",
- "dev": true,
- "dependencies": {
- "chokidar": "^3.3.0",
- "dependency-graph": "^0.11.0",
- "fs-extra": "^10.0.0",
- "get-stdin": "^9.0.0",
- "globby": "^12.0.0",
- "picocolors": "^1.0.0",
- "postcss-load-config": "^3.0.0",
- "postcss-reporter": "^7.0.0",
- "pretty-hrtime": "^1.0.3",
- "read-cache": "^1.0.0",
- "slash": "^4.0.0",
- "yargs": "^17.0.0"
- },
- "bin": {
- "postcss": "index.js"
- },
- "engines": {
- "node": ">=12"
- },
- "peerDependencies": {
- "postcss": "^8.0.0"
- }
- },
- "node_modules/postcss-colormin": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.0.tgz",
- "integrity": "sha512-WdDO4gOFG2Z8n4P8TWBpshnL3JpmNmJwdnfP2gbk2qBA8PWwOYcmjmI/t3CmMeL72a7Hkd+x/Mg9O2/0rD54Pg==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.16.6",
- "caniuse-api": "^3.0.0",
- "colord": "^2.9.1",
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-convert-values": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.1.0.tgz",
- "integrity": "sha512-GkyPbZEYJiWtQB0KZ0X6qusqFHUepguBCNFi9t5JJc7I2OTXG7C0twbTLvCfaKOLl3rSXmpAwV7W5txd91V84g==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-discard-comments": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.1.tgz",
- "integrity": "sha512-5JscyFmvkUxz/5/+TB3QTTT9Gi9jHkcn8dcmmuN68JQcv3aQg4y88yEHHhwFB52l/NkaJ43O0dbksGMAo49nfQ==",
- "dev": true,
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-discard-duplicates": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz",
- "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==",
- "dev": true,
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-discard-empty": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.0.tgz",
- "integrity": "sha512-782T/buGgb3HOuHOJAHpdyKzAAKsv/BxWqsutnZ+QsiHEcDkY7v+6WWdturuBiSal6XMOO1p1aJvwXdqLD5vhA==",
- "dev": true,
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-discard-overridden": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz",
- "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==",
- "dev": true,
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-functions": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/postcss-functions/-/postcss-functions-3.0.0.tgz",
- "integrity": "sha1-DpTQFERwCkgd4g3k1V+yZAVkJQ4=",
- "dependencies": {
- "glob": "^7.1.2",
- "object-assign": "^4.1.1",
- "postcss": "^6.0.9",
- "postcss-value-parser": "^3.3.0"
- }
- },
- "node_modules/postcss-functions/node_modules/ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "dependencies": {
- "color-convert": "^1.9.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/postcss-functions/node_modules/chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dependencies": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/postcss-functions/node_modules/color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "dependencies": {
- "color-name": "1.1.3"
- }
- },
- "node_modules/postcss-functions/node_modules/color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
- },
- "node_modules/postcss-functions/node_modules/has-flag": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/postcss-functions/node_modules/postcss": {
- "version": "6.0.23",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz",
- "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==",
- "dependencies": {
- "chalk": "^2.4.1",
- "source-map": "^0.6.1",
- "supports-color": "^5.4.0"
- },
- "engines": {
- "node": ">=4.0.0"
- }
- },
- "node_modules/postcss-functions/node_modules/postcss-value-parser": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz",
- "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ=="
- },
- "node_modules/postcss-functions/node_modules/supports-color": {
- "version": "5.5.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
- "dependencies": {
- "has-flag": "^3.0.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/postcss-inline-svg": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/postcss-inline-svg/-/postcss-inline-svg-4.1.0.tgz",
- "integrity": "sha512-0pYBJyoQ9/sJViYRc1cNOOTM7DYh0/rmASB0TBeRmWkG8YFK2tmgdkfjHkbRma1iFtBFKFHZFsHwRTDZTMKzSQ==",
- "dependencies": {
- "css-select": "^2.0.2",
- "dom-serializer": "^0.1.1",
- "htmlparser2": "^3.10.1",
- "postcss": "^7.0.17",
- "postcss-value-parser": "^4.0.0"
- }
- },
- "node_modules/postcss-inline-svg/node_modules/picocolors": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
- "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
- },
- "node_modules/postcss-inline-svg/node_modules/postcss": {
- "version": "7.0.39",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz",
- "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==",
- "dependencies": {
- "picocolors": "^0.2.1",
- "source-map": "^0.6.1"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- }
- },
- "node_modules/postcss-js": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-2.0.3.tgz",
- "integrity": "sha512-zS59pAk3deu6dVHyrGqmC3oDXBdNdajk4k1RyxeVXCrcEDBUBHoIhE4QTsmhxgzXxsaqFDAkUZfmMa5f/N/79w==",
- "dependencies": {
- "camelcase-css": "^2.0.1",
- "postcss": "^7.0.18"
- }
- },
- "node_modules/postcss-js/node_modules/picocolors": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
- "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
- },
- "node_modules/postcss-js/node_modules/postcss": {
- "version": "7.0.39",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz",
- "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==",
- "dependencies": {
- "picocolors": "^0.2.1",
- "source-map": "^0.6.1"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- }
- },
- "node_modules/postcss-load-config": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.3.tgz",
- "integrity": "sha512-5EYgaM9auHGtO//ljHH+v/aC/TQ5LHXtL7bQajNAUBKUVKiYE8rYpFms7+V26D9FncaGe2zwCoPQsFKb5zF/Hw==",
- "dev": true,
- "dependencies": {
- "lilconfig": "^2.0.4",
- "yaml": "^1.10.2"
- },
- "engines": {
- "node": ">= 10"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "ts-node": ">=9.0.0"
- },
- "peerDependenciesMeta": {
- "ts-node": {
- "optional": true
- }
- }
- },
- "node_modules/postcss-merge-longhand": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.1.0.tgz",
- "integrity": "sha512-Gr46srN2tsLD8fudKYoHO56RG0BLQ2nsBRnSZGY04eNBPwTeWa9KeHrbL3tOLAHyB2aliikycPH2TMJG1U+W6g==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0",
- "stylehacks": "^5.1.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-merge-rules": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.1.0.tgz",
- "integrity": "sha512-NecukEJovQ0mG7h7xV8wbYAkXGTO3MPKnXvuiXzOKcxoOodfTTKYjeo8TMhAswlSkjcPIBlnKbSFcTuVSDaPyQ==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.16.6",
- "caniuse-api": "^3.0.0",
- "cssnano-utils": "^3.1.0",
- "postcss-selector-parser": "^6.0.5"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-minify-font-values": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.1.0.tgz",
- "integrity": "sha512-el3mYTgx13ZAPPirSVsHqFzl+BBBDrXvbySvPGFnQcTI4iNslrPaFq4muTkLZmKlGk4gyFAYUBMH30+HurREyA==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-minify-gradients": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.1.0.tgz",
- "integrity": "sha512-J/TMLklkONn3LuL8wCwfwU8zKC1hpS6VcxFkNUNjmVt53uKqrrykR3ov11mdUYyqVMEx67slMce0tE14cE4DTg==",
- "dev": true,
- "dependencies": {
- "colord": "^2.9.1",
- "cssnano-utils": "^3.1.0",
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-minify-params": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.1.0.tgz",
- "integrity": "sha512-q67dcts4Hct6x8+JmhBgctHkbvUsqGIg2IItenjE63iZXMbhjr7AlVZkNnKtIGt/1Wsv7p/7YzeSII6Q+KPXRg==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.16.6",
- "cssnano-utils": "^3.1.0",
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-minify-selectors": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.2.0.tgz",
- "integrity": "sha512-vYxvHkW+iULstA+ctVNx0VoRAR4THQQRkG77o0oa4/mBS0OzGvvzLIvHDv/nNEM0crzN2WIyFU5X7wZhaUK3RA==",
- "dev": true,
- "dependencies": {
- "postcss-selector-parser": "^6.0.5"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-nested": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-4.2.3.tgz",
- "integrity": "sha512-rOv0W1HquRCamWy2kFl3QazJMMe1ku6rCFoAAH+9AcxdbpDeBr6k968MLWuLjvjMcGEip01ak09hKOEgpK9hvw==",
- "dependencies": {
- "postcss": "^7.0.32",
- "postcss-selector-parser": "^6.0.2"
- }
- },
- "node_modules/postcss-nested/node_modules/picocolors": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
- "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
- },
- "node_modules/postcss-nested/node_modules/postcss": {
- "version": "7.0.39",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz",
- "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==",
- "dependencies": {
- "picocolors": "^0.2.1",
- "source-map": "^0.6.1"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- }
- },
- "node_modules/postcss-normalize-charset": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz",
- "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==",
- "dev": true,
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-display-values": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.1.0.tgz",
- "integrity": "sha512-WP4KIM4o2dazQXWmFaqMmcvsKmhdINFblgSeRgn8BJ6vxaMyaJkwAzpPpuvSIoG/rmX3M+IrRZEz2H0glrQNEA==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-positions": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.1.0.tgz",
- "integrity": "sha512-8gmItgA4H5xiUxgN/3TVvXRoJxkAWLW6f/KKhdsH03atg0cB8ilXnrB5PpSshwVu/dD2ZsRFQcR1OEmSBDAgcQ==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-repeat-style": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.1.0.tgz",
- "integrity": "sha512-IR3uBjc+7mcWGL6CtniKNQ4Rr5fTxwkaDHwMBDGGs1x9IVRkYIT/M4NelZWkAOBdV6v3Z9S46zqaKGlyzHSchw==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-string": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.1.0.tgz",
- "integrity": "sha512-oYiIJOf4T9T1N4i+abeIc7Vgm/xPCGih4bZz5Nm0/ARVJ7K6xrDlLwvwqOydvyL3RHNf8qZk6vo3aatiw/go3w==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-timing-functions": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.1.0.tgz",
- "integrity": "sha512-DOEkzJ4SAXv5xkHl0Wa9cZLF3WCBhF3o1SKVxKQAa+0pYKlueTpCgvkFAHfk+Y64ezX9+nITGrDZeVGgITJXjg==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-unicode": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.0.tgz",
- "integrity": "sha512-J6M3MizAAZ2dOdSjy2caayJLQT8E8K9XjLce8AUQMwOrCvjCHv24aLC/Lps1R1ylOfol5VIDMaM/Lo9NGlk1SQ==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.16.6",
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-url": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.1.0.tgz",
- "integrity": "sha512-5upGeDO+PVthOxSmds43ZeMeZfKH+/DKgGRD7TElkkyS46JXAUhMzIKiCa7BabPeIy3AQcTkXwVVN7DbqsiCew==",
- "dev": true,
- "dependencies": {
- "normalize-url": "^6.0.1",
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-normalize-whitespace": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.1.0.tgz",
- "integrity": "sha512-7O1FanKaJkpWFyCghFzIkLhehujV/frGkdofGLwhg5upbLyGsSfiTcZAdSzoPsSUgyPCkBkNMeWR8yVgPdQybg==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-ordered-values": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.1.0.tgz",
- "integrity": "sha512-wU4Z4D4uOIH+BUKkYid36gGDJNQtkVJT7Twv8qH6UyfttbbJWyw4/xIPuVEkkCtQLAJ0EdsNSh8dlvqkXb49TA==",
- "dev": true,
- "dependencies": {
- "cssnano-utils": "^3.1.0",
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-reduce-initial": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.1.0.tgz",
- "integrity": "sha512-5OgTUviz0aeH6MtBjHfbr57tml13PuedK/Ecg8szzd4XRMbYxH4572JFG067z+FqBIf6Zp/d+0581glkvvWMFw==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.16.6",
- "caniuse-api": "^3.0.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-reduce-transforms": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.1.0.tgz",
- "integrity": "sha512-2fbdbmgir5AvpW9RLtdONx1QoYG2/EtqpNQbFASDlixBbAYuTcJ0dECwlqNqH7VbaUnEnh8SrxOe2sRIn24XyQ==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-reporter": {
- "version": "7.0.5",
- "resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-7.0.5.tgz",
- "integrity": "sha512-glWg7VZBilooZGOFPhN9msJ3FQs19Hie7l5a/eE6WglzYqVeH3ong3ShFcp9kDWJT1g2Y/wd59cocf9XxBtkWA==",
- "dev": true,
- "dependencies": {
- "picocolors": "^1.0.0",
- "thenby": "^1.3.4"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.1.0"
- }
- },
- "node_modules/postcss-selector-parser": {
- "version": "6.0.9",
- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz",
- "integrity": "sha512-UO3SgnZOVTwu4kyLR22UQ1xZh086RyNZppb7lLAKBFK8a32ttG5i87Y/P3+2bRSjZNyJ1B7hfFNo273tKe9YxQ==",
- "dependencies": {
- "cssesc": "^3.0.0",
- "util-deprecate": "^1.0.2"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/postcss-svgo": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.1.0.tgz",
- "integrity": "sha512-D75KsH1zm5ZrHyxPakAxJWtkyXew5qwS70v56exwvw542d9CRtTo78K0WeFxZB4G7JXKKMbEZtZayTGdIky/eA==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.2.0",
- "svgo": "^2.7.0"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-unique-selectors": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.1.1.tgz",
- "integrity": "sha512-5JiODlELrz8L2HwxfPnhOWZYWDxVHWL83ufOv84NrcgipI7TaeRsatAhK4Tr2/ZiYldpK/wBvw5BD3qfaK96GA==",
- "dev": true,
- "dependencies": {
- "postcss-selector-parser": "^6.0.5"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/postcss-value-parser": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
- "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
- },
- "node_modules/preact": {
- "version": "10.6.6",
- "resolved": "https://registry.npmjs.org/preact/-/preact-10.6.6.tgz",
- "integrity": "sha512-dgxpTFV2vs4vizwKohYKkk7g7rmp1wOOcfd4Tz3IB3Wi+ivZzsn/SpeKJhRENSE+n8sUfsAl4S3HiCVT923ABw==",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/preact"
- }
- },
- "node_modules/pretty-hrtime": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz",
- "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/process": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
- "engines": {
- "node": ">= 0.6.0"
- }
- },
- "node_modules/purgecss": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/purgecss/-/purgecss-2.3.0.tgz",
- "integrity": "sha512-BE5CROfVGsx2XIhxGuZAT7rTH9lLeQx/6M0P7DTXQH4IUc3BBzs9JUzt4yzGf3JrH9enkeq6YJBe9CTtkm1WmQ==",
- "dependencies": {
- "commander": "^5.0.0",
- "glob": "^7.0.0",
- "postcss": "7.0.32",
- "postcss-selector-parser": "^6.0.2"
- },
- "bin": {
- "purgecss": "bin/purgecss"
- }
- },
- "node_modules/purgecss/node_modules/ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "dependencies": {
- "color-convert": "^1.9.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/purgecss/node_modules/chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dependencies": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/purgecss/node_modules/chalk/node_modules/supports-color": {
- "version": "5.5.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
- "dependencies": {
- "has-flag": "^3.0.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/purgecss/node_modules/color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "dependencies": {
- "color-name": "1.1.3"
- }
- },
- "node_modules/purgecss/node_modules/color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
- },
- "node_modules/purgecss/node_modules/commander": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",
- "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/purgecss/node_modules/has-flag": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/purgecss/node_modules/postcss": {
- "version": "7.0.32",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz",
- "integrity": "sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==",
- "dependencies": {
- "chalk": "^2.4.2",
- "source-map": "^0.6.1",
- "supports-color": "^6.1.0"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- }
- },
- "node_modules/purgecss/node_modules/supports-color": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
- "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
- "dependencies": {
- "has-flag": "^3.0.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/queue-microtask": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
- "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/read-cache": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
- "integrity": "sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=",
- "dev": true,
- "dependencies": {
- "pify": "^2.3.0"
- }
- },
- "node_modules/readable-stream": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
- "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/readdirp": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
- "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
- "dev": true,
- "dependencies": {
- "picomatch": "^2.2.1"
- },
- "engines": {
- "node": ">=8.10.0"
- }
- },
- "node_modules/reduce-css-calc": {
- "version": "2.1.8",
- "resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-2.1.8.tgz",
- "integrity": "sha512-8liAVezDmUcH+tdzoEGrhfbGcP7nOV4NkGE3a74+qqvE7nt9i4sKLGBuZNOnpI4WiGksiNPklZxva80061QiPg==",
- "dependencies": {
- "css-unit-converter": "^1.1.1",
- "postcss-value-parser": "^3.3.0"
- }
- },
- "node_modules/reduce-css-calc/node_modules/postcss-value-parser": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz",
- "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ=="
- },
- "node_modules/regenerator-runtime": {
- "version": "0.13.9",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
- "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
- },
- "node_modules/require-directory": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/resolve": {
- "version": "1.22.0",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",
- "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",
- "dependencies": {
- "is-core-module": "^2.8.1",
- "path-parse": "^1.0.7",
- "supports-preserve-symlinks-flag": "^1.0.0"
- },
- "bin": {
- "resolve": "bin/resolve"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/reusify": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
- "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
- "dev": true,
- "engines": {
- "iojs": ">=1.0.0",
- "node": ">=0.10.0"
- }
- },
- "node_modules/run-parallel": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
- "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "dependencies": {
- "queue-microtask": "^1.2.2"
- }
- },
- "node_modules/rust-result": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/rust-result/-/rust-result-1.0.0.tgz",
- "integrity": "sha1-NMdbLm3Dn+WHXlveyFteD5FTb3I=",
- "dependencies": {
- "individual": "^2.0.0"
- }
- },
- "node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/safe-json-parse": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-4.0.0.tgz",
- "integrity": "sha1-fA9XjPzNEtM6ccDgVBPi7KFx6qw=",
- "dependencies": {
- "rust-result": "^1.0.0"
- }
- },
- "node_modules/simple-swizzle": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
- "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=",
- "dependencies": {
- "is-arrayish": "^0.3.1"
- }
- },
- "node_modules/slash": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz",
- "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==",
- "dev": true,
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/source-map-js": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
- "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/stable": {
- "version": "0.1.8",
- "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",
- "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==",
- "dev": true
- },
- "node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dev": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/stylehacks": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.0.tgz",
- "integrity": "sha512-SzLmvHQTrIWfSgljkQCw2++C9+Ne91d/6Sp92I8c5uHTcy/PgeHamwITIbBW9wnFTY/3ZfSXR9HIL6Ikqmcu6Q==",
- "dev": true,
- "dependencies": {
- "browserslist": "^4.16.6",
- "postcss-selector-parser": "^6.0.4"
- },
- "engines": {
- "node": "^10 || ^12 || >=14.0"
- },
- "peerDependencies": {
- "postcss": "^8.2.15"
- }
- },
- "node_modules/supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dependencies": {
- "has-flag": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/supports-preserve-symlinks-flag": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/svgo": {
- "version": "2.8.0",
- "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz",
- "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==",
- "dev": true,
- "dependencies": {
- "@trysound/sax": "0.2.0",
- "commander": "^7.2.0",
- "css-select": "^4.1.3",
- "css-tree": "^1.1.3",
- "csso": "^4.2.0",
- "picocolors": "^1.0.0",
- "stable": "^0.1.8"
- },
- "bin": {
- "svgo": "bin/svgo"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/svgo/node_modules/css-select": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.2.1.tgz",
- "integrity": "sha512-/aUslKhzkTNCQUB2qTX84lVmfia9NyjP3WpDGtj/WxhwBzWBYUV3DgUpurHTme8UTPcPlAD1DJ+b0nN/t50zDQ==",
- "dev": true,
- "dependencies": {
- "boolbase": "^1.0.0",
- "css-what": "^5.1.0",
- "domhandler": "^4.3.0",
- "domutils": "^2.8.0",
- "nth-check": "^2.0.1"
- },
- "funding": {
- "url": "https://github.com/sponsors/fb55"
- }
- },
- "node_modules/svgo/node_modules/css-what": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/css-what/-/css-what-5.1.0.tgz",
- "integrity": "sha512-arSMRWIIFY0hV8pIxZMEfmMI47Wj3R/aWpZDDxWYCPEiOMv6tfOrnpDtgxBYPEQD4V0Y/958+1TdC3iWTFcUPw==",
- "dev": true,
- "engines": {
- "node": ">= 6"
- },
- "funding": {
- "url": "https://github.com/sponsors/fb55"
- }
- },
- "node_modules/svgo/node_modules/dom-serializer": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz",
- "integrity": "sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==",
- "dev": true,
- "dependencies": {
- "domelementtype": "^2.0.1",
- "domhandler": "^4.2.0",
- "entities": "^2.0.0"
- },
- "funding": {
- "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
- }
- },
- "node_modules/svgo/node_modules/domelementtype": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz",
- "integrity": "sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/fb55"
- }
- ]
- },
- "node_modules/svgo/node_modules/domhandler": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.0.tgz",
- "integrity": "sha512-fC0aXNQXqKSFTr2wDNZDhsEYjCiYsDWl3D01kwt25hm1YIPyDGHvvi3rw+PLqHAl/m71MaiF7d5zvBr0p5UB2g==",
- "dev": true,
- "dependencies": {
- "domelementtype": "^2.2.0"
- },
- "engines": {
- "node": ">= 4"
- },
- "funding": {
- "url": "https://github.com/fb55/domhandler?sponsor=1"
- }
- },
- "node_modules/svgo/node_modules/domutils": {
- "version": "2.8.0",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz",
- "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==",
- "dev": true,
- "dependencies": {
- "dom-serializer": "^1.0.1",
- "domelementtype": "^2.2.0",
- "domhandler": "^4.2.0"
- },
- "funding": {
- "url": "https://github.com/fb55/domutils?sponsor=1"
- }
- },
- "node_modules/svgo/node_modules/entities": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",
- "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",
- "dev": true,
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
- },
- "node_modules/svgo/node_modules/nth-check": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz",
- "integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==",
- "dev": true,
- "dependencies": {
- "boolbase": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/fb55/nth-check?sponsor=1"
- }
- },
- "node_modules/tabbable": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-4.0.0.tgz",
- "integrity": "sha512-H1XoH1URcBOa/rZZWxLxHCtOdVUEev+9vo5YdYhC9tCY4wnybX+VQrCYuy9ubkg69fCBxCONJOSLGfw0DWMffQ=="
- },
- "node_modules/tailwindcss": {
- "version": "1.9.6",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-1.9.6.tgz",
- "integrity": "sha512-nY8WYM/RLPqGsPEGEV2z63riyQPcHYZUJpAwdyBzVpxQHOHqHE+F/fvbCeXhdF1+TA5l72vSkZrtYCB9hRcwkQ==",
- "dependencies": {
- "@fullhuman/postcss-purgecss": "^2.1.2",
- "autoprefixer": "^9.4.5",
- "browserslist": "^4.12.0",
- "bytes": "^3.0.0",
- "chalk": "^3.0.0 || ^4.0.0",
- "color": "^3.1.2",
- "detective": "^5.2.0",
- "fs-extra": "^8.0.0",
- "html-tags": "^3.1.0",
- "lodash": "^4.17.20",
- "node-emoji": "^1.8.1",
- "normalize.css": "^8.0.1",
- "object-hash": "^2.0.3",
- "postcss": "^7.0.11",
- "postcss-functions": "^3.0.0",
- "postcss-js": "^2.0.0",
- "postcss-nested": "^4.1.1",
- "postcss-selector-parser": "^6.0.0",
- "postcss-value-parser": "^4.1.0",
- "pretty-hrtime": "^1.0.3",
- "reduce-css-calc": "^2.1.6",
- "resolve": "^1.14.2"
- },
- "bin": {
- "tailwind": "lib/cli.js",
- "tailwindcss": "lib/cli.js"
- },
- "engines": {
- "node": ">=8.9.0"
- }
- },
- "node_modules/tailwindcss/node_modules/fs-extra": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
- "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
- "dependencies": {
- "graceful-fs": "^4.2.0",
- "jsonfile": "^4.0.0",
- "universalify": "^0.1.0"
- },
- "engines": {
- "node": ">=6 <7 || >=8"
- }
- },
- "node_modules/tailwindcss/node_modules/jsonfile": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
- "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
- "optionalDependencies": {
- "graceful-fs": "^4.1.6"
- }
- },
- "node_modules/tailwindcss/node_modules/picocolors": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
- "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
- },
- "node_modules/tailwindcss/node_modules/postcss": {
- "version": "7.0.39",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz",
- "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==",
- "dependencies": {
- "picocolors": "^0.2.1",
- "source-map": "^0.6.1"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- }
- },
- "node_modules/tailwindcss/node_modules/universalify": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
- "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
- "engines": {
- "node": ">= 4.0.0"
- }
- },
- "node_modules/thenby": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/thenby/-/thenby-1.3.4.tgz",
- "integrity": "sha512-89Gi5raiWA3QZ4b2ePcEwswC3me9JIg+ToSgtE0JWeCynLnLxNr/f9G+xfo9K+Oj4AFdom8YNJjibIARTJmapQ==",
- "dev": true
- },
- "node_modules/timsort": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz",
- "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=",
- "dev": true
- },
- "node_modules/tiny-emitter": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
- "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
- },
- "node_modules/to-regex-range": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
- "dev": true,
- "dependencies": {
- "is-number": "^7.0.0"
- },
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/tslib": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
- "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
- },
- "node_modules/twemoji": {
- "version": "13.1.0",
- "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-13.1.0.tgz",
- "integrity": "sha512-e3fZRl2S9UQQdBFLYXtTBT6o4vidJMnpWUAhJA+yLGR+kaUTZAt3PixC0cGvvxWSuq2MSz/o0rJraOXrWw/4Ew==",
- "dependencies": {
- "fs-extra": "^8.0.1",
- "jsonfile": "^5.0.0",
- "twemoji-parser": "13.1.0",
- "universalify": "^0.1.2"
- }
- },
- "node_modules/twemoji-parser": {
- "version": "13.1.0",
- "resolved": "https://registry.npmjs.org/twemoji-parser/-/twemoji-parser-13.1.0.tgz",
- "integrity": "sha512-AQOzLJpYlpWMy8n+0ATyKKZzWlZBJN+G0C+5lhX7Ftc2PeEVdUU/7ns2Pn2vVje26AIZ/OHwFoUbdv6YYD/wGg=="
- },
- "node_modules/twemoji/node_modules/fs-extra": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
- "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
- "dependencies": {
- "graceful-fs": "^4.2.0",
- "jsonfile": "^4.0.0",
- "universalify": "^0.1.0"
- },
- "engines": {
- "node": ">=6 <7 || >=8"
- }
- },
- "node_modules/twemoji/node_modules/fs-extra/node_modules/jsonfile": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
- "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
- "optionalDependencies": {
- "graceful-fs": "^4.1.6"
- }
- },
- "node_modules/twemoji/node_modules/jsonfile": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-5.0.0.tgz",
- "integrity": "sha512-NQRZ5CRo74MhMMC3/3r5g2k4fjodJ/wh8MxjFbCViWKFjxrnudWSY5vomh+23ZaXzAS7J3fBZIR2dV6WbmfM0w==",
- "dependencies": {
- "universalify": "^0.1.2"
- },
- "optionalDependencies": {
- "graceful-fs": "^4.1.6"
- }
- },
- "node_modules/twemoji/node_modules/universalify": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
- "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
- "engines": {
- "node": ">= 4.0.0"
- }
- },
- "node_modules/universalify": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
- "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
- "dev": true,
- "engines": {
- "node": ">= 10.0.0"
- }
- },
- "node_modules/url-toolkit": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/url-toolkit/-/url-toolkit-2.2.5.tgz",
- "integrity": "sha512-mtN6xk+Nac+oyJ/PrI7tzfmomRVNFIWKUbG8jdYFt52hxbiReFAXIjYskvu64/dvuW71IcB7lV8l0HvZMac6Jg=="
- },
- "node_modules/util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
- },
- "node_modules/video.js": {
- "version": "7.17.0",
- "resolved": "https://registry.npmjs.org/video.js/-/video.js-7.17.0.tgz",
- "integrity": "sha512-8RbLu9+Pdpep9OTPncUHIvZXFgn/7hKdPnSTE/lGSnlFSucXtTUBp41R7NDwncscMLQ0WgazUbmFlvr4MNWMbA==",
- "dependencies": {
- "@babel/runtime": "^7.12.5",
- "@videojs/http-streaming": "2.12.0",
- "@videojs/vhs-utils": "^3.0.3",
- "@videojs/xhr": "2.6.0",
- "aes-decrypter": "3.1.2",
- "global": "^4.4.0",
- "keycode": "^2.2.0",
- "m3u8-parser": "4.7.0",
- "mpd-parser": "0.19.2",
- "mux.js": "5.14.1",
- "safe-json-parse": "4.0.0",
- "videojs-font": "3.2.0",
- "videojs-vtt.js": "^0.15.3"
- }
- },
- "node_modules/videojs-font": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/videojs-font/-/videojs-font-3.2.0.tgz",
- "integrity": "sha512-g8vHMKK2/JGorSfqAZQUmYYNnXmfec4MLhwtEFS+mMs2IDY398GLysy6BH6K+aS1KMNu/xWZ8Sue/X/mdQPliA=="
- },
- "node_modules/videojs-vtt.js": {
- "version": "0.15.3",
- "resolved": "https://registry.npmjs.org/videojs-vtt.js/-/videojs-vtt.js-0.15.3.tgz",
- "integrity": "sha512-5FvVsICuMRx6Hd7H/Y9s9GDeEtYcXQWzGMS+sl4UX3t/zoHp3y+isSfIPRochnTH7h+Bh1ILyC639xy9Z6kPag==",
- "dependencies": {
- "global": "^4.3.1"
- }
- },
- "node_modules/wrap-ansi": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
- "dev": true,
- "dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- },
- "node_modules/xtend": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
- "engines": {
- "node": ">=0.4"
- }
- },
- "node_modules/y18n": {
- "version": "5.0.8",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
- "dev": true,
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/yaml": {
- "version": "1.10.2",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
- "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
- "dev": true,
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/yargs": {
- "version": "17.3.1",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.3.1.tgz",
- "integrity": "sha512-WUANQeVgjLbNsEmGk20f+nlHgOqzRFpiGWVaBrYGYIGANIIu3lWjoyi0fNlFmJkvfhCZ6BXINe7/W2O2bV4iaA==",
- "dev": true,
- "dependencies": {
- "cliui": "^7.0.2",
- "escalade": "^3.1.1",
- "get-caller-file": "^2.0.5",
- "require-directory": "^2.1.1",
- "string-width": "^4.2.3",
- "y18n": "^5.0.5",
- "yargs-parser": "^21.0.0"
- },
- "engines": {
- "node": ">=12"
- }
- },
- "node_modules/yargs-parser": {
- "version": "21.0.1",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz",
- "integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==",
- "dev": true,
- "engines": {
- "node": ">=12"
- }
- }
- },
"dependencies": {
"@babel/runtime": {
"version": "7.17.2",
@@ -3701,8 +598,7 @@
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz",
"integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"csso": {
"version": "4.2.0",
@@ -4359,29 +1255,25 @@
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.1.tgz",
"integrity": "sha512-5JscyFmvkUxz/5/+TB3QTTT9Gi9jHkcn8dcmmuN68JQcv3aQg4y88yEHHhwFB52l/NkaJ43O0dbksGMAo49nfQ==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-discard-duplicates": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz",
"integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-discard-empty": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.0.tgz",
"integrity": "sha512-782T/buGgb3HOuHOJAHpdyKzAAKsv/BxWqsutnZ+QsiHEcDkY7v+6WWdturuBiSal6XMOO1p1aJvwXdqLD5vhA==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-discard-overridden": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz",
"integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-functions": {
"version": "3.0.0",
@@ -4609,8 +1501,7 @@
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz",
"integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==",
- "dev": true,
- "requires": {}
+ "dev": true
},
"postcss-normalize-display-values": {
"version": "5.1.0",
@@ -4993,14 +1884,6 @@
"integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==",
"dev": true
},
- "string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "requires": {
- "safe-buffer": "~5.2.0"
- }
- },
"string-width": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
@@ -5012,6 +1895,14 @@
"strip-ansi": "^6.0.1"
}
},
+ "string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
"strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
diff --git a/build/javascript/package.json b/build/javascript/package.json
index 441123f9e6..bd1f1c2539 100644
--- a/build/javascript/package.json
+++ b/build/javascript/package.json
@@ -26,6 +26,7 @@
"@joeattardi/emoji-button",
"htm",
"preact",
+ "preact/hooks",
"mark.js/dist/mark.es6.min.js",
"tailwindcss/dist/tailwind.min.css",
"micromodal/dist/micromodal.min.js"
diff --git a/controllers/admin/notifications.go b/controllers/admin/notifications.go
new file mode 100644
index 0000000000..f537c0612a
--- /dev/null
+++ b/controllers/admin/notifications.go
@@ -0,0 +1,85 @@
+package admin
+
+import (
+ "encoding/json"
+ "net/http"
+
+ "github.com/owncast/owncast/controllers"
+ "github.com/owncast/owncast/core/data"
+ "github.com/owncast/owncast/models"
+)
+
+// SetDiscordNotificationConfiguration will set the discord notification configuration.
+func SetDiscordNotificationConfiguration(w http.ResponseWriter, r *http.Request) {
+ if !requirePOST(w, r) {
+ return
+ }
+
+ type request struct {
+ Value models.DiscordConfiguration `json:"value"`
+ }
+
+ decoder := json.NewDecoder(r.Body)
+ var config request
+ if err := decoder.Decode(&config); err != nil {
+ controllers.WriteSimpleResponse(w, false, "unable to update discord config with provided values")
+ return
+ }
+
+ if err := data.SetDiscordConfig(config.Value); err != nil {
+ controllers.WriteSimpleResponse(w, false, "unable to update discord config with provided values")
+ return
+ }
+
+ controllers.WriteSimpleResponse(w, true, "updated discord config with provided values")
+}
+
+// SetBrowserNotificationConfiguration will set the browser notification configuration.
+func SetBrowserNotificationConfiguration(w http.ResponseWriter, r *http.Request) {
+ if !requirePOST(w, r) {
+ return
+ }
+
+ type request struct {
+ Value models.BrowserNotificationConfiguration `json:"value"`
+ }
+
+ decoder := json.NewDecoder(r.Body)
+ var config request
+ if err := decoder.Decode(&config); err != nil {
+ controllers.WriteSimpleResponse(w, false, "unable to update browser push config with provided values")
+ return
+ }
+
+ if err := data.SetBrowserPushConfig(config.Value); err != nil {
+ controllers.WriteSimpleResponse(w, false, "unable to update browser push config with provided values")
+ return
+ }
+
+ controllers.WriteSimpleResponse(w, true, "updated browser push config with provided values")
+}
+
+// SetTwitterConfiguration will set the browser notification configuration.
+func SetTwitterConfiguration(w http.ResponseWriter, r *http.Request) {
+ if !requirePOST(w, r) {
+ return
+ }
+
+ type request struct {
+ Value models.TwitterConfiguration `json:"value"`
+ }
+
+ decoder := json.NewDecoder(r.Body)
+ var config request
+ if err := decoder.Decode(&config); err != nil {
+ controllers.WriteSimpleResponse(w, false, "unable to update twitter config with provided values")
+ return
+ }
+
+ if err := data.SetTwitterConfiguration(config.Value); err != nil {
+ controllers.WriteSimpleResponse(w, false, "unable to update twitter config with provided values")
+ return
+ }
+
+ controllers.WriteSimpleResponse(w, true, "updated twitter config with provided values")
+}
diff --git a/controllers/admin/serverConfig.go b/controllers/admin/serverConfig.go
index d34162eb9d..91b1c5be9a 100644
--- a/controllers/admin/serverConfig.go
+++ b/controllers/admin/serverConfig.go
@@ -77,6 +77,11 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) {
ShowEngagement: data.GetFederationShowEngagement(),
BlockedDomains: data.GetBlockedFederatedDomains(),
},
+ Notifications: notificationsConfigResponse{
+ Discord: data.GetDiscordConfig(),
+ Browser: data.GetBrowserPushConfig(),
+ Twitter: data.GetTwitterConfiguration(),
+ },
}
w.Header().Set("Content-Type", "application/json")
@@ -88,25 +93,26 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) {
}
type serverConfigAdminResponse struct {
- InstanceDetails webConfigResponse `json:"instanceDetails"`
- FFmpegPath string `json:"ffmpegPath"`
- StreamKey string `json:"streamKey"`
- WebServerPort int `json:"webServerPort"`
- WebServerIP string `json:"webServerIP"`
- RTMPServerPort int `json:"rtmpServerPort"`
- S3 models.S3 `json:"s3"`
- VideoSettings videoSettings `json:"videoSettings"`
- YP yp `json:"yp"`
- ChatDisabled bool `json:"chatDisabled"`
- ChatJoinMessagesEnabled bool `json:"chatJoinMessagesEnabled"`
- ChatEstablishedUserMode bool `json:"chatEstablishedUserMode"`
- ExternalActions []models.ExternalAction `json:"externalActions"`
- SupportedCodecs []string `json:"supportedCodecs"`
- VideoCodec string `json:"videoCodec"`
- ForbiddenUsernames []string `json:"forbiddenUsernames"`
- Federation federationConfigResponse `json:"federation"`
- SuggestedUsernames []string `json:"suggestedUsernames"`
- SocketHostOverride string `json:"socketHostOverride,omitempty"`
+ InstanceDetails webConfigResponse `json:"instanceDetails"`
+ FFmpegPath string `json:"ffmpegPath"`
+ StreamKey string `json:"streamKey"`
+ WebServerPort int `json:"webServerPort"`
+ WebServerIP string `json:"webServerIP"`
+ RTMPServerPort int `json:"rtmpServerPort"`
+ S3 models.S3 `json:"s3"`
+ VideoSettings videoSettings `json:"videoSettings"`
+ YP yp `json:"yp"`
+ ChatDisabled bool `json:"chatDisabled"`
+ ChatJoinMessagesEnabled bool `json:"chatJoinMessagesEnabled"`
+ ChatEstablishedUserMode bool `json:"chatEstablishedUserMode"`
+ ExternalActions []models.ExternalAction `json:"externalActions"`
+ SupportedCodecs []string `json:"supportedCodecs"`
+ VideoCodec string `json:"videoCodec"`
+ ForbiddenUsernames []string `json:"forbiddenUsernames"`
+ Federation federationConfigResponse `json:"federation"`
+ SuggestedUsernames []string `json:"suggestedUsernames"`
+ SocketHostOverride string `json:"socketHostOverride,omitempty"`
+ Notifications notificationsConfigResponse `json:"notifications"`
}
type videoSettings struct {
@@ -142,3 +148,9 @@ type federationConfigResponse struct {
ShowEngagement bool `json:"showEngagement"`
BlockedDomains []string `json:"blockedDomains"`
}
+
+type notificationsConfigResponse struct {
+ Browser models.BrowserNotificationConfiguration `json:"browser"`
+ Discord models.DiscordConfiguration `json:"discord"`
+ Twitter models.TwitterConfiguration `json:"twitter"`
+}
diff --git a/controllers/config.go b/controllers/config.go
index e779456513..187539aeef 100644
--- a/controllers/config.go
+++ b/controllers/config.go
@@ -12,24 +12,26 @@ import (
"github.com/owncast/owncast/models"
"github.com/owncast/owncast/router/middleware"
"github.com/owncast/owncast/utils"
+ log "github.com/sirupsen/logrus"
)
type webConfigResponse struct {
- Name string `json:"name"`
- Summary string `json:"summary"`
- Logo string `json:"logo"`
- Tags []string `json:"tags"`
- Version string `json:"version"`
- NSFW bool `json:"nsfw"`
- SocketHostOverride string `json:"socketHostOverride,omitempty"`
- ExtraPageContent string `json:"extraPageContent"`
- StreamTitle string `json:"streamTitle,omitempty"` // What's going on with the current stream
- SocialHandles []models.SocialHandle `json:"socialHandles"`
- ChatDisabled bool `json:"chatDisabled"`
- ExternalActions []models.ExternalAction `json:"externalActions"`
- CustomStyles string `json:"customStyles"`
- MaxSocketPayloadSize int `json:"maxSocketPayloadSize"`
- Federation federationConfigResponse `json:"federation"`
+ Name string `json:"name"`
+ Summary string `json:"summary"`
+ Logo string `json:"logo"`
+ Tags []string `json:"tags"`
+ Version string `json:"version"`
+ NSFW bool `json:"nsfw"`
+ SocketHostOverride string `json:"socketHostOverride,omitempty"`
+ ExtraPageContent string `json:"extraPageContent"`
+ StreamTitle string `json:"streamTitle,omitempty"` // What's going on with the current stream
+ SocialHandles []models.SocialHandle `json:"socialHandles"`
+ ChatDisabled bool `json:"chatDisabled"`
+ ExternalActions []models.ExternalAction `json:"externalActions"`
+ CustomStyles string `json:"customStyles"`
+ MaxSocketPayloadSize int `json:"maxSocketPayloadSize"`
+ Federation federationConfigResponse `json:"federation"`
+ Notifications notificationsConfigResponse `json:"notifications"`
}
type federationConfigResponse struct {
@@ -38,6 +40,15 @@ type federationConfigResponse struct {
FollowerCount int `json:"followerCount,omitempty"`
}
+type browserNotificationsConfigResponse struct {
+ Enabled bool `json:"enabled"`
+ PublicKey string `json:"publicKey,omitempty"`
+}
+
+type notificationsConfigResponse struct {
+ Browser browserNotificationsConfigResponse `json:"browser"`
+}
+
// GetWebConfig gets the status of the server.
func GetWebConfig(w http.ResponseWriter, r *http.Request) {
middleware.EnableCors(w)
@@ -72,6 +83,20 @@ func GetWebConfig(w http.ResponseWriter, r *http.Request) {
}
}
+ browserPushEnabled := data.GetBrowserPushConfig().Enabled
+ browserPushPublicKey, err := data.GetBrowserPushPublicKey()
+ if err != nil {
+ log.Errorln("unable to fetch browser push notifications public key", err)
+ browserPushEnabled = false
+ }
+
+ notificationsResponse := notificationsConfigResponse{
+ Browser: browserNotificationsConfigResponse{
+ Enabled: browserPushEnabled,
+ PublicKey: browserPushPublicKey,
+ },
+ }
+
configuration := webConfigResponse{
Name: data.GetServerName(),
Summary: serverSummary,
@@ -88,6 +113,7 @@ func GetWebConfig(w http.ResponseWriter, r *http.Request) {
CustomStyles: data.GetCustomStyles(),
MaxSocketPayloadSize: config.MaxSocketPayloadSize,
Federation: federationResponse,
+ Notifications: notificationsResponse,
}
if err := json.NewEncoder(w).Encode(configuration); err != nil {
diff --git a/controllers/notifications.go b/controllers/notifications.go
new file mode 100644
index 0000000000..19582ea342
--- /dev/null
+++ b/controllers/notifications.go
@@ -0,0 +1,50 @@
+package controllers
+
+import (
+ "encoding/json"
+ "net/http"
+
+ "github.com/owncast/owncast/notifications"
+
+ "github.com/owncast/owncast/utils"
+
+ log "github.com/sirupsen/logrus"
+)
+
+// RegisterForLiveNotifications will register a channel + destination to be
+// notified when a stream goes live.
+func RegisterForLiveNotifications(w http.ResponseWriter, r *http.Request) {
+ if r.Method != POST {
+ WriteSimpleResponse(w, false, r.Method+" not supported")
+ return
+ }
+
+ type request struct {
+ // Channel is the notification channel (browser, sms, etc)
+ Channel string `json:"channel"`
+ // Destination is the target of the notification in the above channel.
+ Destination string `json:"destination"`
+ }
+
+ decoder := json.NewDecoder(r.Body)
+ var req request
+ if err := decoder.Decode(&req); err != nil {
+ log.Errorln(err)
+ WriteSimpleResponse(w, false, "unable to register for notifications")
+ return
+ }
+
+ // Make sure the requested channel is one we want to handle.
+ validTypes := []string{notifications.BrowserPushNotification}
+ _, validChannel := utils.FindInSlice(validTypes, req.Channel)
+ if !validChannel {
+ WriteSimpleResponse(w, false, "invalid notification channel: "+req.Channel)
+ return
+ }
+
+ if err := notifications.AddNotification(req.Channel, req.Destination); err != nil {
+ log.Errorln(err)
+ WriteSimpleResponse(w, false, "unable to save notification")
+ return
+ }
+}
diff --git a/core/core.go b/core/core.go
index 4926eab616..b01ede6b17 100644
--- a/core/core.go
+++ b/core/core.go
@@ -15,6 +15,7 @@ import (
"github.com/owncast/owncast/core/user"
"github.com/owncast/owncast/core/webhooks"
"github.com/owncast/owncast/models"
+ "github.com/owncast/owncast/notifications"
"github.com/owncast/owncast/utils"
"github.com/owncast/owncast/yp"
)
@@ -25,11 +26,8 @@ var (
_transcoder *transcoder.Transcoder
_yp *yp.YP
_broadcaster *models.Broadcaster
-)
-
-var (
- handler transcoder.HLSHandler
- fileWriter = transcoder.FileWriterReceiverService{}
+ handler transcoder.HLSHandler
+ fileWriter = transcoder.FileWriterReceiverService{}
)
// Start starts up the core processing.
@@ -80,6 +78,8 @@ func Start() error {
webhooks.InitWorkerPool()
+ notifications.Setup(data.GetStore())
+
return nil
}
diff --git a/core/data/config.go b/core/data/config.go
index ff8afeb0ea..b63c84d64a 100644
--- a/core/data/config.go
+++ b/core/data/config.go
@@ -14,49 +14,55 @@ import (
)
const (
- extraContentKey = "extra_page_content"
- streamTitleKey = "stream_title"
- streamKeyKey = "stream_key"
- logoPathKey = "logo_path"
- logoUniquenessKey = "logo_uniqueness"
- serverSummaryKey = "server_summary"
- serverWelcomeMessageKey = "server_welcome_message"
- serverNameKey = "server_name"
- serverURLKey = "server_url"
- httpPortNumberKey = "http_port_number"
- httpListenAddressKey = "http_listen_address"
- websocketHostOverrideKey = "websocket_host_override"
- rtmpPortNumberKey = "rtmp_port_number"
- serverMetadataTagsKey = "server_metadata_tags"
- directoryEnabledKey = "directory_enabled"
- directoryRegistrationKeyKey = "directory_registration_key"
- socialHandlesKey = "social_handles"
- peakViewersSessionKey = "peak_viewers_session"
- peakViewersOverallKey = "peak_viewers_overall"
- lastDisconnectTimeKey = "last_disconnect_time"
- ffmpegPathKey = "ffmpeg_path"
- nsfwKey = "nsfw"
- s3StorageEnabledKey = "s3_storage_enabled"
- s3StorageConfigKey = "s3_storage_config"
- videoLatencyLevel = "video_latency_level"
- videoStreamOutputVariantsKey = "video_stream_output_variants"
- chatDisabledKey = "chat_disabled"
- externalActionsKey = "external_actions"
- customStylesKey = "custom_styles"
- videoCodecKey = "video_codec"
- blockedUsernamesKey = "blocked_usernames"
- publicKeyKey = "public_key"
- privateKeyKey = "private_key"
- serverInitDateKey = "server_init_date"
- federationEnabledKey = "federation_enabled"
- federationUsernameKey = "federation_username"
- federationPrivateKey = "federation_private"
- federationGoLiveMessageKey = "federation_go_live_message"
- federationShowEngagementKey = "federation_show_engagement"
- federationBlockedDomainsKey = "federation_blocked_domains"
- suggestedUsernamesKey = "suggested_usernames"
- chatJoinMessagesEnabledKey = "chat_join_messages_enabled"
- chatEstablishedUsersOnlyModeKey = "chat_established_users_only_mode"
+ extraContentKey = "extra_page_content"
+ streamTitleKey = "stream_title"
+ streamKeyKey = "stream_key"
+ logoPathKey = "logo_path"
+ logoUniquenessKey = "logo_uniqueness"
+ serverSummaryKey = "server_summary"
+ serverWelcomeMessageKey = "server_welcome_message"
+ serverNameKey = "server_name"
+ serverURLKey = "server_url"
+ httpPortNumberKey = "http_port_number"
+ httpListenAddressKey = "http_listen_address"
+ websocketHostOverrideKey = "websocket_host_override"
+ rtmpPortNumberKey = "rtmp_port_number"
+ serverMetadataTagsKey = "server_metadata_tags"
+ directoryEnabledKey = "directory_enabled"
+ directoryRegistrationKeyKey = "directory_registration_key"
+ socialHandlesKey = "social_handles"
+ peakViewersSessionKey = "peak_viewers_session"
+ peakViewersOverallKey = "peak_viewers_overall"
+ lastDisconnectTimeKey = "last_disconnect_time"
+ ffmpegPathKey = "ffmpeg_path"
+ nsfwKey = "nsfw"
+ s3StorageConfigKey = "s3_storage_config"
+ videoLatencyLevel = "video_latency_level"
+ videoStreamOutputVariantsKey = "video_stream_output_variants"
+ chatDisabledKey = "chat_disabled"
+ externalActionsKey = "external_actions"
+ customStylesKey = "custom_styles"
+ videoCodecKey = "video_codec"
+ blockedUsernamesKey = "blocked_usernames"
+ publicKeyKey = "public_key"
+ privateKeyKey = "private_key"
+ serverInitDateKey = "server_init_date"
+ federationEnabledKey = "federation_enabled"
+ federationUsernameKey = "federation_username"
+ federationPrivateKey = "federation_private"
+ federationGoLiveMessageKey = "federation_go_live_message"
+ federationShowEngagementKey = "federation_show_engagement"
+ federationBlockedDomainsKey = "federation_blocked_domains"
+ suggestedUsernamesKey = "suggested_usernames"
+ chatJoinMessagesEnabledKey = "chat_join_messages_enabled"
+ chatEstablishedUsersOnlyModeKey = "chat_established_users_only_mode"
+ notificationsEnabledKey = "notifications_enabled"
+ discordConfigurationKey = "discord_configuration"
+ browserPushConfigurationKey = "browser_push_configuration"
+ browserPushPublicKeyKey = "browser_push_public_key"
+ browserPushPrivateKeyKey = "browser_push_private_key"
+ twitterConfigurationKey = "twitter_configuration"
+ hasConfiguredInitialNotificationsKey = "has_configured_initial_notifications"
)
// GetExtraPageBodyContent will return the user-supplied body content.
@@ -446,22 +452,6 @@ func SetS3Config(config models.S3) error {
return _datastore.Save(configEntry)
}
-// GetS3StorageEnabled will return if external storage is enabled.
-func GetS3StorageEnabled() bool {
- enabled, err := _datastore.GetBool(s3StorageEnabledKey)
- if err != nil {
- log.Traceln(err)
- return false
- }
-
- return enabled
-}
-
-// SetS3StorageEnabled will enable or disable external storage.
-func SetS3StorageEnabled(enabled bool) error {
- return _datastore.SetBool(s3StorageEnabledKey, enabled)
-}
-
// GetStreamLatencyLevel will return the stream latency level.
func GetStreamLatencyLevel() models.LatencyLevel {
level, err := _datastore.GetNumber(videoLatencyLevel)
@@ -816,3 +806,108 @@ func GetChatJoinMessagesEnabled() bool {
return enabled
}
+
+// SetNotificationsEnabled will save the enabled state of notifications.
+func SetNotificationsEnabled(enabled bool) error {
+ return _datastore.SetBool(notificationsEnabledKey, enabled)
+}
+
+// GetNotificationsEnabled will return the enabled state of notifications.
+func GetNotificationsEnabled() bool {
+ enabled, _ := _datastore.GetBool(notificationsEnabledKey)
+ return enabled
+}
+
+// GetDiscordConfig will return the Discord configuration.
+func GetDiscordConfig() models.DiscordConfiguration {
+ configEntry, err := _datastore.Get(discordConfigurationKey)
+ if err != nil {
+ return models.DiscordConfiguration{Enabled: false}
+ }
+
+ var config models.DiscordConfiguration
+ if err := configEntry.getObject(&config); err != nil {
+ return models.DiscordConfiguration{Enabled: false}
+ }
+
+ return config
+}
+
+// SetDiscordConfig will set the Discord configuration.
+func SetDiscordConfig(config models.DiscordConfiguration) error {
+ configEntry := ConfigEntry{Key: discordConfigurationKey, Value: config}
+ return _datastore.Save(configEntry)
+}
+
+// GetBrowserPushConfig will return the browser push configuration.
+func GetBrowserPushConfig() models.BrowserNotificationConfiguration {
+ configEntry, err := _datastore.Get(browserPushConfigurationKey)
+ if err != nil {
+ return models.BrowserNotificationConfiguration{Enabled: false}
+ }
+
+ var config models.BrowserNotificationConfiguration
+ if err := configEntry.getObject(&config); err != nil {
+ return models.BrowserNotificationConfiguration{Enabled: false}
+ }
+
+ return config
+}
+
+// SetBrowserPushConfig will set the browser push configuration.
+func SetBrowserPushConfig(config models.BrowserNotificationConfiguration) error {
+ configEntry := ConfigEntry{Key: browserPushConfigurationKey, Value: config}
+ return _datastore.Save(configEntry)
+}
+
+// SetBrowserPushPublicKey will set the public key for browser pushes.
+func SetBrowserPushPublicKey(key string) error {
+ return _datastore.SetString(browserPushPublicKeyKey, key)
+}
+
+// GetBrowserPushPublicKey will return the public key for browser pushes.
+func GetBrowserPushPublicKey() (string, error) {
+ return _datastore.GetString(browserPushPublicKeyKey)
+}
+
+// SetBrowserPushPrivateKey will set the private key for browser pushes.
+func SetBrowserPushPrivateKey(key string) error {
+ return _datastore.SetString(browserPushPrivateKeyKey, key)
+}
+
+// GetBrowserPushPrivateKey will return the private key for browser pushes.
+func GetBrowserPushPrivateKey() (string, error) {
+ return _datastore.GetString(browserPushPrivateKeyKey)
+}
+
+// SetTwitterConfiguration will set the Twitter configuration.
+func SetTwitterConfiguration(config models.TwitterConfiguration) error {
+ configEntry := ConfigEntry{Key: twitterConfigurationKey, Value: config}
+ return _datastore.Save(configEntry)
+}
+
+// GetTwitterConfiguration will return the Twitter configuration.
+func GetTwitterConfiguration() models.TwitterConfiguration {
+ configEntry, err := _datastore.Get(twitterConfigurationKey)
+ if err != nil {
+ return models.TwitterConfiguration{Enabled: false}
+ }
+
+ var config models.TwitterConfiguration
+ if err := configEntry.getObject(&config); err != nil {
+ return models.TwitterConfiguration{Enabled: false}
+ }
+
+ return config
+}
+
+// SetHasPerformedInitialNotificationsConfig sets when performed initial setup.
+func SetHasPerformedInitialNotificationsConfig(hasConfigured bool) error {
+ return _datastore.SetBool(hasConfiguredInitialNotificationsKey, true)
+}
+
+// GetHasPerformedInitialNotificationsConfig gets when performed initial setup.
+func GetHasPerformedInitialNotificationsConfig() bool {
+ configured, _ := _datastore.GetBool(hasConfiguredInitialNotificationsKey)
+ return configured
+}
diff --git a/core/streamState.go b/core/streamState.go
index f4184f7d21..8013c18da9 100644
--- a/core/streamState.go
+++ b/core/streamState.go
@@ -15,6 +15,7 @@ import (
"github.com/owncast/owncast/core/transcoder"
"github.com/owncast/owncast/core/webhooks"
"github.com/owncast/owncast/models"
+ "github.com/owncast/owncast/notifications"
"github.com/owncast/owncast/utils"
)
@@ -28,6 +29,8 @@ var _currentBroadcast *models.CurrentBroadcast
var _onlineTimerCancelFunc context.CancelFunc
+var _lastNotified *time.Time
+
// setStreamAsConnected sets the stream as connected.
func setStreamAsConnected(rtmpOut *io.PipeReader) {
now := utils.NullTime{Time: time.Now(), Valid: true}
@@ -71,10 +74,8 @@ func setStreamAsConnected(rtmpOut *io.PipeReader) {
_ = chat.SendSystemAction("Stay tuned, the stream is **starting**!", true)
chat.SendAllWelcomeMessage()
- // Send a delayed live Federated message.
- if data.GetFederationEnabled() {
- _onlineTimerCancelFunc = startFederatedLiveStreamMessageTimer()
- }
+ // Send delayed notification messages.
+ _onlineTimerCancelFunc = startLiveStreamNotificationsTimer()
}
// SetStreamAsDisconnected sets the stream as disconnected.
@@ -161,19 +162,37 @@ func stopOnlineCleanupTimer() {
}
}
-func startFederatedLiveStreamMessageTimer() context.CancelFunc {
- // Send a delayed live Federated message.
+func startLiveStreamNotificationsTimer() context.CancelFunc {
+ // Send delayed notification messages.
c, cancelFunc := context.WithCancel(context.Background())
_onlineTimerCancelFunc = cancelFunc
go func(c context.Context) {
select {
case <-time.After(time.Minute * 2.0):
- log.Traceln("Sending Federated Go Live message.")
- if err := activitypub.SendLive(); err != nil {
+ if _lastNotified != nil && time.Since(*_lastNotified) < 10*time.Minute {
+ return
+ }
+
+ // Send Fediverse message.
+ if data.GetFederationEnabled() {
+ log.Traceln("Sending Federated Go Live message.")
+ if err := activitypub.SendLive(); err != nil {
+ log.Errorln(err)
+ }
+ }
+
+ // Send notification to those who have registered for them.
+ if notifier, err := notifications.New(data.GetDatastore()); err != nil {
log.Errorln(err)
+ } else {
+ notifier.Notify()
}
+
+ now := time.Now()
+ _lastNotified = &now
case <-c.Done():
}
}(c)
+
return cancelFunc
}
diff --git a/db/models.go b/db/models.go
index c353065eec..b3d09dd78a 100644
--- a/db/models.go
+++ b/db/models.go
@@ -40,3 +40,10 @@ type IpBan struct {
Notes sql.NullString
CreatedAt sql.NullTime
}
+
+type Notification struct {
+ ID int32
+ Channel string
+ Destination string
+ CreatedAt sql.NullTime
+}
diff --git a/db/query.sql b/db/query.sql
index 1f204b3ebb..2f3ba1829c 100644
--- a/db/query.sql
+++ b/db/query.sql
@@ -70,3 +70,11 @@ SELECT count(*) FROM ip_bans WHERE ip_address = $1;
-- name: GetIPAddressBans :many
SELECT * FROM ip_bans;
+-- name: AddNotification :exec
+INSERT INTO notifications (channel, destination) VALUES($1, $2);
+
+-- name: GetNotificationDestinationsForChannel :many
+SELECT destination FROM notifications WHERE channel = $1;
+
+-- name: RemoveNotificationDestinationForChannel :exec
+DELETE FROM notifications WHERE channel = $1 AND destination = $2;
diff --git a/db/query.sql.go b/db/query.sql.go
index 6266dcccde..20c5ef860a 100644
--- a/db/query.sql.go
+++ b/db/query.sql.go
@@ -36,6 +36,20 @@ func (q *Queries) AddFollower(ctx context.Context, arg AddFollowerParams) error
return err
}
+const addNotification = `-- name: AddNotification :exec
+INSERT INTO notifications (channel, destination) VALUES($1, $2)
+`
+
+type AddNotificationParams struct {
+ Channel string
+ Destination string
+}
+
+func (q *Queries) AddNotification(ctx context.Context, arg AddNotificationParams) error {
+ _, err := q.db.ExecContext(ctx, addNotification, arg.Channel, arg.Destination)
+ return err
+}
+
const addToAcceptedActivities = `-- name: AddToAcceptedActivities :exec
INSERT INTO ap_accepted_activities(iri, actor, type, timestamp) values($1, $2, $3, $4)
`
@@ -343,6 +357,33 @@ func (q *Queries) GetLocalPostCount(ctx context.Context) (int64, error) {
return count, err
}
+const getNotificationDestinationsForChannel = `-- name: GetNotificationDestinationsForChannel :many
+SELECT destination FROM notifications WHERE channel = $1
+`
+
+func (q *Queries) GetNotificationDestinationsForChannel(ctx context.Context, channel string) ([]string, error) {
+ rows, err := q.db.QueryContext(ctx, getNotificationDestinationsForChannel, channel)
+ if err != nil {
+ return nil, err
+ }
+ defer rows.Close()
+ var items []string
+ for rows.Next() {
+ var destination string
+ if err := rows.Scan(&destination); err != nil {
+ return nil, err
+ }
+ items = append(items, destination)
+ }
+ if err := rows.Close(); err != nil {
+ return nil, err
+ }
+ if err := rows.Err(); err != nil {
+ return nil, err
+ }
+ return items, nil
+}
+
const getObjectFromOutboxByID = `-- name: GetObjectFromOutboxByID :one
SELECT value FROM ap_outbox WHERE iri = $1
`
@@ -489,6 +530,20 @@ func (q *Queries) RemoveIPAddressBan(ctx context.Context, ipAddress string) erro
return err
}
+const removeNotificationDestinationForChannel = `-- name: RemoveNotificationDestinationForChannel :exec
+DELETE FROM notifications WHERE channel = $1 AND destination = $2
+`
+
+type RemoveNotificationDestinationForChannelParams struct {
+ Channel string
+ Destination string
+}
+
+func (q *Queries) RemoveNotificationDestinationForChannel(ctx context.Context, arg RemoveNotificationDestinationForChannelParams) error {
+ _, err := q.db.ExecContext(ctx, removeNotificationDestinationForChannel, arg.Channel, arg.Destination)
+ return err
+}
+
const updateFollowerByIRI = `-- name: UpdateFollowerByIRI :exec
UPDATE ap_followers SET inbox = $1, name = $2, username = $3, image = $4 WHERE iri = $5
`
diff --git a/db/schema.sql b/db/schema.sql
index e9b21b91cb..2bef2bd7a7 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -41,3 +41,10 @@ CREATE TABLE IF NOT EXISTS ap_accepted_activities (
"notes" TEXT,
"created_at" TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
+
+CREATE TABLE IF NOT EXISTS notifications (
+ "id" INTEGER NOT NULL PRIMARY KEY,
+ "channel" TEXT NOT NULL,
+ "destination" TEXT NOT NULL,
+ "created_at" TIMESTAMP DEFAULT CURRENT_TIMESTAMP);
+ CREATE INDEX channel_index ON notifications (channel);
diff --git a/doc/api/index.html b/doc/api/index.html
index 3c803cb8b0..263c2c20d6 100644
--- a/doc/api/index.html
+++ b/doc/api/index.html
@@ -2356,7 +2356,7 @@ data-styled.g140[id="sc-amkrK"]{content:"icZuVc,"}/*!sc*/
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"></div></div></div><div id="tag/Server/paths/~1api~1status/get" data-section-id="tag/Server/paths/~1api~1status/get" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#tag/Server/paths/~1api~1status/get" aria-label="tag/Server/paths/~1api~1status/get"></a>Current Status<!-- --> </h2><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw hMrMTo"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/status</span><svg class="sc-dIsUp iFYrlT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span></span>/api/status</div></div></div></div></div><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>This endpoint is used to discover when a server is broadcasting, the number of active viewers as well as other useful information for updating the user interface.</p>
</div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"></span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-228" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-229" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-229" aria-labelledby="react-tabs-228"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"lastConnectTime"</span>: <span class="token string">&quot;2020-10-03T21:36:22-05:00&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"lastDisconnectTime"</span>: <span class="token keyword">null</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"online"</span>: <span class="token boolean">true</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"overallMaxViewerCount"</span>: <span class="token number">420</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"sessionMaxViewerCount"</span>: <span class="token number">12</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"viewerCount"</span>: <span class="token number">7</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="tag/Server/paths/~1api~1yp/get" data-section-id="tag/Server/paths/~1api~1yp/get" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#tag/Server/paths/~1api~1yp/get" aria-label="tag/Server/paths/~1api~1yp/get"></a>Yellow Pages Information<!-- --> </h2><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw hMrMTo"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/yp</span><svg class="sc-dIsUp iFYrlT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span></span>/api/yp</div></div></div></div></div><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Information to be used in the Yellow Pages service, a global directory of Owncast servers.</p>
</div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"></span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-230" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-231" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-231" aria-labelledby="react-tabs-230"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"name"</span>: <span class="token string">&quot;string&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"description"</span>: <span class="token string">&quot;string&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"logo"</span>: <span class="token string">&quot;string&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"nsfw"</span>: <span class="token boolean">true</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><span class="token string">&quot;string&quot;</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"online"</span>: <span class="token boolean">true</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"viewerCount"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"overallMaxViewerCount"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"sessionMaxViewerCount"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"lastConnectTime"</span>: <span class="token string">&quot;2019-08-24T14:15:22Z&quot;</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1followers/get" data-section-id="/paths/~1api~1followers/get" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#/paths/~1api~1followers/get" aria-label="/paths/~1api~1followers/get"></a>Get the public followers of this instance<!-- --> </h2><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw hMrMTo"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/followers</span><svg class="sc-dIsUp iFYrlT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span></span>/api/followers</div></div></div></div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Followers</p>
-</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-232" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-233" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-233" aria-labelledby="react-tabs-232"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"link"</span>: <span class="token string">&quot;</span><a href="https://mastodon.cloud/users/gabektest">https://mastodon.cloud/users/gabektest</a><span class="token string">&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">&quot;John Smith&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"image"</span>: <span class="token string">&quot;</span><a href="http://mastodon.cloud/users/gabektest/avatar.png">http://mastodon.cloud/users/gabektest/avatar.png</a><span class="token string">&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"timestamp"</span>: <span class="token string">&quot;2019-08-24T14:15:22Z&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"disabledAt"</span>: <span class="token string">&quot;2019-08-24T14:15:22Z&quot;</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1remotefollow/post" data-section-id="/paths/~1api~1remotefollow/post" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#/paths/~1api~1remotefollow/post" aria-label="/paths/~1api~1remotefollow/post"></a>Return the information needed to redirect a user to a fediverse server to perform a remote follow action.<!-- --> </h2><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw hMrMTo"><span type="post" class="sc-bQCEYZ dknlJl http-verb post">post</span><span class="sc-dWBRfb deJybC">/api/remotefollow</span><svg class="sc-dIsUp iFYrlT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span></span>/api/remotefollow</div></div></div></div></div><h5 class="sc-iqAclL eONCmm">Request Body schema: <span class="sc-jcwpoC joKODG">application/json</span></h5><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"></div><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="account"><span class="sc-iemWCZ bcnRwz"></span><span>account</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"><p>The fediverse <a href="mailto:&#x75;&#x73;&#101;&#x72;&#110;&#97;&#109;&#x65;&#x40;&#115;&#x65;&#x72;&#118;&#101;&#114;&#x2e;&#x74;&#x6c;&#x64;">&#x75;&#x73;&#101;&#x72;&#110;&#97;&#109;&#x65;&#x40;&#115;&#x65;&#x72;&#118;&#101;&#114;&#x2e;&#x74;&#x6c;&#x64;</a> account that wants to perform the remote follow action.</p>
+</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-232" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-233" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-233" aria-labelledby="react-tabs-232"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"link"</span>: <span class="token string">&quot;</span><a href="https://mastodon.cloud/users/gabektest">https://mastodon.cloud/users/gabektest</a><span class="token string">&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">&quot;John Smith&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"image"</span>: <span class="token string">&quot;</span><a href="http://mastodon.cloud/users/gabektest/avatar.png">http://mastodon.cloud/users/gabektest/avatar.png</a><span class="token string">&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"timestamp"</span>: <span class="token string">&quot;2019-08-24T14:15:22Z&quot;</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"disabledAt"</span>: <span class="token string">&quot;2019-08-24T14:15:22Z&quot;</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1remotefollow/post" data-section-id="/paths/~1api~1remotefollow/post" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#/paths/~1api~1remotefollow/post" aria-label="/paths/~1api~1remotefollow/post"></a>Return the information needed to redirect a user to a fediverse server to perform a remote follow action.<!-- --> </h2><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw hMrMTo"><span type="post" class="sc-bQCEYZ dknlJl http-verb post">post</span><span class="sc-dWBRfb deJybC">/api/remotefollow</span><svg class="sc-dIsUp iFYrlT" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span></span>/api/remotefollow</div></div></div></div></div><h5 class="sc-iqAclL eONCmm">Request Body schema: <span class="sc-jcwpoC joKODG">application/json</span></h5><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"></div><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="account"><span class="sc-iemWCZ bcnRwz"></span><span>account</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"><p>The fediverse <a href="mailto:&#117;&#x73;&#x65;&#x72;&#x6e;&#97;&#x6d;&#101;&#x40;&#115;&#101;&#x72;&#118;&#x65;&#114;&#46;&#x74;&#x6c;&#x64;">&#117;&#x73;&#x65;&#x72;&#x6e;&#97;&#x6d;&#101;&#x40;&#115;&#101;&#x72;&#118;&#x65;&#114;&#46;&#x74;&#x6c;&#x64;</a> account that wants to perform the remote follow action.</p>
</div></div></div></td></tr></tbody></table><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Remote follow redirect details</p>
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Request samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="react-tabs__tab react-tabs__tab--selected" role="tab" id="react-tabs-234" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-235" tabindex="0" data-rttab="true">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-235" aria-labelledby="react-tabs-234"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"account"</span>: <span class="token string">&quot;[email protected]&quot;</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-236" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-237" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-237" aria-labelledby="react-tabs-236"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"redirectUrl"</span>: <span class="token string">&quot;</span><a href="https://fediverse.biz/authorize_interaction?uri=https://my.owncast.server/federation/user/streamer">https://fediverse.biz/authorize_interaction?uri=https://my.owncast.server/federation/user/streamer</a><span class="token string">&quot;</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div></div><div class="sc-cKRKFl bnHjoU"></div></div></div>
<script>
diff --git a/go.mod b/go.mod
index 406a583e35..6017322085 100644
--- a/go.mod
+++ b/go.mod
@@ -27,18 +27,14 @@ require (
)
require (
- github.com/aymerick/douceur v0.2.0 // indirect
- github.com/gorilla/css v1.0.0 // indirect
- github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jonboulle/clockwork v0.2.2 // indirect
github.com/lestrrat-go/strftime v1.0.4 // indirect
github.com/mvdan/xurls v1.1.0 // indirect
- github.com/oschwald/maxminddb-golang v1.8.0 // indirect
github.com/pkg/errors v0.9.1
github.com/tklauser/go-sysconf v0.3.9 // indirect
github.com/tklauser/numcpus v0.3.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
- golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
+ golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f // indirect
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
)
@@ -63,4 +59,18 @@ require (
github.com/shirou/gopsutil/v3 v3.22.2
)
+require github.com/SherClockHolmes/webpush-go v1.1.3
+
+require (
+ github.com/aymerick/douceur v0.2.0 // indirect
+ github.com/dghubble/oauth1 v0.7.1
+ github.com/g8rswimmer/go-twitter v1.1.5-0.20220129031223-e62b74626b0a
+ github.com/go-test/deep v1.0.4 // indirect
+ github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
+ github.com/gorilla/css v1.0.0 // indirect
+ github.com/jmespath/go-jmespath v0.4.0 // indirect
+ github.com/mailjet/mailjet-apiv3-go v0.0.0-20201009050126-c24bc15a9394
+ github.com/oschwald/maxminddb-golang v1.8.0 // indirect
+)
+
replace github.com/go-fed/activity => github.com/owncast/activity v1.0.1-0.20211229051252-7821289d4026
diff --git a/go.sum b/go.sum
index 24d635e633..d01e073961 100644
--- a/go.sum
+++ b/go.sum
@@ -33,6 +33,8 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
+github.com/SherClockHolmes/webpush-go v1.1.3 h1:VucRA0rOs0fWQGaf2sp1oeKa8om9Mo5OMaRpUiCxzQE=
+github.com/SherClockHolmes/webpush-go v1.1.3/go.mod h1:w6X47YApe/B9wUz2Wh8xukxlyupaxSSEbu6yKJcHN2w=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
@@ -61,10 +63,14 @@ github.com/dave/jennifer v1.3.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhr
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dghubble/oauth1 v0.7.1 h1:JjbOVSVVkms9A4h/sTQy5Jb2nFuAAVb2qVYgenJPyrE=
+github.com/dghubble/oauth1 v0.7.1/go.mod h1:0eEzON0UY/OLACQrmnjgJjmvCGXzjBCsZqL1kWDXtF0=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/g8rswimmer/go-twitter v1.1.5-0.20220129031223-e62b74626b0a h1:WFj29uFGJL56FyeXEgw8oLOhL5UmQsLU7C29BjCT3F4=
+github.com/g8rswimmer/go-twitter v1.1.5-0.20220129031223-e62b74626b0a/go.mod h1:2fqT4zKHjUTOd2C8YneuRJFieYfbA3NWVSEeD+qIYHs=
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5/go.mod h1:T56HUNYZUQ1AGUzhAYPugZfp36sKApVnGBgKlIY+aIE=
github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI=
github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM=
@@ -80,9 +86,12 @@ github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
-github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
+github.com/go-test/deep v1.0.4 h1:u2CU3YKy9I2pmu9pX0eq50wCgjfGIt539SqR7FbHiho=
+github.com/go-test/deep v1.0.4/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
+github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
@@ -177,6 +186,8 @@ github.com/lestrrat-go/strftime v1.0.4 h1:T1Rb9EPkAhgxKqbcMIPguPq8glqXTA1koF8n9B
github.com/lestrrat-go/strftime v1.0.4/go.mod h1:E1nN3pCbtMSu1yjSVeyuRFVm/U0xoR76fd03sz+Qz4g=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
+github.com/mailjet/mailjet-apiv3-go v0.0.0-20201009050126-c24bc15a9394 h1:+6kiV40vfmh17TDlZG15C2uGje1/XBGT32j6xKmUkqM=
+github.com/mailjet/mailjet-apiv3-go v0.0.0-20201009050126-c24bc15a9394/go.mod h1:ogN8Sxy3n5VKLhQxbtSBM3ICG/VgjXS/akQJIoDSrgA=
github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/mattn/go-sqlite3 v1.14.10 h1:MLn+5bFRlWMGoSRmJour3CL1w/qL96mvipqpwQW/Sfk=
github.com/mattn/go-sqlite3 v1.14.10/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
@@ -197,10 +208,9 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/nakabonne/tstorage v0.3.5 h1:AmXhEn6SM94sMy1+bwAs9xg3cuefXBXakcYOMQuQlqI=
github.com/nakabonne/tstorage v0.3.5/go.mod h1:dgOHx150reQ3xHCqyoU19TImAU0PY78bfwUIG24xNzY=
-github.com/nareix/joy5 v0.0.0-20200712071056-a55089207c88 h1:CXq5QLPMcfGEZMx8uBMyLdDiUNV72vlkSiyqg+jf7AI=
-github.com/nareix/joy5 v0.0.0-20200712071056-a55089207c88/go.mod h1:XmAOs6UJXpNXRwKk+KY/nv5kL6xXYXyellk+A1pTlko=
github.com/nareix/joy5 v0.0.0-20210317075623-2c912ca30590 h1:PnxRU8L8Y2q82vFC2QdNw23Dm2u6WrjecIdpXjiYbXM=
github.com/nareix/joy5 v0.0.0-20210317075623-2c912ca30590/go.mod h1:XmAOs6UJXpNXRwKk+KY/nv5kL6xXYXyellk+A1pTlko=
+github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/oschwald/geoip2-golang v1.6.1 h1:GKxT3yaWWNXSb7vj6D7eoJBns+lGYgx08QO0UcNm0YY=
github.com/oschwald/geoip2-golang v1.6.1/go.mod h1:xdvYt5xQzB8ORWFqPnqMwZpCpgNagttWdoZLlJQzg7s=
github.com/oschwald/maxminddb-golang v1.8.0 h1:Uh/DSnGoxsyp/KYbY1AuP0tYEwfs0sCph9p/UMXK/Hk=
@@ -259,8 +269,6 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf h1:Z2X3Os7oRzpdJ75iPqWZc0HeJWFYNCvKsfpQwFpRNTA=
-github.com/teris-io/shortid v0.0.0-20171029131806-771a37caa5cf/go.mod h1:M8agBzgqHIhgj7wEn9/0hJUZcrvt9VY+Ln+S1I5Mha0=
github.com/teris-io/shortid v0.0.0-20201117134242-e59966efd125 h1:3SNcvBmEPE1YlB1JpVZouslJpI3GBNoiqW7+wb0Rz7w=
github.com/teris-io/shortid v0.0.0-20201117134242-e59966efd125/go.mod h1:M8agBzgqHIhgj7wEn9/0hJUZcrvt9VY+Ln+S1I5Mha0=
github.com/tklauser/go-sysconf v0.3.9 h1:JeUVdAOWhhxVcU6Eqr/ATFHgXk/mmiItdKeJPev3vTo=
@@ -281,12 +289,14 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
golang.org/x/crypto v0.0.0-20180527072434-ab813273cd59/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 h1:0es+/5331RGQPcXlMfP+WrnIIS6dNnNRe0WB02W0F4M=
+golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -350,6 +360,7 @@ golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81R
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f h1:hEYJvxw1lSnWIl8X9ofsYMklzaDs90JI2az5YMd4fPM=
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
@@ -407,10 +418,12 @@ golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220111092808-5a964db01320/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0=
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -422,8 +435,6 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
-golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 h1:Hir2P/De0WpUhtrKGGjvSb2YxUgyZ7EFOSLIcSSpiwE=
-golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 h1:M73Iuj3xbbb9Uk1DYhzydthsj6oOd6l9bpuFcNoUvTs=
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
diff --git a/models/notification.go b/models/notification.go
new file mode 100644
index 0000000000..01542cc984
--- /dev/null
+++ b/models/notification.go
@@ -0,0 +1,27 @@
+package models
+
+// DiscordConfiguration represents the configuration for the discord
+// notification service.
+type DiscordConfiguration struct {
+ Enabled bool `json:"enabled"`
+ Webhook string `json:"webhook,omitempty"`
+ GoLiveMessage string `json:"goLiveMessage,omitempty"`
+}
+
+// BrowserNotificationConfiguration represents the configuration for
+// browser notifications.
+type BrowserNotificationConfiguration struct {
+ Enabled bool `json:"enabled"`
+ GoLiveMessage string `json:"goLiveMessage,omitempty"`
+}
+
+// TwitterConfiguration represents the configuration for Twitter access.
+type TwitterConfiguration struct {
+ Enabled bool `json:"enabled"`
+ APIKey string `json:"apiKey"` // aka consumer key
+ APISecret string `json:"apiSecret"` // aka consumer secret
+ AccessToken string `json:"accessToken"`
+ AccessTokenSecret string `json:"accessTokenSecret"`
+ BearerToken string `json:"bearerToken"`
+ GoLiveMessage string `json:"goLiveMessage,omitempty"`
+}
diff --git a/notifications/browser/browser.go b/notifications/browser/browser.go
new file mode 100644
index 0000000000..9baf1a6957
--- /dev/null
+++ b/notifications/browser/browser.go
@@ -0,0 +1,83 @@
+package browser
+
+import (
+ "encoding/json"
+
+ "github.com/SherClockHolmes/webpush-go"
+ "github.com/owncast/owncast/core/data"
+ "github.com/pkg/errors"
+)
+
+// Browser is an instance of the Browser service.
+type Browser struct {
+ datastore *data.Datastore
+ privateKey string
+ publicKey string
+}
+
+// New will create a new instance of the Browser service.
+func New(datastore *data.Datastore, publicKey, privateKey string) (*Browser, error) {
+ return &Browser{
+ datastore: datastore,
+ privateKey: privateKey,
+ publicKey: publicKey,
+ }, nil
+}
+
+// GenerateBrowserPushKeys will create the VAPID keys required for web push notifications.
+func GenerateBrowserPushKeys() (string, string, error) {
+ privateKey, publicKey, err := webpush.GenerateVAPIDKeys()
+ if err != nil {
+ return "", "", errors.Wrap(err, "error generating web push keys")
+ }
+
+ return privateKey, publicKey, nil
+}
+
+// Send will send a browser push notification to the given subscription.
+func (b *Browser) Send(
+ subscription string,
+ title string,
+ body string,
+) (bool, error) {
+ type message struct {
+ Title string `json:"title"`
+ Body string `json:"body"`
+ Icon string `json:"icon"`
+ }
+
+ m := message{
+ Title: title,
+ Body: body,
+ Icon: "/logo/external",
+ }
+
+ d, err := json.Marshal(m)
+ if err != nil {
+ return false, errors.Wrap(err, "error marshalling web push message")
+ }
+
+ // Decode subscription
+ s := &webpush.Subscription{}
+ if err := json.Unmarshal([]byte(subscription), s); err != nil {
+ return false, errors.Wrap(err, "error decoding destination subscription")
+ }
+
+ // Send Notification
+ resp, err := webpush.SendNotification(d, s, &webpush.Options{
+ VAPIDPublicKey: b.publicKey,
+ VAPIDPrivateKey: b.privateKey,
+ Topic: "owncast-go-live",
+ TTL: 10,
+ // Not really the subscriber, but a contact point for the sender.
+ Subscriber: "[email protected]",
+ })
+ if resp.StatusCode == 410 {
+ return true, nil
+ } else if err != nil {
+ return false, errors.Wrap(err, "error sending browser push notification")
+ }
+ defer resp.Body.Close()
+
+ return false, err
+}
diff --git a/notifications/channels.go b/notifications/channels.go
new file mode 100644
index 0000000000..86a5e4decd
--- /dev/null
+++ b/notifications/channels.go
@@ -0,0 +1,6 @@
+package notifications
+
+const (
+ // BrowserPushNotification represents a push notification for a browser.
+ BrowserPushNotification = "BROWSER_PUSH_NOTIFICATION"
+)
diff --git a/notifications/discord/discord.go b/notifications/discord/discord.go
new file mode 100644
index 0000000000..d0e5918a24
--- /dev/null
+++ b/notifications/discord/discord.go
@@ -0,0 +1,61 @@
+package discord
+
+import (
+ "bytes"
+ "encoding/json"
+ "net/http"
+
+ "github.com/pkg/errors"
+)
+
+// Discord is an instance of the Discord service.
+type Discord struct {
+ name string
+ avatar string
+ webhookURL string
+}
+
+// New will create a new instance of the Discord service.
+func New(name, avatar, webhook string) (*Discord, error) {
+ return &Discord{
+ name: name,
+ avatar: avatar,
+ webhookURL: webhook,
+ }, nil
+}
+
+// Send will send a message to a Discord channel via a webhook.
+func (t *Discord) Send(content string) error {
+ type message struct {
+ Username string `json:"username"`
+ Content string `json:"content"`
+ Avatar string `json:"avatar_url"`
+ }
+
+ msg := message{
+ Username: t.name,
+ Content: content,
+ Avatar: t.avatar,
+ }
+
+ jsonText, err := json.Marshal(msg)
+ if err != nil {
+ return errors.Wrap(err, "error marshalling discord message to json")
+ }
+
+ req, err := http.NewRequest("POST", t.webhookURL, bytes.NewReader(jsonText))
+ if err != nil {
+ return errors.Wrap(err, "error creating discord webhook request")
+ }
+
+ req.Header.Set("Content-Type", "application/json")
+
+ client := &http.Client{}
+
+ resp, err := client.Do(req)
+ if err != nil {
+ return errors.Wrap(err, "error executing discord webhook")
+ }
+
+ return resp.Body.Close()
+}
diff --git a/notifications/notifications.go b/notifications/notifications.go
new file mode 100644
index 0000000000..d19b611c84
--- /dev/null
+++ b/notifications/notifications.go
@@ -0,0 +1,193 @@
+package notifications
+
+import (
+ "fmt"
+ "strings"
+
+ "github.com/owncast/owncast/config"
+ "github.com/owncast/owncast/core/data"
+ "github.com/owncast/owncast/models"
+ "github.com/owncast/owncast/notifications/browser"
+ "github.com/owncast/owncast/notifications/discord"
+ "github.com/owncast/owncast/notifications/twitter"
+ "github.com/owncast/owncast/utils"
+ "github.com/pkg/errors"
+ log "github.com/sirupsen/logrus"
+)
+
+// Notifier is an instance of the live stream notifier.
+type Notifier struct {
+ datastore *data.Datastore
+ browser *browser.Browser
+ discord *discord.Discord
+ twitter *twitter.Twitter
+}
+
+// Setup will perform any pre-use setup for the notifier.
+func Setup(datastore *data.Datastore) {
+ createNotificationsTable(datastore.DB)
+ initializeBrowserPushIfNeeded()
+}
+
+func initializeBrowserPushIfNeeded() {
+ pubKey, _ := data.GetBrowserPushPublicKey()
+ privKey, _ := data.GetBrowserPushPrivateKey()
+
+ // We need browser push keys so people can register for pushes.
+ if pubKey == "" || privKey == "" {
+ browserPrivateKey, browserPublicKey, err := browser.GenerateBrowserPushKeys()
+ if err != nil {
+ log.Errorln("unable to initialize browser push notification keys", err)
+ }
+
+ if err := data.SetBrowserPushPrivateKey(browserPrivateKey); err != nil {
+ log.Errorln("unable to set browser push private key", err)
+ }
+
+ if err := data.SetBrowserPushPublicKey(browserPublicKey); err != nil {
+ log.Errorln("unable to set browser push public key", err)
+ }
+ }
+
+ // Enable browser push notifications by default.
+ if !data.GetHasPerformedInitialNotificationsConfig() {
+ _ = data.SetBrowserPushConfig(models.BrowserNotificationConfiguration{Enabled: true, GoLiveMessage: config.GetDefaults().FederationGoLiveMessage})
+ _ = data.SetHasPerformedInitialNotificationsConfig(true)
+ }
+}
+
+// New creates a new instance of the Notifier.
+func New(datastore *data.Datastore) (*Notifier, error) {
+ notifier := Notifier{
+ datastore: datastore,
+ }
+
+ if err := notifier.setupBrowserPush(); err != nil {
+ log.Error(err)
+ }
+ if err := notifier.setupDiscord(); err != nil {
+ log.Error(err)
+ }
+ if err := notifier.setupTwitter(); err != nil {
+ log.Errorln(err)
+ }
+
+ return &notifier, nil
+}
+
+func (n *Notifier) setupBrowserPush() error {
+ if data.GetBrowserPushConfig().Enabled {
+ publicKey, err := data.GetBrowserPushPublicKey()
+ if err != nil || publicKey == "" {
+ return errors.Wrap(err, "browser notifier disabled, failed to get browser push public key")
+ }
+
+ privateKey, err := data.GetBrowserPushPrivateKey()
+ if err != nil || privateKey == "" {
+ return errors.Wrap(err, "browser notifier disabled, failed to get browser push private key")
+ }
+
+ browserNotifier, err := browser.New(n.datastore, publicKey, privateKey)
+ if err != nil {
+ return errors.Wrap(err, "error creating browser notifier")
+ }
+ n.browser = browserNotifier
+ }
+ return nil
+}
+
+func (n *Notifier) notifyBrowserPush() {
+ destinations, err := GetNotificationDestinationsForChannel(BrowserPushNotification)
+ if err != nil {
+ log.Errorln("error getting browser push notification destinations", err)
+ }
+ for _, destination := range destinations {
+ unsubscribed, err := n.browser.Send(destination, data.GetServerName(), data.GetBrowserPushConfig().GoLiveMessage)
+ if unsubscribed {
+ // If the error is "unsubscribed", then remove the destination from the database.
+ if err := RemoveNotificationForChannel(BrowserPushNotification, destination); err != nil {
+ log.Errorln(err)
+ }
+ } else if err != nil {
+ log.Errorln(err)
+ }
+ }
+}
+
+func (n *Notifier) setupDiscord() error {
+ discordConfig := data.GetDiscordConfig()
+ if discordConfig.Enabled && discordConfig.Webhook != "" {
+ var image string
+ if serverURL := data.GetServerURL(); serverURL != "" {
+ image = serverURL + "/images/owncast-logo.png"
+ }
+ discordNotifier, err := discord.New(
+ data.GetServerName(),
+ image,
+ discordConfig.Webhook,
+ )
+ if err != nil {
+ return errors.Wrap(err, "error creating discord notifier")
+ }
+ n.discord = discordNotifier
+ }
+ return nil
+}
+
+func (n *Notifier) notifyDiscord() {
+ goLiveMessage := data.GetDiscordConfig().GoLiveMessage
+ streamTitle := data.GetStreamTitle()
+ if streamTitle != "" {
+ goLiveMessage += "\n" + streamTitle
+ }
+ message := fmt.Sprintf("%s\n\n%s", goLiveMessage, data.GetServerURL())
+
+ if err := n.discord.Send(message); err != nil {
+ log.Errorln("error sending discord message", err)
+ }
+}
+
+func (n *Notifier) setupTwitter() error {
+ if twitterConfig := data.GetTwitterConfiguration(); twitterConfig.Enabled {
+ if t, err := twitter.New(twitterConfig.APIKey, twitterConfig.APISecret, twitterConfig.AccessToken, twitterConfig.AccessTokenSecret, twitterConfig.BearerToken); err == nil {
+ n.twitter = t
+ } else if err != nil {
+ return errors.Wrap(err, "error creating twitter notifier")
+ }
+ }
+ return nil
+}
+
+func (n *Notifier) notifyTwitter() {
+ goLiveMessage := data.GetTwitterConfiguration().GoLiveMessage
+ streamTitle := data.GetStreamTitle()
+ if streamTitle != "" {
+ goLiveMessage += "\n" + streamTitle
+ }
+ tagString := ""
+ for _, tag := range utils.ShuffleStringSlice(data.GetServerMetadataTags()) {
+ tagString = fmt.Sprintf("%s #%s", tagString, tag)
+ }
+ tagString = strings.TrimSpace(tagString)
+
+ message := fmt.Sprintf("%s\n%s\n\n%s", goLiveMessage, data.GetServerURL(), tagString)
+
+ if err := n.twitter.Notify(message); err != nil {
+ log.Errorln("error sending twitter message", err)
+ }
+}
+
+// Notify will fire the different notification channels.
+func (n *Notifier) Notify() {
+ if n.browser != nil {
+ n.notifyBrowserPush()
+ }
+
+ if n.discord != nil {
+ n.notifyDiscord()
+ }
+
+ if n.twitter != nil {
+ n.notifyTwitter()
+ }
+}
diff --git a/notifications/persistence.go b/notifications/persistence.go
new file mode 100644
index 0000000000..283e4e551b
--- /dev/null
+++ b/notifications/persistence.go
@@ -0,0 +1,60 @@
+package notifications
+
+import (
+ "context"
+ "database/sql"
+
+ "github.com/owncast/owncast/core/data"
+ "github.com/owncast/owncast/db"
+ "github.com/pkg/errors"
+ log "github.com/sirupsen/logrus"
+)
+
+func createNotificationsTable(db *sql.DB) {
+ log.Traceln("Creating federation followers table...")
+
+ createTableSQL := `CREATE TABLE IF NOT EXISTS notifications (
+ "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ "channel" TEXT NOT NULL,
+ "destination" TEXT NOT NULL,
+ "created_at" TIMESTAMP DEFAULT CURRENT_TIMESTAMP);
+ CREATE INDEX channel_index ON notifications (channel);`
+
+ stmt, err := db.Prepare(createTableSQL)
+ if err != nil {
+ log.Fatal(err)
+ }
+ defer stmt.Close()
+ _, err = stmt.Exec()
+ if err != nil {
+ log.Warnln("error executing sql creating followers table", createTableSQL, err)
+ }
+}
+
+// AddNotification saves a new user notification destination.
+func AddNotification(channel, destination string) error {
+ return data.GetDatastore().GetQueries().AddNotification(context.Background(), db.AddNotificationParams{
+ Channel: channel,
+ Destination: destination,
+ })
+}
+
+// RemoveNotificationForChannel removes a notification destination..
+func RemoveNotificationForChannel(channel, destination string) error {
+ log.Println("Removing notification for channel", channel)
+ return data.GetDatastore().GetQueries().RemoveNotificationDestinationForChannel(context.Background(), db.RemoveNotificationDestinationForChannelParams{
+ Channel: channel,
+ Destination: destination,
+ })
+}
+
+// GetNotificationDestinationsForChannel will return a collection of
+// destinations to notify for a given channel.
+func GetNotificationDestinationsForChannel(channel string) ([]string, error) {
+ result, err := data.GetDatastore().GetQueries().GetNotificationDestinationsForChannel(context.Background(), channel)
+ if err != nil {
+ return nil, errors.Wrap(err, "unable to query notification destinations for channel "+channel)
+ }
+
+ return result, nil
+}
diff --git a/notifications/twitter/twitter.go b/notifications/twitter/twitter.go
new file mode 100644
index 0000000000..6ed7b83d9a
--- /dev/null
+++ b/notifications/twitter/twitter.go
@@ -0,0 +1,78 @@
+package twitter
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "net/http"
+
+ "github.com/dghubble/oauth1"
+ "github.com/g8rswimmer/go-twitter/v2"
+)
+
+/*
+1. developer.twitter.com. Apply to be a developer if needed.
+2. Projects and apps -> Your project name
+3. Settings.
+4. Scroll down to"User authentication settings" Edit
+5. Enable OAuth 1.0a with Read/Write permissions.
+6. Fill out the form with your information. Callback can be anything.
+7. Go to your project "Keys and tokens"
+8. Generate API key and secret.
+9. Generate access token and secret. Verify it says "Read and write permissions."
+10. Generate bearer token.
+*/
+
+type authorize struct {
+ Token string
+}
+
+func (a authorize) Add(req *http.Request) {
+ req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", a.Token))
+}
+
+// Twitter is an instance of the Twitter notifier.
+type Twitter struct {
+ apiKey string
+ apiSecret string
+ accessToken string
+ accessTokenSecret string
+ bearerToken string
+}
+
+// New returns a new instance of the Twitter notifier.
+func New(apiKey, apiSecret, accessToken, accessTokenSecret, bearerToken string) (*Twitter, error) {
+ if apiKey == "" || apiSecret == "" || accessToken == "" || accessTokenSecret == "" || bearerToken == "" {
+ return nil, errors.New("missing some or all of the required twitter configuration values")
+ }
+
+ return &Twitter{
+ apiKey: apiKey,
+ apiSecret: apiSecret,
+ accessToken: accessToken,
+ accessTokenSecret: accessTokenSecret,
+ bearerToken: bearerToken,
+ }, nil
+}
+
+// Notify will send a notification to Twitter with the supplied text.
+func (t *Twitter) Notify(text string) error {
+ config := oauth1.NewConfig(t.apiKey, t.apiSecret)
+ token := oauth1.NewToken(t.accessToken, t.accessTokenSecret)
+ httpClient := config.Client(oauth1.NoContext, token)
+
+ client := &twitter.Client{
+ Authorizer: authorize{
+ Token: t.bearerToken,
+ },
+ Client: httpClient,
+ Host: "https://api.twitter.com",
+ }
+
+ req := twitter.CreateTweetRequest{
+ Text: text,
+ }
+
+ _, err := client.CreateTweet(context.Background(), req)
+ return err
+}
diff --git a/router/router.go b/router/router.go
index 5f1f4b03bf..6c725be561 100644
--- a/router/router.go
+++ b/router/router.go
@@ -83,6 +83,9 @@ func Start() error {
// save client video playback metrics
http.HandleFunc("/api/metrics/playback", controllers.ReportPlaybackMetrics)
+ // Register for notifications
+ http.HandleFunc("/api/notifications/register", middleware.RequireUserAccessToken(controllers.RegisterForLiveNotifications))
+
// Authenticated admin requests
// Current inbound broadcaster
@@ -339,6 +342,11 @@ func Start() error {
promhttp.Handler().ServeHTTP(rw, r)
}))
+ // Configure outbound notification channels.
+ http.HandleFunc("/api/admin/config/notifications/discord", middleware.RequireAdminAuth(admin.SetDiscordNotificationConfiguration))
+ http.HandleFunc("/api/admin/config/notifications/browser", middleware.RequireAdminAuth(admin.SetBrowserNotificationConfiguration))
+ http.HandleFunc("/api/admin/config/notifications/twitter", middleware.RequireAdminAuth(admin.SetTwitterConfiguration))
+
// ActivityPub has its own router
activitypub.Start(data.GetDatastore())
diff --git a/static/golive.html.tmpl b/static/golive.html.tmpl
new file mode 100644
index 0000000000..c773fe52f5
--- /dev/null
+++ b/static/golive.html.tmpl
@@ -0,0 +1,487 @@
+<!DOCTYPE html>
+<html
+ lang="en"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:v="urn:schemas-microsoft-com:vml"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+>
+ <head>
+ <meta charset="utf-8" />
+ <!-- utf-8 works for most cases -->
+ <meta name="viewport" content="width=device-width" />
+ <!-- Forcing initial-scale shouldn't be necessary -->
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <!-- Use the latest (edge) version of IE rendering engine -->
+ <meta name="x-apple-disable-message-reformatting" />
+ <!-- Disable auto-scale in iOS 10 Mail entirely -->
+ <title></title>
+ <!-- The title tag shows in email notifications, like Android 4.4. -->
+
+ <link
+ href="https://fonts.googleapis.com/css?family=Lato:300,400,700"
+ rel="stylesheet"
+ />
+
+ <!-- CSS Reset : BEGIN -->
+ <style>
+ /* What it does: Remove spaces around the email design added by some email clients. */
+ /* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */
+ html,
+ body {
+ margin: 0 auto !important;
+ padding: 0 !important;
+ height: 100% !important;
+ width: 100% !important;
+ background: #f1f1f1;
+ }
+
+ /* What it does: Stops email clients resizing small text. */
+ * {
+ -ms-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%;
+ }
+
+ /* What it does: Centers email on Android 4.4 */
+ div[style*='margin: 16px 0'] {
+ margin: 0 !important;
+ }
+
+ /* What it does: Stops Outlook from adding extra spacing to tables. */
+ table,
+ td {
+ mso-table-lspace: 0pt !important;
+ mso-table-rspace: 0pt !important;
+ }
+
+ /* What it does: Fixes webkit padding issue. */
+ table {
+ border-spacing: 0 !important;
+ border-collapse: collapse !important;
+ table-layout: fixed !important;
+ margin: 0 auto !important;
+ }
+
+ /* What it does: Uses a better rendering method when resizing images in IE. */
+ img {
+ -ms-interpolation-mode: bicubic;
+ }
+
+ /* What it does: Prevents Windows 10 Mail from underlining links despite inline CSS. Styles for underlined links should be inline. */
+ a {
+ text-decoration: none;
+ }
+
+ /* What it does: A work-around for email clients meddling in triggered links. */
+ *[x-apple-data-detectors], /* iOS */
+.unstyle-auto-detected-links *,
+.aBn {
+ border-bottom: 0 !important;
+ cursor: default !important;
+ color: inherit !important;
+ text-decoration: none !important;
+ font-size: inherit !important;
+ font-family: inherit !important;
+ font-weight: inherit !important;
+ line-height: inherit !important;
+ }
+
+ /* What it does: Prevents Gmail from displaying a download button on large, non-linked images. */
+ .a6S {
+ display: none !important;
+ opacity: 0.01 !important;
+ }
+
+ /* What it does: Prevents Gmail from changing the text color in conversation threads. */
+ .im {
+ color: inherit !important;
+ }
+
+ /* If the above doesn't work, add a .g-img class to any image in question. */
+ img.g-img + div {
+ display: none !important;
+ }
+
+ /* What it does: Removes right gutter in Gmail iOS app: https://github.com/TedGoas/Cerberus/issues/89 */
+ /* Create one of these media queries for each additional viewport size you'd like to fix */
+
+ /* iPhone 4, 4S, 5, 5S, 5C, and 5SE */
+ @media only screen and (min-device-width: 320px) and (max-device-width: 374px) {
+ u ~ div .email-container {
+ min-width: 320px !important;
+ }
+ }
+ /* iPhone 6, 6S, 7, 8, and X */
+ @media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
+ u ~ div .email-container {
+ min-width: 375px !important;
+ }
+ }
+ /* iPhone 6+, 7+, and 8+ */
+ @media only screen and (min-device-width: 414px) {
+ u ~ div .email-container {
+ min-width: 414px !important;
+ }
+ }
+ </style>
+
+ <!-- CSS Reset : END -->
+
+ <!-- Progressive Enhancements : BEGIN -->
+ <style>
+ .primary {
+ background: #6655b3;
+ }
+ .bg_white {
+ background: #ffffff;
+ }
+ .bg_light {
+ background: #fafafa;
+ }
+ .bg_black {
+ background: #000000;
+ }
+ .bg_dark {
+ background: rgba(0, 0, 0, 0.8);
+ }
+ .email-section {
+ padding: 2.5em;
+ }
+
+ /*BUTTON*/
+ .btn {
+ padding: 10px 15px;
+ display: inline-block;
+ font-size: 1.4em;
+ }
+ .btn.btn-primary {
+ border-radius: 5px;
+ background: #6655b3;
+ color: #ffffff;
+ }
+ .btn.btn-white {
+ border-radius: 5px;
+ background: #ffffff;
+ color: #000000;
+ }
+ .btn.btn-white-outline {
+ border-radius: 5px;
+ background: transparent;
+ border: 1px solid #fff;
+ color: #fff;
+ }
+ .btn.btn-black-outline {
+ border-radius: 0px;
+ background: transparent;
+ border: 2px solid #000;
+ color: #000;
+ font-weight: 700;
+ }
+
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ font-family: 'Lato', sans-serif;
+ color: #000000;
+ margin-top: 0;
+ font-weight: 400;
+ }
+
+ body {
+ font-family: 'Lato', sans-serif;
+ font-weight: 400;
+ font-size: 15px;
+ line-height: 1.8;
+ color: rgba(0, 0, 0, 0.4);
+ }
+
+ a {
+ color: #6655b3;
+ }
+
+ table {
+ }
+ /*LOGO*/
+
+ .logo h1 {
+ margin: 0;
+ }
+ .logo h1 a {
+ color: #6655b3;
+ font-size: 24px;
+ font-weight: 700;
+ font-family: 'Lato', sans-serif;
+ }
+
+ /*HERO*/
+ .hero {
+ position: relative;
+ z-index: 0;
+ }
+
+ .hero .text {
+ color: rgba(0, 0, 0, 0.3);
+ }
+ .hero .text h2 {
+ color: #000;
+ font-size: 40px;
+ margin-bottom: 0;
+ font-weight: 400;
+ line-height: 1.4;
+ }
+ .hero .text h3 {
+ font-size: 24px;
+ font-weight: 300;
+ }
+ .hero .text h2 span {
+ font-weight: 600;
+ color: #6655b3;
+ }
+
+ /*HEADING SECTION*/
+ .heading-section {
+ }
+ .heading-section h2 {
+ color: #000000;
+ font-size: 28px;
+ margin-top: 0;
+ line-height: 1.4;
+ font-weight: 400;
+ }
+ .heading-section .subheading {
+ margin-bottom: 20px !important;
+ display: inline-block;
+ font-size: 13px;
+ text-transform: uppercase;
+ letter-spacing: 2px;
+ color: rgba(0, 0, 0, 0.4);
+ position: relative;
+ }
+ .heading-section .subheading::after {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: -10px;
+ content: '';
+ width: 100%;
+ height: 2px;
+ background: #6655b3;
+ margin: 0 auto;
+ }
+
+ .heading-section-white {
+ color: rgba(255, 255, 255, 0.8);
+ }
+ .heading-section-white h2 {
+ line-height: 1;
+ padding-bottom: 0;
+ }
+ .heading-section-white h2 {
+ color: #ffffff;
+ }
+ .heading-section-white .subheading {
+ margin-bottom: 0;
+ display: inline-block;
+ font-size: 13px;
+ text-transform: uppercase;
+ letter-spacing: 2px;
+ color: rgba(255, 255, 255, 0.4);
+ }
+
+ ul.social {
+ padding: 0;
+ }
+ ul.social li {
+ display: inline-block;
+ margin-right: 10px;
+ }
+
+ /*FOOTER*/
+
+ .footer {
+ border-top: 1px solid rgba(0, 0, 0, 0.05);
+ color: rgba(0, 0, 0, 0.5);
+ }
+ .footer .heading {
+ color: #000;
+ font-size: 20px;
+ }
+ .footer ul {
+ margin: 0;
+ padding: 0;
+ }
+ .footer ul li {
+ list-style: none;
+ margin-bottom: 10px;
+ }
+ .footer ul li a {
+ color: rgba(0, 0, 0, 1);
+ }
+
+ #owncast-promo {
+ font-size: 10px;
+ }
+
+ @media screen and (max-width: 500px) {
+ }
+ </style>
+ </head>
+
+ <body
+ width="100%"
+ style="
+ margin: 0;
+ padding: 0 !important;
+ mso-line-height-rule: exactly;
+ background-color: #f1f1f1;
+ "
+ >
+ <center style="width: 100%; background-color: #f1f1f1">
+ <div
+ style="
+ display: none;
+ font-size: 1px;
+ max-height: 0px;
+ max-width: 0px;
+ opacity: 0;
+ overflow: hidden;
+ mso-hide: all;
+ font-family: sans-serif;
+ "
+ >
+ &zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;&zwnj;&nbsp;
+ </div>
+ <div style="max-width: 600px; margin: 0 auto" class="email-container">
+ <!-- BEGIN BODY -->
+ <table
+ align="center"
+ role="presentation"
+ cellspacing="0"
+ cellpadding="0"
+ border="0"
+ width="100%"
+ style="margin: auto"
+ >
+ <tr>
+ <td
+ valign="top"
+ class="bg_white"
+ style="padding: 1em 2.5em 0 2.5em"
+ >
+ <table
+ role="presentation"
+ border="0"
+ cellpadding="0"
+ cellspacing="0"
+ width="100%"
+ >
+ <tr>
+ <td class="logo" style="text-align: center">
+ <h1><a href="{{.ServerURL}}">{{.ServerName}}</a></h1>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <!-- end tr -->
+ <tr>
+ <td
+ valign="middle"
+ class="hero bg_white"
+ style="padding: 3em 0 2em 0"
+ >
+ <a href="{{.ServerURL}}">
+ <img
+ src="{{.Logo}}"
+ alt=""
+ style="
+ width: 100px;
+ max-width: 600px;
+ height: auto;
+ margin: auto;
+ display: block;
+ "
+ />
+ </a>
+ </td>
+ </tr>
+ <!-- end tr -->
+ <tr>
+ <td
+ valign="middle"
+ class="hero bg_white"
+ style="padding: 2em 0 4em 0"
+ >
+ <table>
+ <tr>
+ <td>
+ <div
+ class="text"
+ style="padding: 0 2.5em; text-align: center"
+ >
+ <a href="{{.ServerURL}}">
+ <img
+ src="{{.Thumbnail}}"
+ alt=""
+ style="
+ width: 300px;
+ max-width: 600px;
+ height: auto;
+ margin: auto;
+ display: block;
+ "
+ />
+ </a>
+ <h2><a href="{{.ServerURL}}">{{.ServerName}}</h2></a>
+ <h3>{{.StreamDescription}}</h3>
+ <p>
+ <a href="{{.ServerURL}}" class="btn btn-primary"
+ >Watch now!</a
+ >
+ </p>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <!-- end tr -->
+ <!-- 1 Column Text + Button : END -->
+ </table>
+ <table
+ align="center"
+ role="presentation"
+ cellspacing="0"
+ cellpadding="0"
+ border="0"
+ width="100%"
+ style="margin: auto"
+ >
+ <!-- end: tr -->
+ <tr>
+ <td class="bg_light" style="text-align: center">
+ <p>
+ No longer want to receive emails from {{.ServerName}}? You should
+ <a href="[[UNSUB_LINK_EN]]" style="color: rgba(0, 0, 0, 0.8)"
+ >unsubscribe here</a
+ >.
+ </p>
+ <p id="owncast-promo">
+ This stream is powered by
+ <a href="https://owncast.online"
+ ><img
+ src="https://owncast.online/images/logo.svg"
+ width="10px"
+ />&nbsp;Owncast</a
+ >
+ and you can run your own, too.
+ </p>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </center>
+ </body>
+</html>
diff --git a/utils/utils.go b/utils/utils.go
index ab40cf5c77..b68e74b288 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -13,6 +13,7 @@ import (
"path/filepath"
"regexp"
"strings"
+ "time"
"github.com/mssola/user_agent"
log "github.com/sirupsen/logrus"
@@ -366,3 +367,12 @@ func GetHashtagsFromText(text string) []string {
re := regexp.MustCompile(`#[a-zA-Z0-9_]+`)
return re.FindAllString(text, -1)
}
+
+// ShuffleStringSlice will shuffle a slice of strings.
+func ShuffleStringSlice(s []string) []string {
+ rand.Seed(time.Now().UnixNano())
+ rand.Shuffle(len(s), func(i, j int) {
+ s[i], s[j] = s[j], s[i]
+ })
+ return s
+}
diff --git a/webroot/img/browser-push-notifications-settings.png b/webroot/img/browser-push-notifications-settings.png
new file mode 100644
index 0000000000..c0d48d5293
Binary files /dev/null and b/webroot/img/browser-push-notifications-settings.png differ
diff --git a/webroot/img/notification-bell.svg b/webroot/img/notification-bell.svg
new file mode 100644
index 0000000000..63408c91fc
--- /dev/null
+++ b/webroot/img/notification-bell.svg
@@ -0,0 +1,3 @@
+<svg width="16" height="18" viewBox="0 0 16 18" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M6.33333 16.0833H9.66667C9.66667 17 8.91667 17.75 8 17.75C7.08333 17.75 6.33333 17 6.33333 16.0833ZM15.5 14.4167V15.25H0.5V14.4167L2.16667 12.75V7.75C2.16667 5.16667 3.83333 2.91667 6.33333 2.16667V1.91667C6.33333 1 7.08333 0.25 8 0.25C8.91667 0.25 9.66667 1 9.66667 1.91667V2.16667C12.1667 2.91667 13.8333 5.16667 13.8333 7.75V12.75L15.5 14.4167ZM12.1667 7.75C12.1667 5.41667 10.3333 3.58333 8 3.58333C5.66667 3.58333 3.83333 5.41667 3.83333 7.75V13.5833H12.1667V7.75Z" fill="#343342"/>
+</svg>
diff --git a/webroot/img/owncast-background.png b/webroot/img/owncast-background.png
new file mode 100644
index 0000000000..b1a92bf2e1
Binary files /dev/null and b/webroot/img/owncast-background.png differ
diff --git a/webroot/js/app.js b/webroot/js/app.js
index 8d02d11802..70ce3ff44f 100644
--- a/webroot/js/app.js
+++ b/webroot/js/app.js
@@ -25,6 +25,8 @@ import FediverseFollowModal, {
FediverseFollowButton,
} from './components/fediverse-follow-modal.js';
+import { NotifyButton, NotifyModal } from './components/notification.js';
+import { isPushNotificationSupported } from './notification/registerWeb.js';
import {
addNewlines,
checkUrlPathForDisplay,
@@ -59,8 +61,10 @@ import {
URL_STATUS,
URL_VIEWER_PING,
WIDTH_SINGLE_COL,
+ USER_VISIT_COUNT_KEY,
} from './utils/constants.js';
import { checkIsModerator } from './utils/chat.js';
+
import TabBar from './components/tab-bar.js';
export default class App extends Component {
@@ -138,6 +142,8 @@ export default class App extends Component {
this.displayFediverseFollowModal =
this.displayFediverseFollowModal.bind(this);
this.closeFediverseFollowModal = this.closeFediverseFollowModal.bind(this);
+ this.displayNotificationModal = this.displayNotificationModal.bind(this);
+ this.closeNotificationModal = this.closeNotificationModal.bind(this);
// player events
this.handlePlayerReady = this.handlePlayerReady.bind(this);
@@ -179,8 +185,22 @@ export default class App extends Component {
});
this.player.init();
+ this.registerServiceWorker();
+
// check routing
this.getRoute();
+
+ // Increment the visit counter
+ this.incrementVisitCounter();
+ }
+
+ incrementVisitCounter() {
+ let visits = parseInt(getLocalStorage(USER_VISIT_COUNT_KEY));
+ if (isNaN(visits)) {
+ visits = 0;
+ }
+
+ setLocalStorage(USER_VISIT_COUNT_KEY, visits + 1);
}
componentWillUnmount() {
@@ -248,7 +268,8 @@ export default class App extends Component {
}
setConfigData(data = {}) {
- const { name, summary, chatDisabled, socketHostOverride } = data;
+ const { name, summary, chatDisabled, socketHostOverride, notifications } =
+ data;
window.document.title = name;
this.socketHostOverride = socketHostOverride;
@@ -263,6 +284,7 @@ export default class App extends Component {
this.setState({
canChat: !chatDisabled,
+ notifications,
configData: {
...data,
summary: summary && addNewlines(summary),
@@ -579,6 +601,23 @@ export default class App extends Component {
this.setState({ fediverseModalData: null });
}
+ displayNotificationModal(data) {
+ this.setState({ notificationModalData: data });
+ }
+ closeNotificationModal() {
+ this.setState({ notificationModalData: null });
+ }
+
+ async registerServiceWorker() {
+ try {
+ const reg = await navigator.serviceWorker.register('/serviceWorker.js', {
+ scope: '/',
+ });
+ } catch (err) {
+ console.error('Owncast service worker registration failed!', err);
+ }
+ }
+
handleWebsocketMessage(e) {
if (e.type === SOCKET_MESSAGE_TYPES.ERROR_USER_DISABLED) {
// User has been actively disabled on the backend. Turn off chat for them.
@@ -670,6 +709,7 @@ export default class App extends Component {
render(props, state) {
const {
+ accessToken,
chatInputEnabled,
configData,
displayChatPanel,
@@ -690,6 +730,8 @@ export default class App extends Component {
windowWidth,
fediverseModalData,
externalActionModalData,
+ notificationModalData,
+ notifications,
lastDisconnectTime,
section,
sectionId,
@@ -753,6 +795,14 @@ export default class App extends Component {
: html` <${VideoPoster} offlineImage=${logo} active=${streamOnline} /> `;
// modal buttons
+ const notificationsButton =
+ notifications &&
+ notifications.browser.enabled &&
+ isPushNotificationSupported() &&
+ html`<${NotifyButton}
+ serverName=${name}
+ onClick=${this.displayNotificationModal}
+ />`;
const externalActionButtons = html`<div
id="external-actions-container"
class="flex flex-row flex-wrap justify-end"
@@ -774,6 +824,7 @@ export default class App extends Component {
federationInfo=${federation}
serverName=${name}
/>`}
+ ${notificationsButton}
</div>`;
// modal component
@@ -800,6 +851,19 @@ export default class App extends Component {
/>
`;
+ const notificationModal =
+ notificationModalData &&
+ html` <${ExternalActionModal}
+ onClose=${this.closeNotificationModal}
+ action=${notificationModalData}
+ useIframe=${false}
+ customContent=${html`<${NotifyModal}
+ notifications=${notifications}
+ streamName=${name}
+ accessToken=${accessToken}
+ />`}
+ />`;
+
const chat = this.state.websocket
? html`
<${Chat}
@@ -807,7 +871,7 @@ export default class App extends Component {
username=${username}
chatInputEnabled=${chatInputEnabled && !chatDisabled}
instanceTitle=${name}
- accessToken=${this.state.accessToken}
+ accessToken=${accessToken}
inputMaxBytes=${maxSocketPayloadSize - EST_SOCKET_PAYLOAD_BUFFER ||
CHAT_MAX_MESSAGE_LENGTH}
/>
@@ -977,6 +1041,7 @@ export default class App extends Component {
</footer>
${chat} ${externalActionModal} ${fediverseFollowModal}
+ ${notificationModal}
</div>
`;
}
diff --git a/webroot/js/components/chat/chat-message-view.js b/webroot/js/components/chat/chat-message-view.js
index a6dcd40299..29cbda0d9c 100644
--- a/webroot/js/components/chat/chat-message-view.js
+++ b/webroot/js/components/chat/chat-message-view.js
@@ -46,11 +46,9 @@ export default class ChatMessageView extends Component {
const { message, isModerator, accessToken } = this.props;
const { user, timestamp } = message;
- // User is required for this component to render.
if (!user) {
return null;
}
-
const { displayName, displayColor, createdAt, isBot } = user;
const isAuthorModerator = checkIsModerator(message);
diff --git a/webroot/js/components/external-action-modal.js b/webroot/js/components/external-action-modal.js
index 111ebd8ecd..610462012e 100644
--- a/webroot/js/components/external-action-modal.js
+++ b/webroot/js/components/external-action-modal.js
@@ -84,7 +84,7 @@ export default class ExternalActionModal extends Component {
>
<iframe
id="external-modal-iframe"
- style=${iframeStyle}
+ style=${{ iframeStyle }}
class="bg-gray-100 bg-center bg-no-repeat"
width="100%"
allowpaymentrequest="true"
diff --git a/webroot/js/components/notification.js b/webroot/js/components/notification.js
new file mode 100644
index 0000000000..146d3266c5
--- /dev/null
+++ b/webroot/js/components/notification.js
@@ -0,0 +1,405 @@
+import { h } from '/js/web_modules/preact.js';
+import { useState, useEffect } from '/js/web_modules/preact/hooks.js';
+
+import htm from '/js/web_modules/htm.js';
+import { ExternalActionButton } from './external-action-modal.js';
+import {
+ registerWebPushNotifications,
+ isPushNotificationSupported,
+} from '../notification/registerWeb.js';
+import {
+ URL_REGISTER_NOTIFICATION,
+ URL_REGISTER_EMAIL_NOTIFICATION,
+ HAS_DISPLAYED_NOTIFICATION_MODAL_KEY,
+ USER_VISIT_COUNT_KEY,
+ USER_DISMISSED_ANNOYING_NOTIFICATION_POPUP_KEY,
+} from '../utils/constants.js';
+import { setLocalStorage, getLocalStorage } from '../utils/helpers.js';
+
+const html = htm.bind(h);
+
+export function NotifyModal({ notifications, streamName, accessToken }) {
+ const [error, setError] = useState(null);
+ const [loaderStyle, setLoaderStyle] = useState('none');
+ const [emailNotificationsButtonEnabled, setEmailNotificationsButtonEnabled] =
+ useState(false);
+ const [emailAddress, setEmailAddress] = useState(null);
+ const emailNotificationButtonState = emailNotificationsButtonEnabled
+ ? ''
+ : 'cursor-not-allowed opacity-50';
+ const [browserPushPermissionsPending, setBrowserPushPermissionsPending] =
+ useState(false);
+
+ const { browser, email } = notifications;
+ const { publicKey } = browser;
+
+ const browserPushEnabled = browser.enabled && isPushNotificationSupported();
+ let emailEnabled = email.enabled;
+
+ // Store that the user has opened the notifications modal at least once
+ // so we don't ever need to remind them to do it again.
+ useEffect(() => {
+ setLocalStorage(HAS_DISPLAYED_NOTIFICATION_MODAL_KEY, true);
+ }, []);
+
+ async function saveNotificationRegistration(channel, destination) {
+ const options = {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({ channel: channel, destination: destination }),
+ };
+
+ try {
+ await fetch(
+ URL_REGISTER_NOTIFICATION + `?accessToken=${accessToken}`,
+ options
+ );
+ } catch (e) {
+ console.error(e);
+ }
+ }
+
+ async function startBrowserPushRegistration() {
+ // If it's already denied or granted, don't do anything.
+ if (Notification.permission !== 'default') {
+ return;
+ }
+
+ setBrowserPushPermissionsPending(true);
+ try {
+ const subscription = await registerWebPushNotifications(publicKey);
+ saveNotificationRegistration('BROWSER_PUSH_NOTIFICATION', subscription);
+ setError(null);
+ } catch (e) {
+ setError(
+ `Error registering for live notifications: ${e.message}. Make sure you're not inside a private browser environment or have previously disabled notifications for this stream.`
+ );
+ }
+ setBrowserPushPermissionsPending(false);
+ }
+
+ async function handlePushToggleChange() {
+ // Nothing can be done if they already denied access.
+ if (Notification.permission === 'denied') {
+ return;
+ }
+
+ if (!pushEnabled) {
+ startBrowserPushRegistration();
+ }
+ }
+
+ async function registerForEmailButtonPressed() {
+ try {
+ const options = {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({ emailAddress: emailAddress }),
+ };
+
+ try {
+ await fetch(
+ URL_REGISTER_EMAIL_NOTIFICATION + `?accessToken=${accessToken}`,
+ options
+ );
+ } catch (e) {
+ console.error(e);
+ }
+ } catch (e) {
+ setError(`Error registering for email notifications: ${e.message}.`);
+ }
+ }
+
+ function onEmailInput(e) {
+ const { value } = e.target;
+
+ // TODO: Add validation for email
+ const valid = true;
+
+ setEmailAddress(value);
+ setEmailNotificationsButtonEnabled(valid);
+ }
+
+ function getBrowserPushButtonText() {
+ let pushNotificationButtonText = html`<span id="push-notification-arrow"
+ >←</span
+ >
+ CLICK TO ENABLE`;
+ if (browserPushPermissionsPending) {
+ pushNotificationButtonText = '↑ ACCEPT THE BROWSER PERMISSIONS';
+ } else if (Notification.permission === 'granted') {
+ pushNotificationButtonText = 'ENABLED';
+ } else if (Notification.permission === 'denied') {
+ pushNotificationButtonText = 'DENIED. PLEASE FIX BROWSER PERMISSIONS.';
+ }
+ return pushNotificationButtonText;
+ }
+
+ const pushEnabled = Notification.permission === 'granted';
+
+ return html`
+ <div class="bg-gray-100 bg-center bg-no-repeat p-6">
+ <div
+ style=${{ display: emailEnabled ? 'grid' : 'none' }}
+ class="grid grid-cols-2 gap-10 px-5 py-8"
+ >
+ <div>
+ <h2 class="text-slate-600 text-2xl mb-2 font-semibold">
+ Email Notifications
+ </h2>
+
+ <h2>
+ Get notified directly to your email when this stream goes live.
+ </h2>
+ </div>
+ <div>
+ <div class="font-semibold">Enter your email address:</div>
+ <input
+ class="border bg-white rounded-l w-8/12 mt-2 mb-1 mr-1 py-2 px-3 text-indigo-700 leading-tight focus:outline-none focus:shadow-outline"
+ value=${emailAddress}
+ onInput=${onEmailInput}
+ placeholder="[email protected]"
+ />
+ <button
+ class="rounded-sm inline px-3 py-2 text-base text-white bg-indigo-700 ${emailNotificationButtonState}"
+ onClick=${registerForEmailButtonPressed}
+ >
+ Save
+ </button>
+ <div class="text-sm mt-3 text-gray-700">
+ Stop receiving emails any time by clicking the unsubscribe link in
+ the email. <a href="">Learn more.</a>
+ </div>
+ </div>
+ </div>
+ <hr
+ style=${{ display: pushEnabled && emailEnabled ? 'block' : 'none' }}
+ />
+
+ <div
+ class="grid grid-cols-2 gap-10 px-5 py-8"
+ style=${{ display: browserPushEnabled ? 'grid' : 'none' }}
+ >
+ <div>
+ <div>
+ <div
+ class="text-sm border-2 p-4 border-red-300"
+ style=${{
+ display:
+ Notification.permission === 'denied' ? 'block' : 'none',
+ }}
+ >
+ Browser notification permissions were denied. Please visit your
+ browser settings to re-enable in order to get notifications.
+ </div>
+ <div
+ class="form-check form-switch"
+ style=${{
+ display:
+ Notification.permission === 'denied' ? 'none' : 'block',
+ }}
+ >
+ <div
+ class="relative inline-block w-10 align-middle select-none transition duration-200 ease-in"
+ >
+ <input
+ checked=${pushEnabled || browserPushPermissionsPending}
+ disabled=${pushEnabled}
+ type="checkbox"
+ name="toggle"
+ id="toggle"
+ onchange=${handlePushToggleChange}
+ class="toggle-checkbox absolute block w-8 h-8 rounded-full bg-white border-4 appearance-none cursor-pointer"
+ />
+ <label
+ for="toggle"
+ style=${{ width: '50px' }}
+ class="toggle-label block overflow-hidden h-8 rounded-full bg-gray-300 cursor-pointer"
+ ></label>
+ </div>
+ <div class="ml-8 text-xs inline-block text-gray-700">
+ ${getBrowserPushButtonText()}
+ </div>
+ </div>
+ </div>
+ <h2 class="text-slate-600 text-2xl mt-4 mb-2 font-semibold">
+ Browser Notifications
+ </h2>
+ <h2>
+ Get notified right in the browser each time this stream goes live.
+ </h2>
+ </div>
+ <div>
+ <div
+ class="text-sm mt-3"
+ style=${{ display: !pushEnabled ? 'none' : 'block' }}
+ >
+ To disable push notifications from ${window.location.hostname}
+ ${' '} access your browser permissions for this site and turn off
+ notifications.
+ <div style=${{ 'margin-top': '5px' }}>
+ <a href="">Learn more.</a>
+ </div>
+ </div>
+ <div
+ id="browser-push-preview-box"
+ class="w-full bg-white p-4 m-2 mt-4"
+ style=${{ display: pushEnabled ? 'none' : 'block' }}
+ >
+ <div class="text-lg text-gray-700 ml-2 my-2">
+ ${window.location.toString()} wants to
+ </div>
+ <div class="text-sm text-gray-700 my-2">
+ <svg
+ class="mr-3"
+ style=${{ display: 'inline-block' }}
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667"
+ fill="#676670"
+ />
+ </svg>
+
+ Show notifications
+ </div>
+ <div class="flex flex-row justify-end">
+ <button
+ class="bg-blue-500 py-1 px-4 mr-4 rounded-sm text-white"
+ onClick=${startBrowserPushRegistration}
+ >
+ Allow
+ </button>
+ <button
+ class="bg-slate-200 py-1 px-4 rounded-sm text-gray-500 cursor-not-allowed"
+ style=${{
+ 'outline-width': 1,
+ 'outline-color': '#e2e8f0',
+ 'outline-style': 'solid',
+ }}
+ >
+ Block
+ </button>
+ </div>
+ </div>
+ <p
+ class="text-gray-700 text-sm mt-6"
+ style=${{ display: pushEnabled ? 'none' : 'block' }}
+ >
+ You'll need to allow your browser to receive notifications from
+ ${' '} ${streamName}, first.
+ </p>
+ </div>
+ </div>
+
+ <div
+ id="follow-loading-spinner-container"
+ style="display: ${loaderStyle}"
+ >
+ <img id="follow-loading-spinner" src="/img/loading.gif" />
+ <p class="text-gray-700 text-lg">Contacting your server.</p>
+ <p class="text-gray-600 text-lg">Please wait...</p>
+ </div>
+ </div>
+ `;
+}
+
+export function NotifyButton({ serverName, onClick }) {
+ const hasDisplayedNotificationModal = getLocalStorage(
+ HAS_DISPLAYED_NOTIFICATION_MODAL_KEY
+ );
+
+ const hasPreviouslyDismissedAnnoyingPopup = getLocalStorage(
+ USER_DISMISSED_ANNOYING_NOTIFICATION_POPUP_KEY
+ );
+
+ let visits = parseInt(getLocalStorage(USER_VISIT_COUNT_KEY));
+ if (isNaN(visits)) {
+ visits = 0;
+ }
+
+ // Only show the annoying popup if the user has never opened the notification
+ // modal previously _and_ they've visited more than 3 times.
+ const [showPopup, setShowPopup] = useState(
+ !hasPreviouslyDismissedAnnoyingPopup &&
+ !hasDisplayedNotificationModal &&
+ visits > 3
+ );
+
+ const notifyAction = {
+ color: 'rgba(219, 223, 231, 1)',
+ description: `Never miss a stream! Get notified when ${serverName} goes live.`,
+ icon: '/img/notification-bell.svg',
+ openExternally: false,
+ };
+
+ const buttonClicked = (e) => {
+ onClick(e);
+ setShowPopup(false);
+ };
+
+ const notifyPopupDismissedClicked = () => {
+ setShowPopup(false);
+ setLocalStorage(USER_DISMISSED_ANNOYING_NOTIFICATION_POPUP_KEY, true);
+ };
+
+ return html`
+ <span id="notify-button-container" class="relative">
+ <div
+ id="follow-button-popup"
+ style=${{ display: showPopup ? 'block' : 'none' }}
+ >
+ <svg
+ width="192"
+ height="113"
+ viewBox="0 0 192 113"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M8 0C3.58172 0 0 3.58172 0 8V91C0 95.4183 3.58173 99 8 99H172L188.775 112.001C190.089 113.019 192 112.082 192 110.42V99V8C192 3.58172 188.418 0 184 0H8Z"
+ fill="#6965F0"
+ />
+ <text x="20" y="55" fill="white" font-size="13px">
+ Click and never miss
+ </text>
+ <text x="20" y="75" fill="white" font-size="13px">
+ future streams.
+ </text>
+ </svg>
+ <button
+ class="absolute"
+ style=${{ top: '6px', right: '6px' }}
+ onClick=${notifyPopupDismissedClicked}
+ >
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M17.7071 7.70711C18.0976 7.31658 18.0976 6.68342 17.7071 6.29289C17.3166 5.90237 16.6834 5.90237 16.2929 6.29289L12 10.5858L7.70711 6.29289C7.31658 5.90237 6.68342 5.90237 6.29289 6.29289C5.90237 6.68342 5.90237 7.31658 6.29289 7.70711L10.5858 12L6.29289 16.2929C5.90237 16.6834 5.90237 17.3166 6.29289 17.7071C6.68342 18.0976 7.31658 18.0976 7.70711 17.7071L12 13.4142L16.2929 17.7071C16.6834 18.0976 17.3166 18.0976 17.7071 17.7071C18.0976 17.3166 18.0976 16.6834 17.7071 16.2929L13.4142 12L17.7071 7.70711Z"
+ fill="#A5A3F6"
+ />
+ </svg>
+ </button>
+ </div>
+ <${ExternalActionButton}
+ onClick=${buttonClicked}
+ action=${notifyAction}
+ />
+ </span>
+ `;
+}
diff --git a/webroot/js/notification/registerWeb.js b/webroot/js/notification/registerWeb.js
new file mode 100644
index 0000000000..435cb73395
--- /dev/null
+++ b/webroot/js/notification/registerWeb.js
@@ -0,0 +1,30 @@
+export async function registerWebPushNotifications(vapidPublicKey) {
+ const registration = await navigator.serviceWorker.ready;
+ let subscription = await registration.pushManager.getSubscription();
+
+ if (!subscription) {
+ subscription = await registration.pushManager.subscribe({
+ userVisibleOnly: true,
+ applicationServerKey: urlBase64ToUint8Array(vapidPublicKey),
+ });
+ }
+
+ return JSON.stringify(subscription);
+}
+
+export function isPushNotificationSupported() {
+ return 'serviceWorker' in navigator && 'PushManager' in window;
+}
+
+function urlBase64ToUint8Array(base64String) {
+ var padding = '='.repeat((4 - (base64String.length % 4)) % 4);
+ var base64 = (base64String + padding).replace(/\-/g, '+').replace(/_/g, '/');
+
+ var rawData = window.atob(base64);
+ var outputArray = new Uint8Array(rawData.length);
+
+ for (var i = 0; i < rawData.length; ++i) {
+ outputArray[i] = rawData.charCodeAt(i);
+ }
+ return outputArray;
+}
diff --git a/webroot/js/utils/constants.js b/webroot/js/utils/constants.js
index 9cb9f04c9e..34f2cda1f7 100644
--- a/webroot/js/utils/constants.js
+++ b/webroot/js/utils/constants.js
@@ -19,6 +19,9 @@ export const URL_CHAT_REGISTRATION = `/api/chat/register`;
export const URL_FOLLOWERS = `/api/followers`;
export const URL_PLAYBACK_METRICS = `/api/metrics/playback`;
+export const URL_REGISTER_NOTIFICATION = `/api/notifications/register`;
+export const URL_REGISTER_EMAIL_NOTIFICATION = `/api/notifications/register/email`;
+
export const TIMER_STATUS_UPDATE = 5000; // ms
export const TIMER_DISABLE_CHAT_AFTER_OFFLINE = 5 * 60 * 1000; // 5 mins
export const TIMER_STREAM_DURATION_COUNTER = 1000;
@@ -65,3 +68,10 @@ export const WIDTH_SINGLE_COL = 780;
export const HEIGHT_SHORT_WIDE = 500;
export const ORIENTATION_PORTRAIT = 'portrait';
export const ORIENTATION_LANDSCAPE = 'landscape';
+
+// localstorage keys
+export const HAS_DISPLAYED_NOTIFICATION_MODAL_KEY =
+ 'HAS_DISPLAYED_NOTIFICATION_MODAL';
+export const USER_VISIT_COUNT_KEY = 'USER_VISIT_COUNT';
+export const USER_DISMISSED_ANNOYING_NOTIFICATION_POPUP_KEY =
+ 'USER_DISMISSED_ANNOYING_NOTIFICATION_POPUP_KEY';
diff --git a/webroot/js/web_modules/import-map.json b/webroot/js/web_modules/import-map.json
index f646538a00..12013ed2e4 100644
--- a/webroot/js/web_modules/import-map.json
+++ b/webroot/js/web_modules/import-map.json
@@ -6,6 +6,7 @@
"mark.js/dist/mark.es6.min.js": "./markjs/dist/mark.es6.min.js",
"micromodal/dist/micromodal.min.js": "./micromodal/dist/micromodal.min.js",
"preact": "./preact.js",
+ "preact/hooks": "./preact/hooks.js",
"tailwindcss/dist/tailwind.min.css": "./tailwindcss/dist/tailwind.min.css",
"video.js/dist/video-js.min.css": "./videojs/dist/video-js.min.css",
"video.js/dist/video.min.js": "./videojs/dist/video.min.js"
diff --git a/webroot/js/web_modules/preact/hooks.js b/webroot/js/web_modules/preact/hooks.js
new file mode 100644
index 0000000000..b39670cd62
--- /dev/null
+++ b/webroot/js/web_modules/preact/hooks.js
@@ -0,0 +1,5 @@
+import { options as l$1 } from '../preact.js';
+
+var t,u,r,o=0,i=[],c=l$1.__b,f=l$1.__r,e=l$1.diffed,a=l$1.__c,v=l$1.unmount;function m(t,r){l$1.__h&&l$1.__h(u,t,o||r),o=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l(n){return o=1,p(w,n)}function p(n,r,o){var i=m(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y(r,o){var i=m(t++,3);!l$1.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function h(r,o){var i=m(t++,4);!l$1.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i));}function s(n){return o=5,d(function(){return {current:n}},[])}function _(n,t,u){o=6,h(function(){"function"==typeof n?n(t()):n&&(n.current=t());},null==u?u:u.concat(n));}function d(n,u){var r=m(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A(n,t){return o=8,d(function(){return n},t)}function F(n){var r=u.context[n.__c],o=m(t++,9);return o.c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function T(t,u){l$1.useDebugValue&&l$1.useDebugValue(u?u(t):t);}function q(n){var r=m(t++,10),o=l();return r.__=n,u.componentDidCatch||(u.componentDidCatch=function(n){r.__&&r.__(n),o[1](n);}),[o[0],function(){o[1](void 0);}]}function x(){for(var t;t=i.shift();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[];}catch(u){t.__H.__h=[],l$1.__e(u,t.__v);}}l$1.__b=function(n){u=null,c&&c(n);},l$1.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[]);},l$1.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===l$1.requestAnimationFrame||((r=l$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x)),u=null;},l$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$1.__e(r,t.__v);}}),a&&a(t,u);},l$1.unmount=function(t){v&&v(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$1.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u=t;}function j(n){var t=u;n.__c=n.__(),u=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return "function"==typeof t?t(n):t}
+
+export { A as useCallback, F as useContext, T as useDebugValue, y as useEffect, q as useErrorBoundary, _ as useImperativeHandle, h as useLayoutEffect, d as useMemo, p as useReducer, s as useRef, l as useState };
diff --git a/webroot/serviceWorker.js b/webroot/serviceWorker.js
new file mode 100644
index 0000000000..8a6f3320cd
--- /dev/null
+++ b/webroot/serviceWorker.js
@@ -0,0 +1,24 @@
+self.addEventListener('activate', (event) => {
+ console.log('Owncast service worker activated', event);
+});
+
+self.addEventListener('install', (event) => {
+ console.log('installing Owncast service worker...', event);
+});
+
+self.addEventListener('push', (event) => {
+ const data = JSON.parse(event.data.text());
+ const { title, body, icon, tag } = data;
+ const options = {
+ title: title || 'Live!',
+ body: body || 'This live stream has started.',
+ icon: icon || '/logo/external',
+ tag: tag,
+ };
+
+ event.waitUntil(self.registration.showNotification(options.title, options));
+});
+
+self.addEventListener('notificationclick', (event) => {
+ clients.openWindow('/');
+});
diff --git a/webroot/styles/app.css b/webroot/styles/app.css
index 1723c36a0c..668e52aff2 100644
--- a/webroot/styles/app.css
+++ b/webroot/styles/app.css
@@ -8,7 +8,7 @@ May have overrides for other components with own stylesheets.
--header-height: 3.5em;
--right-col-width: 24em;
--video-container-height: calc((9 / 16) * 100vw);
- --header-bg-color: rgba(20,0,40,1);
+ --header-bg-color: rgba(20, 0, 40, 1);
--user-image-width: 10em;
--novideo-container-height: 16em;
@@ -51,7 +51,7 @@ a:hover {
}
button[disabled] {
- opacity: .5;
+ opacity: 0.5;
pointer-events: none;
}
@@ -66,7 +66,6 @@ button[disabled] {
white-space: nowrap; /* added line */
}
-
header {
height: var(--header-height);
background-color: var(--header-bg-color);
@@ -94,7 +93,7 @@ header {
box-shadow: var(--owncast-purple) 0px 0px 5px;
}
.external-action-icon {
- margin: .25em .5em .25em 0;
+ margin: 0.25em 0.5em 0.25em 0;
}
.external-action-icon img {
height: 1.5em;
@@ -122,7 +121,7 @@ header {
background-size: 30%;
}
#video-container #video {
- transition: opacity .5s;
+ transition: opacity 0.5s;
opacity: 0;
pointer-events: none;
}
@@ -146,7 +145,7 @@ header {
}
.chat-hidden #chat-toggle {
- opacity: .75;
+ opacity: 0.75;
}
/* hide chat by default */
@@ -182,11 +181,10 @@ header {
}
/* display `send` button on mobile */
-.touch-screen #send-message-button{
+.touch-screen #send-message-button {
display: inline-block;
}
-
/* *********** single col layout ***************************** */
.single-col {
@@ -245,7 +243,6 @@ header {
max-height: 3em;
}
-
.single-col .user-logo-icons {
margin-right: 0;
margin-bottom: 1em;
@@ -264,7 +261,7 @@ header {
margin-left: 1em;
}
.single-col .follow-icon-list {
- justify-content: flex-start;
+ justify-content: flex-start;
}
.single-col.use-fediverse-follow #fediverse-button-singlecol {
display: inline-block;
@@ -274,7 +271,6 @@ header {
justify-content: flex-start;
}
-
@media screen and (max-height: 500px) {
.single-col.touch-screen:not(.touch-keyboard-active) {
--header-height: 0px;
@@ -285,14 +281,12 @@ header {
}
/* ************************************************ */
-
.no-video #video-container {
min-height: var(--video-container-height);
}
/* ************************************************ */
-
@media screen and (max-width: 860px) {
:root {
--right-col-width: 20em;
@@ -307,7 +301,6 @@ header {
/* ************************************************ */
-
@media screen and (max-width: 600px) {
#user-info-change {
width: 75vw;
@@ -319,12 +312,10 @@ header {
}
}
-
#external-modal-iframe {
height: 70vh;
}
-
/**************************
Basic Modal Styles
**************************/
@@ -342,7 +333,7 @@ header {
left: 0;
right: 0;
bottom: 0;
- background: rgba(0,0,0,0.75);
+ background: rgba(0, 0, 0, 0.75);
display: flex;
justify-content: center;
align-items: center;
@@ -353,9 +344,8 @@ header {
position: relative;
background-color: transparent;
padding: 0px;
- max-width: 740px;
- min-width: 500px;
- width: 50%;
+ max-width: 780px;
+ width: 60%;
overflow: hidden;
box-sizing: border-box;
}
@@ -373,22 +363,25 @@ header {
margin: 0px;
padding: 0px;
outline: none;
- cursor: pointer !important;
+ cursor: pointer !important;
+}
+.modal__close:before {
+ content: '\2715';
+ font-size: 1.25rem;
}
-.modal__close:before { content: "\2715"; font-size: 1.25rem; }
@supports (display: flex) {
- .modal__header {
+ .modal__header {
display: flex;
justify-content: space-between;
align-items: center;
- height:initial;
- }
+ height: initial;
+ }
.modal__title {
- position: static;
+ position: static;
}
.modal__close {
- position: static;
+ position: static;
}
}
@@ -397,23 +390,39 @@ header {
**************************/
@keyframes mmfadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
}
@keyframes mmfadeOut {
- from { opacity: 1; }
- to { opacity: 0; }
+ from {
+ opacity: 1;
+ }
+ to {
+ opacity: 0;
+ }
}
@keyframes mmslideIn {
- from { transform: translateY(15%); }
- to { transform: translateY(0); }
+ from {
+ transform: translateY(15%);
+ }
+ to {
+ transform: translateY(0);
+ }
}
@keyframes mmslideOut {
- from { transform: translateY(0); }
- to { transform: translateY(-10%); }
+ from {
+ transform: translateY(0);
+ }
+ to {
+ transform: translateY(-10%);
+ }
}
.micromodal-slide {
@@ -424,20 +433,20 @@ header {
display: block;
}
-.micromodal-slide[aria-hidden="false"] .modal__overlay {
- animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
+.micromodal-slide[aria-hidden='false'] .modal__overlay {
+ animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}
-.micromodal-slide[aria-hidden="false"] .modal__container {
- animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
+.micromodal-slide[aria-hidden='false'] .modal__container {
+ animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}
-.micromodal-slide[aria-hidden="true"] .modal__overlay {
- animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
+.micromodal-slide[aria-hidden='true'] .modal__overlay {
+ animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
-.micromodal-slide[aria-hidden="true"] .modal__container {
- animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
+.micromodal-slide[aria-hidden='true'] .modal__container {
+ animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
.micromodal-slide .modal__container,
@@ -446,40 +455,39 @@ header {
}
/* Miromodal mobile styling */
-@media only screen and (min-device-width : 600px) and (max-device-width : 480px) {
- .modal__container {
- width: 90% !important;
- min-width: 90% !important;
- }
- @supports (display: flex) {
- .modal__container {
- width: 90% !important;
- min-width: 90% !important;
+@media only screen and (min-device-width: 600px) and (max-device-width: 480px) {
+ .modal__container {
+ width: 90% !important;
+ min-width: 90% !important;
+ }
+ @supports (display: flex) {
+ .modal__container {
+ width: 90% !important;
+ min-width: 90% !important;
height: 85vh;
- }
- }
+ }
+ }
.modal__content {
-webkit-overflow-scrolling: touch;
}
}
-
/**************************
Tab Bar Base Styles
**************************/
-.tab-bar [role="tab"] {
- padding: .5rem 1rem;
- border-radius: .25rem .25rem 0 0;
+.tab-bar [role='tab'] {
+ padding: 0.5rem 1rem;
+ border-radius: 0.25rem 0.25rem 0 0;
font-weight: bold;
}
-.tab-bar [role="tab"]:hover {
- background-color: rgba(255,255,255,.35);
+.tab-bar [role='tab']:hover {
+ background-color: rgba(255, 255, 255, 0.35);
}
-.tab-bar [role="tab"][aria-selected="true"] {
+.tab-bar [role='tab'][aria-selected='true'] {
color: var(--owncast-purple);
background-color: white;
}
-.tab-bar [role="tabpanel"] {
+.tab-bar [role='tabpanel'] {
padding: 1rem 0;
border-top: 1px solid var(--header-bg-color);
min-height: 15rem;
@@ -487,7 +495,7 @@ header {
.follower {
width: 20vw;
- max-width: 300px
+ max-width: 300px;
}
.following-list-follower {
@@ -512,3 +520,60 @@ header {
height: 100px;
}
+/* CHECKBOX TOGGLE SWITCH */
+/* @apply rules for documentation, these do not work as inline style */
+.toggle-checkbox:checked {
+ /* @apply: right-0 #5A67D8; */
+ left: 63%;
+ /* border-color:var(--owncast-purple); */
+}
+
+#toggle:checked {
+ background-color: var(--owncast-purple);
+}
+
+.toggle-checkbox:checked + .toggle-label {
+ outline: 1px solid var(--owncast-purple);
+}
+
+#browser-push-preview-box {
+ outline-offset: 10px;
+ outline: 2px dashed #acafb4;
+ box-shadow: 2px 6px 7px 0px #87898d;
+}
+
+#push-notification-arrow {
+ position: relative;
+ -webkit-animation: cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
+ -webkit-animation-name: left-right-bounce;
+ -webkit-animation-duration: 1.5s;
+ margin-right: 2px;
+}
+
+@-webkit-keyframes left-right-bounce {
+ 0% {
+ left: 0;
+ }
+ 50% {
+ left: -6px;
+ }
+ 100% {
+ left: 0;
+ }
+}
+
+#notify-button-container #follow-button-popup {
+ position: absolute;
+ z-index: 1;
+ right: 30px;
+ bottom: 42px;
+}
+
+#notify-button-container .external-action-icon {
+ margin: 0.25em 0.5em 0.25em 0.5em;
+}
+
+#notify-button-container button {
+ border-color: #b8bbc2;
+ border-width: 1px;
+}