-
Hallo ich bin
{name}!
-
bitte schreib eine Mail an
{email}
- oder ruf
damit ich schnell wieder Heim komme.
+
Hallo ich bin
+
{name}!
+
+
+
+ schreib eine Mail an
+
{email}
+ oder ruf
+
+ damit ich schnell wieder Heim komme.
+
)
}
diff --git a/src/components/dog.code-workspace b/src/components/dog.code-workspace
deleted file mode 100644
index 5f503bb..0000000
--- a/src/components/dog.code-workspace
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "folders": [
- {
- "path": "../.."
- },
- {
- "path": "../../../../../../../../../opt/lampp/htdocs/dog/php-dog"
- }
- ],
- "settings": {}
-}
\ No newline at end of file
diff --git a/src/dog.code-workspace b/src/dog.code-workspace
new file mode 100644
index 0000000..760b1cf
--- /dev/null
+++ b/src/dog.code-workspace
@@ -0,0 +1,11 @@
+{
+ "folders": [
+ {
+ "path": ".."
+ },
+ {
+ "path": "../../../../../../../../opt/lampp/htdocs/dog/php-dog"
+ }
+ ],
+ "settings": {}
+}
\ No newline at end of file
diff --git a/src/services/PhpApi.ts b/src/services/PhpApi.ts
index 6390b59..7cc1b7f 100644
--- a/src/services/PhpApi.ts
+++ b/src/services/PhpApi.ts
@@ -85,6 +85,31 @@ export const registerUser = async ({email,password}:
}
}
+export function logFormData(form_data: FormData)
+{
+ for (const key of form_data.keys())
+ {
+ console.log(key + ' ' + form_data.get(key));
+
+ }
+}
+
+export const foundMsg = async (form_data:
+ FormData) =>
+{
+ try
+ {
+ const {data} = await Axios.post('foundEmail.php', form_data);
+ console.log('Api foundMsg');
+ console.log(data);
+ return data;
+ }
+ catch(err)
+ {
+ return {success:0, message:'Server Error!'};
+ }
+}
+
export const updateQR = async ({qr_width_cm, qr_height_cm, qr_fontsize, qr_visible_items, qr_item_sequence}:
{qr_width_cm: number, qr_height_cm: number, qr_fontsize: number, qr_visible_items: number, qr_item_sequence: number}) =>
{
diff --git a/tsconfig.json b/tsconfig.json
index a273b0c..0a1b50a 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -6,6 +6,7 @@
"dom.iterable",
"esnext"
],
+ "downlevelIteration": true,
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,