Implemented file drop inputs, Preparing more tools
Update app.py, excel-password-remover.yml, and 30 more files...
This commit is contained in:
22
templates/applets/excel-password-remover.jinja
Normal file
22
templates/applets/excel-password-remover.jinja
Normal file
@@ -0,0 +1,22 @@
|
||||
<section id="{{ applet_data.id }}-eula">
|
||||
{{ render_h2(l10n("eula.long", "commons", user_lang)) }}
|
||||
{{ render_paragraph(l10n("eula.1", applet_data.id, user_lang)) }}
|
||||
{{ render_paragraph(l10n("eula.2", applet_data.id, user_lang)) }}
|
||||
{{ render_paragraph(l10n("eula.3", applet_data.id, user_lang)) }}
|
||||
{{ render_paragraph(l10n("eula.4", applet_data.id, user_lang)) }}
|
||||
</section>
|
||||
|
||||
<section id="{{ applet_data.id }}-input">
|
||||
{{ render_h2(l10n("file.selection.title", applet_data.id, user_lang)) }}
|
||||
<p>123</p>
|
||||
</section>
|
||||
|
||||
<section id="{{ applet_data.id }}-details">
|
||||
{{ render_h2(l10n("details.title", applet_data.id, user_lang)) }}
|
||||
<p>123</p>
|
||||
</section>
|
||||
|
||||
<section id="{{ applet_data.id }}-licenses">
|
||||
{{ render_h2(l10n("licenses.title", applet_data.id, user_lang)) }}
|
||||
<p>123</p>
|
||||
</section>
|
5
templates/applets/png-chunk-analyser.jinja
Normal file
5
templates/applets/png-chunk-analyser.jinja
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
{{ render_h2(l10n("upload.title", "commons", user_lang)) }}
|
||||
|
||||
{{ render_file_input("test-input", true, None, true, true) }}
|
||||
|
0
templates/applets/png-optimizer.jinja
Normal file
0
templates/applets/png-optimizer.jinja
Normal file
@@ -23,6 +23,8 @@
|
||||
<link rel="stylesheet" href="https://cdn.nibblepoker.{{ domain_tld }}/NibblePoker/IndevCSS/nibblepoker.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.nibblepoker.{{ domain_tld }}/Quantum/Quantum.min.css">
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for("static", filename="resources/NibblePoker/css/extra.css") }}">
|
||||
|
||||
{% block extra_stylesheets %}{% endblock %}
|
||||
|
||||
<meta charset="UTF-8">
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<button class="p-mxs r-s border b-light t-nowrap {{ button_extra_classes }}"
|
||||
<button
|
||||
{% if button_id is not none %}id="{{ button_id }}" {% endif %}
|
||||
class="p-mxs r-s border b-light t-nowrap {{ button_extra_classes }}"
|
||||
{% if button_disabled %}disabled{% endif %}>
|
||||
{{ button_inner_html }}
|
||||
</button>
|
@@ -1,4 +1,8 @@
|
||||
<code class="code ox-auto w-full d-inline-block position-relative language-{{ code_language }}">
|
||||
{% if code_language is none %}
|
||||
<code class="code ox-auto w-full d-inline-block position-relative">
|
||||
{% else %}
|
||||
<code class="code ox-auto w-full d-inline-block position-relative language-{{ code_language }}">
|
||||
{% endif %}
|
||||
{% for code_line in code_lines %}
|
||||
<span class="code-line t-nowrap">{{ code_line }}</span><br>
|
||||
{% endfor %}
|
||||
|
58
templates/elements/file-input.jinja
Normal file
58
templates/elements/file-input.jinja
Normal file
@@ -0,0 +1,58 @@
|
||||
<div class="np-file-input-root-container">
|
||||
{% if file_upload_button %}
|
||||
<button id="{{ file_input_id }}-add" class="p-xs r-s border btn-primary">
|
||||
<i class="fa-duotone fa-solid fa-cloud-arrow-up mr-xs"></i>
|
||||
{{ l10n("file.drop.upload", "commons", user_lang) }}
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if file_clear_button %}
|
||||
<button id="{{ file_input_id }}-reset" class="p-xs r-s border btn-warning">
|
||||
{{ l10n("file.drop.clear", "commons", user_lang) }}
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
{% if file_upload_button or file_clear_button %}
|
||||
<br>
|
||||
{% endif %}
|
||||
|
||||
<div class="np-file-input-drop-container border r-s bkgd-blank">
|
||||
<p class="np-file-drop-text"
|
||||
id="{{ file_input_id }}-text-drop">
|
||||
{% if file_multiple %}
|
||||
{{ l10n("file.drop.select.multiple", "commons", user_lang) }}
|
||||
{% else %}
|
||||
{{ l10n("file.drop.select.single", "commons", user_lang) }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p class="np-file-drop-text"
|
||||
id="{{ file_input_id }}-text-file-single"
|
||||
hidden>
|
||||
{{ l10n("file.drop.selected.single", "commons", user_lang) }}
|
||||
</p>
|
||||
|
||||
<p class="np-file-drop-text"
|
||||
id="{{ file_input_id }}-text-file-multiple"
|
||||
hidden>
|
||||
{{ l10n("file.drop.selected.multiple", "commons", user_lang) }}
|
||||
</p>
|
||||
|
||||
<label for="{{ file_input_id }}"
|
||||
hidden>
|
||||
{% if file_multiple %}
|
||||
{{ l10n("file.drop.label.multiple", "commons", user_lang) }}
|
||||
{% else %}
|
||||
{{ l10n("file.drop.label.single", "commons", user_lang) }}
|
||||
{% endif %}
|
||||
</label>
|
||||
|
||||
<input type="file"
|
||||
id="{{ file_input_id }}"
|
||||
name="{{ file_input_id }}"
|
||||
{% if file_accept is not none %}accept="{{ file_accept }}"{% endif %}
|
||||
class="np-file-input-drop w-full p-l"
|
||||
{% if file_multiple %}multiple{% endif %}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
@@ -10,10 +10,15 @@
|
||||
{% block main_content %}
|
||||
{{ render_h1(l10n("email.title", "contact", user_lang), "fad fa-mail-bulk", "herwin.bozet@gmail.com") }}
|
||||
<p class="m-s">
|
||||
<a href="mailto:Herwin Bozet<herwin.bozet@nibblepoker.lu>?subject=Contact%20via%20NibblePoker.lu" class="a-hidden button-link">
|
||||
<button class="p-xs r-s border b-light success"><i class="fad fa-external-link-alt mr-xs"></i>{{ l10n("email.compose.nibblepoker", "contact", user_lang) }}</button>
|
||||
</a>
|
||||
</p>
|
||||
<!--<p class="m-s">
|
||||
<a href="mailto:Herwin Bozet<herwin.bozet@gmail.com>?subject=Contact%20via%20NibblePoker.lu" class="a-hidden button-link">
|
||||
<button class="p-xs r-s border b-light success"><i class="fad fa-external-link-alt mr-xs"></i>{{ l10n("email.compose", "contact", user_lang) }}</button>
|
||||
</a>
|
||||
</p>
|
||||
</p>-->
|
||||
|
||||
{{ render_h1(l10n("twitter.title", "contact", user_lang), "fab fa-twitter", "@NibblePoker") }}
|
||||
<p class="m-s">
|
||||
|
@@ -1 +0,0 @@
|
||||
{% extends "tools/_tool.jinja" %}
|
Reference in New Issue
Block a user