update js dependencies
+ fix
This commit is contained in:
parent
6c8653a1b7
commit
7d082e967e
@ -13,22 +13,22 @@
|
||||
"dependencies": {
|
||||
"@tmcw/togeojson": "^5.2.2",
|
||||
"@vue-leaflet/vue-leaflet": "^0.6.1",
|
||||
"@zxcvbn-ts/core": "^2.0.4",
|
||||
"@zxcvbn-ts/core": "^2.0.5",
|
||||
"@zxcvbn-ts/language-common": "^2.0.1",
|
||||
"@zxcvbn-ts/language-en": "^2.0.1",
|
||||
"@zxcvbn-ts/language-fr": "^2.1.0",
|
||||
"@zxcvbn-ts/language-en": "^2.1.0",
|
||||
"@zxcvbn-ts/language-fr": "^2.2.0",
|
||||
"axios": "^0.26.1",
|
||||
"chart.js": "^3.9.1",
|
||||
"chartjs-plugin-datalabels": "^2.1.0",
|
||||
"core-js": "^3.25.0",
|
||||
"date-fns": "^2.29.2",
|
||||
"date-fns-tz": "^1.3.6",
|
||||
"core-js": "^3.25.1",
|
||||
"date-fns": "^2.29.3",
|
||||
"date-fns-tz": "^1.3.7",
|
||||
"leaflet": "^1.8.0",
|
||||
"register-service-worker": "^1.7.1",
|
||||
"vue": "^3.2.37",
|
||||
"vue": "^3.2.39",
|
||||
"vue-chart-3": "3.1.1",
|
||||
"vue-fullscreen": "^3.1.1",
|
||||
"vue-i18n": "^9.1.10",
|
||||
"vue-i18n": "^9.2.2",
|
||||
"vue-router": "^4.1.5",
|
||||
"vuex": "^4.0.0-0"
|
||||
},
|
||||
@ -36,8 +36,8 @@
|
||||
"@intlify/vue-i18n-loader": "^4.2.0",
|
||||
"@types/chai": "^4.3.3",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
||||
"@typescript-eslint/parser": "^5.30.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
||||
"@typescript-eslint/parser": "^5.37.0",
|
||||
"@vue/cli-plugin-babel": "~5.0.8",
|
||||
"@vue/cli-plugin-eslint": "~5.0.8",
|
||||
"@vue/cli-plugin-pwa": "~5.0.8",
|
||||
@ -46,19 +46,19 @@
|
||||
"@vue/cli-plugin-unit-mocha": "~5.0.8",
|
||||
"@vue/cli-plugin-vuex": "~5.0.8",
|
||||
"@vue/cli-service": "~5.0.8",
|
||||
"@vue/eslint-config-typescript": "^11.0.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.1",
|
||||
"@vue/test-utils": "^2.0.2",
|
||||
"chai": "^4.3.6",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint": "8.22.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-import-resolver-typescript": "^3.2.5",
|
||||
"eslint-import-resolver-typescript": "^3.5.1",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-vue": "^9.2.0",
|
||||
"eslint-plugin-vue": "^9.4.0",
|
||||
"prettier": "^2.7.1",
|
||||
"sass": "^1.54.5",
|
||||
"sass": "^1.54.9",
|
||||
"sass-loader": "^13.0.2",
|
||||
"typescript": "^4.7.4",
|
||||
"typescript": "^4.8.3",
|
||||
"vue-cli-plugin-i18n": "~2.3.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
@ -6,9 +6,9 @@ import { createI18n, LocaleMessages, VueMessageType } from 'vue-i18n'
|
||||
* The loaded `JSON` locale messages is pre-compiled by `@intlify/vue-i18n-loader`, which is integrated into `vue-cli-plugin-i18n`.
|
||||
* See: https://github.com/intlify/vue-i18n-loader#rocket-i18n-resource-pre-compilation
|
||||
*/
|
||||
function loadLocaleMessages(): LocaleMessages<VueMessageType> {
|
||||
function loadLocaleMessages(): Record<string, LocaleMessages<VueMessageType>> {
|
||||
const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.ts$/i)
|
||||
const messages: LocaleMessages<VueMessageType> = {}
|
||||
const messages: Record<string, LocaleMessages<VueMessageType>> = {}
|
||||
locales.keys().forEach((key) => {
|
||||
const matched = key.match(/([A-Za-z0-9-_]+)\./i)
|
||||
if (matched && matched.length > 1) {
|
||||
|
@ -156,9 +156,7 @@ export const formatStats = (
|
||||
datasetKeys.map((datasetKey) => {
|
||||
datasets[datasetKey].map((dataset) => {
|
||||
dataset.data.push(
|
||||
apiStats !== {} &&
|
||||
date in apiStats &&
|
||||
sportsId[dataset.label] in apiStats[date]
|
||||
date in apiStats && sportsId[dataset.label] in apiStats[date]
|
||||
? convertStatsValue(
|
||||
datasetKey,
|
||||
apiStats[date][sportsId[dataset.label]][datasetKey],
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user