Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
4
VApp/node_modules/date-fns/esm/isWithinInterval/index.d.ts
generated
vendored
Normal file
4
VApp/node_modules/date-fns/esm/isWithinInterval/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
|
||||
|
||||
import { isWithinInterval } from 'date-fns'
|
||||
export default isWithinInterval
|
53
VApp/node_modules/date-fns/esm/isWithinInterval/index.js
generated
vendored
Normal file
53
VApp/node_modules/date-fns/esm/isWithinInterval/index.js
generated
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
import toDate from "../toDate/index.js";
|
||||
import requiredArgs from "../_lib/requiredArgs/index.js";
|
||||
/**
|
||||
* @name isWithinInterval
|
||||
* @category Interval Helpers
|
||||
* @summary Is the given date within the interval?
|
||||
*
|
||||
* @description
|
||||
* Is the given date within the interval? (Including start and end.)
|
||||
*
|
||||
* @param {Date|Number} date - the date to check
|
||||
* @param {Interval} interval - the interval to check
|
||||
* @returns {Boolean} the date is within the interval
|
||||
* @throws {TypeError} 2 arguments required
|
||||
* @throws {RangeError} The start of an interval cannot be after its end
|
||||
* @throws {RangeError} Date in interval cannot be `Invalid Date`
|
||||
*
|
||||
* @example
|
||||
* // For the date within the interval:
|
||||
* isWithinInterval(new Date(2014, 0, 3), {
|
||||
* start: new Date(2014, 0, 1),
|
||||
* end: new Date(2014, 0, 7)
|
||||
* })
|
||||
* //=> true
|
||||
*
|
||||
* @example
|
||||
* // For the date outside of the interval:
|
||||
* isWithinInterval(new Date(2014, 0, 10), {
|
||||
* start: new Date(2014, 0, 1),
|
||||
* end: new Date(2014, 0, 7)
|
||||
* })
|
||||
* //=> false
|
||||
*
|
||||
* @example
|
||||
* // For date equal to interval start:
|
||||
* isWithinInterval(date, { start, end: date }) // => true
|
||||
*
|
||||
* @example
|
||||
* // For date equal to interval end:
|
||||
* isWithinInterval(date, { start: date, end }) // => true
|
||||
*/
|
||||
export default function isWithinInterval(dirtyDate, interval) {
|
||||
requiredArgs(2, arguments);
|
||||
var time = toDate(dirtyDate).getTime();
|
||||
var startTime = toDate(interval.start).getTime();
|
||||
var endTime = toDate(interval.end).getTime();
|
||||
|
||||
// Throw an exception if start date is after end date or if any date is `Invalid Date`
|
||||
if (!(startTime <= endTime)) {
|
||||
throw new RangeError('Invalid interval');
|
||||
}
|
||||
return time >= startTime && time <= endTime;
|
||||
}
|
52
VApp/node_modules/date-fns/esm/isWithinInterval/index.js.flow
generated
vendored
Normal file
52
VApp/node_modules/date-fns/esm/isWithinInterval/index.js.flow
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
// @flow
|
||||
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
|
||||
|
||||
export type Interval = {
|
||||
start: Date | number,
|
||||
end: Date | number,
|
||||
}
|
||||
|
||||
export type Locale = {
|
||||
code?: string,
|
||||
formatDistance?: (...args: Array<any>) => any,
|
||||
formatRelative?: (...args: Array<any>) => any,
|
||||
localize?: {
|
||||
ordinalNumber: (...args: Array<any>) => any,
|
||||
era: (...args: Array<any>) => any,
|
||||
quarter: (...args: Array<any>) => any,
|
||||
month: (...args: Array<any>) => any,
|
||||
day: (...args: Array<any>) => any,
|
||||
dayPeriod: (...args: Array<any>) => any,
|
||||
},
|
||||
formatLong?: {
|
||||
date: (...args: Array<any>) => any,
|
||||
time: (...args: Array<any>) => any,
|
||||
dateTime: (...args: Array<any>) => any,
|
||||
},
|
||||
match?: {
|
||||
ordinalNumber: (...args: Array<any>) => any,
|
||||
era: (...args: Array<any>) => any,
|
||||
quarter: (...args: Array<any>) => any,
|
||||
month: (...args: Array<any>) => any,
|
||||
day: (...args: Array<any>) => any,
|
||||
dayPeriod: (...args: Array<any>) => any,
|
||||
},
|
||||
options?: {
|
||||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
|
||||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
|
||||
},
|
||||
}
|
||||
|
||||
export type Duration = {
|
||||
years?: number,
|
||||
months?: number,
|
||||
weeks?: number,
|
||||
days?: number,
|
||||
hours?: number,
|
||||
minutes?: number,
|
||||
seconds?: number,
|
||||
}
|
||||
|
||||
export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6
|
||||
|
||||
declare module.exports: (date: Date | number, interval: Interval) => boolean
|
4
VApp/node_modules/date-fns/esm/isWithinInterval/package.json
generated
vendored
Normal file
4
VApp/node_modules/date-fns/esm/isWithinInterval/package.json
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"typings": "../../typings.d.ts"
|
||||
}
|
Reference in New Issue
Block a user