From bdf356c84cf03e019de3f462c88f837f24ff224b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 7 Mar 2024 17:05:19 -0500 Subject: [PATCH] Combined drop zone, refs #16 --- .../templates/_extract_drop_handler.html | 143 ++++++++++++++++++ .../templates/_extract_heic.html | 36 ----- .../templates/_extract_pdf_drop.html | 75 --------- .../templates/extract_create_table.html | 9 +- .../templates/extract_to_table.html | 9 +- 5 files changed, 152 insertions(+), 120 deletions(-) create mode 100644 datasette_extract/templates/_extract_drop_handler.html delete mode 100644 datasette_extract/templates/_extract_heic.html delete mode 100644 datasette_extract/templates/_extract_pdf_drop.html diff --git a/datasette_extract/templates/_extract_drop_handler.html b/datasette_extract/templates/_extract_drop_handler.html new file mode 100644 index 0000000..e9f2afc --- /dev/null +++ b/datasette_extract/templates/_extract_drop_handler.html @@ -0,0 +1,143 @@ + \ No newline at end of file diff --git a/datasette_extract/templates/_extract_heic.html b/datasette_extract/templates/_extract_heic.html deleted file mode 100644 index db427d2..0000000 --- a/datasette_extract/templates/_extract_heic.html +++ /dev/null @@ -1,36 +0,0 @@ -
- Use this section to handle Apple HEIC images -

- -

- -
- - diff --git a/datasette_extract/templates/_extract_pdf_drop.html b/datasette_extract/templates/_extract_pdf_drop.html deleted file mode 100644 index bb755a2..0000000 --- a/datasette_extract/templates/_extract_pdf_drop.html +++ /dev/null @@ -1,75 +0,0 @@ - diff --git a/datasette_extract/templates/extract_create_table.html b/datasette_extract/templates/extract_create_table.html index 46e8c17..501b82e 100644 --- a/datasette_extract/templates/extract_create_table.html +++ b/datasette_extract/templates/extract_create_table.html @@ -33,14 +33,15 @@

Extract data and create a new table in {{ database }}

-

+ +

+ +

-{% include "_extract_heic.html" %} - -{% include "_extract_pdf_drop.html" %} +{% include "_extract_drop_handler.html" %} {% endblock %} \ No newline at end of file diff --git a/datasette_extract/templates/extract_to_table.html b/datasette_extract/templates/extract_to_table.html index c44177d..220e082 100644 --- a/datasette_extract/templates/extract_to_table.html +++ b/datasette_extract/templates/extract_to_table.html @@ -40,15 +40,14 @@

Extract data into {{ database }} / {{ table }}

-

+

- +

+

-{% include "_extract_heic.html" %} - -{% include "_extract_pdf_drop.html" %} +{% include "_extract_drop_handler.html" %} {% if previous_runs %}

Previous extraction tasks