fix: 参赛记录excel导出
This commit is contained in:
parent
724731f52a
commit
b85c9fe383
6
node_modules/.package-lock.json
generated
vendored
6
node_modules/.package-lock.json
generated
vendored
@ -6637,9 +6637,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dayjs": {
|
||||
"version": "1.11.10",
|
||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz",
|
||||
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
|
||||
"version": "1.11.13",
|
||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
||||
},
|
||||
"node_modules/de-indent": {
|
||||
"version": "1.0.2",
|
||||
|
28
node_modules/dayjs/CHANGELOG.md
generated
vendored
28
node_modules/dayjs/CHANGELOG.md
generated
vendored
@ -1,3 +1,31 @@
|
||||
## [1.11.13](https://github.com/iamkun/dayjs/compare/v1.11.12...v1.11.13) (2024-08-20)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* customParseFormat supports Q quter / w ww weekOfYear ([#2705](https://github.com/iamkun/dayjs/issues/2705)) ([8ca74f1](https://github.com/iamkun/dayjs/commit/8ca74f178eff4bb4eb686676cf35fe7edb815536))
|
||||
|
||||
## [1.11.12](https://github.com/iamkun/dayjs/compare/v1.11.11...v1.11.12) (2024-07-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Add NegativeYear Plugin support ([#2640](https://github.com/iamkun/dayjs/issues/2640)) ([6a42e0d](https://github.com/iamkun/dayjs/commit/6a42e0d7398639238f575d51287daaf4d495a2a3))
|
||||
* add UTC support to negativeYear plugin ([#2692](https://github.com/iamkun/dayjs/issues/2692)) ([f3ef705](https://github.com/iamkun/dayjs/commit/f3ef705613af83333fe132b470896a65e12f31b0))
|
||||
* Fix zero offset issue when use tz with locale ([#2532](https://github.com/iamkun/dayjs/issues/2532)) ([d0e6738](https://github.com/iamkun/dayjs/commit/d0e6738a66e1b65d3706aad2f9168ebb43d4f887))
|
||||
* Improve typing for min/max plugin ([#2573](https://github.com/iamkun/dayjs/issues/2573)) ([4fbe94a](https://github.com/iamkun/dayjs/commit/4fbe94aaba8c815a42cf4d23dabac918ec50e68c))
|
||||
* timezone plugin correct parse UTC tz ([#2693](https://github.com/iamkun/dayjs/issues/2693)) ([b575c81](https://github.com/iamkun/dayjs/commit/b575c81a8c9c85c7a0baf6f608a12f9d3ba95bd1))
|
||||
|
||||
## [1.11.11](https://github.com/iamkun/dayjs/compare/v1.11.10...v1.11.11) (2024-04-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* day of week type literal ([#2630](https://github.com/iamkun/dayjs/issues/2630)) ([f68d73e](https://github.com/iamkun/dayjs/commit/f68d73efe562fdedd9e288ecb0ce6565e602f507))
|
||||
* improve locale "zh-hk" format and meridiem ([#2419](https://github.com/iamkun/dayjs/issues/2419)) ([a947a51](https://github.com/iamkun/dayjs/commit/a947a5171aad5695eaf593bc95fe073de0f0894a))
|
||||
* Update 'da' locale to match correct first week of year ([#2592](https://github.com/iamkun/dayjs/issues/2592)) ([44b0936](https://github.com/iamkun/dayjs/commit/44b0936ad709212b63e48672d8b9c225e2c3b830))
|
||||
* update locale Bulgarian monthsShort Jan ([#2538](https://github.com/iamkun/dayjs/issues/2538)) ([f0c9a41](https://github.com/iamkun/dayjs/commit/f0c9a41c6ec91528f3790e442b0c5dff15a4e640))
|
||||
|
||||
## [1.11.10](https://github.com/iamkun/dayjs/compare/v1.11.9...v1.11.10) (2023-09-19)
|
||||
|
||||
|
||||
|
45
node_modules/dayjs/README.md
generated
vendored
45
node_modules/dayjs/README.md
generated
vendored
@ -5,13 +5,13 @@ English | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/R
|
||||
alt="Day.js" /></a></p>
|
||||
<p align="center">Fast <b>2kB</b> alternative to Moment.js with the same modern API</p>
|
||||
<p align="center">
|
||||
<a href="https://unpkg.com/dayjs/dayjs.min.js"><img
|
||||
src="https://img.badgesize.io/https://unpkg.com/dayjs/dayjs.min.js?compression=gzip&style=flat-square"
|
||||
<a href="https://bundlephobia.com/package/dayjs"><img
|
||||
src="https://img.shields.io/bundlephobia/minzip/dayjs?style=flat-square&color=%2345cc11"
|
||||
alt="Gzip Size"></a>
|
||||
<a href="https://www.npmjs.com/package/dayjs"><img src="https://img.shields.io/npm/v/dayjs.svg?style=flat-square&colorB=51C838"
|
||||
alt="NPM Version"></a>
|
||||
<a href="https://travis-ci.com/iamkun/dayjs"><img
|
||||
src="https://img.shields.io/travis/iamkun/dayjs/master.svg?style=flat-square" alt="Build Status"></a>
|
||||
<a href="https://github.com/iamkun/dayjs/actions/workflows/check.yml"><img
|
||||
src="https://img.shields.io/github/actions/workflow/status/iamkun/dayjs/check.yml?style=flat-square" alt="Build Status"></a>
|
||||
<a href="https://codecov.io/gh/iamkun/dayjs"><img
|
||||
src="https://img.shields.io/codecov/c/github/iamkun/dayjs/master.svg?style=flat-square" alt="Codecov"></a>
|
||||
<a href="https://github.com/iamkun/dayjs/blob/master/LICENSE"><img
|
||||
@ -99,6 +99,12 @@ dayjs().format('Q Do k kk X x') // more available formats
|
||||
|
||||
📚[Plugin List](https://day.js.org/docs/en/plugin/plugin)
|
||||
|
||||
### Usage Trend
|
||||
|
||||
<a href="https://npm-compare.com/moment,dayjs/#timeRange=THREE_YEARS" target="_blank">
|
||||
<img src="https://user-images.githubusercontent.com/3455798/270162667-c7bd2ebe-675e-45c6-a2c9-dc67f3b65d6e.png">
|
||||
</a>
|
||||
|
||||
## Sponsors
|
||||
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
|
||||
@ -109,25 +115,42 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
|
||||
<img width="70" src="https://user-images.githubusercontent.com/17680888/197092231-2367b5eb-1e43-467e-a311-23f7cd97b086.png">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/alan-eu" target="_blank">
|
||||
<img width="70" src="https://avatars.githubusercontent.com/u/18175329?s=52&v=4">
|
||||
<a href="https://github.com/ken-swyfft" target="_blank">
|
||||
<img width="70" src="https://avatars.githubusercontent.com/u/65305317?v=4">
|
||||
</a>
|
||||
|
||||
<a href="https://opencollective.com/sight-and-sound-ministries" target="_blank">
|
||||
<img width="70" src="https://user-images.githubusercontent.com/17680888/232316426-cb99b4cf-0ccb-4e73-a6ce-e16dba6aadf4.png">
|
||||
</a>
|
||||
|
||||
<a href="https://chudovo.com/" target="_blank">
|
||||
<img width="70" src="https://images.opencollective.com/chudovo/3c866f5/logo/256.png?height=256">
|
||||
</a>
|
||||
|
||||
<a href="https://www.honrev.com" target="_blank">
|
||||
<img width="70" src="https://github.com/user-attachments/assets/b3203350-34c1-4637-b8b1-d9b8bab346d3">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/alan-eu" target="_blank">
|
||||
<img width="70" src="https://avatars.githubusercontent.com/u/18175329?s=52&v=4">
|
||||
</a>
|
||||
|
||||
<a href="https://www.exoflare.com/open-source/?utm_source=dayjs&utm_campaign=open_source" target="_blank">
|
||||
<img width="70" src="https://user-images.githubusercontent.com/17680888/162761622-1407a849-0c41-4591-8aa9-f98114ec2092.png">
|
||||
</a>
|
||||
|
||||
<a href="https://rxdb.info/?utm_source=day.js.org&utm_medium=banner&utm_campaign=day.js.org-sponsored" target="_blank"><img width="70" src="https://user-images.githubusercontent.com/17680888/200301812-9c9bd523-5dc4-4cab-b380-543fbcd3802c.svg"></a>
|
||||
<a href="https://github.com/storyblok" target="_blank">
|
||||
<img width="70" src="https://avatars.githubusercontent.com/u/13880908?s=200&v=4">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/vendure-ecommerce" target="_blank"><img width="70" src="https://avatars.githubusercontent.com/u/39629390?s=52&v=4"></a>
|
||||
<a href="https://bestkru.com/" target="_blank">
|
||||
<img width="70" src="https://avatars.githubusercontent.com/u/159320286" alt="BestKru">
|
||||
</a>
|
||||
|
||||
<a href="https://opencollective.com/docbot" target="_blank"><img width="70" src="https://images.opencollective.com/docbot/457761e/logo.png"></a>
|
||||
|
||||
<a href="https://opencollective.com/datawrapper" target="_blank"><img width="70" src="https://images.opencollective.com/datawrapper/c13e229/logo.png"></a>
|
||||
<a href="https://route4me.com/" target="_blank">
|
||||
<img width="70" src="https://github.com/user-attachments/assets/3fbc86c5-98a9-49c2-beae-1969026fcd76" alt="Route Optimizer and Route Planner Software">
|
||||
</a>
|
||||
|
||||
|
||||
## Contributors
|
||||
|
||||
|
2
node_modules/dayjs/esm/index.d.ts
generated
vendored
2
node_modules/dayjs/esm/index.d.ts
generated
vendored
@ -114,7 +114,7 @@ declare namespace dayjs {
|
||||
* ```
|
||||
* Docs: https://day.js.org/docs/en/get-set/day
|
||||
*/
|
||||
day(): number
|
||||
day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
|
||||
/**
|
||||
* Set the day of the week.
|
||||
*
|
||||
|
2
node_modules/dayjs/esm/locale/bg.js
generated
vendored
2
node_modules/dayjs/esm/locale/bg.js
generated
vendored
@ -6,7 +6,7 @@ var locale = {
|
||||
weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
|
||||
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
||||
months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
|
||||
monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
|
||||
monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
|
||||
weekStart: 1,
|
||||
ordinal: function ordinal(n) {
|
||||
var last2Digits = n % 100;
|
||||
|
1
node_modules/dayjs/esm/locale/da.js
generated
vendored
1
node_modules/dayjs/esm/locale/da.js
generated
vendored
@ -8,6 +8,7 @@ var locale = {
|
||||
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
|
||||
monthsShort: 'jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.'.split('_'),
|
||||
weekStart: 1,
|
||||
yearStart: 4,
|
||||
ordinal: function ordinal(n) {
|
||||
return n + ".";
|
||||
},
|
||||
|
23
node_modules/dayjs/esm/locale/zh-hk.js
generated
vendored
23
node_modules/dayjs/esm/locale/zh-hk.js
generated
vendored
@ -22,7 +22,11 @@ var locale = {
|
||||
L: 'YYYY/MM/DD',
|
||||
LL: 'YYYY年M月D日',
|
||||
LLL: 'YYYY年M月D日 HH:mm',
|
||||
LLLL: 'YYYY年M月D日dddd HH:mm'
|
||||
LLLL: 'YYYY年M月D日dddd HH:mm',
|
||||
l: 'YYYY/M/D',
|
||||
ll: 'YYYY年M月D日',
|
||||
lll: 'YYYY年M月D日 HH:mm',
|
||||
llll: 'YYYY年M月D日dddd HH:mm'
|
||||
},
|
||||
relativeTime: {
|
||||
future: '%s內',
|
||||
@ -38,6 +42,23 @@ var locale = {
|
||||
MM: '%d 個月',
|
||||
y: '一年',
|
||||
yy: '%d 年'
|
||||
},
|
||||
meridiem: function meridiem(hour, minute) {
|
||||
var hm = hour * 100 + minute;
|
||||
|
||||
if (hm < 600) {
|
||||
return '凌晨';
|
||||
} else if (hm < 900) {
|
||||
return '早上';
|
||||
} else if (hm < 1100) {
|
||||
return '上午';
|
||||
} else if (hm < 1300) {
|
||||
return '中午';
|
||||
} else if (hm < 1800) {
|
||||
return '下午';
|
||||
}
|
||||
|
||||
return '晚上';
|
||||
}
|
||||
};
|
||||
dayjs.locale(locale, null, true);
|
||||
|
23
node_modules/dayjs/esm/plugin/customParseFormat/index.js
generated
vendored
23
node_modules/dayjs/esm/plugin/customParseFormat/index.js
generated
vendored
@ -1,5 +1,5 @@
|
||||
import { u } from '../localizedFormat/utils';
|
||||
var formattingTokens = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g;
|
||||
var formattingTokens = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g;
|
||||
var match1 = /\d/; // 0 - 9
|
||||
|
||||
var match2 = /\d\d/; // 00 - 99
|
||||
@ -74,6 +74,9 @@ var expressions = {
|
||||
a: [matchWord, function (input) {
|
||||
this.afternoon = meridiemMatch(input, true);
|
||||
}],
|
||||
Q: [match1, function (input) {
|
||||
this.month = (input - 1) * 3 + 1;
|
||||
}],
|
||||
S: [match1, function (input) {
|
||||
this.milliseconds = +input * 100;
|
||||
}],
|
||||
@ -108,6 +111,8 @@ var expressions = {
|
||||
}
|
||||
}
|
||||
}],
|
||||
w: [match1to2, addInput('week')],
|
||||
ww: [match2, addInput('week')],
|
||||
M: [match1to2, addInput('month')],
|
||||
MM: [match2, addInput('month')],
|
||||
MMM: [matchWord, function (input) {
|
||||
@ -209,7 +214,7 @@ function makeParser(format) {
|
||||
};
|
||||
}
|
||||
|
||||
var parseFormattedInput = function parseFormattedInput(input, format, utc) {
|
||||
var parseFormattedInput = function parseFormattedInput(input, format, utc, dayjs) {
|
||||
try {
|
||||
if (['x', 'X'].indexOf(format) > -1) return new Date((format === 'X' ? 1000 : 1) * input);
|
||||
var parser = makeParser(format);
|
||||
@ -222,7 +227,8 @@ var parseFormattedInput = function parseFormattedInput(input, format, utc) {
|
||||
minutes = _parser2.minutes,
|
||||
seconds = _parser2.seconds,
|
||||
milliseconds = _parser2.milliseconds,
|
||||
zone = _parser2.zone;
|
||||
zone = _parser2.zone,
|
||||
week = _parser2.week;
|
||||
|
||||
var now = new Date();
|
||||
var d = day || (!year && !month ? now.getDate() : 1);
|
||||
@ -246,7 +252,14 @@ var parseFormattedInput = function parseFormattedInput(input, format, utc) {
|
||||
return new Date(Date.UTC(y, M, d, h, m, s, ms));
|
||||
}
|
||||
|
||||
return new Date(y, M, d, h, m, s, ms);
|
||||
var newDate;
|
||||
newDate = new Date(y, M, d, h, m, s, ms);
|
||||
|
||||
if (week) {
|
||||
newDate = dayjs(newDate).week(week).toDate();
|
||||
}
|
||||
|
||||
return newDate;
|
||||
} catch (e) {
|
||||
return new Date(''); // Invalid Date
|
||||
}
|
||||
@ -285,7 +298,7 @@ export default (function (o, C, d) {
|
||||
locale = d.Ls[pl];
|
||||
}
|
||||
|
||||
this.$d = parseFormattedInput(date, format, utc);
|
||||
this.$d = parseFormattedInput(date, format, utc, d);
|
||||
this.init();
|
||||
if (pl && pl !== true) this.$L = this.locale(pl).$L; // use != to treat
|
||||
// input number 1410715640579 and format string '1410715640579' equal
|
||||
|
19
node_modules/dayjs/esm/plugin/minMax/index.d.ts
generated
vendored
19
node_modules/dayjs/esm/plugin/minMax/index.d.ts
generated
vendored
@ -4,8 +4,19 @@ declare const plugin: PluginFunc
|
||||
export = plugin
|
||||
|
||||
declare module 'dayjs/esm' {
|
||||
export function max(dayjs: Dayjs[]): Dayjs | null
|
||||
export function max(...dayjs: Dayjs[]): Dayjs | null
|
||||
export function min(dayjs: Dayjs[]): Dayjs | null
|
||||
export function min(...dayjs: Dayjs[]): Dayjs | null
|
||||
export function max(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function max(noDates: never[]): null
|
||||
export function max(maybeDates: Dayjs[]): Dayjs | null
|
||||
|
||||
export function max(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function max(...noDates: never[]): null
|
||||
export function max(...maybeDates: Dayjs[]): Dayjs | null
|
||||
|
||||
export function min(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function min(noDates: never[]): null
|
||||
export function min(maybeDates: Dayjs[]): Dayjs | null
|
||||
|
||||
export function min(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function min(...noDates: never[]): null
|
||||
export function min(...maybeDates: Dayjs[]): Dayjs | null
|
||||
}
|
||||
|
21
node_modules/dayjs/esm/plugin/timezone/index.js
generated
vendored
21
node_modules/dayjs/esm/plugin/timezone/index.js
generated
vendored
@ -120,13 +120,22 @@ export default (function (o, c, d) {
|
||||
timeZone: timezone
|
||||
});
|
||||
var diff = Math.round((date - new Date(target)) / 1000 / 60);
|
||||
var ins = d(target, {
|
||||
locale: this.$L
|
||||
}).$set(MS, this.$ms).utcOffset(-Math.round(date.getTimezoneOffset() / 15) * 15 - diff, true);
|
||||
var offset = -Math.round(date.getTimezoneOffset() / 15) * 15 - diff;
|
||||
var isUTC = !Number(offset);
|
||||
var ins;
|
||||
|
||||
if (keepLocalTime) {
|
||||
var newOffset = ins.utcOffset();
|
||||
ins = ins.add(oldOffset - newOffset, MIN);
|
||||
if (isUTC) {
|
||||
// if utcOffset is 0, turn it to UTC mode
|
||||
ins = this.utcOffset(0, keepLocalTime);
|
||||
} else {
|
||||
ins = d(target, {
|
||||
locale: this.$L
|
||||
}).$set(MS, this.$ms).utcOffset(offset, true);
|
||||
|
||||
if (keepLocalTime) {
|
||||
var newOffset = ins.utcOffset();
|
||||
ins = ins.add(oldOffset - newOffset, MIN);
|
||||
}
|
||||
}
|
||||
|
||||
ins.$x.$timezone = timezone;
|
||||
|
2
node_modules/dayjs/index.d.ts
generated
vendored
2
node_modules/dayjs/index.d.ts
generated
vendored
@ -114,7 +114,7 @@ declare namespace dayjs {
|
||||
* ```
|
||||
* Docs: https://day.js.org/docs/en/get-set/day
|
||||
*/
|
||||
day(): number
|
||||
day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
|
||||
/**
|
||||
* Set the day of the week.
|
||||
*
|
||||
|
2
node_modules/dayjs/locale.json
generated
vendored
2
node_modules/dayjs/locale.json
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/dayjs/locale/bg.js
generated
vendored
2
node_modules/dayjs/locale/bg.js
generated
vendored
@ -1 +1 @@
|
||||
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bg=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(e){var _=e%100;if(_>10&&_<20)return e+"-ти";var t=e%10;return 1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};return t.default.locale(d,null,!0),d}));
|
||||
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?module.exports=_(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],_):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bg=_(e.dayjs)}(this,(function(e){"use strict";function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=_(e),d={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(e){var _=e%100;if(_>10&&_<20)return e+"-ти";var t=e%10;return 1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};return t.default.locale(d,null,!0),d}));
|
2
node_modules/dayjs/locale/da.js
generated
vendored
2
node_modules/dayjs/locale/da.js
generated
vendored
@ -1 +1 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_da=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=t(e),n={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};return d.default.locale(n,null,!0),n}));
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_da=t(e.dayjs)}(this,(function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=t(e),a={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};return d.default.locale(a,null,!0),a}));
|
2
node_modules/dayjs/locale/zh-hk.js
generated
vendored
2
node_modules/dayjs/locale/zh-hk.js
generated
vendored
@ -1 +1 @@
|
||||
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_zh_hk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-hk",months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),ordinal:function(_,e){return"W"===e?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d 分鐘",h:"一小時",hh:"%d 小時",d:"一天",dd:"%d 天",M:"一個月",MM:"%d 個月",y:"一年",yy:"%d 年"}};return t.default.locale(d,null,!0),d}));
|
||||
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_zh_hk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var d=e(_),t={name:"zh-hk",months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),ordinal:function(_,e){return"W"===e?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d 分鐘",h:"一小時",hh:"%d 小時",d:"一天",dd:"%d 天",M:"一個月",MM:"%d 個月",y:"一年",yy:"%d 年"},meridiem:function(_,e){var d=100*_+e;return d<600?"凌晨":d<900?"早上":d<1100?"上午":d<1300?"中午":d<1800?"下午":"晚上"}};return d.default.locale(t,null,!0),t}));
|
2
node_modules/dayjs/package.json
generated
vendored
2
node_modules/dayjs/package.json
generated
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayjs",
|
||||
"version": "1.11.10",
|
||||
"version": "1.11.13",
|
||||
"description": "2KB immutable date time library alternative to Moment.js with the same modern API ",
|
||||
"main": "dayjs.min.js",
|
||||
"types": "index.d.ts",
|
||||
|
2
node_modules/dayjs/plugin/customParseFormat.js
generated
vendored
2
node_modules/dayjs/plugin/customParseFormat.js
generated
vendored
@ -1 +1 @@
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""))}else i.call(this,e)}}}));
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,f("seconds")],ss:[i,f("seconds")],m:[i,f("minutes")],mm:[i,f("minutes")],H:[i,f("hours")],h:[i,f("hours")],HH:[i,f("hours")],hh:[i,f("hours")],D:[i,f("day")],DD:[r,f("day")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,f("week")],ww:[r,f("week")],M:[i,f("month")],MM:[r,f("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\d{4}/,f("year")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if("string"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date("")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(""))}else i.call(this,e)}}}));
|
19
node_modules/dayjs/plugin/minMax.d.ts
generated
vendored
19
node_modules/dayjs/plugin/minMax.d.ts
generated
vendored
@ -4,8 +4,19 @@ declare const plugin: PluginFunc
|
||||
export = plugin
|
||||
|
||||
declare module 'dayjs' {
|
||||
export function max(dayjs: Dayjs[]): Dayjs | null
|
||||
export function max(...dayjs: Dayjs[]): Dayjs | null
|
||||
export function min(dayjs: Dayjs[]): Dayjs | null
|
||||
export function min(...dayjs: Dayjs[]): Dayjs | null
|
||||
export function max(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function max(noDates: never[]): null
|
||||
export function max(maybeDates: Dayjs[]): Dayjs | null
|
||||
|
||||
export function max(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function max(...noDates: never[]): null
|
||||
export function max(...maybeDates: Dayjs[]): Dayjs | null
|
||||
|
||||
export function min(dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function min(noDates: never[]): null
|
||||
export function min(maybeDates: Dayjs[]): Dayjs | null
|
||||
|
||||
export function min(...dayjs: [Dayjs, ...Dayjs[]]): Dayjs
|
||||
export function min(...noDates: never[]): null
|
||||
export function min(...maybeDates: Dayjs[]): Dayjs | null
|
||||
}
|
||||
|
2
node_modules/dayjs/plugin/timezone.js
generated
vendored
2
node_modules/dayjs/plugin/timezone.js
generated
vendored
@ -1 +1 @@
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_timezone=e()}(this,(function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,h=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",v=+e;return(o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),u=Math.round((i-new Date(a))/1e3/60),f=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-u,!0);if(e){var s=f.utcOffset();f=f.add(n-s,"minute")}return f.$x.$timezone=t,f},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs_plugin_timezone=e()}(this,(function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t),r=function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i);return r.formatToParts(o)},u=function(e,n){for(var i=a(e,n),r=[],u=0;u<i.length;u+=1){var f=i[u],s=f.type,m=f.value,c=t[s];c>=0&&(r[c]=parseInt(m,10))}var d=r[3],l=24===d?0:d,h=r[0]+"-"+r[1]+"-"+r[2]+" "+l+":"+r[4]+":"+r[5]+":000",v=+e;return(o.utc(h).valueOf()-(v-=v%1e3))/6e4},f=i.prototype;f.tz=function(t,e){void 0===t&&(t=r);var n,i=this.utcOffset(),a=this.toDate(),u=a.toLocaleString("en-US",{timeZone:t}),f=Math.round((a-new Date(u))/1e3/60),s=15*-Math.round(a.getTimezoneOffset()/15)-f;if(!Number(s))n=this.utcOffset(0,e);else if(n=o(u,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(s,!0),e){var m=n.utcOffset();n=n.add(i-m,"minute")}return n.$x.$timezone=t,n},f.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=f.startOf;f.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,f=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var s=function(t,e,n){var i=t-60*e*1e3,o=u(i,n);if(e===o)return[i,e];var r=u(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),f,a),m=s[0],c=s[1],d=o(m).utcOffset(c);return d.$x.$timezone=a,d},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}));
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -15,7 +15,7 @@
|
||||
"ant-design-vue": "^1.7.4",
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "^3.10.0",
|
||||
"dayjs": "^1.10.4",
|
||||
"dayjs": "^1.11.13",
|
||||
"echarts": "^5.6.0",
|
||||
"element-ui": "^2.15.14",
|
||||
"file-saver": "^2.0.5",
|
||||
@ -6695,9 +6695,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dayjs": {
|
||||
"version": "1.11.10",
|
||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz",
|
||||
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ=="
|
||||
"version": "1.11.13",
|
||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
||||
},
|
||||
"node_modules/de-indent": {
|
||||
"version": "1.0.2",
|
||||
|
@ -16,7 +16,7 @@
|
||||
"ant-design-vue": "^1.7.4",
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "^3.10.0",
|
||||
"dayjs": "^1.10.4",
|
||||
"dayjs": "^1.11.13",
|
||||
"echarts": "^5.6.0",
|
||||
"element-ui": "^2.15.14",
|
||||
"file-saver": "^2.0.5",
|
||||
|
@ -20,18 +20,10 @@
|
||||
>
|
||||
<template #header>
|
||||
<a-button-group>
|
||||
<a-button
|
||||
|
||||
:disabled="!selectedKeys.length"
|
||||
@click="batchDelete"
|
||||
>
|
||||
<a-button :disabled="!selectedKeys.length" @click="batchDelete">
|
||||
批量删除 ({{ selectedKeys.length }})
|
||||
</a-button>
|
||||
<a-button
|
||||
|
||||
:loading="exporting"
|
||||
@click="exportAll"
|
||||
>
|
||||
<a-button :loading="exporting" @click="exportAll">
|
||||
全量导出
|
||||
</a-button>
|
||||
</a-button-group>
|
||||
@ -44,15 +36,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { exportData } from '@/utils/excel';
|
||||
import { AllCompetition } from '@/api';
|
||||
import RecordAction from '@/components/record/RecordAction';
|
||||
import { exportData } from "@/utils/excel";
|
||||
import { AllCompetition } from "@/api";
|
||||
import RecordAction from "@/components/record/RecordAction";
|
||||
|
||||
export default {
|
||||
name: 'Record',
|
||||
name: "Record",
|
||||
components: { RecordAction },
|
||||
metaInfo: {
|
||||
title: '参赛记录',
|
||||
title: "参赛记录",
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -60,8 +52,8 @@ export default {
|
||||
loading: false,
|
||||
exporting: false,
|
||||
records: [],
|
||||
originalRaces: [],
|
||||
query:{},
|
||||
originalRaces: [],
|
||||
query: {},
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
@ -79,7 +71,9 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$watch(() => [this.pageSize, this.current], this.getData, { immediate: true });
|
||||
this.$watch(() => [this.pageSize, this.current], this.getData, {
|
||||
immediate: true,
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
changePage({ pageSize, current }) {
|
||||
@ -89,165 +83,183 @@ export default {
|
||||
this.current = 1;
|
||||
this.getData();
|
||||
},
|
||||
getData() {
|
||||
this.query = this.$refs.searchForm.getResult();
|
||||
console.log(this.query)
|
||||
this.loading = true;
|
||||
this.$api.RegistrationAll({
|
||||
}).then(data => {
|
||||
// 如果筛选出来用户身份为学生
|
||||
if(this.$store.state.user.userPrivileges == 2){
|
||||
// 筛选学生用户自己的比赛
|
||||
this.records = data.data.filter(item => {
|
||||
return item.studentId == this.$store.state.user.userId; // 添加 return 语句
|
||||
});
|
||||
this.total = this.records.length; // 更新 total 的计算方式
|
||||
console.log(this.records);
|
||||
} else {
|
||||
this.originalRaces = data.data;
|
||||
this.filterRaces(); // 调用过滤方法
|
||||
this.total = data.data.length;
|
||||
}
|
||||
}).catch(e => {
|
||||
console.error(e);
|
||||
this.$message.error(e.msg || '获取数据失败');
|
||||
}).finally(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 过滤
|
||||
// 过滤比赛
|
||||
filterRaces() {
|
||||
let filteredRaces = this.originalRaces.slice(); // 复制原始用户数据
|
||||
console.log(filteredRaces)
|
||||
// 状态
|
||||
if (this.query.status) {
|
||||
filteredRaces = filteredRaces.filter(user => user.competitionStatus == this.query.status);
|
||||
}
|
||||
// 名称
|
||||
if (this.query.title) {
|
||||
filteredRaces = filteredRaces.filter(user => user.competitionName.includes(this.query.title));
|
||||
}
|
||||
// 负责人
|
||||
if (this.query.sname) {
|
||||
filteredRaces = filteredRaces.filter(user => user.studentName.includes(this.query.sname));
|
||||
}
|
||||
// 成绩
|
||||
if (this.query.score!=null) {
|
||||
filteredRaces = filteredRaces.filter(user => user.awardLevel.includes(this.query.sname));
|
||||
}
|
||||
this.records = filteredRaces;
|
||||
},
|
||||
getData() {
|
||||
this.query = this.$refs.searchForm.getResult();
|
||||
console.log(this.query);
|
||||
this.loading = true;
|
||||
this.$api
|
||||
.RegistrationAll({})
|
||||
.then((data) => {
|
||||
// 如果筛选出来用户身份为学生
|
||||
if (this.$store.state.user.userPrivileges == 2) {
|
||||
// 筛选学生用户自己的比赛
|
||||
this.records = data.data.filter((item) => {
|
||||
return item.studentId == this.$store.state.user.userId; // 添加 return 语句
|
||||
});
|
||||
this.total = this.records.length; // 更新 total 的计算方式
|
||||
console.log(this.records);
|
||||
} else {
|
||||
this.originalRaces = data.data;
|
||||
this.filterRaces(); // 调用过滤方法
|
||||
this.total = data.data.length;
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
this.$message.error(e.msg || "获取数据失败");
|
||||
})
|
||||
.finally(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 过滤
|
||||
// 过滤比赛
|
||||
filterRaces() {
|
||||
let filteredRaces = this.originalRaces.slice(); // 复制原始用户数据
|
||||
console.log(filteredRaces);
|
||||
// 状态
|
||||
if (this.query.status) {
|
||||
filteredRaces = filteredRaces.filter(
|
||||
(user) => user.competitionStatus == this.query.status
|
||||
);
|
||||
}
|
||||
// 名称
|
||||
if (this.query.title) {
|
||||
filteredRaces = filteredRaces.filter((user) =>
|
||||
user.competitionName.includes(this.query.title)
|
||||
);
|
||||
}
|
||||
// 负责人
|
||||
if (this.query.sname) {
|
||||
filteredRaces = filteredRaces.filter((user) =>
|
||||
user.studentName.includes(this.query.sname)
|
||||
);
|
||||
}
|
||||
// 成绩
|
||||
if (this.query.score != null) {
|
||||
filteredRaces = filteredRaces.filter((user) =>
|
||||
user.awardLevel.includes(this.query.sname)
|
||||
);
|
||||
}
|
||||
this.records = filteredRaces;
|
||||
},
|
||||
batchDelete() {
|
||||
this.$modal.confirm({
|
||||
title: `确认删除选中的${this.selectedKeys.length}项数据?`,
|
||||
onOk: () => this.$api.deleteRecord(this.selectedKeys)
|
||||
.then(() => {
|
||||
this.$message.success('删除成功!');
|
||||
this.selectedKeys.splice(0);
|
||||
this.getData();
|
||||
}).catch(e => {
|
||||
this.$message.error(e.msg || '删除失败!');
|
||||
throw e;
|
||||
}),
|
||||
onOk: () =>
|
||||
this.$api
|
||||
.deleteRecord(this.selectedKeys)
|
||||
.then(() => {
|
||||
this.$message.success("删除成功!");
|
||||
this.selectedKeys.splice(0);
|
||||
this.getData();
|
||||
})
|
||||
.catch((e) => {
|
||||
this.$message.error(e.msg || "删除失败!");
|
||||
throw e;
|
||||
}),
|
||||
});
|
||||
},
|
||||
exportAll() {
|
||||
this.exporting = true;
|
||||
this.$api.getRecordList(this.query).then(data => {
|
||||
return exportExcel(data.data);
|
||||
}).catch(e => {
|
||||
console.error(e);
|
||||
this.$message.error(e.msg || '导出失败');
|
||||
}).finally(() => {
|
||||
this.exporting = false;
|
||||
});
|
||||
this.$api
|
||||
.RegistrationAll(this.query)
|
||||
.then((data) => {
|
||||
return exportExcel(data.data);
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
this.$message.error(e.msg || "导出失败");
|
||||
})
|
||||
.finally(() => {
|
||||
this.exporting = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const statusMap = {
|
||||
0: { style: 'color: lightgrey', type: 'question-circle', text: '待审核' },
|
||||
1: { style: 'color: limegreen', type: 'check-circle', text: '审核通过' },
|
||||
2: { style: 'color: red', type: 'exclamation-circle', text: '审核失败' },
|
||||
0: { style: "color: lightgrey", type: "question-circle", text: "待审核" },
|
||||
1: { style: "color: limegreen", type: "check-circle", text: "审核通过" },
|
||||
2: { style: "color: red", type: "exclamation-circle", text: "审核失败" },
|
||||
};
|
||||
// 格式化日期函数
|
||||
function formatDate(dateString) {
|
||||
const date = new Date(dateString);
|
||||
if (isNaN(date.getTime())) {
|
||||
console.error(`Invalid date: ${dateString}`);
|
||||
return 'Invalid Date';
|
||||
return "Invalid Date";
|
||||
}
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const month = String(date.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(date.getDate()).padStart(2, "0");
|
||||
return `${year}-${month}-${day}`;
|
||||
}
|
||||
function createTableColumns(h) {
|
||||
return [
|
||||
{ title: '名称', dataIndex: 'competitionName' },
|
||||
{ title: '参赛人', dataIndex: 'studentName' },
|
||||
{ title: '队长', dataIndex: 'teamLeaderName' },
|
||||
{ title: '类型', dataIndex: 'competitionType' },
|
||||
{
|
||||
title: '成绩',
|
||||
dataIndex: 'awardLevel',
|
||||
{ title: "名称", dataIndex: "competitionName" },
|
||||
{ title: "参赛人", dataIndex: "studentName" },
|
||||
{ title: "队长", dataIndex: "teamLeaderName" },
|
||||
{ title: "类型", dataIndex: "competitionType" },
|
||||
{
|
||||
title: "成绩",
|
||||
dataIndex: "awardLevel",
|
||||
customRender: (text, record) => {
|
||||
// 如果 awardLevel 不存在或为空,则显示“未获奖”,否则显示实际成绩
|
||||
return text ? text : '未获奖';
|
||||
}
|
||||
return text ? text : "未获奖";
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '备注信息',
|
||||
dataIndex: 'additionalInfo',
|
||||
{
|
||||
title: "备注信息",
|
||||
dataIndex: "additionalInfo",
|
||||
customRender: (text, record) => {
|
||||
// 如果 additionalInfo 不存在或为空,则显示“未获奖”,否则显示实际成绩
|
||||
return text ? text : '无';
|
||||
}
|
||||
return text ? text : "无";
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '获奖证书',
|
||||
dataIndex: 'certificatePath',
|
||||
{
|
||||
title: "获奖证书",
|
||||
dataIndex: "certificatePath",
|
||||
customRender: (text, record) => {
|
||||
// 如果 certificatePath 存在,则显示图片
|
||||
if (text) {
|
||||
return <img src={text} style={{ width: '100px', height: 'auto' }} />;
|
||||
return <img src={text} style={{ width: "100px", height: "auto" }} />;
|
||||
} else {
|
||||
return '无';
|
||||
return "无";
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
{ title: '状态', dataIndex: 'registrationStatus' },
|
||||
{ title: '登记时间',
|
||||
dataIndex: 'registrationTime',
|
||||
customRender: (text, record) => formatDate(record.registrationTime)
|
||||
},
|
||||
// { title: "状态", dataIndex: "registrationStatus" },
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
title: "登记时间",
|
||||
dataIndex: "registrationTime",
|
||||
customRender: (text, record) => formatDate(record.registrationTime),
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
align: "center",
|
||||
scopedSlots: {
|
||||
customRender: 'action',
|
||||
customRender: "action",
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
function exportExcel(data) {
|
||||
const header = createTableColumns().map(v => v.title);
|
||||
const header = createTableColumns().map((v) => v.title);
|
||||
header.pop(); // 去掉最后一栏操作栏
|
||||
return exportData({
|
||||
name: '参赛记录信息',
|
||||
name: `参赛记录信息-${formatDate(new Date())}`, // 添加当前日期
|
||||
data,
|
||||
header,
|
||||
keyMap: {
|
||||
competitionId: '名称',
|
||||
studentId: '参赛人',
|
||||
teamLeaderId: '组队编号',
|
||||
competitionType: '类型',
|
||||
awardLevel: '成绩',
|
||||
competitionType: '类型',
|
||||
registrationStatus: ['状态', status => statusMap[registrationStatus]?.text],
|
||||
registrationTime: '登记时间',
|
||||
competitionId: "名称",
|
||||
studentId: "参赛人",
|
||||
teamLeaderId: "组队编号",
|
||||
competitionType: "类型",
|
||||
awardLevel: "成绩",
|
||||
competitionType: "类型",
|
||||
registrationTime: "登记时间",
|
||||
},
|
||||
});
|
||||
}
|
||||
@ -255,37 +267,37 @@ function exportExcel(data) {
|
||||
function createSearchOptions() {
|
||||
return [
|
||||
{
|
||||
label: '赛事名称',
|
||||
key: 'title',
|
||||
default: '',
|
||||
component: 'input',
|
||||
align: 'center'
|
||||
label: "赛事名称",
|
||||
key: "title",
|
||||
default: "",
|
||||
component: "input",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
label: '参赛人',
|
||||
key: 'sname',
|
||||
default: '',
|
||||
component: 'input',
|
||||
align: 'center'
|
||||
label: "参赛人",
|
||||
key: "sname",
|
||||
default: "",
|
||||
component: "input",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
label: '成绩',
|
||||
key: 'score',
|
||||
default: '',
|
||||
component: 'input',
|
||||
align: 'center'
|
||||
label: "成绩",
|
||||
key: "score",
|
||||
default: "",
|
||||
component: "input",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
label: '审核状态',
|
||||
key: 'status',
|
||||
label: "审核状态",
|
||||
key: "status",
|
||||
default: undefined,
|
||||
component: 'select',
|
||||
align: 'center',
|
||||
component: "select",
|
||||
align: "center",
|
||||
props: {
|
||||
options: [
|
||||
{ label: '等待学校审核', value: '等待学校审核' },
|
||||
{ label: '成功报名', value: '成功报名' },
|
||||
{ label: '审核失败', value: '审核失败' },
|
||||
{ label: "等待学校审核", value: "等待学校审核" },
|
||||
{ label: "成功报名", value: "成功报名" },
|
||||
{ label: "审核失败", value: "审核失败" },
|
||||
],
|
||||
},
|
||||
},
|
||||
@ -293,5 +305,4 @@ function createSearchOptions() {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
<style scoped></style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user