diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89b75d50b..ae75221c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,35 +61,31 @@ jobs: fetch-depth: 0 repository: 'coderplanets/coderplanets_web' path: 'frontend_server' - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v2 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - name: (Frontend) setup node env uses: actions/setup-node@v2 with: node-version: '16.13.0' - name: (Frontend) Install Packages working-directory: ./frontend_server - run: yarn + run: npm install - name: (Frontend) Setup Config CMD Tools working-directory: ./frontend_server run: chmod +x ./utils/bin/jq-linux; ./utils/bin/jq-linux -s '.[0] * .[1]' config/config.json config/config.ci.json > /tmp/config.json; cp /tmp/config.json ./config/config.json - name: (Frontend) Build Project working-directory: ./frontend_server run: npm run build.ci - - name: check /etc/hosts - working-directory: ./frontend_server - run: echo "#>>>>#"; cat /etc/hosts; pwd; echo "#>>>>#" + - name: cache the build + uses: actions/cache@v2 + with: + path: | + ~/.npm + ${{ github.workspace }}/.next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- + # - name: (Frontend) Check Bundle Size # working-directory: ./frontend_server # run: BUNDLEWATCH_GITHUB_TOKEN=${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} npm run size.check diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 000000000..a585b87e2 --- /dev/null +++ b/global.d.ts @@ -0,0 +1,7 @@ +import type { IziToast } from 'iziToast' + +declare global { + interface IWindow extends Window { + iziToast: IziToast + } +} diff --git a/package-lock.json b/package-lock.json index bce1b2328..593ca14c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coderplanets_web", - "version": "1.0.2", + "version": "1.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "coderplanets_web", - "version": "1.0.2", + "version": "1.0.4", "license": "Apache License 2.0", "dependencies": { "@groupher/react-editor": "^1.1.30", @@ -1688,18 +1688,19 @@ } }, "node_modules/@commitlint/cli": { - "version": "8.3.5", - "integrity": "sha512-6+L0vbw55UEdht71pgWOE55SRgb+8OHcEwGDB234VlIBFGK9P2QOBU7MHiYJ5cjdjCQ0rReNrGjOHmJ99jwf0w==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-8.3.6.tgz", + "integrity": "sha512-fg8p9/ZrzhUPIXBGrpzwKu50WT13jYS5OffYlkStPuemuv0GjXu37B8J/zNgu6UhrdBVHbmBR0LriKAzRLG/4g==", "dev": true, "dependencies": { - "@commitlint/format": "^8.3.4", - "@commitlint/lint": "^8.3.5", - "@commitlint/load": "^8.3.5", - "@commitlint/read": "^8.3.4", + "@commitlint/format": "^8.3.6", + "@commitlint/lint": "^8.3.6", + "@commitlint/load": "^8.3.6", + "@commitlint/read": "^8.3.6", "babel-polyfill": "6.26.0", "chalk": "2.4.2", "get-stdin": "7.0.0", - "lodash": "4.17.15", + "lodash": "4.17.21", "meow": "5.0.0", "resolve-from": "5.0.0", "resolve-global": "1.0.0" @@ -1712,24 +1713,26 @@ } }, "node_modules/@commitlint/cli/node_modules/@commitlint/execute-rule": { - "version": "8.3.4", - "integrity": "sha512-f4HigYjeIBn9f7OuNv5zh2y5vWaAhNFrfeul8CRJDy82l3Y+09lxOTGxfF3uMXKrZq4LmuK6qvvRCZ8mUrVvzQ==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-8.3.6.tgz", + "integrity": "sha512-kCcf+33LgFBZcVKzTRX7QZBiznFjzjgpyEXFjGsWgCeOXi1q3KPdwH9HvH22xpFZ4+n4lAuv/kQf5XUQMO2OGQ==", "dev": true, "engines": { "node": ">=4" } }, "node_modules/@commitlint/cli/node_modules/@commitlint/load": { - "version": "8.3.5", - "integrity": "sha512-poF7R1CtQvIXRmVIe63FjSQmN9KDqjRtU5A6hxqXBga87yB2VUJzic85TV6PcQc+wStk52cjrMI+g0zFx+Zxrw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-8.3.6.tgz", + "integrity": "sha512-bqqGg89KnfauJ01GrVBgKyWBXYy2UXmLvRGuepyI1HsNVaEIGBz6R+sTvk3K55Str6soF7HRpl6bDCmnEOVJtA==", "dev": true, "dependencies": { - "@commitlint/execute-rule": "^8.3.4", - "@commitlint/resolve-extends": "^8.3.5", + "@commitlint/execute-rule": "^8.3.6", + "@commitlint/resolve-extends": "^8.3.6", "babel-runtime": "^6.23.0", "chalk": "2.4.2", "cosmiconfig": "^5.2.0", - "lodash": "4.17.15", + "lodash": "4.17.21", "resolve-from": "^5.0.0" }, "engines": { @@ -1737,12 +1740,13 @@ } }, "node_modules/@commitlint/cli/node_modules/@commitlint/resolve-extends": { - "version": "8.3.5", - "integrity": "sha512-nHhFAK29qiXNe6oH6uG5wqBnCR+BQnxlBW/q5fjtxIaQALgfoNLHwLS9exzbIRFqwJckpR6yMCfgMbmbAOtklQ==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-8.3.6.tgz", + "integrity": "sha512-L0/UOBxc3wiA3gzyE8pN9Yunb6FS/2ZDCjieNH0XAgdF2ac5SHh056QE6aQwP7CSCYNEo2+SXxVZr/WOshsQHg==", "dev": true, "dependencies": { "import-fresh": "^3.0.0", - "lodash": "4.17.15", + "lodash": "4.17.21", "resolve-from": "^5.0.0", "resolve-global": "^1.0.0" }, @@ -1758,11 +1762,6 @@ "node": ">=4" } }, - "node_modules/@commitlint/cli/node_modules/lodash": { - "version": "4.17.15", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, "node_modules/@commitlint/cli/node_modules/meow": { "version": "5.0.0", "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", @@ -1799,21 +1798,17 @@ } }, "node_modules/@commitlint/ensure": { - "version": "8.3.4", - "integrity": "sha512-8NW77VxviLhD16O3EUd02lApMFnrHexq10YS4F4NftNoErKbKaJ0YYedktk2boKrtNRf/gQHY/Qf65edPx4ipw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-8.3.6.tgz", + "integrity": "sha512-UUipnA7sX3OSUW39pi4Etf7pKrG76uM33ybs5YTEOZbT6zb3aKUS+A1ygo52eX+tqpxCiV+6qSy5qEKG8c1aeA==", "dev": true, "dependencies": { - "lodash": "4.17.15" + "lodash": "4.17.21" }, "engines": { "node": ">=4" } }, - "node_modules/@commitlint/ensure/node_modules/lodash": { - "version": "4.17.15", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, "node_modules/@commitlint/execute-rule": { "version": "13.0.0", "integrity": "sha512-lBz2bJhNAgkkU/rFMAw3XBNujbxhxlaFHY3lfKB/MxpAa+pIfmWB3ig9i1VKe0wCvujk02O0WiMleNaRn2KJqw==", @@ -1824,8 +1819,9 @@ } }, "node_modules/@commitlint/format": { - "version": "8.3.4", - "integrity": "sha512-809wlQ/ND6CLZON+w2Rb3YM2TLNDfU2xyyqpZeqzf2reJNpySMSUAeaO/fNDJSOKIsOsR3bI01rGu6hv28k+Nw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-8.3.6.tgz", + "integrity": "sha512-VN9Yq3cJoonLjeoYiTOidsxGM6lwyzcw6ekQCCIzjNbJa+7teTPE2wDSXqhbsF/0XDJUeHcygzgZwv4/lzStTA==", "dev": true, "dependencies": { "chalk": "^2.0.1" @@ -1835,8 +1831,9 @@ } }, "node_modules/@commitlint/is-ignored": { - "version": "8.3.5", - "integrity": "sha512-Zo+8a6gJLFDTqyNRx53wQi/XTiz8mncvmWf/4oRG+6WRcBfjSSHY7KPVj5Y6UaLy2EgZ0WQ2Tt6RdTDeQiQplA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-8.3.6.tgz", + "integrity": "sha512-wxQImxePfAfIz9C2nWzebs0KUU9MiO8bWsRKNsAk9jknc+bjsre9Lje0sr6jvE840XZSTX/aaXY2g+Mt+9oq+w==", "dev": true, "dependencies": { "semver": "6.3.0" @@ -1846,25 +1843,21 @@ } }, "node_modules/@commitlint/lint": { - "version": "8.3.5", - "integrity": "sha512-02AkI0a6PU6rzqUvuDkSi6rDQ2hUgkq9GpmdJqfai5bDbxx2939mK4ZO+7apbIh4H6Pae7EpYi7ffxuJgm+3hQ==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-8.3.6.tgz", + "integrity": "sha512-M/tysLho4KdsXJp7J7q/c1WEb3Dh75cm86eb0buci8C/DOIegLq/B3DE/8dhxOzGElUW/iq55MyWttJ/MRwKsg==", "dev": true, "dependencies": { - "@commitlint/is-ignored": "^8.3.5", - "@commitlint/parse": "^8.3.4", - "@commitlint/rules": "^8.3.4", + "@commitlint/is-ignored": "^8.3.6", + "@commitlint/parse": "^8.3.6", + "@commitlint/rules": "^8.3.6", "babel-runtime": "^6.23.0", - "lodash": "4.17.15" + "lodash": "4.17.21" }, "engines": { "node": ">=4" } }, - "node_modules/@commitlint/lint/node_modules/lodash": { - "version": "4.17.15", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, "node_modules/@commitlint/load": { "version": "13.1.0", "integrity": "sha512-zlZbjJCWnWmBOSwTXis8H7I6pYk6JbDwOCuARA6B9Y/qt2PD+NCo0E/7EuaaFoxjHl+o56QR5QttuMBrf+BJzg==", @@ -1916,16 +1909,18 @@ } }, "node_modules/@commitlint/message": { - "version": "8.3.4", - "integrity": "sha512-nEj5tknoOKXqBsaQtCtgPcsAaf5VCg3+fWhss4Vmtq40633xLq0irkdDdMEsYIx8rGR0XPBTukqzln9kAWCkcA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-8.3.6.tgz", + "integrity": "sha512-x30GmsyZTk+QV4o5TRrDkZQm7uRumlKu+7yWeRdSAXyUgi9amsdMFJ8VbAoRsBndOAtEUkaXgK8dvvmgvW3kwg==", "dev": true, "engines": { "node": ">=4" } }, "node_modules/@commitlint/parse": { - "version": "8.3.4", - "integrity": "sha512-b3uQvpUQWC20EBfKSfMRnyx5Wc4Cn778bVeVOFErF/cXQK725L1bYFvPnEjQO/GT8yGVzq2wtLaoEqjm1NJ/Bw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-8.3.6.tgz", + "integrity": "sha512-wL6Z5hZpT8i/3LMwP/CxTMPMU3v4blAbSA8QGPCruFHFtAV8hIiXvD1CNOhyeeuG29GAapopLgNJjtigzlN3kg==", "dev": true, "dependencies": { "conventional-changelog-angular": "^1.3.3", @@ -1938,6 +1933,7 @@ }, "node_modules/@commitlint/parse/node_modules/conventional-changelog-angular": { "version": "1.6.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz", "integrity": "sha512-suQnFSqCxRwyBxY68pYTsFkG0taIdinHLNEAX5ivtw8bCRnIgnpvcHmlR/yjUyZIrNPYAoXlY1WiEKWgSE4BNg==", "dev": true, "dependencies": { @@ -1946,11 +1942,12 @@ } }, "node_modules/@commitlint/read": { - "version": "8.3.4", - "integrity": "sha512-FKv1kHPrvcAG5j+OSbd41IWexsbLhfIXpxVC/YwQZO+FR0EHmygxQNYs66r+GnhD1EfYJYM4WQIqd5bJRx6OIw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-8.3.6.tgz", + "integrity": "sha512-ixlvPQO8AGFjE5U4DBwJIZtzIqmGeZKhpNjjuAyTwWfMURpXjv+/pVvq/AY3LvxHJM64DuQp2WqrbwJU6mXvUQ==", "dev": true, "dependencies": { - "@commitlint/top-level": "^8.3.4", + "@commitlint/top-level": "^8.3.6", "@marionebl/sander": "^0.6.0", "babel-runtime": "^6.23.0", "git-raw-commits": "^2.0.0" @@ -1975,13 +1972,14 @@ } }, "node_modules/@commitlint/rules": { - "version": "8.3.4", - "integrity": "sha512-xuC9dlqD5xgAoDFgnbs578cJySvwOSkMLQyZADb1xD5n7BNcUJfP8WjT9W1Aw8K3Wf8+Ym/ysr9FZHXInLeaRg==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-8.3.6.tgz", + "integrity": "sha512-NmEAWAW0f5Nda7ZJ11vd73PqOt57GvLc1SOfoUKolCC3lSJACj9SCTbfkQh8cEMlLmDpNqaGaVHH1jMYXMqU3g==", "dev": true, "dependencies": { - "@commitlint/ensure": "^8.3.4", - "@commitlint/message": "^8.3.4", - "@commitlint/to-lines": "^8.3.4", + "@commitlint/ensure": "^8.3.6", + "@commitlint/message": "^8.3.6", + "@commitlint/to-lines": "^8.3.6", "babel-runtime": "^6.23.0" }, "engines": { @@ -1989,16 +1987,18 @@ } }, "node_modules/@commitlint/to-lines": { - "version": "8.3.4", - "integrity": "sha512-5AvcdwRsMIVq0lrzXTwpbbG5fKRTWcHkhn/hCXJJ9pm1JidsnidS1y0RGkb3O50TEHGewhXwNoavxW9VToscUA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-8.3.6.tgz", + "integrity": "sha512-4g26G37oh5dABVaRGALdlinjQ/wl8b4HTczLwXLKLM0iHHYFu2A1ZwiVJ8avQk/zThw86/HD6zOgGMNPoamjIQ==", "dev": true, "engines": { "node": ">=4" } }, "node_modules/@commitlint/top-level": { - "version": "8.3.4", - "integrity": "sha512-nOaeLBbAqSZNpKgEtO6NAxmui1G8ZvLG+0wb4rvv6mWhPDzK1GNZkCd8FUZPahCoJ1iHDoatw7F8BbJLg4nDjg==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-8.3.6.tgz", + "integrity": "sha512-2XG5NhGgEZaFJChCkSTa6wXWYbJqb9DubC6aRuD/cOeHdYh2OYrXT8z0IorN+gR5+MWqdUtIHhRYtz2Xb75gNg==", "dev": true, "dependencies": { "find-up": "^4.0.0" @@ -2009,6 +2009,7 @@ }, "node_modules/@commitlint/top-level/node_modules/find-up": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { @@ -2021,6 +2022,7 @@ }, "node_modules/@commitlint/top-level/node_modules/locate-path": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "dependencies": { @@ -2032,6 +2034,7 @@ }, "node_modules/@commitlint/top-level/node_modules/p-limit": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { @@ -2046,6 +2049,7 @@ }, "node_modules/@commitlint/top-level/node_modules/p-locate": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "dependencies": { @@ -2057,6 +2061,7 @@ }, "node_modules/@commitlint/top-level/node_modules/p-try": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, "engines": { @@ -2065,6 +2070,7 @@ }, "node_modules/@commitlint/top-level/node_modules/path-exists": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "engines": { @@ -3537,6 +3543,19 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@jridgewell/resolve-uri": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz", @@ -3545,15 +3564,32 @@ "node": ">=6.0.0" } }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.11", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz", "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz", - "integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==", + "version": "0.3.15", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", + "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -3589,7 +3625,8 @@ }, "node_modules/@marionebl/sander": { "version": "0.6.1", - "integrity": "sha1-GViWWHTyS8Ub5Ih1/rUNZC/EH3s=", + "resolved": "https://registry.npmjs.org/@marionebl/sander/-/sander-0.6.1.tgz", + "integrity": "sha512-7f3zZddAk92G1opoX/glbDO6YbrzmMAJAw0RJAcvunnV7sR4L9llyBUAABptKoF1Jf37UQ1QTJy5p2H4J4rBNA==", "dev": true, "dependencies": { "graceful-fs": "^4.1.3", @@ -4012,13 +4049,6 @@ "node": ">= 8" } }, - "node_modules/@sentry/cli/node_modules/node-fetch": { - "version": "2.6.2", - "integrity": "sha512-aLoxToI6RfZ+0NOjmWAgn9+LEd30YCkJKFSyWacNZdEKTit/ZMcKjGkTRo8uWEsnIb/hfKecNPEbln02PdWbcA==", - "engines": { - "node": "4.x || >=6.0.0" - } - }, "node_modules/@sentry/core": { "version": "5.17.0", "integrity": "sha512-Kfx4rGKDC7V1YJjTGJXyl12VVHxM8Cjpu61YOyF8kXoXXg9u06C3n0G1dmfzLQERKXasUVMtXRBdKx/OjYpl1g==", @@ -4178,11 +4208,11 @@ } }, "node_modules/@surma/rollup-plugin-off-main-thread/node_modules/ejs": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz", - "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", "dependencies": { - "jake": "^10.6.1" + "jake": "^10.8.5" }, "bin": { "ejs": "bin/cli.js" @@ -5754,9 +5784,9 @@ } }, "node_modules/async": { - "version": "3.2.1", - "integrity": "sha512-XdD5lRO/87udXCMC9meWdYiR+Nq6ZjUfXidViUZGu2F1MO4T3XwZ1et0hb2++BgLfhyJwy44BGB/yx80ABx8hg==", - "dev": true + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" }, "node_modules/async-each": { "version": "1.0.3", @@ -7369,12 +7399,14 @@ }, "node_modules/commitizen/node_modules/minimist": { "version": "1.2.0", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha512-7Wl+Jz+IGWuSdgsQEJ4JunV0si/iMhg42MnQQG6h1R6TNeVenp4U9x5CC5v/gYqz/fENLQITAWXidNtVL0NNbw==", "dev": true }, "node_modules/commitizen/node_modules/shelljs": { "version": "0.7.6", - "integrity": "sha1-N5zM+1a5HIYB5HkzVutTgpJN6a0=", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.6.tgz", + "integrity": "sha512-sK/rjl+frweS4RL1ifxTb7eIXQaliSCDN5meqwwfDIHSWU7zH2KPTa/2hS6EAgGw7wHzJ3rQHfhnLzktfagSZA==", "dev": true, "dependencies": { "glob": "^7.0.0", @@ -8262,7 +8294,8 @@ }, "node_modules/conventional-recommended-bump/node_modules/git-raw-commits/node_modules/trim-newlines": { "version": "2.0.0", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA==", "dev": true, "engines": { "node": ">=4" @@ -8882,10 +8915,11 @@ } }, "node_modules/cross-fetch": { - "version": "3.1.4", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dependencies": { - "node-fetch": "2.6.1" + "node-fetch": "2.6.7" } }, "node_modules/cross-spawn": { @@ -9348,49 +9382,56 @@ "@commitlint/load": ">6.1.1" } }, - "node_modules/cz-conventional-changelog/node_modules/ansi-escapes": { - "version": "3.2.0", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "node_modules/cz-conventional-changelog/node_modules/cachedir": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz", + "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==", "dev": true, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/cz-conventional-changelog/node_modules/ansi-regex": { - "version": "4.1.0", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "node_modules/cz-conventional-changelog/node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/cz-conventional-changelog/node_modules/cachedir": { - "version": "2.2.0", - "integrity": "sha512-VvxA0xhNqIIfg0V9AmJkDg91DaJwryutH5rVEZAhcNi4iJFj9f+QxmAjgK1LT9I8OgToX27fypX6/MeCXVbBjQ==", + "node_modules/cz-conventional-changelog/node_modules/cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", "dev": true, "engines": { - "node": ">=6" + "node": ">= 10" } }, "node_modules/cz-conventional-changelog/node_modules/commitizen": { - "version": "4.2.4", - "integrity": "sha512-LlZChbDzg3Ir3O2S7jSo/cgWp5/QwylQVr59K4xayVq8S4/RdKzSyJkghAiZZHfhh5t4pxunUoyeg0ml1q/7aw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/commitizen/-/commitizen-4.2.5.tgz", + "integrity": "sha512-9sXju8Qrz1B4Tw7kC5KhnvwYQN88qs2zbiB8oyMsnXZyJ24PPGiNM3nHr73d32dnE3i8VJEXddBFIbOgYSEXtQ==", "dev": true, "dependencies": { - "cachedir": "2.2.0", - "cz-conventional-changelog": "3.2.0", + "cachedir": "2.3.0", + "cz-conventional-changelog": "3.3.0", "dedent": "0.7.0", - "detect-indent": "6.0.0", + "detect-indent": "6.1.0", "find-node-modules": "^2.1.2", "find-root": "1.1.0", - "fs-extra": "8.1.0", - "glob": "7.1.4", - "inquirer": "6.5.2", + "fs-extra": "9.1.0", + "glob": "7.2.3", + "inquirer": "8.2.4", "is-utf8": "^0.2.1", - "lodash": "^4.17.20", - "minimist": "1.2.5", + "lodash": "4.17.21", + "minimist": "1.2.6", "strip-bom": "4.0.0", - "strip-json-comments": "3.0.1" + "strip-json-comments": "3.1.1" }, "bin": { "commitizen": "bin/commitizen", @@ -9398,47 +9439,18 @@ "git-cz": "bin/git-cz" }, "engines": { - "node": ">= 10" - } - }, - "node_modules/cz-conventional-changelog/node_modules/cz-conventional-changelog": { - "version": "3.2.0", - "integrity": "sha512-yAYxeGpVi27hqIilG1nh4A9Bnx4J3Ov+eXy4koL3drrR+IO9GaWPsKjik20ht608Asqi8TQPf0mczhEeyAtMzg==", - "dev": true, - "dependencies": { - "chalk": "^2.4.1", - "commitizen": "^4.0.3", - "conventional-commit-types": "^3.0.0", - "lodash.map": "^4.5.1", - "longest": "^2.0.1", - "word-wrap": "^1.0.3" - }, - "engines": { - "node": ">= 10" - }, - "optionalDependencies": { - "@commitlint/load": ">6.1.1" + "node": ">= 12" } }, "node_modules/cz-conventional-changelog/node_modules/detect-indent": { - "version": "6.0.0", - "integrity": "sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/cz-conventional-changelog/node_modules/figures": { - "version": "2.0.0", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/cz-conventional-changelog/node_modules/find-node-modules": { "version": "2.1.2", "integrity": "sha512-x+3P4mbtRPlSiVE1Qco0Z4YLU8WFiFcuWTf3m75OV9Uzcfs2Bg+O9N+r/K0AnmINBW06KpfqKwYJbFlFq4qNug==", @@ -9463,63 +9475,92 @@ } }, "node_modules/cz-conventional-changelog/node_modules/fs-extra": { - "version": "8.1.0", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, "dependencies": { + "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">=10" } }, "node_modules/cz-conventional-changelog/node_modules/glob": { - "version": "7.1.4", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" }, "engines": { "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/cz-conventional-changelog/node_modules/inquirer": { - "version": "6.5.2", - "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz", + "integrity": "sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==", "dev": true, "dependencies": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.12", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=6.0.0" + "node": ">=12.0.0" } }, - "node_modules/cz-conventional-changelog/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "node_modules/cz-conventional-changelog/node_modules/inquirer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cz-conventional-changelog/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/cz-conventional-changelog/node_modules/merge": { @@ -9527,57 +9568,71 @@ "integrity": "sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w==", "dev": true }, - "node_modules/cz-conventional-changelog/node_modules/rxjs": { - "version": "6.6.7", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "node_modules/cz-conventional-changelog/node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, + "node_modules/cz-conventional-changelog/node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dev": true, "dependencies": { - "tslib": "^1.9.0" + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" }, "engines": { - "npm": ">=2.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cz-conventional-changelog/node_modules/string-width": { - "version": "2.1.1", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "node_modules/cz-conventional-changelog/node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/cz-conventional-changelog/node_modules/string-width/node_modules/ansi-regex": { - "version": "3.0.0", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/cz-conventional-changelog/node_modules/string-width/node_modules/strip-ansi": { - "version": "4.0.0", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "node_modules/cz-conventional-changelog/node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dev": true, "dependencies": { - "ansi-regex": "^3.0.0" + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/cz-conventional-changelog/node_modules/strip-ansi": { - "version": "5.2.0", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "node_modules/cz-conventional-changelog/node_modules/rxjs": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz", + "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==", "dev": true, "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" + "tslib": "^2.1.0" } }, "node_modules/cz-conventional-changelog/node_modules/strip-bom": { @@ -9588,12 +9643,36 @@ "node": ">=8" } }, - "node_modules/cz-conventional-changelog/node_modules/strip-json-comments": { - "version": "3.0.1", - "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", + "node_modules/cz-conventional-changelog/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "node_modules/cz-conventional-changelog/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": ">=8" + "node": ">= 10.0.0" + } + }, + "node_modules/cz-conventional-changelog/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/d": { @@ -10245,7 +10324,8 @@ }, "node_modules/dot-prop": { "version": "3.0.0", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", + "integrity": "sha512-k4ELWeEU3uCcwub7+dWydqQBRjAjkV9L33HjVRG5Xo2QybI6ja/v+4W73SRi8ubCqJz0l9XsTP1NbewfyqaSlw==", "dev": true, "dependencies": { "is-obj": "^1.0.0" @@ -12173,11 +12253,30 @@ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" }, "node_modules/filelist": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz", - "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", "dependencies": { - "minimatch": "^3.0.4" + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" } }, "node_modules/filesize": { @@ -14086,10 +14185,11 @@ "integrity": "sha512-RFkfy10hNxJqc7MVAp5iAZq0Tum6msBCNebEe3OelOBvrROvzHUPaR8Qe10RQrOGokTm0W4vJGEJzruFkEt+hQ==" }, "node_modules/i18next-http-backend": { - "version": "1.3.1", - "integrity": "sha512-o79n4GBBRpl20hByC+ne/S1UaSZ4iGAn59Hu2TEZGjN0WLB72L7WrM39Cshziyrssp6MQfdI8wjToU2Q6kpSvA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/i18next-http-backend/-/i18next-http-backend-1.4.1.tgz", + "integrity": "sha512-s4Q9hK2jS29iyhniMP82z+yYY8riGTrWbnyvsSzi5TaF7Le4E7b5deTmtuaRuab9fdDcYXtcwdBgawZG+JCEjA==", "dependencies": { - "cross-fetch": "3.1.4" + "cross-fetch": "3.1.5" } }, "node_modules/i18next-http-middleware": { @@ -14263,8 +14363,9 @@ } }, "node_modules/inquirer/node_modules/ansi-regex": { - "version": "3.0.0", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "dev": true, "engines": { "node": ">=4" @@ -14629,6 +14730,15 @@ "node": ">=10" } }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/is-lower-case": { "version": "1.1.3", "integrity": "sha1-fhR75HaNxGbbO/shzGCzHmrWk5M=", @@ -14944,7 +15054,7 @@ "node_modules/isomorphic-fetch": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "integrity": "sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA==", "dependencies": { "node-fetch": "^1.0.1", "whatwg-fetch": ">=0.10.0" @@ -15029,12 +15139,12 @@ "integrity": "sha512-Oc1X2wiQtPp39i5VpIjf3GJf5sfCtHKXZ5szx7RareyEeFLUlcEW0FSfBni28+Ul6KNKZRKzhVuWzSP4Xngh0w==" }, "node_modules/jake": { - "version": "10.8.2", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz", - "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==", + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", "dependencies": { - "async": "0.9.x", - "chalk": "^2.4.2", + "async": "^3.2.3", + "chalk": "^4.0.2", "filelist": "^1.0.1", "minimatch": "^3.0.4" }, @@ -15042,13 +15152,23 @@ "jake": "bin/cli.js" }, "engines": { - "node": "*" + "node": ">=10" } }, - "node_modules/jake/node_modules/async": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", - "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" + "node_modules/jake/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/jest": { "version": "26.2.2", @@ -16197,9 +16317,9 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "node_modules/json-schema": { - "version": "0.2.3", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, "node_modules/json-schema-traverse": { "version": "0.4.1", @@ -16284,17 +16404,18 @@ } }, "node_modules/jsprim": { - "version": "1.4.1", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dev": true, - "engines": [ - "node >=0.6.0" - ], "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" } }, "node_modules/jss": { @@ -17453,8 +17574,9 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" }, "node_modules/minimist-options": { "version": "3.0.2", @@ -18712,11 +18834,6 @@ "node": ">= 4" } }, - "node_modules/next-pwa/node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "node_modules/next-pwa/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -19075,10 +19192,41 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/node-fetch": { - "version": "2.6.1", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, "engines": { "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, "node_modules/node-int64": { @@ -19458,8 +19606,9 @@ "integrity": "sha1-y480xTIT2JVyP8urkH6UIq28r7E=" }, "node_modules/nth-check": { - "version": "2.0.0", - "integrity": "sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", "dev": true, "dependencies": { "boolbase": "^1.0.0" @@ -19767,8 +19916,9 @@ } }, "node_modules/ora/node_modules/ansi-regex": { - "version": "4.1.0", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", "dev": true, "engines": { "node": ">=6" @@ -20665,8 +20815,12 @@ } }, "node_modules/prismjs": { - "version": "1.25.0", - "integrity": "sha512-WCjJHl1KEWbnkQom1+SzftbtXMKQoezOCYs5rECqMN+jP+apI7ftoflyqigqzopSO3hMhTEb0mFClA8lkolgEg==" + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==", + "engines": { + "node": ">=6" + } }, "node_modules/process": { "version": "0.11.10", @@ -21983,8 +22137,6 @@ "version": "8.6.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", - "optional": true, - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -22000,21 +22152,14 @@ "randombytes": "^2.1.0" } }, - "node_modules/rollup-plugin-terser/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "engines": { - "node": ">= 8" - } - }, "node_modules/rollup-plugin-terser/node_modules/terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.7.2", "source-map-support": "~0.5.20" }, "bin": { @@ -22022,14 +22167,6 @@ }, "engines": { "node": ">=10" - }, - "peerDependencies": { - "acorn": "^8.5.0" - }, - "peerDependenciesMeta": { - "acorn": { - "optional": true - } } }, "node_modules/rst-selector-parser": { @@ -22605,8 +22742,9 @@ } }, "node_modules/shell-quote": { - "version": "1.7.2", - "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", + "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", "dev": true }, "node_modules/shelljs": { @@ -22667,9 +22805,9 @@ ] }, "node_modules/simple-get": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.0.tgz", - "integrity": "sha512-ZalZGexYr3TA0SwySsr5HlgOOinS4Jsa8YB2GJ6lUNAazyAu4KG/VmzMTwAt2YVXzzVj8QmefmAonZIK2BSGcQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", "funding": [ { "type": "github", @@ -23980,9 +24118,9 @@ } }, "node_modules/terser": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", - "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz", + "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==", "dependencies": { "commander": "^2.20.0", "source-map": "~0.6.1", @@ -24032,8 +24170,6 @@ "version": "8.7.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", - "optional": true, - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -24077,12 +24213,13 @@ } }, "node_modules/terser-webpack-plugin/node_modules/terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.7.2", "source-map-support": "~0.5.20" }, "bin": { @@ -24090,22 +24227,6 @@ }, "engines": { "node": ">=10" - }, - "peerDependencies": { - "acorn": "^8.5.0" - }, - "peerDependenciesMeta": { - "acorn": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/terser/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "engines": { - "node": ">= 8" } }, "node_modules/test-exclude": { @@ -24399,7 +24520,8 @@ }, "node_modules/trim-newlines": { "version": "2.0.0", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA==", "dev": true, "engines": { "node": ">=4" @@ -24433,11 +24555,6 @@ "strip-bom": "^3.0.0" } }, - "node_modules/tsconfig-paths/node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - }, "node_modules/tslib": { "version": "1.14.1", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" @@ -25040,9 +25157,13 @@ "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==" }, "node_modules/vm2": { - "version": "3.9.5", - "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.5.tgz", - "integrity": "sha512-LuCAHZN75H9tdrAiLFf030oW7nJV5xwNMuk1ymOZwopmuK3d2H4L1Kv4+GFHgarKiLfXXLFU+7LDABHnwOkWng==", + "version": "3.9.11", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.11.tgz", + "integrity": "sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==", + "dependencies": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + }, "bin": { "vm2": "bin/vm2" }, @@ -25050,6 +25171,25 @@ "node": ">=6.0" } }, + "node_modules/vm2/node_modules/acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/vm2/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/void-elements": { "version": "3.1.0", "integrity": "sha1-YU9/v42AHwu18GYfWy9XhXUOTwk=", @@ -25103,8 +25243,9 @@ } }, "node_modules/wait-on/node_modules/follow-redirects": { - "version": "1.14.4", - "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz", + "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==", "dev": true, "funding": [ { @@ -25294,7 +25435,7 @@ "node_modules/watchpack-chokidar2/node_modules/glob-parent": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", "optional": true, "dependencies": { "is-glob": "^3.1.0", @@ -25605,8 +25746,9 @@ } }, "node_modules/wide-align/node_modules/ansi-regex": { - "version": "3.0.0", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "engines": { "node": ">=4" } @@ -27168,49 +27310,53 @@ } }, "@commitlint/cli": { - "version": "8.3.5", - "integrity": "sha512-6+L0vbw55UEdht71pgWOE55SRgb+8OHcEwGDB234VlIBFGK9P2QOBU7MHiYJ5cjdjCQ0rReNrGjOHmJ99jwf0w==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-8.3.6.tgz", + "integrity": "sha512-fg8p9/ZrzhUPIXBGrpzwKu50WT13jYS5OffYlkStPuemuv0GjXu37B8J/zNgu6UhrdBVHbmBR0LriKAzRLG/4g==", "dev": true, "requires": { - "@commitlint/format": "^8.3.4", - "@commitlint/lint": "^8.3.5", - "@commitlint/load": "^8.3.5", - "@commitlint/read": "^8.3.4", + "@commitlint/format": "^8.3.6", + "@commitlint/lint": "^8.3.6", + "@commitlint/load": "^8.3.6", + "@commitlint/read": "^8.3.6", "babel-polyfill": "6.26.0", "chalk": "2.4.2", "get-stdin": "7.0.0", - "lodash": "4.17.15", + "lodash": "4.17.21", "meow": "5.0.0", "resolve-from": "5.0.0", "resolve-global": "1.0.0" }, "dependencies": { "@commitlint/execute-rule": { - "version": "8.3.4", - "integrity": "sha512-f4HigYjeIBn9f7OuNv5zh2y5vWaAhNFrfeul8CRJDy82l3Y+09lxOTGxfF3uMXKrZq4LmuK6qvvRCZ8mUrVvzQ==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-8.3.6.tgz", + "integrity": "sha512-kCcf+33LgFBZcVKzTRX7QZBiznFjzjgpyEXFjGsWgCeOXi1q3KPdwH9HvH22xpFZ4+n4lAuv/kQf5XUQMO2OGQ==", "dev": true }, "@commitlint/load": { - "version": "8.3.5", - "integrity": "sha512-poF7R1CtQvIXRmVIe63FjSQmN9KDqjRtU5A6hxqXBga87yB2VUJzic85TV6PcQc+wStk52cjrMI+g0zFx+Zxrw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-8.3.6.tgz", + "integrity": "sha512-bqqGg89KnfauJ01GrVBgKyWBXYy2UXmLvRGuepyI1HsNVaEIGBz6R+sTvk3K55Str6soF7HRpl6bDCmnEOVJtA==", "dev": true, "requires": { - "@commitlint/execute-rule": "^8.3.4", - "@commitlint/resolve-extends": "^8.3.5", + "@commitlint/execute-rule": "^8.3.6", + "@commitlint/resolve-extends": "^8.3.6", "babel-runtime": "^6.23.0", "chalk": "2.4.2", "cosmiconfig": "^5.2.0", - "lodash": "4.17.15", + "lodash": "4.17.21", "resolve-from": "^5.0.0" } }, "@commitlint/resolve-extends": { - "version": "8.3.5", - "integrity": "sha512-nHhFAK29qiXNe6oH6uG5wqBnCR+BQnxlBW/q5fjtxIaQALgfoNLHwLS9exzbIRFqwJckpR6yMCfgMbmbAOtklQ==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-8.3.6.tgz", + "integrity": "sha512-L0/UOBxc3wiA3gzyE8pN9Yunb6FS/2ZDCjieNH0XAgdF2ac5SHh056QE6aQwP7CSCYNEo2+SXxVZr/WOshsQHg==", "dev": true, "requires": { "import-fresh": "^3.0.0", - "lodash": "4.17.15", + "lodash": "4.17.21", "resolve-from": "^5.0.0", "resolve-global": "^1.0.0" } @@ -27220,11 +27366,6 @@ "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", "dev": true }, - "lodash": { - "version": "4.17.15", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, "meow": { "version": "5.0.0", "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", @@ -27260,18 +27401,12 @@ } }, "@commitlint/ensure": { - "version": "8.3.4", - "integrity": "sha512-8NW77VxviLhD16O3EUd02lApMFnrHexq10YS4F4NftNoErKbKaJ0YYedktk2boKrtNRf/gQHY/Qf65edPx4ipw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-8.3.6.tgz", + "integrity": "sha512-UUipnA7sX3OSUW39pi4Etf7pKrG76uM33ybs5YTEOZbT6zb3aKUS+A1ygo52eX+tqpxCiV+6qSy5qEKG8c1aeA==", "dev": true, "requires": { - "lodash": "4.17.15" - }, - "dependencies": { - "lodash": { - "version": "4.17.15", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - } + "lodash": "4.17.21" } }, "@commitlint/execute-rule": { @@ -27281,38 +27416,34 @@ "optional": true }, "@commitlint/format": { - "version": "8.3.4", - "integrity": "sha512-809wlQ/ND6CLZON+w2Rb3YM2TLNDfU2xyyqpZeqzf2reJNpySMSUAeaO/fNDJSOKIsOsR3bI01rGu6hv28k+Nw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-8.3.6.tgz", + "integrity": "sha512-VN9Yq3cJoonLjeoYiTOidsxGM6lwyzcw6ekQCCIzjNbJa+7teTPE2wDSXqhbsF/0XDJUeHcygzgZwv4/lzStTA==", "dev": true, "requires": { "chalk": "^2.0.1" } }, "@commitlint/is-ignored": { - "version": "8.3.5", - "integrity": "sha512-Zo+8a6gJLFDTqyNRx53wQi/XTiz8mncvmWf/4oRG+6WRcBfjSSHY7KPVj5Y6UaLy2EgZ0WQ2Tt6RdTDeQiQplA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-8.3.6.tgz", + "integrity": "sha512-wxQImxePfAfIz9C2nWzebs0KUU9MiO8bWsRKNsAk9jknc+bjsre9Lje0sr6jvE840XZSTX/aaXY2g+Mt+9oq+w==", "dev": true, "requires": { "semver": "6.3.0" } }, "@commitlint/lint": { - "version": "8.3.5", - "integrity": "sha512-02AkI0a6PU6rzqUvuDkSi6rDQ2hUgkq9GpmdJqfai5bDbxx2939mK4ZO+7apbIh4H6Pae7EpYi7ffxuJgm+3hQ==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-8.3.6.tgz", + "integrity": "sha512-M/tysLho4KdsXJp7J7q/c1WEb3Dh75cm86eb0buci8C/DOIegLq/B3DE/8dhxOzGElUW/iq55MyWttJ/MRwKsg==", "dev": true, "requires": { - "@commitlint/is-ignored": "^8.3.5", - "@commitlint/parse": "^8.3.4", - "@commitlint/rules": "^8.3.4", + "@commitlint/is-ignored": "^8.3.6", + "@commitlint/parse": "^8.3.6", + "@commitlint/rules": "^8.3.6", "babel-runtime": "^6.23.0", - "lodash": "4.17.15" - }, - "dependencies": { - "lodash": { - "version": "4.17.15", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - } + "lodash": "4.17.21" } }, "@commitlint/load": { @@ -27356,13 +27487,15 @@ } }, "@commitlint/message": { - "version": "8.3.4", - "integrity": "sha512-nEj5tknoOKXqBsaQtCtgPcsAaf5VCg3+fWhss4Vmtq40633xLq0irkdDdMEsYIx8rGR0XPBTukqzln9kAWCkcA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-8.3.6.tgz", + "integrity": "sha512-x30GmsyZTk+QV4o5TRrDkZQm7uRumlKu+7yWeRdSAXyUgi9amsdMFJ8VbAoRsBndOAtEUkaXgK8dvvmgvW3kwg==", "dev": true }, "@commitlint/parse": { - "version": "8.3.4", - "integrity": "sha512-b3uQvpUQWC20EBfKSfMRnyx5Wc4Cn778bVeVOFErF/cXQK725L1bYFvPnEjQO/GT8yGVzq2wtLaoEqjm1NJ/Bw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-8.3.6.tgz", + "integrity": "sha512-wL6Z5hZpT8i/3LMwP/CxTMPMU3v4blAbSA8QGPCruFHFtAV8hIiXvD1CNOhyeeuG29GAapopLgNJjtigzlN3kg==", "dev": true, "requires": { "conventional-changelog-angular": "^1.3.3", @@ -27372,6 +27505,7 @@ "dependencies": { "conventional-changelog-angular": { "version": "1.6.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz", "integrity": "sha512-suQnFSqCxRwyBxY68pYTsFkG0taIdinHLNEAX5ivtw8bCRnIgnpvcHmlR/yjUyZIrNPYAoXlY1WiEKWgSE4BNg==", "dev": true, "requires": { @@ -27382,11 +27516,12 @@ } }, "@commitlint/read": { - "version": "8.3.4", - "integrity": "sha512-FKv1kHPrvcAG5j+OSbd41IWexsbLhfIXpxVC/YwQZO+FR0EHmygxQNYs66r+GnhD1EfYJYM4WQIqd5bJRx6OIw==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-8.3.6.tgz", + "integrity": "sha512-ixlvPQO8AGFjE5U4DBwJIZtzIqmGeZKhpNjjuAyTwWfMURpXjv+/pVvq/AY3LvxHJM64DuQp2WqrbwJU6mXvUQ==", "dev": true, "requires": { - "@commitlint/top-level": "^8.3.4", + "@commitlint/top-level": "^8.3.6", "@marionebl/sander": "^0.6.0", "babel-runtime": "^6.23.0", "git-raw-commits": "^2.0.0" @@ -27405,24 +27540,27 @@ } }, "@commitlint/rules": { - "version": "8.3.4", - "integrity": "sha512-xuC9dlqD5xgAoDFgnbs578cJySvwOSkMLQyZADb1xD5n7BNcUJfP8WjT9W1Aw8K3Wf8+Ym/ysr9FZHXInLeaRg==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-8.3.6.tgz", + "integrity": "sha512-NmEAWAW0f5Nda7ZJ11vd73PqOt57GvLc1SOfoUKolCC3lSJACj9SCTbfkQh8cEMlLmDpNqaGaVHH1jMYXMqU3g==", "dev": true, "requires": { - "@commitlint/ensure": "^8.3.4", - "@commitlint/message": "^8.3.4", - "@commitlint/to-lines": "^8.3.4", + "@commitlint/ensure": "^8.3.6", + "@commitlint/message": "^8.3.6", + "@commitlint/to-lines": "^8.3.6", "babel-runtime": "^6.23.0" } }, "@commitlint/to-lines": { - "version": "8.3.4", - "integrity": "sha512-5AvcdwRsMIVq0lrzXTwpbbG5fKRTWcHkhn/hCXJJ9pm1JidsnidS1y0RGkb3O50TEHGewhXwNoavxW9VToscUA==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-8.3.6.tgz", + "integrity": "sha512-4g26G37oh5dABVaRGALdlinjQ/wl8b4HTczLwXLKLM0iHHYFu2A1ZwiVJ8avQk/zThw86/HD6zOgGMNPoamjIQ==", "dev": true }, "@commitlint/top-level": { - "version": "8.3.4", - "integrity": "sha512-nOaeLBbAqSZNpKgEtO6NAxmui1G8ZvLG+0wb4rvv6mWhPDzK1GNZkCd8FUZPahCoJ1iHDoatw7F8BbJLg4nDjg==", + "version": "8.3.6", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-8.3.6.tgz", + "integrity": "sha512-2XG5NhGgEZaFJChCkSTa6wXWYbJqb9DubC6aRuD/cOeHdYh2OYrXT8z0IorN+gR5+MWqdUtIHhRYtz2Xb75gNg==", "dev": true, "requires": { "find-up": "^4.0.0" @@ -27430,6 +27568,7 @@ "dependencies": { "find-up": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { @@ -27439,6 +27578,7 @@ }, "locate-path": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { @@ -27447,6 +27587,7 @@ }, "p-limit": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { @@ -27455,6 +27596,7 @@ }, "p-locate": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { @@ -27463,11 +27605,13 @@ }, "p-try": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, "path-exists": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true } @@ -28700,20 +28844,44 @@ } } }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, "@jridgewell/resolve-uri": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz", "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==" }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" + }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, "@jridgewell/sourcemap-codec": { "version": "1.4.11", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz", "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==" }, "@jridgewell/trace-mapping": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz", - "integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==", + "version": "0.3.15", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", + "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", "requires": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -28742,7 +28910,8 @@ }, "@marionebl/sander": { "version": "0.6.1", - "integrity": "sha1-GViWWHTyS8Ub5Ih1/rUNZC/EH3s=", + "resolved": "https://registry.npmjs.org/@marionebl/sander/-/sander-0.6.1.tgz", + "integrity": "sha512-7f3zZddAk92G1opoX/glbDO6YbrzmMAJAw0RJAcvunnV7sR4L9llyBUAABptKoF1Jf37UQ1QTJy5p2H4J4rBNA==", "dev": true, "requires": { "graceful-fs": "^4.1.3", @@ -28998,12 +29167,6 @@ "npmlog": "^4.1.2", "progress": "^2.0.3", "proxy-from-env": "^1.1.0" - }, - "dependencies": { - "node-fetch": { - "version": "2.6.2", - "integrity": "sha512-aLoxToI6RfZ+0NOjmWAgn9+LEd30YCkJKFSyWacNZdEKTit/ZMcKjGkTRo8uWEsnIb/hfKecNPEbln02PdWbcA==" - } } }, "@sentry/core": { @@ -29137,11 +29300,11 @@ }, "dependencies": { "ejs": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz", - "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", "requires": { - "jake": "^10.6.1" + "jake": "^10.8.5" } }, "json5": { @@ -30438,9 +30601,9 @@ "dev": true }, "async": { - "version": "3.2.1", - "integrity": "sha512-XdD5lRO/87udXCMC9meWdYiR+Nq6ZjUfXidViUZGu2F1MO4T3XwZ1et0hb2++BgLfhyJwy44BGB/yx80ABx8hg==", - "dev": true + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" }, "async-each": { "version": "1.0.3", @@ -31734,12 +31897,14 @@ }, "minimist": { "version": "1.2.0", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha512-7Wl+Jz+IGWuSdgsQEJ4JunV0si/iMhg42MnQQG6h1R6TNeVenp4U9x5CC5v/gYqz/fENLQITAWXidNtVL0NNbw==", "dev": true }, "shelljs": { "version": "0.7.6", - "integrity": "sha1-N5zM+1a5HIYB5HkzVutTgpJN6a0=", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.6.tgz", + "integrity": "sha512-sK/rjl+frweS4RL1ifxTb7eIXQaliSCDN5meqwwfDIHSWU7zH2KPTa/2hS6EAgGw7wHzJ3rQHfhnLzktfagSZA==", "dev": true, "requires": { "glob": "^7.0.0", @@ -32438,7 +32603,8 @@ }, "trim-newlines": { "version": "2.0.0", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA==", "dev": true } } @@ -32905,10 +33071,11 @@ } }, "cross-fetch": { - "version": "3.1.4", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "requires": { - "node-fetch": "2.6.1" + "node-fetch": "2.6.7" } }, "cross-spawn": { @@ -33262,69 +33429,55 @@ "word-wrap": "^1.0.3" }, "dependencies": { - "ansi-escapes": { - "version": "3.2.0", - "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "cachedir": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz", + "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==", "dev": true }, - "ansi-regex": { - "version": "4.1.0", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true + "cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "requires": { + "restore-cursor": "^3.1.0" + } }, - "cachedir": { - "version": "2.2.0", - "integrity": "sha512-VvxA0xhNqIIfg0V9AmJkDg91DaJwryutH5rVEZAhcNi4iJFj9f+QxmAjgK1LT9I8OgToX27fypX6/MeCXVbBjQ==", + "cli-width": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", + "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", "dev": true }, "commitizen": { - "version": "4.2.4", - "integrity": "sha512-LlZChbDzg3Ir3O2S7jSo/cgWp5/QwylQVr59K4xayVq8S4/RdKzSyJkghAiZZHfhh5t4pxunUoyeg0ml1q/7aw==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/commitizen/-/commitizen-4.2.5.tgz", + "integrity": "sha512-9sXju8Qrz1B4Tw7kC5KhnvwYQN88qs2zbiB8oyMsnXZyJ24PPGiNM3nHr73d32dnE3i8VJEXddBFIbOgYSEXtQ==", "dev": true, "requires": { - "cachedir": "2.2.0", - "cz-conventional-changelog": "3.2.0", + "cachedir": "2.3.0", + "cz-conventional-changelog": "3.3.0", "dedent": "0.7.0", - "detect-indent": "6.0.0", + "detect-indent": "6.1.0", "find-node-modules": "^2.1.2", "find-root": "1.1.0", - "fs-extra": "8.1.0", - "glob": "7.1.4", - "inquirer": "6.5.2", + "fs-extra": "9.1.0", + "glob": "7.2.3", + "inquirer": "8.2.4", "is-utf8": "^0.2.1", - "lodash": "^4.17.20", - "minimist": "1.2.5", + "lodash": "4.17.21", + "minimist": "1.2.6", "strip-bom": "4.0.0", - "strip-json-comments": "3.0.1" - } - }, - "cz-conventional-changelog": { - "version": "3.2.0", - "integrity": "sha512-yAYxeGpVi27hqIilG1nh4A9Bnx4J3Ov+eXy4koL3drrR+IO9GaWPsKjik20ht608Asqi8TQPf0mczhEeyAtMzg==", - "dev": true, - "requires": { - "@commitlint/load": ">6.1.1", - "chalk": "^2.4.1", - "commitizen": "^4.0.3", - "conventional-commit-types": "^3.0.0", - "lodash.map": "^4.5.1", - "longest": "^2.0.1", - "word-wrap": "^1.0.3" + "strip-json-comments": "3.1.1" } }, "detect-indent": { - "version": "6.0.0", - "integrity": "sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "dev": true }, - "figures": { - "version": "2.0.0", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, "find-node-modules": { "version": "2.1.2", "integrity": "sha512-x+3P4mbtRPlSiVE1Qco0Z4YLU8WFiFcuWTf3m75OV9Uzcfs2Bg+O9N+r/K0AnmINBW06KpfqKwYJbFlFq4qNug==", @@ -33346,96 +33499,133 @@ } }, "fs-extra": { - "version": "8.1.0", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, "requires": { + "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" } }, "glob": { - "version": "7.1.4", - "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "inquirer": { - "version": "6.5.2", - "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.4.tgz", + "integrity": "sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg==", "dev": true, "requires": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.12", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + } } }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } }, "merge": { "version": "2.1.1", "integrity": "sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w==", "dev": true }, - "rxjs": { - "version": "6.6.7", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } + "mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true }, - "string-width": { - "version": "2.1.1", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", "dev": true, "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" }, "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { - "ansi-regex": "^3.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } } } }, - "strip-ansi": { - "version": "5.2.0", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + } + }, + "rxjs": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz", + "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==", + "dev": true, + "requires": { + "tslib": "^2.1.0" } }, "strip-bom": { @@ -33443,10 +33633,28 @@ "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true }, - "strip-json-comments": { - "version": "3.0.1", - "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", "dev": true + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true + }, + "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, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } } } }, @@ -33939,7 +34147,8 @@ }, "dot-prop": { "version": "3.0.0", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", + "integrity": "sha512-k4ELWeEU3uCcwub7+dWydqQBRjAjkV9L33HjVRG5Xo2QybI6ja/v+4W73SRi8ubCqJz0l9XsTP1NbewfyqaSlw==", "dev": true, "requires": { "is-obj": "^1.0.0" @@ -35430,11 +35639,29 @@ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" }, "filelist": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz", - "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", "requires": { - "minimatch": "^3.0.4" + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "requires": { + "brace-expansion": "^2.0.1" + } + } } }, "filesize": { @@ -36931,10 +37158,11 @@ "integrity": "sha512-RFkfy10hNxJqc7MVAp5iAZq0Tum6msBCNebEe3OelOBvrROvzHUPaR8Qe10RQrOGokTm0W4vJGEJzruFkEt+hQ==" }, "i18next-http-backend": { - "version": "1.3.1", - "integrity": "sha512-o79n4GBBRpl20hByC+ne/S1UaSZ4iGAn59Hu2TEZGjN0WLB72L7WrM39Cshziyrssp6MQfdI8wjToU2Q6kpSvA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/i18next-http-backend/-/i18next-http-backend-1.4.1.tgz", + "integrity": "sha512-s4Q9hK2jS29iyhniMP82z+yYY8riGTrWbnyvsSzi5TaF7Le4E7b5deTmtuaRuab9fdDcYXtcwdBgawZG+JCEjA==", "requires": { - "cross-fetch": "3.1.4" + "cross-fetch": "3.1.5" } }, "i18next-http-middleware": { @@ -37066,8 +37294,9 @@ "dev": true }, "ansi-regex": { - "version": "3.0.0", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "dev": true }, "figures": { @@ -37322,6 +37551,12 @@ } } }, + "is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true + }, "is-lower-case": { "version": "1.1.3", "integrity": "sha1-fhR75HaNxGbbO/shzGCzHmrWk5M=", @@ -37543,7 +37778,7 @@ "isomorphic-fetch": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", - "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "integrity": "sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA==", "requires": { "node-fetch": "^1.0.1", "whatwg-fetch": ">=0.10.0" @@ -37615,20 +37850,24 @@ "integrity": "sha512-Oc1X2wiQtPp39i5VpIjf3GJf5sfCtHKXZ5szx7RareyEeFLUlcEW0FSfBni28+Ul6KNKZRKzhVuWzSP4Xngh0w==" }, "jake": { - "version": "10.8.2", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz", - "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==", + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", "requires": { - "async": "0.9.x", - "chalk": "^2.4.2", + "async": "^3.2.3", + "chalk": "^4.0.2", "filelist": "^1.0.1", "minimatch": "^3.0.4" }, "dependencies": { - "async": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", - "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } } } }, @@ -38483,9 +38722,9 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, "json-schema": { - "version": "0.2.3", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, "json-schema-traverse": { "version": "0.4.1", @@ -38552,13 +38791,14 @@ } }, "jsprim": { - "version": "1.4.1", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" } }, @@ -39453,8 +39693,9 @@ } }, "minimist": { - "version": "1.2.5", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" }, "minimist-options": { "version": "3.0.2", @@ -40413,11 +40654,6 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.9.tgz", "integrity": "sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ==" }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -40733,8 +40969,33 @@ } }, "node-fetch": { - "version": "2.6.1", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "requires": { + "whatwg-url": "^5.0.0" + }, + "dependencies": { + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + } + } }, "node-int64": { "version": "0.4.0", @@ -41052,8 +41313,9 @@ "integrity": "sha1-y480xTIT2JVyP8urkH6UIq28r7E=" }, "nth-check": { - "version": "2.0.0", - "integrity": "sha512-i4sc/Kj8htBrAiH1viZ0TgU8Y5XqCaV/FziYK6TBczxmeKm3AEFWqqF3195yKudrarqy7Zu80Ra5dobFjn9X/Q==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", "dev": true, "requires": { "boolbase": "^1.0.0" @@ -41267,8 +41529,9 @@ }, "dependencies": { "ansi-regex": { - "version": "4.1.0", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", "dev": true }, "log-symbols": { @@ -41942,8 +42205,9 @@ } }, "prismjs": { - "version": "1.25.0", - "integrity": "sha512-WCjJHl1KEWbnkQom1+SzftbtXMKQoezOCYs5rECqMN+jP+apI7ftoflyqigqzopSO3hMhTEb0mFClA8lkolgEg==" + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz", + "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==" }, "process": { "version": "0.11.10", @@ -42972,9 +43236,7 @@ "acorn": { "version": "8.6.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", - "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", - "optional": true, - "peer": true + "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==" }, "serialize-javascript": { "version": "4.0.0", @@ -42984,18 +43246,14 @@ "randombytes": "^2.1.0" } }, - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" - }, "terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.7.2", "source-map-support": "~0.5.20" } } @@ -43442,8 +43700,9 @@ "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" }, "shell-quote": { - "version": "1.7.2", - "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", + "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", "dev": true }, "shelljs": { @@ -43481,9 +43740,9 @@ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==" }, "simple-get": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.0.tgz", - "integrity": "sha512-ZalZGexYr3TA0SwySsr5HlgOOinS4Jsa8YB2GJ6lUNAazyAu4KG/VmzMTwAt2YVXzzVj8QmefmAonZIK2BSGcQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", "requires": { "decompress-response": "^6.0.0", "once": "^1.3.1", @@ -44472,9 +44731,9 @@ } }, "terser": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz", - "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==", + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz", + "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==", "requires": { "commander": "^2.20.0", "source-map": "~0.6.1", @@ -44496,9 +44755,7 @@ "acorn": { "version": "8.7.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", - "optional": true, - "peer": true + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==" }, "jest-worker": { "version": "27.5.1", @@ -44527,20 +44784,14 @@ } }, "terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.7.2", "source-map-support": "~0.5.20" - }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" - } } } } @@ -44779,7 +45030,8 @@ }, "trim-newlines": { "version": "2.0.0", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA==", "dev": true }, "tryer": { @@ -44808,13 +45060,6 @@ "json5": "^1.0.1", "minimist": "^1.2.6", "strip-bom": "^3.0.0" - }, - "dependencies": { - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - } } }, "tslib": { @@ -45262,9 +45507,25 @@ "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==" }, "vm2": { - "version": "3.9.5", - "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.5.tgz", - "integrity": "sha512-LuCAHZN75H9tdrAiLFf030oW7nJV5xwNMuk1ymOZwopmuK3d2H4L1Kv4+GFHgarKiLfXXLFU+7LDABHnwOkWng==" + "version": "3.9.11", + "resolved": "https://registry.npmjs.org/vm2/-/vm2-3.9.11.tgz", + "integrity": "sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg==", + "requires": { + "acorn": "^8.7.0", + "acorn-walk": "^8.2.0" + }, + "dependencies": { + "acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==" + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + } + } }, "void-elements": { "version": "3.1.0", @@ -45307,8 +45568,9 @@ } }, "follow-redirects": { - "version": "1.14.4", - "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz", + "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==", "dev": true }, "rxjs": { @@ -45456,7 +45718,7 @@ "glob-parent": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", "optional": true, "requires": { "is-glob": "^3.1.0", @@ -45707,8 +45969,9 @@ }, "dependencies": { "ansi-regex": { - "version": "3.0.0", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==" }, "is-fullwidth-code-point": { "version": "2.0.0", diff --git a/package.json b/package.json index fe7afdfee..a7cea0c7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coderplanets_web", - "version": "1.0.3", + "version": "1.0.4", "license": "Apache License 2.0", "scripts": { "dev": "cross-env NODE_ENV=dev next dev", diff --git a/src/containers/content/ArticleContent/DesktopView/ArticleLayout.tsx b/src/containers/content/ArticleContent/DesktopView/ArticleLayout.tsx index a92d85444..48d8617ac 100644 --- a/src/containers/content/ArticleContent/DesktopView/ArticleLayout.tsx +++ b/src/containers/content/ArticleContent/DesktopView/ArticleLayout.tsx @@ -68,7 +68,7 @@ const ArticleContentContainer: FC = ({ )} - + = ({ metric, article }) => { - + = ({ value = '', placeholder = '', autoFocus = false, - onChange = console.log, - onBlur = console.log, + onChange = log, + onBlur = log, noRound = false, }) => { const ref = useRef(null) diff --git a/src/containers/content/HaveADrinkContent/Body/index.tsx b/src/containers/content/HaveADrinkContent/Body/index.tsx index 92ce7dcad..1cafd3a2b 100755 --- a/src/containers/content/HaveADrinkContent/Body/index.tsx +++ b/src/containers/content/HaveADrinkContent/Body/index.tsx @@ -7,8 +7,6 @@ import { FC, memo } from 'react' import { AnimateOnChange } from 'react-animation' -import { buildLog } from '@/utils/logger' - import type { TView, TDrinkItem, TSettingOption } from '../spec' import { VIEW } from '../constant' @@ -20,9 +18,6 @@ import Content from './Content' import { Wrapper, SentenceWrapper, Sentence, Hint } from '../styles/body' -/* eslint-disable-next-line */ -const log = buildLog('C:HaveADrinkContent') - type TViewProps = { view: TView drink: TDrinkItem diff --git a/src/containers/content/HaveADrinkContent/Footer/Contributor.tsx b/src/containers/content/HaveADrinkContent/Footer/Contributor.tsx index ebecfba3f..27eecf794 100755 --- a/src/containers/content/HaveADrinkContent/Footer/Contributor.tsx +++ b/src/containers/content/HaveADrinkContent/Footer/Contributor.tsx @@ -6,8 +6,6 @@ import { FC, memo } from 'react' -import { buildLog } from '@/utils/logger' - import { Wrapper, Text, @@ -15,10 +13,6 @@ import { TotalNum, TagText, } from '../styles/footer/contributor' -// import { useInit } from './logic' - -/* eslint-disable-next-line */ -const log = buildLog('C:HaveADrinkContent') const IndexStatus: FC = () => { return ( diff --git a/src/containers/editor/CommunityEditor/Banner/InputBox.tsx b/src/containers/editor/CommunityEditor/Banner/InputBox.tsx index 625aa982b..b786e1536 100755 --- a/src/containers/editor/CommunityEditor/Banner/InputBox.tsx +++ b/src/containers/editor/CommunityEditor/Banner/InputBox.tsx @@ -1,6 +1,8 @@ import { FC, memo, useRef } from 'react' import type { TInput } from '@/spec' +import { buildLog } from '@/utils/logger' + import { Wrapper, InputWrapper, @@ -9,6 +11,8 @@ import { InputBar, } from '../styles/banner/input_box' +const log = buildLog('C:CommunityEditor/InputBox') + type TProps = { showMask?: boolean placeholder?: string @@ -22,7 +26,7 @@ const InputBox: FC = ({ placeholder = '', value = '', onChange, - onBlur = console.log, + onBlur = log, }) => { const ref = useRef(null) diff --git a/src/containers/thread/CperMapThread/GeoMap.js b/src/containers/thread/CperMapThread/GeoMap.js index 691015307..bd6770ebf 100755 --- a/src/containers/thread/CperMapThread/GeoMap.js +++ b/src/containers/thread/CperMapThread/GeoMap.js @@ -10,7 +10,7 @@ import { MapWrapper, RealMap, NoticeWrapper, TheLink } from './styles' import G2 from 'g2' /* eslint-disable-next-line */ -const log = buildLog('c:LocationMap') +const log = buildLog('w:LocationMap') // see example at https://antv.vision/old-site/g2/demo/10-map/map-projection.html class LocationMap extends React.Component { diff --git a/src/containers/thread/DashboardThread/SavingBar.tsx b/src/containers/thread/DashboardThread/SavingBar.tsx index b62e4f980..537465100 100644 --- a/src/containers/thread/DashboardThread/SavingBar.tsx +++ b/src/containers/thread/DashboardThread/SavingBar.tsx @@ -1,6 +1,8 @@ import { FC, memo, Fragment, ReactNode } from 'react' import type { TSpace } from '@/spec' +import { buildLog } from '@/utils/logger' + import { SpaceGrow } from '@/widgets/Common' import YesOrNoButtons from '@/widgets/Buttons/YesOrNoButtons' @@ -16,6 +18,8 @@ import { import { rollbackEdit, onSave } from './logic' +const log = buildLog('C:Dashboard/SavingBar') + type TProps = { field: TSettingField prefix?: string @@ -33,7 +37,7 @@ const SavingBar: FC = ({ children = null, isTouched = false, loading = false, - onCancel = console.log, + onCancel = log, ...restProps }) => { if (children !== null) { diff --git a/src/containers/thread/ThreadSidebar/ClassicLayout/DynamicPart.tsx b/src/containers/thread/ThreadSidebar/ClassicLayout/DynamicPart.tsx index 25083971c..5593c3a41 100644 --- a/src/containers/thread/ThreadSidebar/ClassicLayout/DynamicPart.tsx +++ b/src/containers/thread/ThreadSidebar/ClassicLayout/DynamicPart.tsx @@ -36,7 +36,7 @@ import { } from '../styles/classic_layout' /* eslint-disable-next-line */ -const log = buildLog('c:ClassicSidebar') +const log = buildLog('w:ClassicSidebar') export type TProps = { showCommunityBadge: boolean diff --git a/src/containers/thread/ThreadSidebar/ClassicLayout/index.tsx b/src/containers/thread/ThreadSidebar/ClassicLayout/index.tsx index 4f2bc3923..5686c5754 100644 --- a/src/containers/thread/ThreadSidebar/ClassicLayout/index.tsx +++ b/src/containers/thread/ThreadSidebar/ClassicLayout/index.tsx @@ -20,7 +20,7 @@ import type { TBaseProps } from '../index' import { Wrapper } from '../styles/classic_layout' /* eslint-disable-next-line */ -const log = buildLog('c:ClassicSidebar') +const log = buildLog('w:ClassicSidebar') export type TProps = { showCommunityBadge: boolean diff --git a/src/containers/tool/ArticleSticker/CommentSticker.tsx b/src/containers/tool/ArticleSticker/CommentSticker.tsx index fc2a243b8..048aba226 100644 --- a/src/containers/tool/ArticleSticker/CommentSticker.tsx +++ b/src/containers/tool/ArticleSticker/CommentSticker.tsx @@ -27,7 +27,7 @@ import { } from './styles/comment_sticker' /* eslint-disable-next-line */ -const log = buildLog('c:CommentSticker:index') +const log = buildLog('w:CommentSticker:index') type TProps = { show: boolean diff --git a/src/containers/tool/C11NSettingPanel/ThemeSettings.tsx b/src/containers/tool/C11NSettingPanel/ThemeSettings.tsx index f6c90bfed..e82a8e118 100644 --- a/src/containers/tool/C11NSettingPanel/ThemeSettings.tsx +++ b/src/containers/tool/C11NSettingPanel/ThemeSettings.tsx @@ -9,7 +9,7 @@ import NoticeBar from '@/widgets/NoticeBar' import { Wrapper } from './styles/theme_settings' // import { changeTheme } from './logic' -const log = buildLog('c:ThemeSettings') +const log = buildLog('w:ThemeSettings') type TProps = { curTheme: TThemeName diff --git a/src/containers/tool/Cashier/constant.ts b/src/containers/tool/Cashier/constant.ts new file mode 100644 index 000000000..0dbf5ed30 --- /dev/null +++ b/src/containers/tool/Cashier/constant.ts @@ -0,0 +1,19 @@ +import type { TContentView, TSubContentView, TAmount } from './spec' + +export const SIDEBAR_VIEW = { + PAY: 'pay' as TContentView, + QUESTION: 'question' as TContentView, +} + +export const SUBCONTENT_VIEW = { + PAY: 'pay' as TSubContentView, + CONFIRM: 'question' as TSubContentView, +} + +export const AMOUNT = { + 10.24: '10.24' as TAmount, + 51.2: '51.2' as TAmount, + 102.4: '102.4' as TAmount, + 512: '512' as TAmount, + 1024: '1024' as TAmount, +} diff --git a/src/containers/tool/Cashier/index.tsx b/src/containers/tool/Cashier/index.tsx index 826564e0b..5dff90f3c 100755 --- a/src/containers/tool/Cashier/index.tsx +++ b/src/containers/tool/Cashier/index.tsx @@ -11,7 +11,6 @@ import { bond } from '@/utils/mobx' import Modal from '@/widgets/Modal' -import type { TContentView, TAmount, TSubContentView } from './spec' import Sidebar from './Sidebar' import Content from './Content' @@ -43,15 +42,15 @@ const CashierContainer: FC = ({ cashier: store }) => { diff --git a/src/containers/tool/Cashier/store.ts b/src/containers/tool/Cashier/store.ts index 01c7e7596..95b7cd499 100755 --- a/src/containers/tool/Cashier/store.ts +++ b/src/containers/tool/Cashier/store.ts @@ -11,20 +11,22 @@ import type { TRootStore, TAccount } from '@/spec' import { PAYMENT_USAGE, PAYMENT_METHOD } from '@/constant' import { markStates } from '@/utils/mobx' +import { AMOUNT, SIDEBAR_VIEW, SUBCONTENT_VIEW } from './constant' + const Cashier = T.model('Cashier', { show: T.optional(T.boolean, false), transferAccount: T.optional(T.string, ''), sidebarView: T.optional( - T.enumeration('sideView', ['pay', 'question']), - 'pay', + T.enumeration('sideView', values(SIDEBAR_VIEW)), + SIDEBAR_VIEW.PAY, ), contentView: T.optional( - T.enumeration('contentView', ['pay', 'question']), - 'pay', + T.enumeration('contentView', values(SIDEBAR_VIEW)), + SIDEBAR_VIEW.PAY, ), subContentView: T.optional( - T.enumeration('subContentView', ['pay', 'confirm']), - 'pay', + T.enumeration('subContentView', values(SUBCONTENT_VIEW)), + SUBCONTENT_VIEW.PAY, ), paymentMethod: T.optional( T.enumeration('paymentMethod', values(PAYMENT_METHOD)), @@ -34,10 +36,7 @@ const Cashier = T.model('Cashier', { T.enumeration('paymentUsage', values(PAYMENT_USAGE)), PAYMENT_USAGE.SENIOR, ), - amount: T.optional( - T.enumeration('amount', ['10.24', '51.2', '102.4', '512', '1024']), - '10.24', - ), + amount: T.optional(T.enumeration('amount', values(AMOUNT)), AMOUNT['10.24']), }) .views((self) => ({ get accountInfo(): TAccount { diff --git a/src/containers/tool/CommunityTagSetter/CommunitySetter/index.tsx b/src/containers/tool/CommunityTagSetter/CommunitySetter/index.tsx index be436874f..44a3bc8a0 100644 --- a/src/containers/tool/CommunityTagSetter/CommunitySetter/index.tsx +++ b/src/containers/tool/CommunityTagSetter/CommunitySetter/index.tsx @@ -17,7 +17,7 @@ import type { TCommunityView, TCommunitiesList, TType, TTexts } from '../spec' import { Wrapper } from '../styles/tag_setter' /* eslint-disable-next-line */ -const log = buildLog('c:TagList:index') +const log = buildLog('w:TagList:index') export type TProps = { type: TType diff --git a/src/containers/tool/CommunityTagSetter/TagSetter/index.tsx b/src/containers/tool/CommunityTagSetter/TagSetter/index.tsx index 12da3771a..f6b228e6f 100644 --- a/src/containers/tool/CommunityTagSetter/TagSetter/index.tsx +++ b/src/containers/tool/CommunityTagSetter/TagSetter/index.tsx @@ -18,7 +18,7 @@ import type { TTagsList, TTagView } from '../spec' import { Wrapper } from '../styles/tag_setter' /* eslint-disable-next-line */ -const log = buildLog('c:TagList:index') +const log = buildLog('w:TagList:index') export type TProps = { view: TTagView diff --git a/src/containers/tool/Drawer/dynamics.tsx b/src/containers/tool/Drawer/dynamics.tsx index 94523dae9..52fc81c3b 100755 --- a/src/containers/tool/Drawer/dynamics.tsx +++ b/src/containers/tool/Drawer/dynamics.tsx @@ -14,12 +14,6 @@ const CommonLoading = () => { ) } -// common style loading config -const commonConfig = { - loading: () => , - ssr: false, -} - // editor style loading config // const editorConfig = { // // @ts-ignore diff --git a/src/containers/tool/JoinModal/store.ts b/src/containers/tool/JoinModal/store.ts index cfe950c04..6cb5cf939 100755 --- a/src/containers/tool/JoinModal/store.ts +++ b/src/containers/tool/JoinModal/store.ts @@ -10,13 +10,11 @@ import { markStates } from '@/utils/mobx' const JoinModal = T.model('JoinModal', { show: T.optional(T.boolean, false), activeGroup: T.optional(T.string, 'IN'), -}) - .views((self) => ({})) - .actions((self) => ({ - mark(sobj) { - markStates(sobj, self) - }, - })) +}).actions((self) => ({ + mark(sobj) { + markStates(sobj, self) + }, +})) export type TStore = Instance export default JoinModal diff --git a/src/containers/tool/Share/index.tsx b/src/containers/tool/Share/index.tsx index d7c073e23..73c243e91 100755 --- a/src/containers/tool/Share/index.tsx +++ b/src/containers/tool/Share/index.tsx @@ -22,7 +22,6 @@ const log = buildLog('C:Share') type TProps = { share?: TStore - testid?: string size?: number offsetLeft?: string } & TSpace @@ -31,7 +30,6 @@ let Panel = null const ShareContainer: FC = ({ share: store, - testid = 'share', offsetLeft = 'none', ...restProps }) => { diff --git a/src/containers/unit/ArticleFooter/Panel/AuthorInfo/index.tsx b/src/containers/unit/ArticleFooter/Panel/AuthorInfo/index.tsx index 90ea887ab..09390896f 100644 --- a/src/containers/unit/ArticleFooter/Panel/AuthorInfo/index.tsx +++ b/src/containers/unit/ArticleFooter/Panel/AuthorInfo/index.tsx @@ -28,7 +28,7 @@ import { // import { onFollow, undoFollow } from '../logic' /* eslint-disable-next-line */ -const log = buildLog('c:AuthorInfo:index') +const log = buildLog('w:AuthorInfo:index') type TProps = { testid?: string diff --git a/src/containers/unit/ArticleFooter/Panel/index.tsx b/src/containers/unit/ArticleFooter/Panel/index.tsx index cb95f127f..be827bdb2 100644 --- a/src/containers/unit/ArticleFooter/Panel/index.tsx +++ b/src/containers/unit/ArticleFooter/Panel/index.tsx @@ -28,7 +28,7 @@ import { // import { onFollow, undoFollow } from '../logic' /* eslint-disable-next-line */ -const log = buildLog('c:AuthorInfo:index') +const log = buildLog('w:AuthorInfo:index') type TProps = { testid?: string diff --git a/src/containers/unit/ArticleFooter/index.tsx b/src/containers/unit/ArticleFooter/index.tsx index ab2cea36b..f7892a2d5 100755 --- a/src/containers/unit/ArticleFooter/index.tsx +++ b/src/containers/unit/ArticleFooter/index.tsx @@ -4,10 +4,7 @@ * */ -import { FC, useState } from 'react' - -import type { TMetric } from '@/spec' -import { METRIC } from '@/constant' +import { FC } from 'react' import { buildLog } from '@/utils/logger' import { bond } from '@/utils/mobx' @@ -27,20 +24,16 @@ const log = buildLog('C:ArticleFooter') type TProps = { articleFooter?: TStore testid?: string - metric?: TMetric } const ArticleFooterContainer: FC = ({ articleFooter: store, testid = 'article-footer', - metric = METRIC.ARTICLE, }) => { useInit(store) const { viewingArticle } = store const { author, articleTags } = viewingArticle - const [cat, setCat] = useState('feature') - return ( diff --git a/src/containers/unit/Comments/Comment/Actions.tsx b/src/containers/unit/Comments/Comment/Actions.tsx index 8ee792263..68fdfb784 100755 --- a/src/containers/unit/Comments/Comment/Actions.tsx +++ b/src/containers/unit/Comments/Comment/Actions.tsx @@ -3,6 +3,7 @@ import { FC, memo, useCallback } from 'react' import type { TComment } from '@/spec' import { ICON } from '@/config' import { useAccount } from '@/hooks' +import { buildLog } from '@/utils/logger' import { authWarn } from '@/utils/helper' @@ -13,6 +14,8 @@ import { SpaceGrow } from '@/widgets/Common' import { Wrapper, ReplyAction, MoreWrapper } from '../styles/comment/actions' import { openUpdateEditor, openReplyEditor } from '../logic' +const log = buildLog('C:CommentAction') + const menuOptions = [ // { // key: 'quote', @@ -61,19 +64,19 @@ const Actions: FC = ({ data }) => { switch (key) { case 'share': { - return alert('todo: share') + return log('todo: share') } case 'quote': { - return alert('todo: quote') + return log('todo: quote') } case 'report': { - return alert('todo: report') + return log('todo: report') } case 'edit': { return openUpdateEditor(data) } case 'delete': { - return alert('todo: delete') + return log('todo: delete') } default: { // eslint-disable-next-line no-useless-return diff --git a/src/containers/unit/Comments/HeadBar/StateBar/index.tsx b/src/containers/unit/Comments/HeadBar/StateBar/index.tsx index c1bc68045..9d674eebc 100644 --- a/src/containers/unit/Comments/HeadBar/StateBar/index.tsx +++ b/src/containers/unit/Comments/HeadBar/StateBar/index.tsx @@ -1,7 +1,6 @@ import { FC, memo } from 'react' -import type { TCommentsState } from '@/spec' - +import { buildLog } from '@/utils/logger' import { LineDivider } from '@/widgets/Common' import Button from '@/widgets/Buttons/Button' import { LavaLampLoading } from '@/widgets/Loading' @@ -18,6 +17,8 @@ import { EditIcon, } from '../../styles/head_bar/state_bar' +const log = buildLog('C:HeaderBar') + type TProps = Pick< TBase, 'mode' | 'apiMode' | 'isAllFolded' | 'loading' | 'basicState' @@ -29,7 +30,7 @@ const StateBar: FC = ({ isAllFolded, loading, apiMode, - callEditor = console.log, + callEditor = log, }) => { return ( diff --git a/src/containers/unit/Comments/store.ts b/src/containers/unit/Comments/store.ts index 876a81302..b1eace0bf 100755 --- a/src/containers/unit/Comments/store.ts +++ b/src/containers/unit/Comments/store.ts @@ -230,11 +230,9 @@ const CommentsStore = T.model('CommentsStore', { }, updateMentionList(mentionArray): void { - console.log('TODO: updateMentionList') // const curMentionList = clone(self.mentionList) // const uniqList = concat(curMentionList, mentionArray) // const mentionList = map(mentionMapper, uniqList) - // @ts-ignore // self.mentionList = uniq(concat(mentionList, self.participators)) }, diff --git a/src/containers/unit/Footer/logic.ts b/src/containers/unit/Footer/logic.ts index f807c15d5..2cd3876a1 100755 --- a/src/containers/unit/Footer/logic.ts +++ b/src/containers/unit/Footer/logic.ts @@ -6,7 +6,6 @@ import { EVENT } from '@/constant' import asyncSuit from '@/utils/async' import { send, Global, sessionChanged } from '@/utils/helper' import { buildLog } from '@/utils/logger' -import uid from '@/utils/uid' import S from './schema' import type { TStore } from './store' @@ -34,13 +33,13 @@ export const toggleSponsorHelper = (): void => export const onLogin = (): void => store.authWarning({ hideToast: true }) export const queryDoraemon = (data): void => send(EVENT.QUERY_DORAMON, { data }) -const getOnlineStatus = (): void => { - sr71$.query(S.onlineStatus, { freshkey: uid.gen() }) +// const getOnlineStatus = (): void => { +// sr71$.query(S.onlineStatus, { freshkey: uid.gen() }) - setInterval(() => { - sr71$.query(S.onlineStatus, { freshkey: uid.gen() }) - }, 10000) -} +// setInterval(() => { +// sr71$.query(S.onlineStatus, { freshkey: uid.gen() }) +// }, 10000) +// } export const checkSessionState = (): void => sr71$.query(S.sessionState, {}) diff --git a/src/containers/unit/Header/logic.ts b/src/containers/unit/Header/logic.ts index 5a98d5992..90b677282 100755 --- a/src/containers/unit/Header/logic.ts +++ b/src/containers/unit/Header/logic.ts @@ -25,7 +25,9 @@ const sr71$ = new SR71({ let store: TStore | undefined let sub$ = null -export const previewAccount = (): void => console.log('TODO: ') +export const previewAccount = (): void => { + // TODO: +} // to avoid page-cache in server export const checkSessionState = (): void => sr71$.query(S.sessionState, {}) diff --git a/src/containers/unit/ModeLine/store.ts b/src/containers/unit/ModeLine/store.ts index 0e004fca7..f74c4f176 100755 --- a/src/containers/unit/ModeLine/store.ts +++ b/src/containers/unit/ModeLine/store.ts @@ -15,7 +15,7 @@ const ModeLine = T.model('ModeLine', { activeMenu: T.optional(T.enumeration([...values(TYPE.MM_TYPE), '']), ''), metric: T.optional(T.enumeration(values(METRIC)), METRIC.COMMUNITY), }) - .views((self: any) => ({ + .views((self) => ({ get isMobile(): boolean { const root = getParent(self) as TRootStore return root.isMobile @@ -32,8 +32,10 @@ const ModeLine = T.model('ModeLine', { return toJS(root.viewing) }, get isTopBarVisiable(): boolean { + const slf = self as TStore + const { isMobile, topBarVisiable, metric, isArticleDigestInViewport } = - self + slf const root = getParent(self) as TRootStore const { bodyScrollDirection } = root.globalLayout @@ -56,25 +58,6 @@ const ModeLine = T.model('ModeLine', { return toJS(root.viewingArticle) }, get leftOffset(): number | string { - const root = getParent(self) as TRootStore - const curSidebarPin = root.sidebar.pin - if ( - (!curSidebarPin && !self.preSidebarPin && !self.fixed) || - (!curSidebarPin && !self.preSidebarPin) || - (curSidebarPin && !self.preSidebarPin && !self.fixed) || - (curSidebarPin && self.preSidebarPin && self.fixed) || - (curSidebarPin && self.preSidebarPin && !self.fixed) || - (!curSidebarPin && self.preSidebarPin && !self.fixed) - ) { - return 0 - } - - // 特殊情况: 当 sidebar 打开时下滑页面, 需要一个 preSidebarPin 的中间状态 - if (!curSidebarPin && self.preSidebarPin && self.fixed) { - return '-180px' - } - - // isPin && !self.preSidebarPin && self.fixed return '180px' }, get isMenuActive(): boolean { @@ -85,7 +68,9 @@ const ModeLine = T.model('ModeLine', { return root.articleDigest.inViewport }, get isCommunityBlockExpand(): boolean { - const { isArticleDigestInViewport } = self + const slf = self as TStore + + const { isArticleDigestInViewport } = slf if (!isArticleDigestInViewport) return false diff --git a/src/containers/user/UserLister/List/index.tsx b/src/containers/user/UserLister/List/index.tsx index 65d80aa3a..930d9fb38 100644 --- a/src/containers/user/UserLister/List/index.tsx +++ b/src/containers/user/UserLister/List/index.tsx @@ -18,7 +18,7 @@ import NormalLayout from './NormalLayout' import { onPageChange } from '../logic' /* eslint-disable-next-line */ -const log = buildLog('c:UserList:index') +const log = buildLog('w:UserList:index') type TProps = { type: string diff --git a/src/containers/viewer/ArticleViewer/BlogViewer/index.tsx b/src/containers/viewer/ArticleViewer/BlogViewer/index.tsx index a594bdc60..dbc03bee8 100644 --- a/src/containers/viewer/ArticleViewer/BlogViewer/index.tsx +++ b/src/containers/viewer/ArticleViewer/BlogViewer/index.tsx @@ -6,7 +6,6 @@ import { FC, memo, Fragment, useCallback, useState } from 'react' import type { TBlog, TBlogRSS } from '@/spec' import { buildLog } from '@/utils/logger' -import { METRIC } from '@/constant' import ViewportTracker from '@/widgets/ViewportTracker' import { ArticleContentLoading } from '@/widgets/Loading' @@ -53,7 +52,7 @@ const BlogViewer: FC = ({ article, loading, tab, blogRssInfo }) => { )} - + ) diff --git a/src/containers/viewer/ArticleViewer/WorksViewer/Content.tsx b/src/containers/viewer/ArticleViewer/WorksViewer/Content.tsx index ff58bdc3d..32bed5262 100644 --- a/src/containers/viewer/ArticleViewer/WorksViewer/Content.tsx +++ b/src/containers/viewer/ArticleViewer/WorksViewer/Content.tsx @@ -1,6 +1,6 @@ import { FC, memo } from 'react' import type { TWorks } from '@/spec' -import { METRIC, WORKS_TAB } from '@/constant' +import { WORKS_TAB } from '@/constant' import { classifyTechstack } from '@/utils/helper' @@ -32,7 +32,7 @@ const Content: FC = ({ article, tab }) => { return (
- +
) } diff --git a/src/containers/viewer/ArticleViewer/store.ts b/src/containers/viewer/ArticleViewer/store.ts index d83dd5270..cb96d9e8c 100755 --- a/src/containers/viewer/ArticleViewer/store.ts +++ b/src/containers/viewer/ArticleViewer/store.ts @@ -79,7 +79,6 @@ const ArticleViewer = T.model('ArticleViewer', { syncArticle(item): void { const root = getParent(self) as TRootStore if (self.activeThread === THREAD.WORKS) { - console.log('TODO: syncArticle for WORKS ') return } root.articlesThread.updateArticle(item) diff --git a/src/hoc/withGuardian.js b/src/hoc/withGuardian.js index 3cf872e29..d0ff8b947 100755 --- a/src/hoc/withGuardian.js +++ b/src/hoc/withGuardian.js @@ -14,7 +14,7 @@ import { nilOrEmpty } from '@/utils/validator' import { buildLog } from '@/utils/logger' /* eslint-disable-next-line */ -const log = buildLog('c:Guardian:index') +const log = buildLog('w:Guardian:index') const getDisplayName = (WrappedComp) => WrappedComp.displayName || WrappedComp.name || 'Component' @@ -57,8 +57,7 @@ const withGuardian = (WrappedComponent) => { isValid = !!path(checkPath, accountPassports) } - // this.state = { isValid } - this.state = { isValid: true } + this.state = { isValid } } renderWappedChild() { diff --git a/src/widgets/AdminAvatar/index.tsx b/src/widgets/AdminAvatar/index.tsx index 0f45594aa..a37be4017 100644 --- a/src/widgets/AdminAvatar/index.tsx +++ b/src/widgets/AdminAvatar/index.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Avatar, BadgeWrapper, BadgeIcon } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:AdminAvatar:index') +const log = buildLog('w:AdminAvatar:index') type TProps = { testid?: string diff --git a/src/widgets/ArchiveAlert/index.tsx b/src/widgets/ArchiveAlert/index.tsx index 482c0be4f..fa360d657 100755 --- a/src/widgets/ArchiveAlert/index.tsx +++ b/src/widgets/ArchiveAlert/index.tsx @@ -12,7 +12,7 @@ import NoticeBar from '@/widgets/NoticeBar' import { buildLog } from '@/utils/logger' /* eslint-disable-next-line */ -const log = buildLog('c:ArchiveAlert:index') +const log = buildLog('w:ArchiveAlert:index') type TProps = { date?: string diff --git a/src/widgets/ArticleActionsPanel/index.js b/src/widgets/ArticleActionsPanel/index.js index a4a89e0ae..9a4b645f6 100755 --- a/src/widgets/ArticleActionsPanel/index.js +++ b/src/widgets/ArticleActionsPanel/index.js @@ -19,7 +19,7 @@ import DeleteOption from './DeleteOption' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticleActionsPanel:index') +const log = buildLog('w:ArticleActionsPanel:index') const ArticleActionsPanel = ({ data, diff --git a/src/widgets/ArticleCatState/index.tsx b/src/widgets/ArticleCatState/index.tsx index 668626b03..e9208ed9d 100644 --- a/src/widgets/ArticleCatState/index.tsx +++ b/src/widgets/ArticleCatState/index.tsx @@ -16,7 +16,7 @@ import Label from './Label' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticleCatState:index') +const log = buildLog('w:ArticleCatState:index') export type TProps = { testid?: string diff --git a/src/widgets/ArticleEditFooter/index.js b/src/widgets/ArticleEditFooter/index.js index 6f6ee70bb..f0c12b948 100755 --- a/src/widgets/ArticleEditFooter/index.js +++ b/src/widgets/ArticleEditFooter/index.js @@ -15,7 +15,7 @@ import { Space } from '@/widgets/Common' import { Wrapper, RespectText, PublishButtons, Divider } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticleEditFooter:index') +const log = buildLog('w:ArticleEditFooter:index') const DoingText = ({ isEdit }) => { return isEdit ? <>更新 : <>发布 diff --git a/src/widgets/ArticleImgWindow/index.tsx b/src/widgets/ArticleImgWindow/index.tsx index 29dc7250e..34da617e0 100755 --- a/src/widgets/ArticleImgWindow/index.tsx +++ b/src/widgets/ArticleImgWindow/index.tsx @@ -11,7 +11,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Block } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticleImgWindow:index') +const log = buildLog('w:ArticleImgWindow:index') type TProps = { testid?: string diff --git a/src/widgets/ArticlePinLabel/index.tsx b/src/widgets/ArticlePinLabel/index.tsx index f388cc5ad..78127d98b 100755 --- a/src/widgets/ArticlePinLabel/index.tsx +++ b/src/widgets/ArticlePinLabel/index.tsx @@ -10,7 +10,7 @@ import { buildLog } from '@/utils/logger' import { PinIcon } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticlePinLabel:index') +const log = buildLog('w:ArticlePinLabel:index') export type TProps = { top?: number diff --git a/src/widgets/ArticleReadLabel/index.tsx b/src/widgets/ArticleReadLabel/index.tsx index 892b5c596..afb494014 100755 --- a/src/widgets/ArticleReadLabel/index.tsx +++ b/src/widgets/ArticleReadLabel/index.tsx @@ -11,7 +11,7 @@ import { useAccount } from '@/hooks' import { ReadedLabel } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticleReadLabel:index') +const log = buildLog('w:ArticleReadLabel:index') export type TProps = { top?: number diff --git a/src/widgets/ArticlesFilter/DesktopView.tsx b/src/widgets/ArticlesFilter/DesktopView.tsx index e1c93bda8..1f14feb5b 100644 --- a/src/widgets/ArticlesFilter/DesktopView.tsx +++ b/src/widgets/ArticlesFilter/DesktopView.tsx @@ -24,7 +24,7 @@ import SelectedFilters from './SelectedFilters' import { Wrapper, MainFilterWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArticlesFilter:index') +const log = buildLog('w:ArticlesFilter:index') type TProps = { activeFilter: TArticleFilter diff --git a/src/widgets/ArticlesFilter/index.tsx b/src/widgets/ArticlesFilter/index.tsx index 46ff9e530..26727e782 100755 --- a/src/widgets/ArticlesFilter/index.tsx +++ b/src/widgets/ArticlesFilter/index.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import DesktopView from './DesktopView' /* eslint-disable-next-line */ -const log = buildLog('c:ArticlesFilter:index') +const log = buildLog('w:ArticlesFilter:index') const ArticlesFilter = (props) => { return {!isMobile && } diff --git a/src/widgets/ArtimentBody/index.tsx b/src/widgets/ArtimentBody/index.tsx index 29ee3302b..9f070738d 100755 --- a/src/widgets/ArtimentBody/index.tsx +++ b/src/widgets/ArtimentBody/index.tsx @@ -13,7 +13,7 @@ import { Br } from '@/widgets/Common' import { Wrapper, Body, HTML } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ArtimentBody:index') +const log = buildLog('w:ArtimentBody:index') type TProps = { testid?: string diff --git a/src/widgets/BannerNotify/index.tsx b/src/widgets/BannerNotify/index.tsx index 32672e0a3..9f941e734 100644 --- a/src/widgets/BannerNotify/index.tsx +++ b/src/widgets/BannerNotify/index.tsx @@ -23,7 +23,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:BannerNotify:index') +const log = buildLog('w:BannerNotify:index') type TProps = { testid?: string diff --git a/src/widgets/BlinkCursor/index.tsx b/src/widgets/BlinkCursor/index.tsx index b0bf6868e..8868389dd 100755 --- a/src/widgets/BlinkCursor/index.tsx +++ b/src/widgets/BlinkCursor/index.tsx @@ -12,7 +12,7 @@ import type { TSpace } from '@/spec' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:BlinkCursor:index') +const log = buildLog('w:BlinkCursor:index') type TProps = { testid?: string diff --git a/src/widgets/BlogItem/index.tsx b/src/widgets/BlogItem/index.tsx index c1d83bbec..425b66127 100755 --- a/src/widgets/BlogItem/index.tsx +++ b/src/widgets/BlogItem/index.tsx @@ -16,7 +16,7 @@ import MobileView from './MobileView' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:BlogItem:index') +const log = buildLog('w:BlogItem:index') type TProps = { curCommunity?: TCommunity | null diff --git a/src/widgets/BrandTitle/index.tsx b/src/widgets/BrandTitle/index.tsx index 780b1ada9..8fc18cdc2 100755 --- a/src/widgets/BrandTitle/index.tsx +++ b/src/widgets/BrandTitle/index.tsx @@ -12,7 +12,7 @@ import { SpaceGrow } from '@/widgets/Common' import { Wrapper, Title, Desc, BrandText } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:BrandTitle:index') +const log = buildLog('w:BrandTitle:index') type TProps = { testid?: string diff --git a/src/widgets/Buttons/AddButton.tsx b/src/widgets/Buttons/AddButton.tsx index f8f7d12ca..51225c404 100644 --- a/src/widgets/Buttons/AddButton.tsx +++ b/src/widgets/Buttons/AddButton.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, PlusIcon, Text } from './styles/add_button' /* eslint-disable-next-line */ -const log = buildLog('c:Buttons:AddButton') +const log = buildLog('w:Buttons:AddButton') type TProps = { children?: ReactNode diff --git a/src/widgets/Buttons/ArrowButton.tsx b/src/widgets/Buttons/ArrowButton.tsx index c5e8a5a2d..5c113a3b4 100755 --- a/src/widgets/Buttons/ArrowButton.tsx +++ b/src/widgets/Buttons/ArrowButton.tsx @@ -14,7 +14,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Text, LeftIcon, RightIcon } from './styles/arrow_button' /* eslint-disable-next-line */ -const log = buildLog('c:Buttons:ArrowButton') +const log = buildLog('w:Buttons:ArrowButton') type TProps = { children?: ReactNode diff --git a/src/widgets/Buttons/ArrowLink.tsx b/src/widgets/Buttons/ArrowLink.tsx index 170b4d0cc..3fa8400c7 100644 --- a/src/widgets/Buttons/ArrowLink.tsx +++ b/src/widgets/Buttons/ArrowLink.tsx @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Text, RightIcon } from './styles/arrow_link' /* eslint-disable-next-line */ -const log = buildLog('c:Buttons:ArrowLink') +const log = buildLog('w:Buttons:ArrowLink') type TProps = { className?: string diff --git a/src/widgets/Buttons/Button.tsx b/src/widgets/Buttons/Button.tsx index 0dd9aec6f..48542e743 100644 --- a/src/widgets/Buttons/Button.tsx +++ b/src/widgets/Buttons/Button.tsx @@ -8,7 +8,7 @@ import { LavaLampLoading } from '@/widgets/Loading' import { Wrapper, RedWrapper, ChildrenWrapper } from './styles/button' /* eslint-disable-next-line */ -const log = buildLog('c:Buttons:Button') +const log = buildLog('w:Buttons:Button') type TProps = { children?: ReactNode diff --git a/src/widgets/Buttons/FancyPublishButton.tsx b/src/widgets/Buttons/FancyPublishButton.tsx index f6ced432b..527780565 100755 --- a/src/widgets/Buttons/FancyPublishButton.tsx +++ b/src/widgets/Buttons/FancyPublishButton.tsx @@ -19,7 +19,7 @@ import { } from './styles/fancy_publish_button' /* eslint-disable-next-line */ -const log = buildLog('c:PublishButton:index') +const log = buildLog('w:PublishButton:index') type TProps = { label?: string diff --git a/src/widgets/Buttons/FollowButton/index.tsx b/src/widgets/Buttons/FollowButton/index.tsx index 8772d9212..e49eb4d92 100644 --- a/src/widgets/Buttons/FollowButton/index.tsx +++ b/src/widgets/Buttons/FollowButton/index.tsx @@ -15,7 +15,7 @@ import FollowingBtn from './FollowingBtn' import FollowedBtn from './FollowedBtn' /* eslint-disable-next-line */ -const log = buildLog('c:FollowButton:index') +const log = buildLog('w:FollowButton:index') type TProps = { hasFollowed?: boolean diff --git a/src/widgets/Buttons/IconButton.tsx b/src/widgets/Buttons/IconButton.tsx index 9da1d2476..2ea4b8cd6 100644 --- a/src/widgets/Buttons/IconButton.tsx +++ b/src/widgets/Buttons/IconButton.tsx @@ -3,6 +3,7 @@ import { FC, memo, ReactNode } from 'react' import type { TSpace } from '@/spec' import { ICON } from '@/config' import { SVG } from '@/constant' +import { buildLog } from '@/utils/logger' import Tooltip from '@/widgets/Tooltip' import { @@ -14,6 +15,8 @@ import { HoverBg, } from './styles/icon_button' +const log = buildLog('w:IconButton') + export type TProps = { path?: string | null icon?: string | null @@ -35,7 +38,7 @@ const IconButton: FC = ({ hint = null, hintDelay = 500, hintPlacement = 'top', - onClick = console.log, + onClick = log, ...restProps }) => { let realIcon = null diff --git a/src/widgets/Buttons/NotifyButton/index.tsx b/src/widgets/Buttons/NotifyButton/index.tsx index 89980cbbb..c046413e9 100644 --- a/src/widgets/Buttons/NotifyButton/index.tsx +++ b/src/widgets/Buttons/NotifyButton/index.tsx @@ -22,7 +22,7 @@ import { } from '../styles/notify_button' /* eslint-disable-next-line */ -const log = buildLog('c:NotifyButton:index') +const log = buildLog('w:NotifyButton:index') type TProps = { testid?: string diff --git a/src/widgets/Buttons/OrButton/HorizontalButton.tsx b/src/widgets/Buttons/OrButton/HorizontalButton.tsx index 4ac185372..bdef6dcf5 100644 --- a/src/widgets/Buttons/OrButton/HorizontalButton.tsx +++ b/src/widgets/Buttons/OrButton/HorizontalButton.tsx @@ -1,8 +1,9 @@ import { FC } from 'react' -import type { TProps as TButtonProps } from './index' import { SIZE } from '@/constant' +import { buildLog } from '@/utils/logger' +import type { TProps as TButtonProps } from './index' import { Wrapper, LeftButton, @@ -10,10 +11,12 @@ import { RightButton, } from '../styles/or_button/horizontal_button' +const log = buildLog('w:HorizontalButton') + type TProps = Omit const HorizontalButton: FC = ({ - onClick = console.log, + onClick = log, size = SIZE.SMALL, activeKey, group = [ diff --git a/src/widgets/Buttons/OrButton/VerticalButton.tsx b/src/widgets/Buttons/OrButton/VerticalButton.tsx index f1c4b9367..91d7ff5e8 100644 --- a/src/widgets/Buttons/OrButton/VerticalButton.tsx +++ b/src/widgets/Buttons/OrButton/VerticalButton.tsx @@ -1,8 +1,9 @@ import { FC } from 'react' -import type { TProps as TButtonProps } from './index' import { SIZE } from '@/constant' +import { buildLog } from '@/utils/logger' +import type { TProps as TButtonProps } from './index' import { Wrapper, UpButton, @@ -10,10 +11,12 @@ import { BottomButton, } from '../styles/or_button/vertical_button' +const log = buildLog('w:VericalButton') + type TProps = Omit const VerticalButton: FC = ({ - onClick = console.log, + onClick = log, size = SIZE.SMALL, activeKey, group = [ diff --git a/src/widgets/Buttons/PublishButton/PostLayout.tsx b/src/widgets/Buttons/PublishButton/PostLayout.tsx index 3ad140d4d..4c9fd4186 100644 --- a/src/widgets/Buttons/PublishButton/PostLayout.tsx +++ b/src/widgets/Buttons/PublishButton/PostLayout.tsx @@ -13,7 +13,7 @@ import { SpaceGrow } from '@/widgets/Common' import { Wrapper, Title, EditIcon } from '../styles/publish_button/post_layout' /* eslint-disable-next-line */ -const log = buildLog('c:PublishButton:index') +const log = buildLog('w:PublishButton:index') type TProps = { text: string diff --git a/src/widgets/Buttons/PublishButton/WorksLayout.tsx b/src/widgets/Buttons/PublishButton/WorksLayout.tsx index 50f7c45b6..6022c795e 100644 --- a/src/widgets/Buttons/PublishButton/WorksLayout.tsx +++ b/src/widgets/Buttons/PublishButton/WorksLayout.tsx @@ -16,7 +16,7 @@ import { } from '../styles/publish_button/works_layout' /* eslint-disable-next-line */ -const log = buildLog('c:PublishButton:index') +const log = buildLog('w:PublishButton:index') type TProps = { text: string diff --git a/src/widgets/Buttons/PublishButton/index.tsx b/src/widgets/Buttons/PublishButton/index.tsx index 40715f65a..dc4f83d2d 100644 --- a/src/widgets/Buttons/PublishButton/index.tsx +++ b/src/widgets/Buttons/PublishButton/index.tsx @@ -26,7 +26,7 @@ import { Wrapper, PubButton, MoreOption } from '../styles/publish_button' import { getTargetPage, getText } from './helper' /* eslint-disable-next-line */ -const log = buildLog('c:PublishButton:index') +const log = buildLog('w:PublishButton:index') type TProps = { thread?: TThread diff --git a/src/widgets/Buttons/SubmitButton.tsx b/src/widgets/Buttons/SubmitButton.tsx index 60e5b8686..165a180ce 100644 --- a/src/widgets/Buttons/SubmitButton.tsx +++ b/src/widgets/Buttons/SubmitButton.tsx @@ -8,7 +8,7 @@ import Button from './Button' import { DonwWrapper, DoneIcon, DoneHint } from './styles/submit_button' /* eslint-disable-next-line */ -const log = buildLog('c:Buttons:SubmitButton') +const log = buildLog('w:Buttons:SubmitButton') type TProps = { submitState?: TSubmitState diff --git a/src/widgets/Buttons/ToggleSwitch.tsx b/src/widgets/Buttons/ToggleSwitch.tsx index d018cdf95..7803de5e9 100644 --- a/src/widgets/Buttons/ToggleSwitch.tsx +++ b/src/widgets/Buttons/ToggleSwitch.tsx @@ -2,9 +2,12 @@ import { FC, memo } from 'react' import type { TSizeSM } from '@/spec' import { SIZE } from '@/constant' +import { buildLog } from '@/utils/logger' import { Wrapper, Track, Indicator, CheckIcon } from './styles/toggle_switch' +const log = buildLog('w:ToggleSwitch') + type TProps = { size?: TSizeSM checked?: boolean @@ -14,7 +17,7 @@ type TProps = { const ToggleSwitch: FC = ({ size = SIZE.SMALL, checked = false, - onChange = console.log, + onChange = log, }) => { return ( onChange(!checked)} size={size}> diff --git a/src/widgets/BuyMeChuanChuan/index.tsx b/src/widgets/BuyMeChuanChuan/index.tsx index be266d1cb..044c80975 100755 --- a/src/widgets/BuyMeChuanChuan/index.tsx +++ b/src/widgets/BuyMeChuanChuan/index.tsx @@ -32,7 +32,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Footer:index') +const log = buildLog('w:Footer:index') type TProps = { show?: boolean diff --git a/src/widgets/Cards/WorksCard.tsx b/src/widgets/Cards/WorksCard.tsx index 8328273ac..780719e32 100644 --- a/src/widgets/Cards/WorksCard.tsx +++ b/src/widgets/Cards/WorksCard.tsx @@ -43,7 +43,7 @@ import { } from './styles/works_card' /* eslint-disable-next-line */ -const log = buildLog('c:WorksCard:index') +const log = buildLog('w:WorksCard:index') type TProps = { testid?: string diff --git a/src/widgets/ChangelogItem/OutlineLayout/index.tsx b/src/widgets/ChangelogItem/OutlineLayout/index.tsx index b37b75947..b18b12606 100644 --- a/src/widgets/ChangelogItem/OutlineLayout/index.tsx +++ b/src/widgets/ChangelogItem/OutlineLayout/index.tsx @@ -24,7 +24,7 @@ import { } from '../styles/outline_layout' /* eslint-disable-next-line */ -const log = buildLog('c:ChangelogItem:index') +const log = buildLog('w:ChangelogItem:index') type TProps = { testid?: string diff --git a/src/widgets/ChangelogItem/PreviewtLayout/ArticleLayout.tsx b/src/widgets/ChangelogItem/PreviewtLayout/ArticleLayout.tsx index d660050ba..dc00124e6 100644 --- a/src/widgets/ChangelogItem/PreviewtLayout/ArticleLayout.tsx +++ b/src/widgets/ChangelogItem/PreviewtLayout/ArticleLayout.tsx @@ -33,7 +33,7 @@ import { } from '../styles/preview_layout/article_layout' /* eslint-disable-next-line */ -const log = buildLog('c:ChangelogItem:index') +const log = buildLog('w:ChangelogItem:index') type TProps = { testid?: string diff --git a/src/widgets/ChangelogItem/PreviewtLayout/DefaultLayout.tsx b/src/widgets/ChangelogItem/PreviewtLayout/DefaultLayout.tsx index 373bb821c..08c67a9da 100644 --- a/src/widgets/ChangelogItem/PreviewtLayout/DefaultLayout.tsx +++ b/src/widgets/ChangelogItem/PreviewtLayout/DefaultLayout.tsx @@ -35,7 +35,7 @@ import { } from '../styles/preview_layout/default_layout' /* eslint-disable-next-line */ -const log = buildLog('c:ChangelogItem:index') +const log = buildLog('w:ChangelogItem:index') type TProps = { testid?: string diff --git a/src/widgets/ChangelogItem/PreviewtLayout/index.tsx b/src/widgets/ChangelogItem/PreviewtLayout/index.tsx index bdc3940d9..f75f4831b 100644 --- a/src/widgets/ChangelogItem/PreviewtLayout/index.tsx +++ b/src/widgets/ChangelogItem/PreviewtLayout/index.tsx @@ -12,7 +12,7 @@ import ArticleLayout from './ArticleLayout' import DefaultLayout from './DefaultLayout' /* eslint-disable-next-line */ -const log = buildLog('c:ChangelogItem:index') +const log = buildLog('w:ChangelogItem:index') type TProps = { showFullArticle?: boolean diff --git a/src/widgets/Charger/index.js b/src/widgets/Charger/index.js index 3ce5ca591..8fded1ff8 100755 --- a/src/widgets/Charger/index.js +++ b/src/widgets/Charger/index.js @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Battery, Liquid, MoneySign } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Charger:index') +const log = buildLog('w:Charger:index') // battery effect: https://www.codeseek.co/hudsonkm/battery-charging-animation-with-liquid-azMJmY // bubbles effect: https://codepen.io/Johnm__/pen/qZqgGJ diff --git a/src/widgets/CheckLabel/index.tsx b/src/widgets/CheckLabel/index.tsx index 765849a8d..92cd2e0cc 100644 --- a/src/widgets/CheckLabel/index.tsx +++ b/src/widgets/CheckLabel/index.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, CheckIcon, Title } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:CheckLabel:index') +const log = buildLog('w:CheckLabel:index') type TProps = { testid?: string diff --git a/src/widgets/Checker/index.tsx b/src/widgets/Checker/index.tsx index 0171aa51c..9d8fbadde 100755 --- a/src/widgets/Checker/index.tsx +++ b/src/widgets/Checker/index.tsx @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, IconWrapper, CheckIcon, ChildWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Checker:index') +const log = buildLog('w:Checker:index') type TProps = { children?: ReactNode | null diff --git a/src/widgets/CollapseMenu/Group.js b/src/widgets/CollapseMenu/Group.js index cffb6d980..507ebaf23 100644 --- a/src/widgets/CollapseMenu/Group.js +++ b/src/widgets/CollapseMenu/Group.js @@ -21,7 +21,7 @@ import { } from './styles/group' /* eslint-disable-next-line */ -const log = buildLog('c:CollapseMenu:Group') +const log = buildLog('w:CollapseMenu:Group') const Group = ({ title, diff --git a/src/widgets/CollapseMenu/index.js b/src/widgets/CollapseMenu/index.js index 3f8b90bf4..17307df38 100755 --- a/src/widgets/CollapseMenu/index.js +++ b/src/widgets/CollapseMenu/index.js @@ -19,7 +19,7 @@ const MAX_DISPLAY_COUNT = 5 const TOTAL_TOGGLE_THROLD = 8 // 15 /* eslint-disable-next-line */ -const log = buildLog('c:CollapseMenu:index') +const log = buildLog('w:CollapseMenu:index') const defaultActiveItem = { id: 2 } const defaultItems = [ diff --git a/src/widgets/ColorSelector/index.tsx b/src/widgets/ColorSelector/index.tsx index 9b3ffd28b..498c80aeb 100644 --- a/src/widgets/ColorSelector/index.tsx +++ b/src/widgets/ColorSelector/index.tsx @@ -15,7 +15,7 @@ import Tooltip from '@/widgets/Tooltip' import { Wrapper, DotWrapper, Dot, HookIcon } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ColorSelector:index') +const log = buildLog('w:ColorSelector:index') type TProps = { activeColor?: TColorName | string diff --git a/src/widgets/CommunityFaceLogo/index.tsx b/src/widgets/CommunityFaceLogo/index.tsx index 0c44f2a53..a6cc4df00 100755 --- a/src/widgets/CommunityFaceLogo/index.tsx +++ b/src/widgets/CommunityFaceLogo/index.tsx @@ -14,7 +14,7 @@ import { buildLog } from '@/utils/logger' import { Logo, HomeLogo } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityFaceLogo:index') +const log = buildLog('w:CommunityFaceLogo:index') type TProps = { noFill?: boolean diff --git a/src/widgets/CommunityJoinSign/index.tsx b/src/widgets/CommunityJoinSign/index.tsx index bb5a60a50..30c8b1cdf 100755 --- a/src/widgets/CommunityJoinSign/index.tsx +++ b/src/widgets/CommunityJoinSign/index.tsx @@ -11,7 +11,7 @@ import FollowButton from '@/widgets/Buttons/FollowButton' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityJoinSign:index') +const log = buildLog('w:CommunityJoinSign:index') type TProps = { hasFollowed?: boolean diff --git a/src/widgets/CommunityList/index.tsx b/src/widgets/CommunityList/index.tsx index 5a0a57482..8371b2896 100755 --- a/src/widgets/CommunityList/index.tsx +++ b/src/widgets/CommunityList/index.tsx @@ -15,7 +15,7 @@ import CommunityCard from '@/widgets/Cards/CommunityCard' import { Wrapper, Linker, Logo, MoreWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityList:index') +const log = buildLog('w:CommunityList:index') type TProps = { items: TCommunity[] diff --git a/src/widgets/CommunityStatesPad/ContentStatus.tsx b/src/widgets/CommunityStatesPad/ContentStatus.tsx index 47c264b00..0df6ec9cd 100644 --- a/src/widgets/CommunityStatesPad/ContentStatus.tsx +++ b/src/widgets/CommunityStatesPad/ContentStatus.tsx @@ -8,7 +8,7 @@ import TrendLine from '@/widgets/TrendLine' import { Wrapper, NumberItem, ActivitySpark } from './styles/content_status' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityStatesPad:ContentStatus') +const log = buildLog('w:CommunityStatesPad:ContentStatus') type TProps = { count: number diff --git a/src/widgets/CommunityStatesPad/ModelineView.tsx b/src/widgets/CommunityStatesPad/ModelineView.tsx index 6e3e483bf..e14fb7f43 100644 --- a/src/widgets/CommunityStatesPad/ModelineView.tsx +++ b/src/widgets/CommunityStatesPad/ModelineView.tsx @@ -23,12 +23,11 @@ import { } from './styles/modeline_view' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityStatesPad:index') +const log = buildLog('w:CommunityStatesPad:index') type TProps = { community: TCommunity realtimeVisitors?: number - withoutFounding?: boolean onShowEditorList?: () => void onShowSubscriberList?: () => void } @@ -38,7 +37,6 @@ const CommunityStatesPad: FC = ({ realtimeVisitors = 1, onShowEditorList = log, onShowSubscriberList = log, - withoutFounding = true, }) => { const { editorsCount, subscribersCount, contributesDigest, articlesCount } = community diff --git a/src/widgets/CommunityStatesPad/SubscribeStatus.tsx b/src/widgets/CommunityStatesPad/SubscribeStatus.tsx index ab61f4047..dc0d54b32 100644 --- a/src/widgets/CommunityStatesPad/SubscribeStatus.tsx +++ b/src/widgets/CommunityStatesPad/SubscribeStatus.tsx @@ -16,7 +16,7 @@ import { } from './styles/subscribe_status' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityStatesPad:SubscribeStatus') +const log = buildLog('w:CommunityStatesPad:SubscribeStatus') type TProps = { count?: number diff --git a/src/widgets/CommunityStatesPad/VolunteerStatus.tsx b/src/widgets/CommunityStatesPad/VolunteerStatus.tsx index d1b6f6f3d..dbb14197a 100644 --- a/src/widgets/CommunityStatesPad/VolunteerStatus.tsx +++ b/src/widgets/CommunityStatesPad/VolunteerStatus.tsx @@ -11,7 +11,7 @@ import { } from './styles/volunteer_status' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityStatesPad:VolunteerStatus') +const log = buildLog('w:CommunityStatesPad:VolunteerStatus') type TProps = { count?: number diff --git a/src/widgets/CommunityStatesPad/index.tsx b/src/widgets/CommunityStatesPad/index.tsx index 1072e00f1..8f06e42c5 100755 --- a/src/widgets/CommunityStatesPad/index.tsx +++ b/src/widgets/CommunityStatesPad/index.tsx @@ -27,12 +27,11 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:CommunityStatesPad:index') +const log = buildLog('w:CommunityStatesPad:index') type TProps = { community: TCommunity realtimeVisitors?: number - withoutFounding?: boolean onShowEditorList?: () => void onShowSubscriberList?: () => void } @@ -42,7 +41,6 @@ const CommunityStatesPad: FC = ({ realtimeVisitors = 1, onShowEditorList = log, onShowSubscriberList = log, - withoutFounding = true, }) => { const { editorsCount, subscribersCount, contributesDigest, articlesCount } = community diff --git a/src/widgets/ConstructingThread/index.js b/src/widgets/ConstructingThread/index.js index c81d26748..c29e41954 100755 --- a/src/widgets/ConstructingThread/index.js +++ b/src/widgets/ConstructingThread/index.js @@ -21,7 +21,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ConstructingThread:index') +const log = buildLog('w:ConstructingThread:index') const ISSUE_NUM = { group: '330', diff --git a/src/widgets/ContentBanner/index.js b/src/widgets/ContentBanner/index.js index 38a50bd44..93bda0f4a 100755 --- a/src/widgets/ContentBanner/index.js +++ b/src/widgets/ContentBanner/index.js @@ -24,7 +24,7 @@ import { import ReactionNumbers from './ReactionNumbers' /* eslint-disable-next-line */ -const log = buildLog('c:ContentBanner:index') +const log = buildLog('w:ContentBanner:index') // TODO: add a Loading effect const ContentBanner = ({ data, middleNode }) => { diff --git a/src/widgets/ContributorList/index.js b/src/widgets/ContributorList/index.js index fd2fb791d..dd585359c 100755 --- a/src/widgets/ContributorList/index.js +++ b/src/widgets/ContributorList/index.js @@ -17,7 +17,7 @@ import GithubUserCard from '@/widgets/GithubUserCard' import { Wrapper, AvatarLink, Avatar, CardWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ContributorList:index') +const log = buildLog('w:ContributorList:index') const ContributorList = ({ users, readOnly, addContributor }) => ( diff --git a/src/widgets/Copyright/index.tsx b/src/widgets/Copyright/index.tsx index cef5ae02a..6cf18c2d7 100755 --- a/src/widgets/Copyright/index.tsx +++ b/src/widgets/Copyright/index.tsx @@ -16,7 +16,7 @@ import ReadOnlyPanel from './ReadOnlyPanel' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Copyright:index') +const log = buildLog('w:Copyright:index') const options = [ { diff --git a/src/widgets/CoverImage/index.tsx b/src/widgets/CoverImage/index.tsx index 4a6063daa..030fcb56d 100644 --- a/src/widgets/CoverImage/index.tsx +++ b/src/widgets/CoverImage/index.tsx @@ -11,17 +11,13 @@ import { buildLog } from '@/utils/logger' import { Wrapper, ImageWrapper, Image } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:CoverImage:index') +const log = buildLog('w:CoverImage:index') type TProps = { testid?: string - readonly?: boolean } -const CoverImage: FC = ({ - testid = 'cover-image', - readonly = false, -}) => { +const CoverImage: FC = ({ testid = 'cover-image' }) => { return ( diff --git a/src/widgets/DashboardDesc/PostListExample/Desktop.tsx b/src/widgets/DashboardDesc/PostListExample/Desktop.tsx index 860d6b85b..e13883f9b 100644 --- a/src/widgets/DashboardDesc/PostListExample/Desktop.tsx +++ b/src/widgets/DashboardDesc/PostListExample/Desktop.tsx @@ -17,7 +17,7 @@ import PostItem from '@/widgets/PostItem' import { Title, SubTitle, Desc } from '../styles/post_list_example' /* eslint-disable-next-line */ -const log = buildLog('c:DashboardDesc:index') +const log = buildLog('w:DashboardDesc:index') type TProps = { articles: TPost[] diff --git a/src/widgets/DashboardDesc/PostListExample/index.tsx b/src/widgets/DashboardDesc/PostListExample/index.tsx index 39e5ac7e1..ef7e542ed 100644 --- a/src/widgets/DashboardDesc/PostListExample/index.tsx +++ b/src/widgets/DashboardDesc/PostListExample/index.tsx @@ -20,7 +20,7 @@ import Desktop from './Desktop' import { Wrapper, MediaWrapper } from '../styles/post_list_example' /* eslint-disable-next-line */ -const log = buildLog('c:DashboardDesc:index') +const log = buildLog('w:DashboardDesc:index') const switchItems = [ { diff --git a/src/widgets/DashboardDesc/index.tsx b/src/widgets/DashboardDesc/index.tsx index a06ee12af..8e4e222a9 100644 --- a/src/widgets/DashboardDesc/index.tsx +++ b/src/widgets/DashboardDesc/index.tsx @@ -15,7 +15,7 @@ import PostListExample from './PostListExample' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:DashboardDesc:index') +const log = buildLog('w:DashboardDesc:index') type TProps = { testid?: string diff --git a/src/widgets/DigestSentence/index.tsx b/src/widgets/DigestSentence/index.tsx index 4c4ad41ad..d48836568 100755 --- a/src/widgets/DigestSentence/index.tsx +++ b/src/widgets/DigestSentence/index.tsx @@ -27,7 +27,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:DigestSentence:index') +const log = buildLog('w:DigestSentence:index') type TProps = { testid?: string diff --git a/src/widgets/DiscussLinker/index.js b/src/widgets/DiscussLinker/index.js index 959770f6b..7e9a0f5a3 100755 --- a/src/widgets/DiscussLinker/index.js +++ b/src/widgets/DiscussLinker/index.js @@ -24,7 +24,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:DiscussLinker:index') +const log = buildLog('w:DiscussLinker:index') const DiscussLinker = ({ title, desc, addr }) => ( diff --git a/src/widgets/DivideText/index.js b/src/widgets/DivideText/index.js index e8b62eeef..4f96389aa 100755 --- a/src/widgets/DivideText/index.js +++ b/src/widgets/DivideText/index.js @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Content, LeftLine, RightLine } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:DivideText:index') +const log = buildLog('w:DivideText:index') const DivideText = ({ testid, children }) => { return ( diff --git a/src/widgets/DotDivider/index.tsx b/src/widgets/DotDivider/index.tsx index a1267c479..833e70146 100755 --- a/src/widgets/DotDivider/index.tsx +++ b/src/widgets/DotDivider/index.tsx @@ -10,7 +10,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:DotDivider:index') +const log = buildLog('w:DotDivider:index') export type TProps = { className?: string diff --git a/src/widgets/Dropdown/index.js b/src/widgets/Dropdown/index.js index e74fffc75..3153b8ad0 100755 --- a/src/widgets/Dropdown/index.js +++ b/src/widgets/Dropdown/index.js @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, IconWrapper, Icon } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Dropdown:index') +const log = buildLog('w:Dropdown:index') const Dropdown = ({ children, size }) => { return ( diff --git a/src/widgets/EmailSubscriber/DefaultLayout/index.js b/src/widgets/EmailSubscriber/DefaultLayout/index.js index 2ceb6f96d..2ec4ff78a 100644 --- a/src/widgets/EmailSubscriber/DefaultLayout/index.js +++ b/src/widgets/EmailSubscriber/DefaultLayout/index.js @@ -8,7 +8,7 @@ import ActiveView from './ActiveView' import { Wrapper, InnerWrapper } from '../styles/default_layout/index' /* eslint-disable-next-line */ -const log = buildLog('c:DefaultLayout:index') +const log = buildLog('w:DefaultLayout:index') const DefaultLayout = ({ testid, activeByDefault, title, desc }) => { const [active, setActive] = useState(activeByDefault) diff --git a/src/widgets/EmotionSelector/SelectedEmotions/EmotionUnit.tsx b/src/widgets/EmotionSelector/SelectedEmotions/EmotionUnit.tsx index f2f80876d..cbddb52e4 100644 --- a/src/widgets/EmotionSelector/SelectedEmotions/EmotionUnit.tsx +++ b/src/widgets/EmotionSelector/SelectedEmotions/EmotionUnit.tsx @@ -18,7 +18,7 @@ import { getEmotionName } from '../helper' import { Wrapper, Count } from '../styles/selected_emotions/emotion_unit' /* eslint-disable-next-line */ -const log = buildLog('c:EmotionUnit:index') +const log = buildLog('w:EmotionUnit:index') type TProps = { item: TEmotion diff --git a/src/widgets/EmotionSelector/SelectedEmotions/UsersPanel.tsx b/src/widgets/EmotionSelector/SelectedEmotions/UsersPanel.tsx index ffa453ed2..d3f92a1f2 100644 --- a/src/widgets/EmotionSelector/SelectedEmotions/UsersPanel.tsx +++ b/src/widgets/EmotionSelector/SelectedEmotions/UsersPanel.tsx @@ -18,7 +18,7 @@ import { } from '../styles/selected_emotions/users_panel' /* eslint-disable-next-line */ -const log = buildLog('c:UsersPanel:index') +const log = buildLog('w:UsersPanel:index') type TProps = { name: TEmotionType diff --git a/src/widgets/EmotionSelector/SelectedEmotions/index.tsx b/src/widgets/EmotionSelector/SelectedEmotions/index.tsx index 9c7b9463e..278e7199f 100644 --- a/src/widgets/EmotionSelector/SelectedEmotions/index.tsx +++ b/src/widgets/EmotionSelector/SelectedEmotions/index.tsx @@ -10,7 +10,7 @@ import type { TEmotion, TEmotionType } from '@/spec' import { getEmotionName } from '../helper' import EmotionUnit from './EmotionUnit' /* eslint-disable-next-line */ -const log = buildLog('c:SelectedEmotions:index') +const log = buildLog('w:SelectedEmotions:index') type TProps = { emotions: TEmotion[] diff --git a/src/widgets/EmotionSelector/index.tsx b/src/widgets/EmotionSelector/index.tsx index 0c633495e..64014001c 100755 --- a/src/widgets/EmotionSelector/index.tsx +++ b/src/widgets/EmotionSelector/index.tsx @@ -15,7 +15,7 @@ import Panel from './Panel' import { Wrapper, SelectEmotionWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:EmotionSelector:index') +const log = buildLog('w:EmotionSelector:index') type TProps = { testid?: string diff --git a/src/widgets/EmptyLabel/index.tsx b/src/widgets/EmptyLabel/index.tsx index d5a71d695..8f2da6ad2 100755 --- a/src/widgets/EmptyLabel/index.tsx +++ b/src/widgets/EmptyLabel/index.tsx @@ -15,7 +15,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Icon, Title } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:EmptyLabel:index') +const log = buildLog('w:EmptyLabel:index') type TProps = { iconSrc?: string diff --git a/src/widgets/EmptyThread/index.tsx b/src/widgets/EmptyThread/index.tsx index 1f91ffbb2..8272c99c2 100755 --- a/src/widgets/EmptyThread/index.tsx +++ b/src/widgets/EmptyThread/index.tsx @@ -26,7 +26,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:EmptyThread:index') +const log = buildLog('w:EmptyThread:index') type TProps = { thread: TThread diff --git a/src/widgets/EnterHint/index.tsx b/src/widgets/EnterHint/index.tsx index e60adb0e4..20c70e606 100755 --- a/src/widgets/EnterHint/index.tsx +++ b/src/widgets/EnterHint/index.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, EnterIcon, Text } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:EnterHint:index') +const log = buildLog('w:EnterHint:index') type TProps = { testid?: string diff --git a/src/widgets/ErrorPage/index.tsx b/src/widgets/ErrorPage/index.tsx index e085fc953..749da8ac8 100755 --- a/src/widgets/ErrorPage/index.tsx +++ b/src/widgets/ErrorPage/index.tsx @@ -34,7 +34,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ErrorPage:index') +const log = buildLog('w:ErrorPage:index') export type TProps = { errorCode?: number // 400 | 500 | 404 diff --git a/src/widgets/ExpandIcon/index.tsx b/src/widgets/ExpandIcon/index.tsx index 26a183633..fcb5aa502 100755 --- a/src/widgets/ExpandIcon/index.tsx +++ b/src/widgets/ExpandIcon/index.tsx @@ -17,7 +17,7 @@ import Tooltip from '@/widgets/Tooltip' import { Wrapper, Icon, Text } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ExpandIcon:index') +const log = buildLog('w:ExpandIcon:index') type TProps = { content: ReactNode diff --git a/src/widgets/Facepile/index.tsx b/src/widgets/Facepile/index.tsx index 1f5af5d15..6d08e00fe 100644 --- a/src/widgets/Facepile/index.tsx +++ b/src/widgets/Facepile/index.tsx @@ -49,7 +49,7 @@ export const RealAvatar = dynamic(() => import('./RealAvatar'), { }) /* eslint-disable-next-line */ -const log = buildLog('c:Facepile:index') +const log = buildLog('w:Facepile:index') const validUser = compose(not, isNil) @@ -75,7 +75,6 @@ export type TProps = { showMore?: boolean showTotalNumber?: boolean reverse?: boolean - scrollPosition?: any popCardPlacement?: 'top' | 'bottom' noLazyLoad?: boolean @@ -94,8 +93,6 @@ const Facepile: FC = ({ showMore = true, showTotalNumber = false, reverse = false, - // see https://github.com/Aljullu/react-lazy-load-image-component/issues/42 - scrollPosition = null, popCardPlacement = 'bottom', }) => { if (users.length === 0) { diff --git a/src/widgets/FaqList/index.tsx b/src/widgets/FaqList/index.tsx index f156cad49..87ae725f3 100644 --- a/src/widgets/FaqList/index.tsx +++ b/src/widgets/FaqList/index.tsx @@ -16,7 +16,7 @@ import Collapse from './Collapse' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:FaqList:index') +const log = buildLog('w:FaqList:index') const defaultArticles = [ { diff --git a/src/widgets/FaqPeekList/index.js b/src/widgets/FaqPeekList/index.js index 567fa98bb..e7c3f31c9 100755 --- a/src/widgets/FaqPeekList/index.js +++ b/src/widgets/FaqPeekList/index.js @@ -14,7 +14,7 @@ import LinksCard from '@/widgets/LinksCard' import { Wrapper, ArrowIcon, ContentWrapper } from './styles' -const log = buildLog('c:FaqPeekList:index') +const log = buildLog('w:FaqPeekList:index') const items = [ { diff --git a/src/widgets/FeedsBar/List.tsx b/src/widgets/FeedsBar/List.tsx index e28b2c3ba..7331bacf5 100644 --- a/src/widgets/FeedsBar/List.tsx +++ b/src/widgets/FeedsBar/List.tsx @@ -24,7 +24,7 @@ import { } from './styles/list' /* eslint-disable-next-line */ -const log = buildLog('c:FeedsBar:index') +const log = buildLog('w:FeedsBar:index') const List: FC = () => { // list header(with lable) - 40px diff --git a/src/widgets/FeedsBar/SourceSelector.tsx b/src/widgets/FeedsBar/SourceSelector.tsx index 0a179df0b..b948f2e0d 100644 --- a/src/widgets/FeedsBar/SourceSelector.tsx +++ b/src/widgets/FeedsBar/SourceSelector.tsx @@ -13,7 +13,7 @@ import { Wrapper, Icon, Block, Title } from './styles/source_selector' import { mockSource } from './mock' /* eslint-disable-next-line */ -const log = buildLog('c:SourceSelector:index') +const log = buildLog('w:SourceSelector:index') const SourceSelector: FC = () => { const items = mockSource() diff --git a/src/widgets/FeedsBar/index.tsx b/src/widgets/FeedsBar/index.tsx index b50ee86e1..12b6d5994 100644 --- a/src/widgets/FeedsBar/index.tsx +++ b/src/widgets/FeedsBar/index.tsx @@ -16,7 +16,7 @@ import List from './List' import { Wrapper, Header, FunctionIcon, Title } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:FeedsBar:index') +const log = buildLog('w:FeedsBar:index') type TProps = { title: string diff --git a/src/widgets/FiltersMenu/index.tsx b/src/widgets/FiltersMenu/index.tsx index de284788a..d55522d61 100755 --- a/src/widgets/FiltersMenu/index.tsx +++ b/src/widgets/FiltersMenu/index.tsx @@ -19,7 +19,7 @@ import { Wrapper, ItemWrapper, Item, Icon } from './styles' import { tags2Options, initActiveMap, getSelectedTags } from './helper' /* eslint-disable-next-line */ -const log = buildLog('c:FiltersMenu:index') +const log = buildLog('w:FiltersMenu:index') type TProps = { tags?: TTag[] diff --git a/src/widgets/FocusLine/index.js b/src/widgets/FocusLine/index.js index a526d1401..1352a96b0 100755 --- a/src/widgets/FocusLine/index.js +++ b/src/widgets/FocusLine/index.js @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Icon, TextWrapper, Text, Focus } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:FocusLine:index') +const log = buildLog('w:FocusLine:index') const FocusLine = ({ iconSrc, before, focus, after }) => ( diff --git a/src/widgets/Folder/Footer.tsx b/src/widgets/Folder/Footer.tsx index 2f3eb54f6..d7c301229 100644 --- a/src/widgets/Folder/Footer.tsx +++ b/src/widgets/Folder/Footer.tsx @@ -68,7 +68,7 @@ const Footer: FC = ({ title, onClick, onMenuClick, inactive }) => { {/* */} {/* 已收入 */} - {/* 已收入 */} + 已收入 ) diff --git a/src/widgets/Folder/index.tsx b/src/widgets/Folder/index.tsx index 09aa6d6fd..1801be2a5 100755 --- a/src/widgets/Folder/index.tsx +++ b/src/widgets/Folder/index.tsx @@ -17,7 +17,7 @@ import Footer from './Footer' import { Wrapper, TabShape } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Folder:index') +const log = buildLog('w:Folder:index') type TProps = { title?: string diff --git a/src/widgets/FormItem/index.js b/src/widgets/FormItem/index.js index 724369327..ec6b1a065 100755 --- a/src/widgets/FormItem/index.js +++ b/src/widgets/FormItem/index.js @@ -23,7 +23,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:FormItem:index') +const log = buildLog('w:FormItem:index') const FormContent = ({ type, diff --git a/src/widgets/GalleryHub/DirectoryGallery.js b/src/widgets/GalleryHub/DirectoryGallery.js index bce89dab8..562169323 100644 --- a/src/widgets/GalleryHub/DirectoryGallery.js +++ b/src/widgets/GalleryHub/DirectoryGallery.js @@ -26,7 +26,7 @@ import { } from './styles/directory_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:DirectoryGallery:index') +const log = buildLog('w:DirectoryGallery:index') const DirectoryGallery = ({ items, onSelect }) => { return ( diff --git a/src/widgets/GalleryHub/FriendsGallery.tsx b/src/widgets/GalleryHub/FriendsGallery.tsx index 3915ed448..045217dab 100644 --- a/src/widgets/GalleryHub/FriendsGallery.tsx +++ b/src/widgets/GalleryHub/FriendsGallery.tsx @@ -24,7 +24,7 @@ import { } from './styles/friends_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:FriendsGallery:index') +const log = buildLog('w:FriendsGallery:index') type TProps = { items: { diff --git a/src/widgets/GalleryHub/ImageGallery/MainColumnGallery.js b/src/widgets/GalleryHub/ImageGallery/MainColumnGallery.js index 84fe64471..74016cef3 100755 --- a/src/widgets/GalleryHub/ImageGallery/MainColumnGallery.js +++ b/src/widgets/GalleryHub/ImageGallery/MainColumnGallery.js @@ -28,7 +28,7 @@ import { } from '../styles/image_gallery/main_column_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ImageGallery:index') +const log = buildLog('w:ImageGallery:index') const MainColumnGallery = ({ items }) => { return ( diff --git a/src/widgets/GalleryHub/ImageGallery/ThreeColumnGallery.js b/src/widgets/GalleryHub/ImageGallery/ThreeColumnGallery.js index e099bc108..c8fdb1bc8 100755 --- a/src/widgets/GalleryHub/ImageGallery/ThreeColumnGallery.js +++ b/src/widgets/GalleryHub/ImageGallery/ThreeColumnGallery.js @@ -25,7 +25,7 @@ import { } from '../styles/image_gallery/three_column_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ImageGallery:index') +const log = buildLog('w:ImageGallery:index') const ThreeColumnGallery = ({ items }) => { return ( diff --git a/src/widgets/GalleryHub/ImageGallery/TwoColumnGallery.js b/src/widgets/GalleryHub/ImageGallery/TwoColumnGallery.js index e52bd9011..26b5e0beb 100755 --- a/src/widgets/GalleryHub/ImageGallery/TwoColumnGallery.js +++ b/src/widgets/GalleryHub/ImageGallery/TwoColumnGallery.js @@ -25,7 +25,7 @@ import { } from '../styles/image_gallery/two_column_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ImageGallery:index') +const log = buildLog('w:ImageGallery:index') const TwoColumnGallery = ({ items }) => { return ( diff --git a/src/widgets/GalleryHub/ImageGallery/index.js b/src/widgets/GalleryHub/ImageGallery/index.js index bfc758e9f..337520f79 100755 --- a/src/widgets/GalleryHub/ImageGallery/index.js +++ b/src/widgets/GalleryHub/ImageGallery/index.js @@ -21,7 +21,7 @@ import MasonryGallery from './MasonryGallery' import { Wrapper } from '../styles/image_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ImageGallery:index') +const log = buildLog('w:ImageGallery:index') const GALLERY_TYPES = [ { diff --git a/src/widgets/GalleryHub/PeopleGallery/DeveloperGallery.tsx b/src/widgets/GalleryHub/PeopleGallery/DeveloperGallery.tsx index 7aa168b4b..dc8492c1d 100644 --- a/src/widgets/GalleryHub/PeopleGallery/DeveloperGallery.tsx +++ b/src/widgets/GalleryHub/PeopleGallery/DeveloperGallery.tsx @@ -31,7 +31,7 @@ import { } from '../styles/people_gallery/developer_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ProductGallery:index') +const log = buildLog('w:ProductGallery:index') type TProps = { items?: TGallery[] diff --git a/src/widgets/GalleryHub/PeopleGallery/FamePeopleGallery.tsx b/src/widgets/GalleryHub/PeopleGallery/FamePeopleGallery.tsx index 005c02c24..fb42bd520 100644 --- a/src/widgets/GalleryHub/PeopleGallery/FamePeopleGallery.tsx +++ b/src/widgets/GalleryHub/PeopleGallery/FamePeopleGallery.tsx @@ -33,7 +33,7 @@ import { } from '../styles/people_gallery/fame_people_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ProductGallery:index') +const log = buildLog('w:ProductGallery:index') type TProps = { items?: TGallery[] diff --git a/src/widgets/GalleryHub/ProductGallery.tsx b/src/widgets/GalleryHub/ProductGallery.tsx index d1031d26b..400f87f26 100644 --- a/src/widgets/GalleryHub/ProductGallery.tsx +++ b/src/widgets/GalleryHub/ProductGallery.tsx @@ -33,7 +33,7 @@ import { } from './styles/product_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:ProductGallery:index') +const log = buildLog('w:ProductGallery:index') type TProps = { items?: TGallery[] diff --git a/src/widgets/GalleryHub/SnippetGallery.js b/src/widgets/GalleryHub/SnippetGallery.js index 4f8ee9707..133089911 100644 --- a/src/widgets/GalleryHub/SnippetGallery.js +++ b/src/widgets/GalleryHub/SnippetGallery.js @@ -23,7 +23,7 @@ import { } from './styles/snippet_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:SnippetGallery:index') +const log = buildLog('w:SnippetGallery:index') const tmpItems = [ { diff --git a/src/widgets/GalleryHub/SponsorGallery/index.tsx b/src/widgets/GalleryHub/SponsorGallery/index.tsx index 7285366d2..ce5eb3a7d 100644 --- a/src/widgets/GalleryHub/SponsorGallery/index.tsx +++ b/src/widgets/GalleryHub/SponsorGallery/index.tsx @@ -26,7 +26,7 @@ import { } from '../styles/sponsor_gallery' /* eslint-disable-next-line */ -const log = buildLog('c:SponsorGallery:index') +const log = buildLog('w:SponsorGallery:index') const Patterns = dynamic(() => import('./Patterns'), { /* eslint-disable react/display-name */ diff --git a/src/widgets/GithubRepoPage/index.js b/src/widgets/GithubRepoPage/index.js index e3d8130f5..470b89024 100755 --- a/src/widgets/GithubRepoPage/index.js +++ b/src/widgets/GithubRepoPage/index.js @@ -27,7 +27,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:GithubRepoPage:index') +const log = buildLog('w:GithubRepoPage:index') const GithubRepoPage = ({ repo, diff --git a/src/widgets/GithubSyncWarning/index.js b/src/widgets/GithubSyncWarning/index.js index 068c69639..37090de3d 100755 --- a/src/widgets/GithubSyncWarning/index.js +++ b/src/widgets/GithubSyncWarning/index.js @@ -15,7 +15,7 @@ import Modal from '@/widgets/Modal' import { Wrapper, Logo, Header, Desc, FootLinker } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:GithubSyncWarning:index') +const log = buildLog('w:GithubSyncWarning:index') const GithubSyncWarning = ({ show, onClose }) => ( diff --git a/src/widgets/GithubUserCard/index.js b/src/widgets/GithubUserCard/index.js index 55f2ac8d2..b29fbc77d 100755 --- a/src/widgets/GithubUserCard/index.js +++ b/src/widgets/GithubUserCard/index.js @@ -25,7 +25,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:GithubUserCard:index') +const log = buildLog('w:GithubUserCard:index') const GithubUserCard = ({ user }) => ( diff --git a/src/widgets/IconText/index.tsx b/src/widgets/IconText/index.tsx index 9e714f7ed..8a436d2c7 100755 --- a/src/widgets/IconText/index.tsx +++ b/src/widgets/IconText/index.tsx @@ -15,7 +15,7 @@ import { SIZE } from '@/constant' import { Wrapper, Icon, Text } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:IconText:index') +const log = buildLog('w:IconText:index') type TProps = { iconSrc?: string | null diff --git a/src/widgets/Img/index.tsx b/src/widgets/Img/index.tsx index b48e58a60..7ac0ce46e 100755 --- a/src/widgets/Img/index.tsx +++ b/src/widgets/Img/index.tsx @@ -14,7 +14,7 @@ import NormalImg from './NormalImg' import LazyLoadImg from './LazyLoadImg' /* eslint-disable-next-line */ -const log = buildLog('c:Img') +const log = buildLog('w:Img') type IProps = { src: string diff --git a/src/widgets/ImgFallback/Avatar.tsx b/src/widgets/ImgFallback/Avatar.tsx index 7e769d3b5..17baae1d6 100644 --- a/src/widgets/ImgFallback/Avatar.tsx +++ b/src/widgets/ImgFallback/Avatar.tsx @@ -12,7 +12,7 @@ import type { TAvatarProps as TProps } from './index' import { Wrapper, Name } from './styles/avatar' /* eslint-disable-next-line */ -const log = buildLog('c:ImgFallback:Avatar') +const log = buildLog('w:ImgFallback:Avatar') const Avatar: FC = ({ testid = 'avatar-fallback', diff --git a/src/widgets/ImgFallback/index.tsx b/src/widgets/ImgFallback/index.tsx index 414afec12..918160aab 100755 --- a/src/widgets/ImgFallback/index.tsx +++ b/src/widgets/ImgFallback/index.tsx @@ -13,7 +13,7 @@ import Work from './Work' import Avatar from './Avatar' /* eslint-disable-next-line */ -const log = buildLog('c:ImgFallback:index') +const log = buildLog('w:ImgFallback:index') export type TAvatarProps = { testid?: string diff --git a/src/widgets/InlineCommunities/index.js b/src/widgets/InlineCommunities/index.js index 944b88eae..77402c3ee 100755 --- a/src/widgets/InlineCommunities/index.js +++ b/src/widgets/InlineCommunities/index.js @@ -22,7 +22,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:InlineCommunities:index') +const log = buildLog('w:InlineCommunities:index') const FullList = ({ data }) => ( diff --git a/src/widgets/Input/Textarea.tsx b/src/widgets/Input/Textarea.tsx index 69cbacbc7..cd33dc2ed 100644 --- a/src/widgets/Input/Textarea.tsx +++ b/src/widgets/Input/Textarea.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper } from './styles/textarea' /* eslint-disable-next-line */ -const log = buildLog('c:Input:index') +const log = buildLog('w:Input:index') type TProps = { testid?: string diff --git a/src/widgets/Input/index.tsx b/src/widgets/Input/index.tsx index 803f99d5b..c29b14767 100755 --- a/src/widgets/Input/index.tsx +++ b/src/widgets/Input/index.tsx @@ -20,7 +20,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Input:index') +const log = buildLog('w:Input:index') type TProps = { testid?: string diff --git a/src/widgets/JobItem/index.tsx b/src/widgets/JobItem/index.tsx index afb670479..442313ea6 100755 --- a/src/widgets/JobItem/index.tsx +++ b/src/widgets/JobItem/index.tsx @@ -17,7 +17,7 @@ import ArticlePinLabel from '@/widgets/ArticlePinLabel' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:JobItem:index') +const log = buildLog('w:JobItem:index') type TProps = { entry: TJob diff --git a/src/widgets/KanbanItem/index.tsx b/src/widgets/KanbanItem/index.tsx index b4e424aaa..15f217be0 100644 --- a/src/widgets/KanbanItem/index.tsx +++ b/src/widgets/KanbanItem/index.tsx @@ -18,7 +18,7 @@ import TagsList from '@/widgets/TagsList' import { Wrapper, Header, Footer, Title, Desc } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:KanbanItem:index') +const log = buildLog('w:KanbanItem:index') type TProps = { testid?: string diff --git a/src/widgets/Linker/index.tsx b/src/widgets/Linker/index.tsx index 28c2953b5..4b94903a5 100755 --- a/src/widgets/Linker/index.tsx +++ b/src/widgets/Linker/index.tsx @@ -14,7 +14,7 @@ import InternalLink from './InternalLink' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Linker:index') +const log = buildLog('w:Linker:index') type TProps = TSpace & { testid?: string diff --git a/src/widgets/LinksCard/Item.js b/src/widgets/LinksCard/Item.js index ef16113e0..44cc80208 100644 --- a/src/widgets/LinksCard/Item.js +++ b/src/widgets/LinksCard/Item.js @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Title, Reaction, Icon, Count } from './styles/item' /* eslint-disable-next-line */ -const log = buildLog('c:LinksCard:Item') +const log = buildLog('w:LinksCard:Item') const Item = ({ item, onSelect }) => { return ( diff --git a/src/widgets/LinksCard/index.js b/src/widgets/LinksCard/index.js index 5a96b595f..5691910b3 100755 --- a/src/widgets/LinksCard/index.js +++ b/src/widgets/LinksCard/index.js @@ -15,7 +15,7 @@ import Item from './Item' import { Wrapper, Header, Title, ListWrapper, MoreWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:LinksCard:index') +const log = buildLog('w:LinksCard:index') const LinksCard = ({ testid, title, items, onSelect, left, right, bottom }) => { return ( diff --git a/src/widgets/Loading/CheatSheetLoading.tsx b/src/widgets/Loading/CheatSheetLoading.tsx index 8445584af..db6edbf7d 100755 --- a/src/widgets/Loading/CheatSheetLoading.tsx +++ b/src/widgets/Loading/CheatSheetLoading.tsx @@ -7,7 +7,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, CheatsheetCard } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Loading:index') +const log = buildLog('w:Loading:index') const LoadingBlock = ({ theme }) => ( diff --git a/src/widgets/MarkDownRender/MathVersion.js b/src/widgets/MarkDownRender/MathVersion.js index 638eb49e3..a0027b1ac 100755 --- a/src/widgets/MarkDownRender/MathVersion.js +++ b/src/widgets/MarkDownRender/MathVersion.js @@ -26,7 +26,7 @@ import { MENTION_USER_ADDR } from '@/config' import { buildLog } from '@/utils/logger' import { PreviewerContainer } from './styles' -const log = buildLog('c:MarkDownRender:index') +const log = buildLog('w:MarkDownRender:index') // const latexPlugin = require('remarkable-katex') // const md = new Remarkable() diff --git a/src/widgets/MarkDownRender/index.js b/src/widgets/MarkDownRender/index.js index e1ca181bc..b789b1684 100755 --- a/src/widgets/MarkDownRender/index.js +++ b/src/widgets/MarkDownRender/index.js @@ -19,7 +19,7 @@ import MarkDownStyle from '@/containers/layout/ThemePalette/MarkDownStyle' import { PreviewerContainer } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:MarkDownRender:index') +const log = buildLog('w:MarkDownRender:index') // const md = new Remarkable() const md = new Remarkable('full', { diff --git a/src/widgets/MasonryCards/index.tsx b/src/widgets/MasonryCards/index.tsx index 875ef6edd..ee8912b81 100755 --- a/src/widgets/MasonryCards/index.tsx +++ b/src/widgets/MasonryCards/index.tsx @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:MasonryCards:index') +const log = buildLog('w:MasonryCards:index') type TProps = { testid?: string diff --git a/src/widgets/Maybe/index.tsx b/src/widgets/Maybe/index.tsx index 66518f3f0..e3f0d0f84 100755 --- a/src/widgets/Maybe/index.tsx +++ b/src/widgets/Maybe/index.tsx @@ -8,7 +8,7 @@ import { isEmpty } from 'ramda' import { buildLog } from '@/utils/logger' /* eslint-disable-next-line */ -const log = buildLog('c:Maybe:index') +const log = buildLog('w:Maybe:index') const MaybeLoading = ({ loading }) => { if (isEmpty(loading)) return
diff --git a/src/widgets/MobileMockup/index.tsx b/src/widgets/MobileMockup/index.tsx index cf5582496..d23058bb9 100644 --- a/src/widgets/MobileMockup/index.tsx +++ b/src/widgets/MobileMockup/index.tsx @@ -11,7 +11,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Content } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:MobileMockup:index') +const log = buildLog('w:MobileMockup:index') type TProps = { testid?: string diff --git a/src/widgets/Modal/index.tsx b/src/widgets/Modal/index.tsx index 6c4b50142..3ee4e2f1d 100755 --- a/src/widgets/Modal/index.tsx +++ b/src/widgets/Modal/index.tsx @@ -16,12 +16,11 @@ import ViewportTracker from '@/widgets/ViewportTracker' import { Mask, Wrapper, CloseBtn, ChildrenWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Modal:index') +const log = buildLog('w:Modal:index') type TProps = { children: ReactNode show?: boolean - showBelt?: boolean width?: string showCloseBtn?: boolean mode?: 'default' | 'error' @@ -34,7 +33,6 @@ type TProps = { const Modal: FC = ({ children, show = true, - showBelt = false, width = '600px', showCloseBtn = false, onClose = log, @@ -51,7 +49,7 @@ const Modal: FC = ({ setVisibleOnPage(false) toggleGlobalBlur(false) onClose() - }, []) + }, [onClose]) useShortcut('Escape', handleClose) diff --git a/src/widgets/NaviCatalog/Dashboard.tsx b/src/widgets/NaviCatalog/Dashboard.tsx index a5e8ed4de..1971c3106 100644 --- a/src/widgets/NaviCatalog/Dashboard.tsx +++ b/src/widgets/NaviCatalog/Dashboard.tsx @@ -24,7 +24,7 @@ import { } from './styles/dashboard' /* eslint-disable-next-line */ -const log = buildLog('c:NaviCatalog:Dashboard') +const log = buildLog('w:NaviCatalog:Dashboard') /** * 解析成层叠结构的数据形式 diff --git a/src/widgets/NaviCatalog/List/index.tsx b/src/widgets/NaviCatalog/List/index.tsx index 924f94d26..9c7b091ee 100644 --- a/src/widgets/NaviCatalog/List/index.tsx +++ b/src/widgets/NaviCatalog/List/index.tsx @@ -24,7 +24,7 @@ import { } from '../styles/list' /* eslint-disable-next-line */ -const log = buildLog('c:NaviCatalog:List') +const log = buildLog('w:NaviCatalog:List') const renderRightIcon = (item, active, showItemTotal) => { if (showItemTotal && item.total) { diff --git a/src/widgets/NaviCatalog/index.tsx b/src/widgets/NaviCatalog/index.tsx index b0f6d6236..995c7376e 100755 --- a/src/widgets/NaviCatalog/index.tsx +++ b/src/widgets/NaviCatalog/index.tsx @@ -32,7 +32,7 @@ import { } from './helper' /* eslint-disable-next-line */ -const log = buildLog('c:NaviCatalog:index') +const log = buildLog('w:NaviCatalog:index') type TProps = { title?: string diff --git a/src/widgets/NaviIntro/index.js b/src/widgets/NaviIntro/index.js index daa81e753..e8ea75e5e 100755 --- a/src/widgets/NaviIntro/index.js +++ b/src/widgets/NaviIntro/index.js @@ -12,7 +12,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Logo, Digest, Title, Desc } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:NaviIntro:index') +const log = buildLog('w:NaviIntro:index') const NaviIntro = ({ title, desc, iconSrc, testid }) => { return ( diff --git a/src/widgets/NotFound/index.js b/src/widgets/NotFound/index.js index 87f4d243d..ae5ce390e 100755 --- a/src/widgets/NotFound/index.js +++ b/src/widgets/NotFound/index.js @@ -23,7 +23,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:NotFound:index') +const log = buildLog('w:NotFound:index') const DefaultDesc = () => ( <> diff --git a/src/widgets/NoticeBar/index.tsx b/src/widgets/NoticeBar/index.tsx index 9e3f97b34..a3885dc7b 100755 --- a/src/widgets/NoticeBar/index.tsx +++ b/src/widgets/NoticeBar/index.tsx @@ -19,7 +19,7 @@ import { TYPE } from './constant' import { Wrapper, Main, UserName, AuthorTag, Timestamp, Why } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:NoticeBar:index') +const log = buildLog('w:NoticeBar:index') type TProps = { testid?: string diff --git a/src/widgets/OSSUploader/index.tsx b/src/widgets/OSSUploader/index.tsx index 8a4f0c095..4c11d7bc5 100755 --- a/src/widgets/OSSUploader/index.tsx +++ b/src/widgets/OSSUploader/index.tsx @@ -20,7 +20,7 @@ import { Wrapper, Label, HintIcon, TurboIcon, InputFile } from './styles' import { initOSSClient, handleUploadFile } from './helper' /* eslint-disable-next-line */ -const log = buildLog('c:OSSUploader:index') +const log = buildLog('w:OSSUploader:index') type TProps = { children: ReactNode diff --git a/src/widgets/OauthHinter/index.tsx b/src/widgets/OauthHinter/index.tsx index c1ba64b9b..9009f4b5a 100644 --- a/src/widgets/OauthHinter/index.tsx +++ b/src/widgets/OauthHinter/index.tsx @@ -23,7 +23,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:OauthHinter:index') +const log = buildLog('w:OauthHinter:index') const OauthHinter: FC = () => { return ( diff --git a/src/widgets/PagedArticles/index.tsx b/src/widgets/PagedArticles/index.tsx index 2d1ec9c64..e1553a530 100755 --- a/src/widgets/PagedArticles/index.tsx +++ b/src/widgets/PagedArticles/index.tsx @@ -23,7 +23,7 @@ import ArticleList from './ArticleList' // import CommunityRecommends from './CommunityRecommends' /* eslint-disable-next-line */ -const log = buildLog('c:PagedArticles:index') +const log = buildLog('w:PagedArticles:index') export type TProps = { curCommunity?: TCommunity | null diff --git a/src/widgets/Pagi/RealPagi.tsx b/src/widgets/Pagi/RealPagi.tsx index 32ce701c3..cc90e9133 100644 --- a/src/widgets/Pagi/RealPagi.tsx +++ b/src/widgets/Pagi/RealPagi.tsx @@ -15,7 +15,7 @@ import Next from './Next' import { Wrapper, EmptyWrapper, BottomMsg } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Pagi:index') +const log = buildLog('w:Pagi:index') const defaultMargin = { top: '0', diff --git a/src/widgets/PostItem/CommentFirstLayout/index.tsx b/src/widgets/PostItem/CommentFirstLayout/index.tsx index 53b0c10d3..b89a8264c 100644 --- a/src/widgets/PostItem/CommentFirstLayout/index.tsx +++ b/src/widgets/PostItem/CommentFirstLayout/index.tsx @@ -17,7 +17,7 @@ import MobileView from './MobileView' import { Wrapper } from '../styles/comment_fist_layout' /* eslint-disable-next-line */ -const log = buildLog('c:PostItem:index') +const log = buildLog('w:PostItem:index') type TProps = { curCommunity: TCommunity | null diff --git a/src/widgets/PostItem/UpvoteFirstLayout/index.tsx b/src/widgets/PostItem/UpvoteFirstLayout/index.tsx index 8bcacfc16..34e3cba3b 100644 --- a/src/widgets/PostItem/UpvoteFirstLayout/index.tsx +++ b/src/widgets/PostItem/UpvoteFirstLayout/index.tsx @@ -17,7 +17,7 @@ import MobileView from './MobileView' import { Wrapper } from '../styles/upvote_fist_layout' /* eslint-disable-next-line */ -const log = buildLog('c:PostItem:index') +const log = buildLog('w:PostItem:index') type TProps = { article: TPost diff --git a/src/widgets/PostItem/index.tsx b/src/widgets/PostItem/index.tsx index 3273cde65..ef4912ec1 100755 --- a/src/widgets/PostItem/index.tsx +++ b/src/widgets/PostItem/index.tsx @@ -6,14 +6,7 @@ import { FC, memo, Fragment } from 'react' -import type { - TCommunity, - TPost, - TUser, - TAccount, - TC11N, - TPostLayout, -} from '@/spec' +import type { TCommunity, TPost, TAccount, TC11N, TPostLayout } from '@/spec' import { POST_LAYOUT } from '@/constant' import { buildLog } from '@/utils/logger' @@ -22,7 +15,7 @@ import UpvoteFirstLayout from './UpvoteFirstLayout' // import ListView from './ListView' /* eslint-disable-next-line */ -const log = buildLog('c:PostItem:index') +const log = buildLog('w:PostItem:index') type TProps = { curCommunity: TCommunity | null @@ -31,14 +24,12 @@ type TProps = { layout?: TPostLayout isMobilePreview?: boolean - onUserSelect?: (obj: TUser) => void onAuthorSelect?: (obj: TAccount) => void } const PostItem: FC = ({ curCommunity, article, - onUserSelect = log, onAuthorSelect = log, layout = POST_LAYOUT.UPVOTE_FIRST, isMobilePreview = false, diff --git a/src/widgets/PromotionList/index.tsx b/src/widgets/PromotionList/index.tsx index 1f35be136..11588f2ed 100755 --- a/src/widgets/PromotionList/index.tsx +++ b/src/widgets/PromotionList/index.tsx @@ -21,7 +21,7 @@ import { Wrapper, Header, Title, MoreHint } from './styles' import fakeItems from './fakeItems' /* eslint-disable-next-line */ -const log = buildLog('c:PromotionList:index') +const log = buildLog('w:PromotionList:index') type TProps = { show?: boolean diff --git a/src/widgets/PromptIcon/index.tsx b/src/widgets/PromptIcon/index.tsx index 1dfed403b..a081c1793 100755 --- a/src/widgets/PromptIcon/index.tsx +++ b/src/widgets/PromptIcon/index.tsx @@ -10,7 +10,7 @@ import { buildLog } from '@/utils/logger' import PlanetDriver from './PlanetDriver' /* eslint-disable-next-line */ -const log = buildLog('c:PromptIcon:index') +const log = buildLog('w:PromptIcon:index') type TProps = { type?: 'planet-driver' | 'others' diff --git a/src/widgets/RadarItem/index.tsx b/src/widgets/RadarItem/index.tsx index 8a6b4aa55..dfd5a134a 100755 --- a/src/widgets/RadarItem/index.tsx +++ b/src/widgets/RadarItem/index.tsx @@ -17,7 +17,7 @@ import ArticlePinLabel from '@/widgets/ArticlePinLabel' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:RadarItem:index') +const log = buildLog('w:RadarItem:index') type TProps = { entry: TRadar diff --git a/src/widgets/ReadableDate/index.tsx b/src/widgets/ReadableDate/index.tsx index c27e3b95b..c9c4465cb 100755 --- a/src/widgets/ReadableDate/index.tsx +++ b/src/widgets/ReadableDate/index.tsx @@ -12,7 +12,7 @@ import AbsoluteFmt from './AbsoluteFmt' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ReadableDate:index') +const log = buildLog('w:ReadableDate:index') type TProps = { testid?: string diff --git a/src/widgets/RepoItem/index.js b/src/widgets/RepoItem/index.js index c5247bfe3..ac4d4411e 100755 --- a/src/widgets/RepoItem/index.js +++ b/src/widgets/RepoItem/index.js @@ -17,7 +17,7 @@ import { Wrapper, BodyDigest } from './styles' import { getOpacity } from './helper' /* eslint-disable-next-line */ -const log = buildLog('c:RepoItem:index') +const log = buildLog('w:RepoItem:index') const RepoItem = ({ entry, active, onPreview, accountInfo }) => ( diff --git a/src/widgets/SearchingLabel/index.js b/src/widgets/SearchingLabel/index.js index 77aa3374a..d9c4a9a00 100755 --- a/src/widgets/SearchingLabel/index.js +++ b/src/widgets/SearchingLabel/index.js @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, LoadingIcon, LoadingText } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:SearchingLabel:index') +const log = buildLog('w:SearchingLabel:index') const SearchingLabel = ({ iconSrc, text }) => ( diff --git a/src/widgets/SectionLabel/index.js b/src/widgets/SectionLabel/index.js index 0d0426a81..74f15fb1a 100755 --- a/src/widgets/SectionLabel/index.js +++ b/src/widgets/SectionLabel/index.js @@ -23,7 +23,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:SectionLabel:index') +const log = buildLog('w:SectionLabel:index') const SectionLabel = ({ title, iconSrc, desc, node, addonNode }) => ( diff --git a/src/widgets/Select/index.tsx b/src/widgets/Select/index.tsx index 350267c7b..7cb9d4e06 100755 --- a/src/widgets/Select/index.tsx +++ b/src/widgets/Select/index.tsx @@ -17,7 +17,7 @@ import { Input, Option, IndicatorsContainer } from './components' import { Wrapper, getSelectStyles } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Select:index') +const log = buildLog('w:Select:index') type TProps = { testid?: string diff --git a/src/widgets/SettingMenu/index.tsx b/src/widgets/SettingMenu/index.tsx index 226cf45d3..bc0c0ce28 100755 --- a/src/widgets/SettingMenu/index.tsx +++ b/src/widgets/SettingMenu/index.tsx @@ -11,7 +11,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, Option, ActiveDot, Title, Desc } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:SettingMenu:index') +const log = buildLog('w:SettingMenu:index') type TProps = { testid?: string diff --git a/src/widgets/SocialEditor/InputBar.tsx b/src/widgets/SocialEditor/InputBar.tsx index a7a9637aa..1beeafb52 100644 --- a/src/widgets/SocialEditor/InputBar.tsx +++ b/src/widgets/SocialEditor/InputBar.tsx @@ -19,7 +19,7 @@ import { } from './styles/input_bar' /* eslint-disable-next-line */ -const log = buildLog('c:SocialEditor:index') +const log = buildLog('w:SocialEditor:index') type TProps = { social: TSocial diff --git a/src/widgets/SocialEditor/index.tsx b/src/widgets/SocialEditor/index.tsx index ebd1eebed..6803e6610 100644 --- a/src/widgets/SocialEditor/index.tsx +++ b/src/widgets/SocialEditor/index.tsx @@ -25,7 +25,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:SocialEditor:index') +const log = buildLog('w:SocialEditor:index') type TProps = { testid?: string diff --git a/src/widgets/StatusBox/index.js b/src/widgets/StatusBox/index.js index afa85ee28..393d7f52b 100755 --- a/src/widgets/StatusBox/index.js +++ b/src/widgets/StatusBox/index.js @@ -21,7 +21,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:StatusBox:index') +const log = buildLog('w:StatusBox:index') const getDefaultMsg = (success, error) => { if (success) { diff --git a/src/widgets/Sticky/index.js b/src/widgets/Sticky/index.js index 57b036b31..5116a8b28 100755 --- a/src/widgets/Sticky/index.js +++ b/src/widgets/Sticky/index.js @@ -14,7 +14,7 @@ import ResizeObserver from 'resize-observer-polyfill' import { buildLog } from '@/utils/logger' import { Global } from '@/utils/helper' -const log = buildLog('c:Sticky') +const log = buildLog('w:Sticky') const getScrollParent = (node) => { let parent = node diff --git a/src/widgets/SubTitle/index.tsx b/src/widgets/SubTitle/index.tsx index 1e721defe..ea5ef08c3 100644 --- a/src/widgets/SubTitle/index.tsx +++ b/src/widgets/SubTitle/index.tsx @@ -13,7 +13,7 @@ import ArrowButton from '@/widgets/Buttons/ArrowButton' import { Wrapper, Title, OptionWrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:SubTitle:index') +const log = buildLog('w:SubTitle:index') type TProps = { testid?: string diff --git a/src/widgets/SupportUs/index.tsx b/src/widgets/SupportUs/index.tsx index 774913d70..99333709d 100755 --- a/src/widgets/SupportUs/index.tsx +++ b/src/widgets/SupportUs/index.tsx @@ -39,7 +39,7 @@ import { SocialIcon, } from './styles' -const log = buildLog('c:Support') +const log = buildLog('w:Support') const BuyMeChuanChuan = dynamic(() => import('@/widgets/BuyMeChuanChuan'), { ssr: false, diff --git a/src/widgets/Switcher/IconSwitcher.tsx b/src/widgets/Switcher/IconSwitcher.tsx index 70e2aef50..b36442e60 100644 --- a/src/widgets/Switcher/IconSwitcher.tsx +++ b/src/widgets/Switcher/IconSwitcher.tsx @@ -21,7 +21,7 @@ import { } from './styles/icon_selector' /* eslint-disable-next-line */ -const log = buildLog('c:IconSwitcher:index') +const log = buildLog('w:IconSwitcher:index') type TItem = { icon?: string diff --git a/src/widgets/Switcher/PagiOptionSwitcher/index.js b/src/widgets/Switcher/PagiOptionSwitcher/index.js index ef8d385ab..b1738db9d 100644 --- a/src/widgets/Switcher/PagiOptionSwitcher/index.js +++ b/src/widgets/Switcher/PagiOptionSwitcher/index.js @@ -20,7 +20,7 @@ import TwoColumn from './TwoColumn' import { Wrapper, Title } from '../styles/pagi_option_selector' /* eslint-disable-next-line */ -const log = buildLog('c:PagiOptionSwitcher:index') +const log = buildLog('w:PagiOptionSwitcher:index') const getLocalIcon = (item, activeKey) => { if (!item.localIcon) return '' diff --git a/src/widgets/Switcher/Radio.tsx b/src/widgets/Switcher/Radio.tsx index 8f400a25d..507bccaec 100644 --- a/src/widgets/Switcher/Radio.tsx +++ b/src/widgets/Switcher/Radio.tsx @@ -13,7 +13,7 @@ import { SIZE } from '@/constant' import { Wrapper, Label } from './styles/radio' /* eslint-disable-next-line */ -const log = buildLog('c:Radio:index') +const log = buildLog('w:Radio:index') type TItem = { value: string diff --git a/src/widgets/Switcher/Tabs/DesktopView.tsx b/src/widgets/Switcher/Tabs/DesktopView.tsx index 0d78455eb..406b5a050 100644 --- a/src/widgets/Switcher/Tabs/DesktopView.tsx +++ b/src/widgets/Switcher/Tabs/DesktopView.tsx @@ -18,7 +18,7 @@ import { Wrapper, Nav, SlipBar, RealBar } from '../styles/tabs' import { getSlipMargin } from '../styles/metric/tabs' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') // const defaultItems2 = ['帖子', '开源项目', 'Cheatsheet', '工作机会', '职场'] const temItems = [ diff --git a/src/widgets/Switcher/Tabs/DrawerView.tsx b/src/widgets/Switcher/Tabs/DrawerView.tsx index 8106b005f..691c9d43c 100644 --- a/src/widgets/Switcher/Tabs/DrawerView.tsx +++ b/src/widgets/Switcher/Tabs/DrawerView.tsx @@ -13,7 +13,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, TabItem } from '../styles/tabs/drawer_view' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') const temItems = [ { diff --git a/src/widgets/Switcher/Tabs/MobileView/ExpandView.tsx b/src/widgets/Switcher/Tabs/MobileView/ExpandView.tsx index b85ccc820..6575eb8e3 100644 --- a/src/widgets/Switcher/Tabs/MobileView/ExpandView.tsx +++ b/src/widgets/Switcher/Tabs/MobileView/ExpandView.tsx @@ -22,7 +22,7 @@ import { } from '../../styles/tabs/mobile_view/expand_view' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') type TProps = { items: TTabItem[] diff --git a/src/widgets/Switcher/Tabs/MobileView/NormalView.tsx b/src/widgets/Switcher/Tabs/MobileView/NormalView.tsx index c3bed1578..3a4ec4ede 100644 --- a/src/widgets/Switcher/Tabs/MobileView/NormalView.tsx +++ b/src/widgets/Switcher/Tabs/MobileView/NormalView.tsx @@ -26,7 +26,7 @@ import { import { getSlipMargin } from '../../styles/metric/tabs' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') const temItems = [ { diff --git a/src/widgets/Switcher/Tabs/ModelineView.tsx b/src/widgets/Switcher/Tabs/ModelineView.tsx index cb85c3f9d..ad52d3ff0 100644 --- a/src/widgets/Switcher/Tabs/ModelineView.tsx +++ b/src/widgets/Switcher/Tabs/ModelineView.tsx @@ -23,7 +23,7 @@ import { import { getSlipMargin } from '../styles/metric/tabs' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') const temItems = [ { diff --git a/src/widgets/Switcher/Tabs/TabItem.tsx b/src/widgets/Switcher/Tabs/TabItem.tsx index 827403010..48f12ff53 100644 --- a/src/widgets/Switcher/Tabs/TabItem.tsx +++ b/src/widgets/Switcher/Tabs/TabItem.tsx @@ -20,7 +20,7 @@ import { } from '../styles/tabs/tab_item' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') type TProps = { mobileView?: boolean diff --git a/src/widgets/Switcher/Tabs/index.tsx b/src/widgets/Switcher/Tabs/index.tsx index ecce86101..c50bf039c 100644 --- a/src/widgets/Switcher/Tabs/index.tsx +++ b/src/widgets/Switcher/Tabs/index.tsx @@ -16,7 +16,7 @@ import ModelineView from './ModelineView' import DrawerView from './DrawerView' /* eslint-disable-next-line */ -const log = buildLog('c:Tabs:index') +const log = buildLog('w:Tabs:index') const Tabs = (props) => { const { view } = props diff --git a/src/widgets/TabBar/DesktopView/index.tsx b/src/widgets/TabBar/DesktopView/index.tsx index d214daaf8..5f164b870 100644 --- a/src/widgets/TabBar/DesktopView/index.tsx +++ b/src/widgets/TabBar/DesktopView/index.tsx @@ -13,7 +13,7 @@ import type { TTabItem } from '../spec' import NormalView from './NormalView' /* eslint-disable-next-line */ -const log = buildLog('c:TabBar:index') +const log = buildLog('w:TabBar:index') type TProps = { source: TTabItem[] diff --git a/src/widgets/TabBar/index.tsx b/src/widgets/TabBar/index.tsx index e9b9e30f7..6c0b12c63 100755 --- a/src/widgets/TabBar/index.tsx +++ b/src/widgets/TabBar/index.tsx @@ -12,7 +12,7 @@ import DesktopView from './DesktopView' import MobileView from './MobileView' /* eslint-disable-next-line */ -const log = buildLog('c:TabBar:index') +const log = buildLog('w:TabBar:index') const TabBar = (props) => { // const { view } = props diff --git a/src/widgets/TabSelector/index.js b/src/widgets/TabSelector/index.js index 809df62f6..82995ef5b 100755 --- a/src/widgets/TabSelector/index.js +++ b/src/widgets/TabSelector/index.js @@ -18,7 +18,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:TabSelector:index') +const log = buildLog('w:TabSelector:index') const TabSelector = ({ source, activeRaw, onChange }) => ( diff --git a/src/widgets/Tag/index.tsx b/src/widgets/Tag/index.tsx index 81daefea3..5cfa6ef52 100644 --- a/src/widgets/Tag/index.tsx +++ b/src/widgets/Tag/index.tsx @@ -11,7 +11,7 @@ import { buildLog } from '@/utils/logger' import { Wrapper, CloseIcon } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Tag:index') +const log = buildLog('w:Tag:index') type TProps = { children: ReactNode diff --git a/src/widgets/TagsList/index.tsx b/src/widgets/TagsList/index.tsx index 583548d7d..30c384c4f 100755 --- a/src/widgets/TagsList/index.tsx +++ b/src/widgets/TagsList/index.tsx @@ -25,7 +25,7 @@ import Setter from './Setter' import { Wrapper, Tag, DotSign, Title, More } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:TagsList:index') +const log = buildLog('w:TagsList:index') export type TProps = { items: TTag[] diff --git a/src/widgets/TeamList/List/EditWorksLayout.tsx b/src/widgets/TeamList/List/EditWorksLayout.tsx index b8ec5af3d..52c80fd86 100644 --- a/src/widgets/TeamList/List/EditWorksLayout.tsx +++ b/src/widgets/TeamList/List/EditWorksLayout.tsx @@ -19,7 +19,7 @@ import { } from '../styles/list/edit_works_layout' /* eslint-disable-next-line */ -const log = buildLog('c:TeamList:index') +const log = buildLog('w:TeamList:index') type TProps = { users: TUser[] diff --git a/src/widgets/TeamList/List/GuideLayout.tsx b/src/widgets/TeamList/List/GuideLayout.tsx index fec4b7570..88ff1d449 100644 --- a/src/widgets/TeamList/List/GuideLayout.tsx +++ b/src/widgets/TeamList/List/GuideLayout.tsx @@ -19,7 +19,7 @@ import { } from '../styles/list/guide_layout' /* eslint-disable-next-line */ -const log = buildLog('c:TeamList:index') +const log = buildLog('w:TeamList:index') type TProps = { users: TUser[] diff --git a/src/widgets/TeamList/List/WorksLayout.tsx b/src/widgets/TeamList/List/WorksLayout.tsx index b78afe0ce..6814e922c 100644 --- a/src/widgets/TeamList/List/WorksLayout.tsx +++ b/src/widgets/TeamList/List/WorksLayout.tsx @@ -20,7 +20,7 @@ import { } from '../styles/list/works_layout' /* eslint-disable-next-line */ -const log = buildLog('c:TeamList:index') +const log = buildLog('w:TeamList:index') type TProps = { users: TUser[] diff --git a/src/widgets/TeamList/Setter/index.tsx b/src/widgets/TeamList/Setter/index.tsx index 10b3a168f..69d03fa8b 100644 --- a/src/widgets/TeamList/Setter/index.tsx +++ b/src/widgets/TeamList/Setter/index.tsx @@ -18,7 +18,7 @@ import type { TView } from '../spec' import { Wrapper, EmptyHint } from '../styles/setter' /* eslint-disable-next-line */ -const log = buildLog('c:TeamList:index') +const log = buildLog('w:TeamList:index') export type TProps = { show: boolean diff --git a/src/widgets/TeamList/index.tsx b/src/widgets/TeamList/index.tsx index 6a061f366..b565d7812 100644 --- a/src/widgets/TeamList/index.tsx +++ b/src/widgets/TeamList/index.tsx @@ -17,7 +17,7 @@ import List from './List' // import { Wrapper, Avatar, SettingWrapper, SettingIcon } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:TeamList:index') +const log = buildLog('w:TeamList:index') type TProps = { users: TUser[] diff --git a/src/widgets/TechStacks/index.tsx b/src/widgets/TechStacks/index.tsx index 62331bace..2f05be290 100755 --- a/src/widgets/TechStacks/index.tsx +++ b/src/widgets/TechStacks/index.tsx @@ -18,7 +18,7 @@ import ReadOnlyRow from './ReadOnlyRow' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:TechStack:index') +const log = buildLog('w:TechStack:index') const FULL_TECHS = reduce( (acc, key) => ({ ...acc, [key]: [] }), diff --git a/src/widgets/TheAvatar/index.tsx b/src/widgets/TheAvatar/index.tsx index 6cb646397..f87d6a406 100755 --- a/src/widgets/TheAvatar/index.tsx +++ b/src/widgets/TheAvatar/index.tsx @@ -17,7 +17,7 @@ import type { TMetric } from './spec' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:TheAvatar:index') +const log = buildLog('w:TheAvatar:index') type TProps = { testid?: string diff --git a/src/widgets/ThemeSelector/index.tsx b/src/widgets/ThemeSelector/index.tsx index 1daaf9a5e..0fab88033 100644 --- a/src/widgets/ThemeSelector/index.tsx +++ b/src/widgets/ThemeSelector/index.tsx @@ -13,7 +13,7 @@ import CardSelector from './CardSelector' import GallerySelector from './GallerySelector' /* eslint-disable-next-line */ -const log = buildLog('c:ThemeSelector:index') +const log = buildLog('w:ThemeSelector:index') type TProps = { curTheme?: string diff --git a/src/widgets/ThreadSelector/index.js b/src/widgets/ThreadSelector/index.js index 3257a4201..e03957bdf 100755 --- a/src/widgets/ThreadSelector/index.js +++ b/src/widgets/ThreadSelector/index.js @@ -25,7 +25,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:ThreadSelector:index') +const log = buildLog('w:ThreadSelector:index') const ThreadSelector = ({ options, diff --git a/src/widgets/Tooltip/RealTooltip.tsx b/src/widgets/Tooltip/RealTooltip.tsx index 84314f779..0ed98bdf8 100755 --- a/src/widgets/Tooltip/RealTooltip.tsx +++ b/src/widgets/Tooltip/RealTooltip.tsx @@ -29,7 +29,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Tooltip:index') +const log = buildLog('w:Tooltip:index') const Tooltip: FC = ({ children, diff --git a/src/widgets/Tooltip/index.tsx b/src/widgets/Tooltip/index.tsx index aaa55fd7f..093e88aed 100755 --- a/src/widgets/Tooltip/index.tsx +++ b/src/widgets/Tooltip/index.tsx @@ -26,7 +26,7 @@ const RealTooltip = dynamic(() => import('./RealTooltip'), { }) /* eslint-disable-next-line */ -const log = buildLog('c:Tooltip:index') +const log = buildLog('w:Tooltip:index') export type TProps = { children: ReactNode diff --git a/src/widgets/TrendLine/index.tsx b/src/widgets/TrendLine/index.tsx index 4f4c6fcae..b397be029 100644 --- a/src/widgets/TrendLine/index.tsx +++ b/src/widgets/TrendLine/index.tsx @@ -12,7 +12,7 @@ import type { TThemeMap } from '@/spec' import { buildLog } from '@/utils/logger' /* eslint-disable-next-line */ -const log = buildLog('c:TrendLine:index') +const log = buildLog('w:TrendLine:index') type TProps = { data: number[] diff --git a/src/widgets/Upvote/ArticleLayout.tsx b/src/widgets/Upvote/ArticleLayout.tsx index ab2669798..7af9645fc 100644 --- a/src/widgets/Upvote/ArticleLayout.tsx +++ b/src/widgets/Upvote/ArticleLayout.tsx @@ -15,7 +15,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpWrapper, CountWrapper } from './styles/article_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/BlogListLayout.tsx b/src/widgets/Upvote/BlogListLayout.tsx index a6aa762d4..6b20fade2 100644 --- a/src/widgets/Upvote/BlogListLayout.tsx +++ b/src/widgets/Upvote/BlogListLayout.tsx @@ -14,7 +14,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpWrapper, CountWrapper } from './styles/blog_list_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/CommentLayout.tsx b/src/widgets/Upvote/CommentLayout.tsx index e76a96898..352326e93 100644 --- a/src/widgets/Upvote/CommentLayout.tsx +++ b/src/widgets/Upvote/CommentLayout.tsx @@ -15,7 +15,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpWrapper, CountWrapper } from './styles/comment_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/DefaultLayout.tsx b/src/widgets/Upvote/DefaultLayout.tsx index dbeb24c8f..4ac33ca57 100644 --- a/src/widgets/Upvote/DefaultLayout.tsx +++ b/src/widgets/Upvote/DefaultLayout.tsx @@ -24,7 +24,7 @@ import { } from './styles/default_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/Desc.tsx b/src/widgets/Upvote/Desc.tsx index 2c0830fd3..184e114b7 100644 --- a/src/widgets/Upvote/Desc.tsx +++ b/src/widgets/Upvote/Desc.tsx @@ -9,7 +9,7 @@ import { buildLog } from '@/utils/logger' import { Text, DescWrapper } from './styles/default_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:Desc') +const log = buildLog('w:Upvote:Desc') type TProps = { count?: number diff --git a/src/widgets/Upvote/FixedHeaderLayout.tsx b/src/widgets/Upvote/FixedHeaderLayout.tsx index 5af087724..038fef1ae 100644 --- a/src/widgets/Upvote/FixedHeaderLayout.tsx +++ b/src/widgets/Upvote/FixedHeaderLayout.tsx @@ -15,7 +15,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpvoteBtnWrapper, Count } from './styles/fixed_header_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/GuideListLayout.tsx b/src/widgets/Upvote/GuideListLayout.tsx index 6e3459bb2..7163d2d03 100644 --- a/src/widgets/Upvote/GuideListLayout.tsx +++ b/src/widgets/Upvote/GuideListLayout.tsx @@ -14,7 +14,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpWrapper, CountWrapper } from './styles/guide_list_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/KanbanLayout.tsx b/src/widgets/Upvote/KanbanLayout.tsx index 62bd7d72c..de6b7f48f 100644 --- a/src/widgets/Upvote/KanbanLayout.tsx +++ b/src/widgets/Upvote/KanbanLayout.tsx @@ -23,7 +23,7 @@ import { } from './styles/kanban_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/PostListLayout.tsx b/src/widgets/Upvote/PostListLayout.tsx index 91c408880..fe6ab5312 100644 --- a/src/widgets/Upvote/PostListLayout.tsx +++ b/src/widgets/Upvote/PostListLayout.tsx @@ -14,7 +14,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpWrapper, CountWrapper } from './styles/post_list_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/StickerLayout.tsx b/src/widgets/Upvote/StickerLayout.tsx index 4b3fbcfee..be66ea570 100644 --- a/src/widgets/Upvote/StickerLayout.tsx +++ b/src/widgets/Upvote/StickerLayout.tsx @@ -22,7 +22,7 @@ import { } from './styles/sticker_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/UpvoteBtn.tsx b/src/widgets/Upvote/UpvoteBtn.tsx index 49a4d9adc..09c8156f5 100644 --- a/src/widgets/Upvote/UpvoteBtn.tsx +++ b/src/widgets/Upvote/UpvoteBtn.tsx @@ -19,7 +19,7 @@ import { } from './styles/upvote_btn' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { type?: TUpvoteLayout diff --git a/src/widgets/Upvote/WorksArticleLayout.tsx b/src/widgets/Upvote/WorksArticleLayout.tsx index 3c35b1793..ca0be2d63 100644 --- a/src/widgets/Upvote/WorksArticleLayout.tsx +++ b/src/widgets/Upvote/WorksArticleLayout.tsx @@ -25,7 +25,7 @@ import { } from './styles/works_article_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/WorksCardLayout.tsx b/src/widgets/Upvote/WorksCardLayout.tsx index 1a53e8b21..1c2e15c36 100644 --- a/src/widgets/Upvote/WorksCardLayout.tsx +++ b/src/widgets/Upvote/WorksCardLayout.tsx @@ -14,7 +14,7 @@ import UpvoteBtn from './UpvoteBtn' import { Wrapper, UpWrapper, CountWrapper } from './styles/works_card_layout' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/index.tsx b/src/widgets/Upvote/index.tsx index 9f5ea4797..2cf69c861 100755 --- a/src/widgets/Upvote/index.tsx +++ b/src/widgets/Upvote/index.tsx @@ -25,7 +25,7 @@ import StickerLayout from './StickerLayout' import { Wrapper } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:Upvote:index') +const log = buildLog('w:Upvote:index') type TProps = { testid?: string diff --git a/src/widgets/Upvote/styles/metric.ts b/src/widgets/Upvote/styles/metric.ts index d8e220fea..eef4cc8b4 100644 --- a/src/widgets/Upvote/styles/metric.ts +++ b/src/widgets/Upvote/styles/metric.ts @@ -3,7 +3,7 @@ import { UPVOTE_LAYOUT } from '@/constant' import { theme } from '@/utils/css' -export const getIconColor = ($active: boolean, count: number): string => { +export const getIconColor = ($active: boolean): string => { if ($active) return theme('thread.articleTitle') return theme('thread.extraInfo') diff --git a/src/widgets/Upvote/styles/upvote_btn.ts b/src/widgets/Upvote/styles/upvote_btn.ts index 7408ae2da..1a1579342 100644 --- a/src/widgets/Upvote/styles/upvote_btn.ts +++ b/src/widgets/Upvote/styles/upvote_btn.ts @@ -162,7 +162,7 @@ export const IconWrapper = styled.div<{ type: TUpvoteLayout }>` ` type TUpIcon = { type: TUpvoteLayout; count: number } & TActive export const UpIcon = styled(UpvoteIcon)` - fill: ${({ $active, count }) => getIconColor($active, count)}; + fill: ${({ $active }) => getIconColor($active)}; width: ${({ type }) => getIconSize(type)}; height: ${({ type }) => getIconSize(type)}; diff --git a/src/widgets/UserBrief/index.tsx b/src/widgets/UserBrief/index.tsx index b657cebcf..6ffeb8700 100755 --- a/src/widgets/UserBrief/index.tsx +++ b/src/widgets/UserBrief/index.tsx @@ -22,7 +22,7 @@ import Avatar from './Avatar' import { Wrapper, UserTitle, WomanIcon, ShortBio, Bio, Divider } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:UserBrief') +const log = buildLog('w:UserBrief') type TProps = { user: TUser diff --git a/src/widgets/UserCell/index.js b/src/widgets/UserCell/index.js index 904eb8b76..7f5ac53d5 100755 --- a/src/widgets/UserCell/index.js +++ b/src/widgets/UserCell/index.js @@ -11,7 +11,7 @@ import { buildLog } from '@/utils/logger' import { UserCellWrapper, Avatar, UserInfo, NickName, Bio } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:UserCell:index') +const log = buildLog('w:UserCell:index') const UserCell = ({ user }) => { return ( diff --git a/src/widgets/VerifiedSign/index.tsx b/src/widgets/VerifiedSign/index.tsx index 005441f20..89d8b5ede 100755 --- a/src/widgets/VerifiedSign/index.tsx +++ b/src/widgets/VerifiedSign/index.tsx @@ -22,7 +22,7 @@ import { } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:VerifiedSign:index') +const log = buildLog('w:VerifiedSign:index') const PopContent = ({ communityTitle }) => { return ( diff --git a/src/widgets/WorksInfoCard/index.tsx b/src/widgets/WorksInfoCard/index.tsx index 8aa85decd..7a282f834 100755 --- a/src/widgets/WorksInfoCard/index.tsx +++ b/src/widgets/WorksInfoCard/index.tsx @@ -15,7 +15,7 @@ import Others from './Others' import { Wrapper, Row, Title, SlashSign, Divider } from './styles' /* eslint-disable-next-line */ -const log = buildLog('c:WorksInfoCard:index') +const log = buildLog('w:WorksInfoCard:index') type TProps = { article: TWorks diff --git a/utils/toast.ts b/utils/toast.ts index 1091170d6..e855f6464 100755 --- a/utils/toast.ts +++ b/utils/toast.ts @@ -12,13 +12,13 @@ import { nilOrEmpty } from './validator' type TToastType = 'success' | 'error' | 'warn' -const checkValid = () => (Global as any).iziToast || false +const checkValid = () => (Global as IWindow).iziToast || false const doNotify = (options = {}): void => { if (!checkValid()) { return } - const { iziToast } = Global as any + const { iziToast } = Global as IWindow iziToast.show(merge(DEFAULT_TOAST_OPTIONS, reject(nilOrEmpty, options))) }