From 5940dc17fda731b32bcb71b1347653edb918e6c5 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 24 Mar 2024 15:31:35 +0100 Subject: [PATCH] Migrate `gap` helpers to tailwind (#30034) Commands ran: ```sh perl -p -i -e 's#gt-gap-0#tw-gap-0#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-1#tw-gap-0.5#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-2#tw-gap-1#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-3#tw-gap-2#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-4#tw-gap-4#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-5#tw-gap-8#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-x-0#tw-gap-x-0#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-x-1#tw-gap-x-0.5#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-x-2#tw-gap-x-1#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-x-3#tw-gap-x-2#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-x-4#tw-gap-x-4#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-x-5#tw-gap-x-8#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-y-0#tw-gap-y-0#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-y-1#tw-gap-y-0.5#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-y-2#tw-gap-y-1#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-y-3#tw-gap-y-2#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-y-4#tw-gap-y-4#g' web_src/js/**/* templates/**/* perl -p -i -e 's#gt-gap-y-5#tw-gap-y-8#g' web_src/js/**/* templates/**/* (cherry picked from commit 90a4f9a49eecc4b672df0c29f5034be25244191c) Conflicts: templates/repo/diff/box.tmpl templates/repo/diff/conversation.tmpl prefered Forgejo files & re-ran the commands to ensure all are applied --- templates/admin/user/list.tmpl | 2 +- templates/org/header.tmpl | 2 +- templates/org/settings/blocked_users.tmpl | 2 +- templates/org/team/members.tmpl | 2 +- templates/org/team/repositories.tmpl | 2 +- templates/repo/diff/box.tmpl | 6 +++--- templates/repo/diff/conversation.tmpl | 4 ++-- templates/repo/home.tmpl | 4 ++-- templates/repo/issue/milestone_issues.tmpl | 4 ++-- .../repo/issue/view_content/sidebar.tmpl | 6 +++--- templates/repo/pulls/tab_menu.tmpl | 2 +- templates/user/auth/signin_inner.tmpl | 2 +- templates/user/auth/signup_inner.tmpl | 2 +- templates/user/auth/webauthn.tmpl | 2 +- templates/user/dashboard/feeds.tmpl | 4 ++-- .../user/notification/notification_div.tmpl | 4 ++-- templates/user/settings/account.tmpl | 2 +- web_src/css/helpers.css | 21 ------------------- web_src/js/components/DiffCommitSelector.vue | 2 +- web_src/js/components/RepoContributors.vue | 2 +- 20 files changed, 28 insertions(+), 49 deletions(-) diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index dc557e8598..e5d429952f 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -103,7 +103,7 @@ {{ctx.Locale.Tr "admin.users.never_login"}} {{end}} -
+ diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl index 81373aa75c..6eb7feb33f 100644 --- a/templates/org/header.tmpl +++ b/templates/org/header.tmpl @@ -7,7 +7,7 @@ {{if .Org.Visibility.IsLimited}}{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}{{end}} {{if .Org.Visibility.IsPrivate}}{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}{{end}} - + {{if .EnableFeed}} {{svg "octicon-rss" 24}} diff --git a/templates/org/settings/blocked_users.tmpl b/templates/org/settings/blocked_users.tmpl index 4701e696ad..f685a1b998 100644 --- a/templates/org/settings/blocked_users.tmpl +++ b/templates/org/settings/blocked_users.tmpl @@ -1,7 +1,7 @@ {{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings blocked-users")}}
-
+ {{.CsrfTokenHtml}}
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl index 65430cbda3..aa358841da 100644 --- a/templates/org/team/members.tmpl +++ b/templates/org/team/members.tmpl @@ -9,7 +9,7 @@ {{template "org/team/navbar" .}} {{if .IsOrganizationOwner}}
- + {{.CsrfTokenHtml}}