Update current API description, added dateTime filter alias.
* Build only for iOS since 12.1 (IPhone 5s+) so babel uses more recent ECMAScript and filesizes get reduced
This commit is contained in:
parent
296245457d
commit
e26dc6c3a9
|
@ -37,11 +37,11 @@
|
||||||
"last 10 Chrome versions",
|
"last 10 Chrome versions",
|
||||||
"last 10 Firefox versions",
|
"last 10 Firefox versions",
|
||||||
"last 4 Edge versions",
|
"last 4 Edge versions",
|
||||||
"last 6 Safari versions",
|
"last 4 Safari versions",
|
||||||
"last 8 Android versions",
|
"last 8 Android versions",
|
||||||
"last 8 ChromeAndroid versions",
|
"last 1 ChromeAndroid versions",
|
||||||
"last 8 FirefoxAndroid versions",
|
"last 1 FirefoxAndroid versions",
|
||||||
"last 10 iOS versions"
|
"last 6 iOS versions"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 11.0.0",
|
"node": ">= 11.0.0",
|
||||||
|
|
|
@ -24,4 +24,7 @@ export default boot(({ Vue }) => {
|
||||||
Vue.filter('time', (date: Date, seconds = false) =>
|
Vue.filter('time', (date: Date, seconds = false) =>
|
||||||
formatDateTime(date, false, true, seconds)
|
formatDateTime(date, false, true, seconds)
|
||||||
);
|
);
|
||||||
|
Vue.filter('dateTime', (date: Date, seconds = false, weekday = false) =>
|
||||||
|
formatDateTime(date, true, true, seconds, weekday)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -25,21 +25,22 @@ declare namespace FG {
|
||||||
id: number;
|
id: number;
|
||||||
time: Date;
|
time: Date;
|
||||||
amount: number;
|
amount: number;
|
||||||
sender_id: string;
|
reversal?: this;
|
||||||
receiver_id: string;
|
sender_id?: string;
|
||||||
author_id: string;
|
receiver_id?: string;
|
||||||
|
author_id?: string;
|
||||||
}
|
}
|
||||||
interface Event {
|
interface Event {
|
||||||
id: number;
|
id: number;
|
||||||
start: Date;
|
start: Date;
|
||||||
description?: any;
|
description?: string;
|
||||||
type: EventType;
|
type: EventType;
|
||||||
slots: Array<EventSlot>;
|
slots: Array<EventSlot>;
|
||||||
}
|
}
|
||||||
interface EventSlot {
|
interface EventSlot {
|
||||||
id: number;
|
id: number;
|
||||||
start: Date;
|
start: Date;
|
||||||
end?: any;
|
end?: Date;
|
||||||
jobs: Array<JobSlot>;
|
jobs: Array<JobSlot>;
|
||||||
}
|
}
|
||||||
type EventType = string;
|
type EventType = string;
|
||||||
|
|
Loading…
Reference in New Issue