New image. Update some vars
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m4s
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m4s
This commit is contained in:
@@ -8,13 +8,11 @@ export interface Boat {
|
||||
displayName?: string;
|
||||
class?: string;
|
||||
year?: number;
|
||||
imgsrc?: string;
|
||||
iconsrc?: string;
|
||||
booking?: {
|
||||
available: boolean;
|
||||
requiredCerts: string[];
|
||||
maxPassengers: number;
|
||||
};
|
||||
imgSrc?: string;
|
||||
iconSrc?: string;
|
||||
bookingAvailable?: boolean;
|
||||
requiredCerts: string[];
|
||||
maxPassengers: number;
|
||||
defects?: {
|
||||
type: string;
|
||||
severity: string;
|
||||
@@ -30,9 +28,11 @@ const getSampleData = () => [
|
||||
displayName: 'PX',
|
||||
class: 'J/27',
|
||||
year: 1981,
|
||||
imgsrc: '/tmpimg/j27.png',
|
||||
iconsrc: '/tmpimg/projectx_avatar256.png',
|
||||
booking: { available: true, maxPassengers: 8, requiredCerts: [] },
|
||||
imgSrc: '/tmpimg/j27.png',
|
||||
iconSrc: '/tmpimg/projectx_avatar256.png',
|
||||
bookingAvailable: true,
|
||||
maxPassengers: 8,
|
||||
requiredCerts: [],
|
||||
defects: [
|
||||
{
|
||||
type: 'engine',
|
||||
@@ -57,9 +57,11 @@ and rough engine performance.`,
|
||||
displayName: 'T5',
|
||||
class: 'J/27',
|
||||
year: 1985,
|
||||
imgsrc: '/tmpimg/j27.png',
|
||||
imgSrc: '/tmpimg/j27.png',
|
||||
iconsrc: '/tmpimg/take5_avatar32.png',
|
||||
booking: { available: true, maxPassengers: 8, requiredCerts: [] },
|
||||
bookingAvailable: true,
|
||||
maxPassengers: 8,
|
||||
requiredCerts: [],
|
||||
},
|
||||
{
|
||||
$id: '3',
|
||||
@@ -67,17 +69,21 @@ and rough engine performance.`,
|
||||
displayName: 'WB',
|
||||
class: 'Capri 25',
|
||||
year: 1989,
|
||||
imgsrc: '/tmpimg/capri25.png',
|
||||
booking: { available: true, maxPassengers: 6, requiredCerts: [] },
|
||||
imgSrc: '/tmpimg/capri25.png',
|
||||
bookingAvailable: true,
|
||||
maxPassengers: 6,
|
||||
requiredCerts: [],
|
||||
},
|
||||
{
|
||||
$id: '4',
|
||||
name: 'Just My Imagination',
|
||||
displayName: 'JMI',
|
||||
class: 'Capri 25',
|
||||
class: 'Sirius 28',
|
||||
year: 1989,
|
||||
imgsrc: '/tmpimg/capri25.png',
|
||||
booking: { available: true, maxPassengers: 8, requiredCerts: [] },
|
||||
imgSrc: '/tmpimg/JMI.jpg',
|
||||
bookingAvailable: true,
|
||||
maxPassengers: 8,
|
||||
requiredCerts: [],
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export const useTaskStore = defineStore('tasks', {
|
||||
await this.fetchSkillTags();
|
||||
const response = await databases.listDocuments(
|
||||
AppwriteIds.databaseId,
|
||||
AppwriteIds.collectionIdTask
|
||||
AppwriteIds.collection.task
|
||||
);
|
||||
this.tasks = response.documents as Task[];
|
||||
} catch (error) {
|
||||
@@ -60,7 +60,7 @@ export const useTaskStore = defineStore('tasks', {
|
||||
try {
|
||||
const response = await databases.listDocuments(
|
||||
AppwriteIds.databaseId,
|
||||
AppwriteIds.collectionIdTaskTags
|
||||
AppwriteIds.collection.taskTags
|
||||
);
|
||||
this.taskTags = response.documents as TaskTag[];
|
||||
} catch (error) {
|
||||
@@ -72,7 +72,7 @@ export const useTaskStore = defineStore('tasks', {
|
||||
try {
|
||||
const response = await databases.listDocuments(
|
||||
AppwriteIds.databaseId,
|
||||
AppwriteIds.collectionIdSkillTags
|
||||
AppwriteIds.collection.skillTags
|
||||
);
|
||||
this.skillTags = response.documents as SkillTag[];
|
||||
} catch (error) {
|
||||
@@ -88,7 +88,7 @@ export const useTaskStore = defineStore('tasks', {
|
||||
try {
|
||||
const response = await databases.deleteDocument(
|
||||
AppwriteIds.databaseId,
|
||||
AppwriteIds.collectionIdTask,
|
||||
AppwriteIds.collection.task,
|
||||
docId
|
||||
);
|
||||
this.tasks = this.tasks.filter((task) => docId !== task.$id);
|
||||
@@ -102,7 +102,7 @@ export const useTaskStore = defineStore('tasks', {
|
||||
try {
|
||||
const response = await databases.createDocument(
|
||||
AppwriteIds.databaseId,
|
||||
AppwriteIds.collectionIdTask,
|
||||
AppwriteIds.collection.task,
|
||||
ID.unique(),
|
||||
newTask
|
||||
);
|
||||
@@ -125,7 +125,7 @@ export const useTaskStore = defineStore('tasks', {
|
||||
try {
|
||||
const response = await databases.updateDocument(
|
||||
AppwriteIds.databaseId,
|
||||
AppwriteIds.collectionIdTask,
|
||||
AppwriteIds.collection.task,
|
||||
task.$id,
|
||||
newTask
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user