release v2.0.0 #4
|
@ -29,9 +29,8 @@ declare namespace FG {
|
||||||
}
|
}
|
||||||
interface Event {
|
interface Event {
|
||||||
id: number;
|
id: number;
|
||||||
begin: Date;
|
start: Date;
|
||||||
end: Date;
|
description?: any;
|
||||||
description: string;
|
|
||||||
type: EventType;
|
type: EventType;
|
||||||
slots: Array<EventSlot>;
|
slots: Array<EventSlot>;
|
||||||
}
|
}
|
||||||
|
@ -47,10 +46,12 @@ declare namespace FG {
|
||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
interface JobSlot {
|
interface JobSlot {
|
||||||
id: number;
|
|
||||||
type: JobType;
|
type: JobType;
|
||||||
users: Array<Job>;
|
users: Array<Job>;
|
||||||
required_jobs: number;
|
required_jobs: number;
|
||||||
}
|
}
|
||||||
type JobType = string;
|
interface JobType {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,12 @@ const permissions = {
|
||||||
// Show own and others balance
|
// Show own and others balance
|
||||||
SHOW: 'balance_show',
|
SHOW: 'balance_show',
|
||||||
SHOW_OTHER: 'balance_show_others',
|
SHOW_OTHER: 'balance_show_others',
|
||||||
// Credit balance
|
// Credit balance (give)
|
||||||
ADD: 'balance_add',
|
CREDIT: 'balance_credit',
|
||||||
// Debit balance
|
// Debit balance (take)
|
||||||
SUB: 'balance_sub',
|
DEBIT: 'balance_debit',
|
||||||
|
// Debit own balance only
|
||||||
|
DEBIT_OWN: 'balance_debit_own',
|
||||||
// Send from to other
|
// Send from to other
|
||||||
SEND: 'balance_send',
|
SEND: 'balance_send',
|
||||||
// Send from other to another
|
// Send from other to another
|
||||||
|
@ -33,7 +35,7 @@ const mainRoutes: FG_Plugin.PluginRouteConfig[] = [
|
||||||
path: 'balance-add',
|
path: 'balance-add',
|
||||||
name: 'balance-add',
|
name: 'balance-add',
|
||||||
shortcut: true,
|
shortcut: true,
|
||||||
meta: { permissions: [permissions.SUB, permissions.SHOW] },
|
meta: { permissions: [permissions.DEBIT_OWN, permissions.SHOW] },
|
||||||
component: () => import('../pages/Add.vue')
|
component: () => import('../pages/Add.vue')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue