diff options
author | silverwind <me@silverwind.io> | 2024-03-22 14:45:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:45:10 +0000 |
commit | f88ad5424f381bf2a45fd863b551c5a72891bb68 (patch) | |
tree | 05ec4c52474381e8c694c539e532a5dafd20d252 /templates/admin | |
parent | 0c55506b407731546c6bacd1442a785db68f55a7 (diff) | |
download | gitea-f88ad5424f381bf2a45fd863b551c5a72891bb68.tar.gz gitea-f88ad5424f381bf2a45fd863b551c5a72891bb68.zip |
Replace 10 more gt- classes with tw- (#29945)
Likely the biggest change of the tailwind refactors. Only thing of note
is that `tw-flex-1` resolves to `flex: 1 1 0%` while our `gt-f1` was
`flex: 1 1 0`, I don't think it will make any difference. Commands I've
ran:
```sh
perl -p -i -e 's#gt-vm#tw-align-middle#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fw#tw-flex-wrap#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-f1#tw-flex-1#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fc#tw-flex-col#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-sb#tw-justify-between#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-je#tw-justify-end#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-jc#tw-justify-center#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-ac#tw-content-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-df#tw-flex#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-dib#tw-inline-block#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/emails/list.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/notice.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/org/list.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/queue_manage.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/repo/unadopted.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/stacktrace-row.tmpl | 8 | ||||
-rw-r--r-- | templates/admin/stacktrace.tmpl | 4 | ||||
-rw-r--r-- | templates/admin/user/list.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/view.tmpl | 4 |
9 files changed, 17 insertions, 17 deletions
diff --git a/templates/admin/emails/list.tmpl b/templates/admin/emails/list.tmpl index 660df55999..0b5249fbd9 100644 --- a/templates/admin/emails/list.tmpl +++ b/templates/admin/emails/list.tmpl @@ -4,8 +4,8 @@ {{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) </h4> <div class="ui attached segment"> - <div class="ui secondary filter menu gt-ac gt-mx-0"> - <form class="ui form ignore-dirty gt-f1"> + <div class="ui secondary filter menu tw-content-center gt-mx-0"> + <form class="ui form ignore-dirty tw-flex-1"> {{template "shared/search/combo" dict "Value" .Keyword}} </form> <!-- Sort --> diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index f7d77eab1d..c788ebc602 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -17,7 +17,7 @@ <tbody> {{range .Notices}} <tr> - <td><div class="ui checkbox gt-df" data-id="{{.ID}}"><input type="checkbox"></div></td> + <td><div class="ui checkbox tw-flex" data-id="{{.ID}}"><input type="checkbox"></div></td> <td>{{.ID}}</td> <td>{{ctx.Locale.Tr .TrStr}}</td> <td class="view-detail auto-ellipsis" style="width: 80%;"><span class="notice-description">{{.Description}}</span></td> diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 4609d1b8b4..abd43d297e 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -7,8 +7,8 @@ </div> </h4> <div class="ui attached segment"> - <div class="ui secondary filter menu gt-ac gt-mx-0"> - <form class="ui form ignore-dirty gt-f1"> + <div class="ui secondary filter menu tw-content-center gt-mx-0"> + <form class="ui form ignore-dirty tw-flex-1"> {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}} </form> <!-- Sort --> diff --git a/templates/admin/queue_manage.tmpl b/templates/admin/queue_manage.tmpl index 80214d1021..dd1682a000 100644 --- a/templates/admin/queue_manage.tmpl +++ b/templates/admin/queue_manage.tmpl @@ -30,7 +30,7 @@ - {{else}} {{$sum}} - <form action="{{$.Link}}/remove-all-items" method="post" class="gt-dib gt-ml-4"> + <form action="{{$.Link}}/remove-all-items" method="post" class="tw-inline-block gt-ml-4"> {{$.CsrfTokenHtml}} <button class="ui tiny basic red button">{{ctx.Locale.Tr "admin.monitor.queue.settings.remove_all_items"}}</button> </form> diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl index c65cfd9db4..eb8188de14 100644 --- a/templates/admin/repo/unadopted.tmpl +++ b/templates/admin/repo/unadopted.tmpl @@ -20,8 +20,8 @@ {{if .Dirs}} <div class="ui aligned divided list"> {{range $dirI, $dir := .Dirs}} - <div class="item gt-df gt-ac"> - <span class="gt-f1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span> + <div class="item tw-flex tw-content-center"> + <span class="tw-flex-1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span> <div> <button class="ui button primary show-modal gt-p-3" data-modal="#adopt-unadopted-modal-{{$dirI}}">{{svg "octicon-plus"}} {{ctx.Locale.Tr "repo.adopt_preexisting_label"}}</button> <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> diff --git a/templates/admin/stacktrace-row.tmpl b/templates/admin/stacktrace-row.tmpl index ffb8bf812f..fdce81eda7 100644 --- a/templates/admin/stacktrace-row.tmpl +++ b/templates/admin/stacktrace-row.tmpl @@ -1,5 +1,5 @@ <div class="item"> - <div class="gt-df gt-ac"> + <div class="tw-flex tw-content-center"> <div class="icon gt-ml-3 gt-mr-3"> {{if eq .Process.Type "request"}} {{svg "octicon-globe" 16}} @@ -11,7 +11,7 @@ {{svg "octicon-code" 16}} {{end}} </div> - <div class="content gt-f1"> + <div class="content tw-flex-1"> <div class="header">{{.Process.Description}}</div> <div class="description">{{if ne .Process.Type "none"}}{{TimeSince .Process.Start ctx.Locale}}{{end}}</div> </div> @@ -40,9 +40,9 @@ </summary> <div class="list"> {{range .Entry}} - <div class="item gt-df gt-ac"> + <div class="item tw-flex tw-content-center"> <span class="icon gt-mr-4">{{svg "octicon-dot-fill" 16}}</span> - <div class="content gt-f1"> + <div class="content tw-flex-1"> <div class="header"><code>{{.Function}}</code></div> <div class="description"><code>{{.File}}:{{.Line}}</code></div> </div> diff --git a/templates/admin/stacktrace.tmpl b/templates/admin/stacktrace.tmpl index 950aa0ea86..3c13c1e9dd 100644 --- a/templates/admin/stacktrace.tmpl +++ b/templates/admin/stacktrace.tmpl @@ -1,8 +1,8 @@ {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}} <div class="admin-setting-content"> - <div class="gt-df gt-ac"> - <div class="gt-f1"> + <div class="tw-flex tw-content-center"> + <div class="tw-flex-1"> <div class="ui compact small menu"> <a class="{{if eq .ShowGoroutineList "process"}}active {{end}}item" href="?show=process">{{ctx.Locale.Tr "admin.monitor.process"}}</a> <a class="{{if eq .ShowGoroutineList "stacktrace"}}active {{end}}item" href="?show=stacktrace">{{ctx.Locale.Tr "admin.monitor.stacktrace"}}</a> diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 091cbe7287..427eef7a78 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -103,7 +103,7 @@ <td><span>{{ctx.Locale.Tr "admin.users.never_login"}}</span></td> {{end}} <td> - <div class="gt-df gt-gap-3"> + <div class="tw-flex gt-gap-3"> <a href="{{$.Link}}/{{.ID}}" data-tooltip-content="{{ctx.Locale.Tr "admin.users.details"}}">{{svg "octicon-person"}}</a> <a href="{{$.Link}}/{{.ID}}/edit" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a> </div> diff --git a/templates/admin/user/view.tmpl b/templates/admin/user/view.tmpl index fd3017607c..21943a8382 100644 --- a/templates/admin/user/view.tmpl +++ b/templates/admin/user/view.tmpl @@ -2,7 +2,7 @@ <div class="admin-setting-content"> <div class="admin-responsive-columns"> - <div class="gt-f1"> + <div class="tw-flex-1"> <h4 class="ui top attached header"> {{.Title}} <div class="ui right"> @@ -13,7 +13,7 @@ {{template "admin/user/view_details" .}} </div> </div> - <div class="gt-f1"> + <div class="tw-flex-1"> <h4 class="ui top attached header"> {{ctx.Locale.Tr "admin.emails"}} <div class="ui right"> |