Basic calendar view
This commit is contained in:
@@ -8,13 +8,13 @@ export interface Boat {
|
||||
class: string;
|
||||
year: number;
|
||||
imgsrc: string;
|
||||
booking: {
|
||||
booking?: {
|
||||
available: boolean;
|
||||
requiredCerts: string[];
|
||||
maxDuration: number;
|
||||
maxPassengers: number;
|
||||
};
|
||||
defects: {
|
||||
defects?: {
|
||||
type: string;
|
||||
severity: string;
|
||||
description: string;
|
||||
|
||||
33
src/stores/memberProfile.ts
Normal file
33
src/stores/memberProfile.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export interface MemberProfile {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
certs: string[];
|
||||
slackID: string;
|
||||
userID: string;
|
||||
}
|
||||
|
||||
const getSampleData = () => ({
|
||||
firstName: 'Billy',
|
||||
lastName: 'Crystal',
|
||||
certs: ['j27', 'capri25'],
|
||||
});
|
||||
|
||||
export const useMemberProfileStore = defineStore('memberProfile', {
|
||||
state: () => ({
|
||||
...getSampleData(),
|
||||
}),
|
||||
|
||||
// getters: {
|
||||
// doubleCount (state) {
|
||||
// return state.counter * 2;
|
||||
// }
|
||||
// },
|
||||
|
||||
// actions: {
|
||||
// increment () {
|
||||
// this.counter++;
|
||||
// }
|
||||
// }
|
||||
});
|
||||
@@ -1,9 +1,10 @@
|
||||
import { defineStore } from 'pinia';
|
||||
export interface Reservation {
|
||||
user: string;
|
||||
startdate: Date;
|
||||
enddate: Date;
|
||||
resource: string;
|
||||
bookingdate: Date;
|
||||
reservationDate: Date;
|
||||
}
|
||||
|
||||
export const useScheduleStore = defineStore('schedule', {
|
||||
|
||||
Reference in New Issue
Block a user