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:
BIN
public/tmpimg/JMI.jpg
Normal file
BIN
public/tmpimg/JMI.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 130 KiB |
@@ -16,13 +16,16 @@ const client = new Client();
|
|||||||
client
|
client
|
||||||
.setEndpoint(process.env.APPWRITE_API_ENDPOINT)
|
.setEndpoint(process.env.APPWRITE_API_ENDPOINT)
|
||||||
.setProject(process.env.APPWRITE_API_PROJECT);
|
.setProject(process.env.APPWRITE_API_PROJECT);
|
||||||
//TODO move this to config file
|
|
||||||
|
|
||||||
|
//TODO move this to config file
|
||||||
const AppwriteIds = {
|
const AppwriteIds = {
|
||||||
databaseId: '65ee1cbf9c2493faf15f',
|
databaseId: '65ee1cbf9c2493faf15f',
|
||||||
collectionIdTask: '65ee1cd5b550023fae4f',
|
collection: {
|
||||||
collectionIdTaskTags: '65ee21d72d5c8007c34c',
|
task: '65ee1cd5b550023fae4f',
|
||||||
collectionIdSkillTags: '66072582a74d94a4bd01',
|
taskTags: '65ee21d72d5c8007c34c',
|
||||||
|
skillTags: '66072582a74d94a4bd01',
|
||||||
|
boats: '66341910003e287cd71c',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-img v-if="boat?.iconsrc" :src="boat?.iconsrc" />
|
<q-img v-if="boat?.iconSrc" :src="boat?.iconSrc" />
|
||||||
<q-icon v-else name="sailing" />
|
<q-icon v-else name="sailing" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-card v-for="boat in boats" :key="boat.id" flat class="mobile-card">
|
<q-card v-for="boat in boats" :key="boat.id" flat class="mobile-card">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<q-img :src="boat.imgsrc" :fit="'scale-down'">
|
<q-img :src="boat.imgSrc" :fit="'scale-down'">
|
||||||
<div class="row absolute-top">
|
<div class="row absolute-top">
|
||||||
<div class="col text-h5 text-left">{{ boat.name }}</div>
|
<div class="col text-h6 text-left">{{ boat.name }}</div>
|
||||||
<div class="col text-right">{{ boat.class }}</div>
|
<div class="col text-right">{{ boat.class }}</div>
|
||||||
</div>
|
</div>
|
||||||
</q-img>
|
</q-img>
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ function onClickHeadDay(data) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
|
||||||
.booking-event
|
.booking-event
|
||||||
position: absolute
|
position: absolute
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
|
|||||||
@@ -8,13 +8,11 @@ export interface Boat {
|
|||||||
displayName?: string;
|
displayName?: string;
|
||||||
class?: string;
|
class?: string;
|
||||||
year?: number;
|
year?: number;
|
||||||
imgsrc?: string;
|
imgSrc?: string;
|
||||||
iconsrc?: string;
|
iconSrc?: string;
|
||||||
booking?: {
|
bookingAvailable?: boolean;
|
||||||
available: boolean;
|
requiredCerts: string[];
|
||||||
requiredCerts: string[];
|
maxPassengers: number;
|
||||||
maxPassengers: number;
|
|
||||||
};
|
|
||||||
defects?: {
|
defects?: {
|
||||||
type: string;
|
type: string;
|
||||||
severity: string;
|
severity: string;
|
||||||
@@ -30,9 +28,11 @@ const getSampleData = () => [
|
|||||||
displayName: 'PX',
|
displayName: 'PX',
|
||||||
class: 'J/27',
|
class: 'J/27',
|
||||||
year: 1981,
|
year: 1981,
|
||||||
imgsrc: '/tmpimg/j27.png',
|
imgSrc: '/tmpimg/j27.png',
|
||||||
iconsrc: '/tmpimg/projectx_avatar256.png',
|
iconSrc: '/tmpimg/projectx_avatar256.png',
|
||||||
booking: { available: true, maxPassengers: 8, requiredCerts: [] },
|
bookingAvailable: true,
|
||||||
|
maxPassengers: 8,
|
||||||
|
requiredCerts: [],
|
||||||
defects: [
|
defects: [
|
||||||
{
|
{
|
||||||
type: 'engine',
|
type: 'engine',
|
||||||
@@ -57,9 +57,11 @@ and rough engine performance.`,
|
|||||||
displayName: 'T5',
|
displayName: 'T5',
|
||||||
class: 'J/27',
|
class: 'J/27',
|
||||||
year: 1985,
|
year: 1985,
|
||||||
imgsrc: '/tmpimg/j27.png',
|
imgSrc: '/tmpimg/j27.png',
|
||||||
iconsrc: '/tmpimg/take5_avatar32.png',
|
iconsrc: '/tmpimg/take5_avatar32.png',
|
||||||
booking: { available: true, maxPassengers: 8, requiredCerts: [] },
|
bookingAvailable: true,
|
||||||
|
maxPassengers: 8,
|
||||||
|
requiredCerts: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$id: '3',
|
$id: '3',
|
||||||
@@ -67,17 +69,21 @@ and rough engine performance.`,
|
|||||||
displayName: 'WB',
|
displayName: 'WB',
|
||||||
class: 'Capri 25',
|
class: 'Capri 25',
|
||||||
year: 1989,
|
year: 1989,
|
||||||
imgsrc: '/tmpimg/capri25.png',
|
imgSrc: '/tmpimg/capri25.png',
|
||||||
booking: { available: true, maxPassengers: 6, requiredCerts: [] },
|
bookingAvailable: true,
|
||||||
|
maxPassengers: 6,
|
||||||
|
requiredCerts: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$id: '4',
|
$id: '4',
|
||||||
name: 'Just My Imagination',
|
name: 'Just My Imagination',
|
||||||
displayName: 'JMI',
|
displayName: 'JMI',
|
||||||
class: 'Capri 25',
|
class: 'Sirius 28',
|
||||||
year: 1989,
|
year: 1989,
|
||||||
imgsrc: '/tmpimg/capri25.png',
|
imgSrc: '/tmpimg/JMI.jpg',
|
||||||
booking: { available: true, maxPassengers: 8, requiredCerts: [] },
|
bookingAvailable: true,
|
||||||
|
maxPassengers: 8,
|
||||||
|
requiredCerts: [],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
await this.fetchSkillTags();
|
await this.fetchSkillTags();
|
||||||
const response = await databases.listDocuments(
|
const response = await databases.listDocuments(
|
||||||
AppwriteIds.databaseId,
|
AppwriteIds.databaseId,
|
||||||
AppwriteIds.collectionIdTask
|
AppwriteIds.collection.task
|
||||||
);
|
);
|
||||||
this.tasks = response.documents as Task[];
|
this.tasks = response.documents as Task[];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -60,7 +60,7 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
try {
|
try {
|
||||||
const response = await databases.listDocuments(
|
const response = await databases.listDocuments(
|
||||||
AppwriteIds.databaseId,
|
AppwriteIds.databaseId,
|
||||||
AppwriteIds.collectionIdTaskTags
|
AppwriteIds.collection.taskTags
|
||||||
);
|
);
|
||||||
this.taskTags = response.documents as TaskTag[];
|
this.taskTags = response.documents as TaskTag[];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -72,7 +72,7 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
try {
|
try {
|
||||||
const response = await databases.listDocuments(
|
const response = await databases.listDocuments(
|
||||||
AppwriteIds.databaseId,
|
AppwriteIds.databaseId,
|
||||||
AppwriteIds.collectionIdSkillTags
|
AppwriteIds.collection.skillTags
|
||||||
);
|
);
|
||||||
this.skillTags = response.documents as SkillTag[];
|
this.skillTags = response.documents as SkillTag[];
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -88,7 +88,7 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
try {
|
try {
|
||||||
const response = await databases.deleteDocument(
|
const response = await databases.deleteDocument(
|
||||||
AppwriteIds.databaseId,
|
AppwriteIds.databaseId,
|
||||||
AppwriteIds.collectionIdTask,
|
AppwriteIds.collection.task,
|
||||||
docId
|
docId
|
||||||
);
|
);
|
||||||
this.tasks = this.tasks.filter((task) => docId !== task.$id);
|
this.tasks = this.tasks.filter((task) => docId !== task.$id);
|
||||||
@@ -102,7 +102,7 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
try {
|
try {
|
||||||
const response = await databases.createDocument(
|
const response = await databases.createDocument(
|
||||||
AppwriteIds.databaseId,
|
AppwriteIds.databaseId,
|
||||||
AppwriteIds.collectionIdTask,
|
AppwriteIds.collection.task,
|
||||||
ID.unique(),
|
ID.unique(),
|
||||||
newTask
|
newTask
|
||||||
);
|
);
|
||||||
@@ -125,7 +125,7 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
try {
|
try {
|
||||||
const response = await databases.updateDocument(
|
const response = await databases.updateDocument(
|
||||||
AppwriteIds.databaseId,
|
AppwriteIds.databaseId,
|
||||||
AppwriteIds.collectionIdTask,
|
AppwriteIds.collection.task,
|
||||||
task.$id,
|
task.$id,
|
||||||
newTask
|
newTask
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user