From 3fcc12ad8cd84770dd9f9bc7527aac5cdf491276 Mon Sep 17 00:00:00 2001 From: bruno Date: Tue, 21 Jul 2026 08:27:10 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20sweep=20complet=20=E2=80=94=20tous=20le?= =?UTF-8?q?s=20=C3=A9mojis=20=E2=86=92=20outline=20SVG=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Templates modifiΓ©s (22 fichiers): - _icons.html: +14 new icons (paperclip, external-link, sparkles, lightbulb, tag, file-text, save, upload, trending-up, zap, alert-triangle, user, eye-off) - base.html: +8 JS icons, πŸ¦ŽπŸ™πŸ”‘πŸ”—πŸ‘πŸ“‹πŸ”²πŸ“‘β“βš οΈβ†’SVG - page_editor.html: 43β†’0 Γ©mojis (πŸ“ŽπŸ“„πŸ”’πŸ”—β­πŸ“‹πŸ“βœ¨πŸ“πŸ—„πŸ“‘πŸ“ŠπŸ“…πŸ—“πŸ–ΌπŸ“₯πŸŒβœπŸ’¬πŸ’‘ etc) - settings.html: 30β†’0 (βš™οΈπŸ“‹πŸ·πŸ§©πŸ‘₯πŸ’ΎπŸ™ˆπŸ‘πŸ”’πŸŒ™β˜€οΈπŸŒ³πŸ“ŠπŸ“βš πŸ¦Žβœ…πŸ™πŸ”—βœπŸ—‘) - local_workspace.html: 25β†’0 (πŸ“„πŸ“βœπŸ—‘βš πŸ“‹βž•) - gitea_workspace.html: 25β†’0 (πŸ”—πŸ“„πŸ“€πŸ”„βš™πŸ“πŸ“„πŸ”’βœπŸ—‘πŸ’Ύ) - board.html: 13β†’0 (πŸ“πŸ“ŠπŸ“‹β˜°πŸ“ˆπŸ‘₯βœ•βœ“πŸ—‘βš‘πŸ”) - workspace.html: 11β†’0 (πŸ πŸ”‘βš™πŸ“πŸ”—πŸ“‚πŸ™) - landing.html: 8β†’0 (πŸ“šπŸš€πŸ“πŸ“ŠπŸ¦ŽπŸŒπŸ”’βš‘) - trash.html, table_view, dashboard, accounts, card_detail, public_page, workspaces, team_load, notes, _header, detailed_board, card, board_fragment - AjoutΓ© import _icons.html aux fragments standalone - 143 tests passent --- app/templates/_header.html | 2 +- app/templates/_icons.html | 26 ++++++++++++ app/templates/accounts.html | 6 +-- app/templates/base.html | 28 +++++++----- app/templates/board.html | 20 ++++----- app/templates/board_fragment.html | 2 +- app/templates/card.html | 2 +- app/templates/card_detail.html | 4 +- app/templates/dashboard.html | 8 ++-- app/templates/detailed_board.html | 2 +- app/templates/gitea_workspace.html | 38 ++++++++--------- app/templates/landing.html | 17 ++++---- app/templates/library.html | 6 +-- app/templates/local_workspace.html | 40 +++++++++--------- app/templates/notes.html | 2 +- app/templates/page_editor.html | 68 +++++++++++++++--------------- app/templates/public_page.html | 4 +- app/templates/settings.html | 48 ++++++++++----------- app/templates/table_view.html | 11 ++--- app/templates/team_load.html | 3 +- app/templates/trash.html | 14 +++--- app/templates/workspace.html | 20 ++++----- app/templates/workspaces.html | 2 +- 23 files changed, 204 insertions(+), 169 deletions(-) diff --git a/app/templates/_header.html b/app/templates/_header.html index c98fdd6..8c13d7f 100644 --- a/app/templates/_header.html +++ b/app/templates/_header.html @@ -12,7 +12,7 @@ #} {% set ns = namespace(items=[]) %} {% if not hide_home %} - {% set ns.items = ns.items + [{"label": "Home", "url": "/workspaces", "id": none, "icon": "🏠", "menu": false, "home": true}] %} + {% set ns.items = ns.items + [{"label": "Home", "url": "/workspaces", "id": none, "icon": "home", "menu": false, "home": true}] %} {% endif %} {% if breadcrumb_items %} {% for item in breadcrumb_items %} diff --git a/app/templates/_icons.html b/app/templates/_icons.html index d90e3e1..178f56e 100644 --- a/app/templates/_icons.html +++ b/app/templates/_icons.html @@ -78,6 +78,8 @@ {%- elif name == 'copy' -%} +{%- elif name == 'eye-off' -%} + {%- elif name == 'eye' -%} {%- elif name == 'share' -%} @@ -86,5 +88,29 @@ {%- elif name == 'x' -%} +{%- elif name == 'paperclip' -%} + +{%- elif name == 'external-link' -%} + +{%- elif name == 'sparkles' -%} + +{%- elif name == 'lightbulb' -%} + +{%- elif name == 'tag' -%} + +{%- elif name == 'file-text' -%} + +{%- elif name == 'save' -%} + +{%- elif name == 'upload' -%} + +{%- elif name == 'trending-up' -%} + +{%- elif name == 'zap' -%} + +{%- elif name == 'alert-triangle' -%} + +{%- elif name == 'user' -%} + {%- endif -%} {%- endmacro -%} diff --git a/app/templates/accounts.html b/app/templates/accounts.html index f8650c6..4f70a28 100644 --- a/app/templates/accounts.html +++ b/app/templates/accounts.html @@ -1,12 +1,12 @@ {% extends "base.html" %} -{% block page_icon %}πŸ‘€{% endblock %} +{% block page_icon %}{{ fd_icon("user",18) }}{% endblock %} {% block page_title %}Accounts{% endblock %} {% block title_prefix %}Accounts{% endblock %} {% block content %}
- πŸ‘€ + {{ fd_icon("user",24) }}

Account Management

@@ -50,7 +50,7 @@

Connected Accounts

- πŸ”— + {{ fd_icon("link",20) }}
Gitea
diff --git a/app/templates/base.html b/app/templates/base.html index 1e85864..50b3223 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -156,7 +156,7 @@ {{ user.full_name or user.login or workspaceName }} {% if auth_method != 'local' %} - {% if auth_method == 'gitea' %}🦎 Gitea{% elif auth_method == 'github' %}πŸ™ GitHub{% else %}πŸ”‘ {{ auth_method|title }}{% endif %} + {% if auth_method == 'gitea' %}Gitea{% elif auth_method == 'github' %}GitHub{% else %}{{ auth_method|title }}{% endif %} {% endif %}
@@ -257,7 +257,7 @@ @@ -482,15 +482,15 @@
- πŸ‘οΈ Remove from Recents + {{ fd_icon("eye",14) }} Remove from Recents
- πŸ”— Copy link + {{ fd_icon("link",14) }} Copy link
- πŸ“‹ Duplicate + {{ fd_icon("copy",14) }} Duplicate β–Ά
@@ -507,11 +507,11 @@
- πŸ”² Open in new tab + {{ fd_icon("external-link",14) }} Open in new tab Ctrl+Shift+O
- πŸ“‘ Open in side peek + {{ fd_icon("file",14) }} Open in side peek Alt+Click
@@ -523,7 +523,7 @@
- ❓ Learn about databases + {{ fd_icon("help-circle",14) }} Learn about databases
@@ -610,7 +610,13 @@ download: '', search: '', home: '', - key: '' + key: '', + paperclip: '', + 'external-link': '', + save: '', + upload: '', + zap: '', + user: '' }; return svgs[name] || ''; } @@ -1203,7 +1209,7 @@ .catch(function(err) { console.error('loadGiteaTree failed:', err.message || err); if (container) { - container.innerHTML = ''; + container.innerHTML = ''; } }); }, diff --git a/app/templates/board.html b/app/templates/board.html index 803ed44..616173f 100644 --- a/app/templates/board.html +++ b/app/templates/board.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block page_icon %}πŸ“{% endblock %} +{% block page_icon %}{{ fd_icon("folder",18) }}{% endblock %} {% block page_title %}Kanban board new{% endblock %} {% block title_prefix %}Kanban board new{% endblock %} @@ -16,7 +16,7 @@
- πŸ“ + {{ fd_icon("folder",24) }}

{{ repo }}

@@ -41,31 +41,31 @@ hx-get="/board/{{ owner }}/{{ repo }}/view/kanban" hx-target="#view-content" hx-swap="innerHTML" @click="setActiveTab($el)"> - πŸ“Š Kanban board + {{ fd_icon("bar-chart",14) }} Kanban board @@ -111,7 +111,7 @@ - + @@ -119,8 +119,8 @@ - - + + diff --git a/app/templates/board_fragment.html b/app/templates/board_fragment.html index 6fe3cdd..435c72b 100644 --- a/app/templates/board_fragment.html +++ b/app/templates/board_fragment.html @@ -36,7 +36,7 @@ {{ card.tag }} {% endif %} {% if card.due_date %} -
πŸ“… {{ card.due_date }}
+
{{ fd_icon("calendar",14) }} {{ card.due_date }}
{% endif %} diff --git a/app/templates/card.html b/app/templates/card.html index 099f7f2..cdb14bc 100644 --- a/app/templates/card.html +++ b/app/templates/card.html @@ -21,7 +21,7 @@ {% endif %} {% if card.due_date %}
- πŸ“… {{ card.due_date }} + {{ fd_icon("calendar",14) }} {{ card.due_date }}
{% endif %} diff --git a/app/templates/card_detail.html b/app/templates/card_detail.html index 7b237a9..e8ba311 100644 --- a/app/templates/card_detail.html +++ b/app/templates/card_detail.html @@ -23,13 +23,13 @@
- πŸ‘€ + {{ fd_icon("user",14) }} {% if issue.assignee %}{{ issue.assignee }}{% else %}Unassigned{% endif %} β–Ύ
- πŸ“… + {{ fd_icon("calendar",14) }} {% if issue.due_date %}{{ issue.due_date }}{% else %}No deadline{% endif %}
diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 28b0884..405ca07 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block page_icon %}🏠{% endblock %} +{% block page_icon %}{{ fd_icon("home",18) }}{% endblock %} {% block page_title %}Home{% endblock %} {% block title_prefix %}Home{% endblock %} @@ -42,7 +42,7 @@ border-radius: 6px; transition: background 0.15s; cursor: pointer; color: var(--text-primary); text-decoration: none;" onmouseover="this.style.background='var(--bg-hover)'" onmouseout="this.style.background='transparent'"> - πŸ“ + {{ fd_icon("folder",20) }}
{{ repo.name }} @@ -57,7 +57,7 @@ 🟑 {{ repo.language }} {% endif %} {% if repo.private %} - πŸ”’ + {{ fd_icon("lock",14) }} {% endif %} β†’
@@ -66,7 +66,7 @@ {% if not repos %}
-
πŸ“­
+
{{ fd_icon("inbox",48) }}

Aucun projet trouvΓ©

{% if search %} diff --git a/app/templates/detailed_board.html b/app/templates/detailed_board.html index 641cbb5..0c98b09 100644 --- a/app/templates/detailed_board.html +++ b/app/templates/detailed_board.html @@ -39,7 +39,7 @@ {% endif %} {% if card.due_date %}

- πŸ“… + {{ fd_icon("calendar",14) }} {{ card.due_date }}
{% endif %} diff --git a/app/templates/gitea_workspace.html b/app/templates/gitea_workspace.html index 2d3bd97..740e92d 100644 --- a/app/templates/gitea_workspace.html +++ b/app/templates/gitea_workspace.html @@ -1,12 +1,12 @@ {% extends "base.html" %} {% block page_title %}{{ workspace_name }}{% endblock %} {% block title_prefix %}{{ workspace_name }}{% endblock %} -{% block page_icon %}πŸ”—{% endblock %} +{% block page_icon %}{{ fd_icon("link",18) }}{% endblock %} {% block topbar %} {% set breadcrumb_items = [{"label": owner ~ "/" ~ repo, "url": None}] %} -{% set page_icon = "πŸ”—" %} -{% set right_actions = 'βš™' %} +{% set page_icon = "link" %} +{% set right_actions = '' ~ fd_icon("settings",16) ~ '' %} {% include '_header.html' %} {% endblock %} @@ -164,7 +164,7 @@ document.addEventListener('alpine:init', () => { if (!r.ok) { // If API fails (e.g. no Gitea token), set a message var container = document.getElementById('sidebar-gitea-items'); - if (container) container.innerHTML = ''; + if (container) container.innerHTML = ''; return; } var d = await r.json(); @@ -180,7 +180,7 @@ document.addEventListener('alpine:init', () => { var html = ''; for (var i = 0; i < items.length; i++) { var item = items[i]; - var icon = item.type === 'folder' ? 'πŸ“' : 'πŸ“„'; + var icon = item.type === 'folder' ? getSvgIcon('folder',14) : getSvgIcon('file',14); html += '
  • '; html += ''; + html += ''+getSvgIcon('lock',14)+'Private Pages'; container.innerHTML = html; // Re-attach event listeners this.setupSidebarClicks(); @@ -270,7 +270,7 @@ document.addEventListener('alpine:init', () => { ul.className = 'sidebar-items'; ul.style.paddingLeft = '20px'; children.forEach(function(child) { - var icon = child.type === 'folder' ? 'πŸ“' : 'πŸ“„'; + var icon = child.type === 'folder' ? getSvgIcon('folder',14) : getSvgIcon('file',14); var li = document.createElement('li'); li.className = 'sidebar-item'; li.setAttribute('data-gitea-path', child.path); @@ -669,8 +669,8 @@ document.addEventListener('alpine:init', () => { - - + +
    @@ -710,7 +710,7 @@ document.addEventListener('alpine:init', () => {
    @@ -734,9 +734,9 @@ document.addEventListener('alpine:init', () => {
    @@ -746,7 +746,7 @@ document.addEventListener('alpine:init', () => { @click="item.type==='folder' ? drillDown(item.path) : openFile(item.path, item.sha)" @contextmenu.prevent="openGwContext($event, item)" style="display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;"> - +
    @@ -759,8 +759,8 @@ document.addEventListener('alpine:init', () => { :style="'left:' + gwCtx.x + 'px; top:' + gwCtx.y + 'px'" @click.outside="gwCtx.visible = false" style="display:none;position:fixed;background:var(--bg-modal);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-popover);z-index:1100;min-width:160px;padding:4px;"> -
    ✏️ Rename
    -
    πŸ—‘ Delete
    +
    {{ fd_icon("edit",14) }} Rename
    +
    {{ fd_icon("trash",14) }} Delete
    @@ -769,7 +769,7 @@ document.addEventListener('alpine:init', () => { - + @@ -778,7 +778,7 @@ document.addEventListener('alpine:init', () => {