123
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_74de03ae-1d33-4e5c-8a1f-e27cbfc9b2a7",
|
||||
"id": "Sitzplätze__$Bff$_Bff.checkReturningFromLogin",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff",
|
||||
"unpublishedAction": {
|
||||
"collectionId": "Sitzplätze__$Bff$_Bff",
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"isAutoGenerated": false,
|
||||
"name": "UNUSED_DATASOURCE",
|
||||
"pluginId": "js-plugin"
|
||||
},
|
||||
"fullyQualifiedName": "_$Bff$_Bff.checkReturningFromLogin",
|
||||
"name": "checkReturningFromLogin",
|
||||
"pageId": "Sitzplätze",
|
||||
"runBehaviour": "MANUAL",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_0062be59-1821-4fd7-8cfe-c862f5883fa6",
|
||||
"id": "Sitzplätze__$Bff$_Bff.clearSession",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff",
|
||||
"unpublishedAction": {
|
||||
"collectionId": "Sitzplätze__$Bff$_Bff",
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"isAutoGenerated": false,
|
||||
"name": "UNUSED_DATASOURCE",
|
||||
"pluginId": "js-plugin"
|
||||
},
|
||||
"fullyQualifiedName": "_$Bff$_Bff.clearSession",
|
||||
"name": "clearSession",
|
||||
"pageId": "Sitzplätze",
|
||||
"runBehaviour": "MANUAL",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_bd00bbf2-3f8b-4cf2-9e75-b279493bc9ee",
|
||||
"id": "Sitzplätze__$Bff$_Bff.guardPage",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff",
|
||||
"unpublishedAction": {
|
||||
"collectionId": "Sitzplätze__$Bff$_Bff",
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"isAutoGenerated": false,
|
||||
"name": "UNUSED_DATASOURCE",
|
||||
"pluginId": "js-plugin"
|
||||
},
|
||||
"fullyQualifiedName": "_$Bff$_Bff.guardPage",
|
||||
"name": "guardPage",
|
||||
"pageId": "Sitzplätze",
|
||||
"runBehaviour": "MANUAL",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_01d53c11-6aca-429b-92b2-8e32e561f69a",
|
||||
"id": "Sitzplätze__$Bff$_Bff.isLoggedIn",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff",
|
||||
"unpublishedAction": {
|
||||
"collectionId": "Sitzplätze__$Bff$_Bff",
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"isAutoGenerated": false,
|
||||
"name": "UNUSED_DATASOURCE",
|
||||
"pluginId": "js-plugin"
|
||||
},
|
||||
"fullyQualifiedName": "_$Bff$_Bff.isLoggedIn",
|
||||
"name": "isLoggedIn",
|
||||
"pageId": "Sitzplätze",
|
||||
"runBehaviour": "MANUAL",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_cdad9604-64d3-4e80-9421-bab54d7453e5",
|
||||
"id": "Sitzplätze__$Bff$_Bff.login",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff",
|
||||
"unpublishedAction": {
|
||||
"collectionId": "Sitzplätze__$Bff$_Bff",
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"isAutoGenerated": false,
|
||||
"name": "UNUSED_DATASOURCE",
|
||||
"pluginId": "js-plugin"
|
||||
},
|
||||
"fullyQualifiedName": "_$Bff$_Bff.login",
|
||||
"name": "login",
|
||||
"pageId": "Sitzplätze",
|
||||
"runBehaviour": "MANUAL",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_6c21e962-214e-40cc-8f51-c5921ccbad10",
|
||||
"id": "Sitzplätze__$Bff$_Bff.logout",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff",
|
||||
"unpublishedAction": {
|
||||
"collectionId": "Sitzplätze__$Bff$_Bff",
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"isAutoGenerated": false,
|
||||
"name": "UNUSED_DATASOURCE",
|
||||
"pluginId": "js-plugin"
|
||||
},
|
||||
"fullyQualifiedName": "_$Bff$_Bff.logout",
|
||||
"name": "logout",
|
||||
"pageId": "Sitzplätze",
|
||||
"runBehaviour": "MANUAL",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_df303cec-969d-4d02-bd28-9dd94884c95d",
|
||||
"id": "Sitzplätze__$Bff_Logout$_Bff_Logout",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff_Logout",
|
||||
"pluginId": "restapi-plugin",
|
||||
"pluginType": "API",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff_Logout",
|
||||
"unpublishedAction": {
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"datasourceConfiguration": {
|
||||
"url": "https://bff.ep-reisen.net"
|
||||
},
|
||||
"isAutoGenerated": false,
|
||||
"name": "DEFAULT_REST_DATASOURCE",
|
||||
"pluginId": "restapi-plugin"
|
||||
},
|
||||
"name": "_$Bff_Logout$_Bff_Logout",
|
||||
"pageId": "Sitzplätze",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_bf1c83a9-9049-4779-abc2-393f2db249ca",
|
||||
"id": "Sitzplätze__$Bff_Me$_Bff_Me",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff_Me",
|
||||
"pluginId": "restapi-plugin",
|
||||
"pluginType": "API",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff_Me",
|
||||
"unpublishedAction": {
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"datasourceConfiguration": {
|
||||
"url": "https://bff.ep-reisen.net"
|
||||
},
|
||||
"isAutoGenerated": false,
|
||||
"name": "DEFAULT_REST_DATASOURCE",
|
||||
"pluginId": "restapi-plugin"
|
||||
},
|
||||
"name": "_$Bff_Me$_Bff_Me",
|
||||
"pageId": "Sitzplätze",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"gitSyncId": "6a6b5b477ebc9edeca96e2f8_0eaeb4b0-2fed-4629-8648-b369b6d5f223",
|
||||
"id": "Sitzplätze__$Bff_Verify$_Bff_Verify",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Sitzplätze_Bff_Verify",
|
||||
"pluginId": "restapi-plugin",
|
||||
"pluginType": "API",
|
||||
"rootModuleInstanceId": "Sitzplätze_Bff_Verify",
|
||||
"unpublishedAction": {
|
||||
"confirmBeforeExecute": false,
|
||||
"contextType": "PAGE",
|
||||
"datasource": {
|
||||
"datasourceConfiguration": {
|
||||
"url": "https://bff.ep-reisen.net"
|
||||
},
|
||||
"isAutoGenerated": false,
|
||||
"name": "DEFAULT_REST_DATASOURCE",
|
||||
"pluginId": "restapi-plugin"
|
||||
},
|
||||
"name": "_$Bff_Verify$_Bff_Verify",
|
||||
"pageId": "Sitzplätze",
|
||||
"userSetOnLoad": false
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,29 @@ INSERT INTO `buchungen`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
{{ appsmith.store.bookingFormData.seatId }},
|
||||
{{ appsmith.store.bookingFormData.title }},
|
||||
{{ appsmith.store.bookingFormData.startDateTime }},
|
||||
{{ appsmith.store.bookingFormData.endDateTime }},
|
||||
{{ appsmith.store.bookingFormData.bookedBy }}
|
||||
{{
|
||||
appsmith.store.bookingFormData?.seatId ||
|
||||
appsmith.store.selectedSeatId
|
||||
}},
|
||||
|
||||
{{
|
||||
appsmith.store.bookingFormData?.title ||
|
||||
"Platzbuchung"
|
||||
}},
|
||||
|
||||
{{
|
||||
appsmith.store.bookingFormData?.allDay === true
|
||||
? appsmith.store.bookingFormData.startDate + " 00:00:00"
|
||||
: appsmith.store.bookingFormData.startDateTime
|
||||
}},
|
||||
|
||||
{{
|
||||
appsmith.store.bookingFormData?.allDay === true
|
||||
? appsmith.store.bookingFormData.endDate + " 23:59:59"
|
||||
: appsmith.store.bookingFormData.endDateTime
|
||||
}},
|
||||
|
||||
{{
|
||||
appsmith.store.bookingFormData?.bookedBy
|
||||
}}
|
||||
);
|
||||
@@ -5,7 +5,7 @@
|
||||
"pluginType": "DB",
|
||||
"unpublishedAction": {
|
||||
"actionConfiguration": {
|
||||
"body": "INSERT INTO `buchungen`\n(\n `platz_id`,\n `titel`,\n `startzeit`,\n `endzeit`,\n `gebucht_von`\n)\nVALUES\n(\n {{ appsmith.store.bookingFormData.seatId }},\n {{ appsmith.store.bookingFormData.title }},\n {{ appsmith.store.bookingFormData.startDateTime }},\n {{ appsmith.store.bookingFormData.endDateTime }},\n {{ appsmith.store.bookingFormData.bookedBy }}\n);",
|
||||
"body": "INSERT INTO `buchungen`\n(\n `platz_id`,\n `titel`,\n `startzeit`,\n `endzeit`,\n `gebucht_von`\n)\nVALUES\n(\n {{\n appsmith.store.bookingFormData?.seatId ||\n appsmith.store.selectedSeatId\n }},\n\n {{\n appsmith.store.bookingFormData?.title ||\n \"Platzbuchung\"\n }},\n\n {{\n appsmith.store.bookingFormData?.allDay === true\n ? appsmith.store.bookingFormData.startDate + \" 00:00:00\"\n : appsmith.store.bookingFormData.startDateTime\n }},\n\n {{\n appsmith.store.bookingFormData?.allDay === true\n ? appsmith.store.bookingFormData.endDate + \" 23:59:59\"\n : appsmith.store.bookingFormData.endDateTime\n }},\n\n {{\n appsmith.store.bookingFormData?.bookedBy\n }}\n);",
|
||||
"encodeParamsToggle": true,
|
||||
"paginationType": "NONE",
|
||||
"pluginSpecifiedTemplates": [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
DELETE FROM `buchungen`
|
||||
WHERE id =
|
||||
{{ this.params.bookingId }}
|
||||
AND gebucht_von =
|
||||
{{ this.params.bookedBy }};
|
||||
WHERE `id` =
|
||||
{{ appsmith.store.selectedBooking.id }}
|
||||
AND `gebucht_von` =
|
||||
{{ appsmith.user.email }};
|
||||
@@ -5,7 +5,7 @@
|
||||
"pluginType": "DB",
|
||||
"unpublishedAction": {
|
||||
"actionConfiguration": {
|
||||
"body": "DELETE FROM `buchungen`\nWHERE id =\n {{ this.params.bookingId }}\n AND gebucht_von =\n {{ this.params.bookedBy }};",
|
||||
"body": "DELETE FROM `buchungen`\nWHERE `id` =\n {{ appsmith.store.selectedBooking.id }}\n AND `gebucht_von` =\n {{ appsmith.user.email }};",
|
||||
"encodeParamsToggle": true,
|
||||
"paginationType": "NONE",
|
||||
"pluginSpecifiedTemplates": [
|
||||
|
||||
@@ -2,11 +2,17 @@ SELECT
|
||||
id,
|
||||
platz_id,
|
||||
titel AS title,
|
||||
startzeit AS start,
|
||||
endzeit AS end,
|
||||
DATE_FORMAT(
|
||||
startzeit,
|
||||
'%Y-%m-%d %H:%i:%s'
|
||||
) AS start,
|
||||
DATE_FORMAT(
|
||||
endzeit,
|
||||
'%Y-%m-%d %H:%i:%s'
|
||||
) AS end,
|
||||
gebucht_von,
|
||||
erstellt_am
|
||||
FROM `buchungen`
|
||||
WHERE platz_id =
|
||||
{{ appsmith.store.selectedSeatId }}
|
||||
WHERE `platz_id` =
|
||||
'{{ appsmith.store.selectedSeatId }}'
|
||||
ORDER BY startzeit;
|
||||
@@ -5,7 +5,7 @@
|
||||
"pluginType": "DB",
|
||||
"unpublishedAction": {
|
||||
"actionConfiguration": {
|
||||
"body": "SELECT\n id,\n platz_id,\n titel AS title,\n startzeit AS start,\n endzeit AS end,\n gebucht_von,\n erstellt_am\nFROM `buchungen`\nWHERE platz_id =\n {{ appsmith.store.selectedSeatId }}\nORDER BY startzeit;",
|
||||
"body": "SELECT\n id,\n platz_id,\n titel AS title,\n DATE_FORMAT(\n startzeit,\n '%Y-%m-%d %H:%i:%s'\n ) AS start,\n DATE_FORMAT(\n endzeit,\n '%Y-%m-%d %H:%i:%s'\n ) AS end,\n gebucht_von,\n erstellt_am\nFROM `buchungen`\nWHERE `platz_id` =\n '{{ appsmith.store.selectedSeatId }}'\nORDER BY startzeit;",
|
||||
"encodeParamsToggle": true,
|
||||
"paginationType": "NONE",
|
||||
"pluginSpecifiedTemplates": [
|
||||
|
||||
Reference in New Issue
Block a user