2023-03-14 07:09:06 +03:00
< script >
import { createApp , nextTick } from 'vue' ;
import $ from 'jquery' ;
import { SvgIcon } from '../svg.js' ;
2023-09-19 03:50:30 +03:00
import { GET } from '../modules/fetch.js' ;
2023-03-14 07:09:06 +03:00
const { appSubUrl , assetUrlPrefix , pageData } = window . config ;
2023-07-21 13:32:25 +03:00
// make sure this matches templates/repo/commit_status.tmpl
2023-05-14 00:59:01 +03:00
const commitStatus = {
2023-07-20 02:04:41 +03:00
pending : { name : 'octicon-dot-fill' , color : 'yellow' } ,
2023-05-14 00:59:01 +03:00
success : { name : 'octicon-check' , color : 'green' } ,
error : { name : 'gitea-exclamation' , color : 'red' } ,
failure : { name : 'octicon-x' , color : 'red' } ,
2023-10-09 01:16:06 +03:00
warning : { name : 'gitea-exclamation' , color : 'yellow' } ,
2023-05-14 00:59:01 +03:00
} ;
2023-03-14 07:09:06 +03:00
const sfc = {
components : { SvgIcon } ,
data ( ) {
const params = new URLSearchParams ( window . location . search ) ;
const tab = params . get ( 'repo-search-tab' ) || 'repos' ;
const reposFilter = params . get ( 'repo-search-filter' ) || 'all' ;
const privateFilter = params . get ( 'repo-search-private' ) || 'both' ;
const archivedFilter = params . get ( 'repo-search-archived' ) || 'unarchived' ;
const searchQuery = params . get ( 'repo-search-query' ) || '' ;
const page = Number ( params . get ( 'repo-search-page' ) ) || 1 ;
return {
tab ,
repos : [ ] ,
reposTotalCount : 0 ,
reposFilter ,
archivedFilter ,
privateFilter ,
page ,
finalPage : 1 ,
searchQuery ,
isLoading : false ,
staticPrefix : assetUrlPrefix ,
counts : { } ,
repoTypes : {
all : {
searchMode : '' ,
} ,
forks : {
searchMode : 'fork' ,
} ,
mirrors : {
searchMode : 'mirror' ,
} ,
sources : {
searchMode : 'source' ,
} ,
collaborative : {
searchMode : 'collaborative' ,
} ,
} ,
textArchivedFilterTitles : { } ,
textPrivateFilterTitles : { } ,
organizations : [ ] ,
isOrganization : true ,
canCreateOrganization : false ,
organizationsTotalCount : 0 ,
2023-04-26 05:25:29 +03:00
organizationId : 0 ,
2023-03-14 07:09:06 +03:00
subUrl : appSubUrl ,
... pageData . dashboardRepoList ,
2023-06-02 21:39:07 +03:00
activeIndex : - 1 , // don't select anything at load, first cursor down will select
2023-03-14 07:09:06 +03:00
} ;
} ,
computed : {
showMoreReposLink ( ) {
return this . repos . length > 0 && this . repos . length < this . counts [ ` ${ this . reposFilter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] ;
} ,
searchURL ( ) {
return ` ${ this . subUrl } /repo/search?sort=updated&order=desc&uid= ${ this . uid } &team_id= ${ this . teamId } &q= ${ this . searchQuery
} & page = $ { this . page } & limit = $ { this . searchLimit } & mode = $ { this . repoTypes [ this . reposFilter ] . searchMode
} $ { this . reposFilter !== 'all' ? '&exclusive=1' : ''
} $ { this . archivedFilter === 'archived' ? '&archived=true' : '' } $ { this . archivedFilter === 'unarchived' ? '&archived=false' : ''
} $ { this . privateFilter === 'private' ? '&is_private=true' : '' } $ { this . privateFilter === 'public' ? '&is_private=false' : ''
} ` ;
} ,
repoTypeCount ( ) {
return this . counts [ ` ${ this . reposFilter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] ;
} ,
checkboxArchivedFilterTitle ( ) {
return this . textArchivedFilterTitles [ this . archivedFilter ] ;
} ,
checkboxArchivedFilterProps ( ) {
return { checked : this . archivedFilter === 'archived' , indeterminate : this . archivedFilter === 'both' } ;
} ,
checkboxPrivateFilterTitle ( ) {
return this . textPrivateFilterTitles [ this . privateFilter ] ;
} ,
checkboxPrivateFilterProps ( ) {
return { checked : this . privateFilter === 'private' , indeterminate : this . privateFilter === 'both' } ;
} ,
} ,
mounted ( ) {
const el = document . getElementById ( 'dashboard-repo-list' ) ;
this . changeReposFilter ( this . reposFilter ) ;
$ ( el ) . find ( '.dropdown' ) . dropdown ( ) ;
nextTick ( ( ) => {
this . $refs . search . focus ( ) ;
} ) ;
this . textArchivedFilterTitles = {
'archived' : this . textShowOnlyArchived ,
'unarchived' : this . textShowOnlyUnarchived ,
'both' : this . textShowBothArchivedUnarchived ,
} ;
this . textPrivateFilterTitles = {
'private' : this . textShowOnlyPrivate ,
'public' : this . textShowOnlyPublic ,
'both' : this . textShowBothPrivatePublic ,
} ;
} ,
methods : {
changeTab ( t ) {
this . tab = t ;
this . updateHistory ( ) ;
} ,
changeReposFilter ( filter ) {
this . reposFilter = filter ;
this . repos = [ ] ;
this . page = 1 ;
this . counts [ ` ${ filter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] = 0 ;
this . searchRepos ( ) ;
} ,
updateHistory ( ) {
const params = new URLSearchParams ( window . location . search ) ;
if ( this . tab === 'repos' ) {
params . delete ( 'repo-search-tab' ) ;
} else {
params . set ( 'repo-search-tab' , this . tab ) ;
}
if ( this . reposFilter === 'all' ) {
params . delete ( 'repo-search-filter' ) ;
} else {
params . set ( 'repo-search-filter' , this . reposFilter ) ;
}
if ( this . privateFilter === 'both' ) {
params . delete ( 'repo-search-private' ) ;
} else {
params . set ( 'repo-search-private' , this . privateFilter ) ;
}
if ( this . archivedFilter === 'unarchived' ) {
params . delete ( 'repo-search-archived' ) ;
} else {
params . set ( 'repo-search-archived' , this . archivedFilter ) ;
}
if ( this . searchQuery === '' ) {
params . delete ( 'repo-search-query' ) ;
} else {
params . set ( 'repo-search-query' , this . searchQuery ) ;
}
if ( this . page === 1 ) {
params . delete ( 'repo-search-page' ) ;
} else {
params . set ( 'repo-search-page' , ` ${ this . page } ` ) ;
}
const queryString = params . toString ( ) ;
if ( queryString ) {
window . history . replaceState ( { } , '' , ` ? ${ queryString } ` ) ;
} else {
window . history . replaceState ( { } , '' , window . location . pathname ) ;
}
} ,
toggleArchivedFilter ( ) {
if ( this . archivedFilter === 'unarchived' ) {
this . archivedFilter = 'archived' ;
} else if ( this . archivedFilter === 'archived' ) {
this . archivedFilter = 'both' ;
} else { // including both
this . archivedFilter = 'unarchived' ;
}
this . page = 1 ;
this . repos = [ ] ;
this . counts [ ` ${ this . reposFilter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] = 0 ;
this . searchRepos ( ) ;
} ,
togglePrivateFilter ( ) {
if ( this . privateFilter === 'both' ) {
this . privateFilter = 'public' ;
} else if ( this . privateFilter === 'public' ) {
this . privateFilter = 'private' ;
} else { // including private
this . privateFilter = 'both' ;
}
this . page = 1 ;
this . repos = [ ] ;
this . counts [ ` ${ this . reposFilter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] = 0 ;
this . searchRepos ( ) ;
} ,
changePage ( page ) {
this . page = page ;
if ( this . page > this . finalPage ) {
this . page = this . finalPage ;
}
if ( this . page < 1 ) {
this . page = 1 ;
}
this . repos = [ ] ;
this . counts [ ` ${ this . reposFilter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] = 0 ;
this . searchRepos ( ) ;
} ,
async searchRepos ( ) {
this . isLoading = true ;
const searchedMode = this . repoTypes [ this . reposFilter ] . searchMode ;
const searchedURL = this . searchURL ;
const searchedQuery = this . searchQuery ;
let response , json ;
try {
if ( ! this . reposTotalCount ) {
const totalCountSearchURL = ` ${ this . subUrl } /repo/search?count_only=1&uid= ${ this . uid } &team_id= ${ this . teamId } &q=&page=1&mode= ` ;
2023-09-19 03:50:30 +03:00
response = await GET ( totalCountSearchURL ) ;
2024-03-18 14:05:17 +03:00
this . reposTotalCount = response . headers . get ( 'X-Total-Count' ) ? ? '?' ;
2023-03-14 07:09:06 +03:00
}
2023-09-19 03:50:30 +03:00
response = await GET ( searchedURL ) ;
2023-03-14 07:09:06 +03:00
json = await response . json ( ) ;
} catch {
if ( searchedURL === this . searchURL ) {
this . isLoading = false ;
}
return ;
}
if ( searchedURL === this . searchURL ) {
2023-08-21 10:26:10 +03:00
this . repos = json . data . map ( ( webSearchRepo ) => {
return {
... webSearchRepo . repository ,
2024-03-19 16:03:28 +03:00
latest _commit _status : webSearchRepo . latest _commit _status ,
2024-03-22 17:06:53 +03:00
locale _latest _commit _status : webSearchRepo . locale _latest _commit _status ,
2023-08-21 10:26:10 +03:00
} ;
} ) ;
2023-03-14 07:09:06 +03:00
const count = response . headers . get ( 'X-Total-Count' ) ;
if ( searchedQuery === '' && searchedMode === '' && this . archivedFilter === 'both' ) {
this . reposTotalCount = count ;
}
this . counts [ ` ${ this . reposFilter } : ${ this . archivedFilter } : ${ this . privateFilter } ` ] = count ;
this . finalPage = Math . ceil ( count / this . searchLimit ) ;
this . updateHistory ( ) ;
this . isLoading = false ;
}
} ,
repoIcon ( repo ) {
if ( repo . fork ) {
return 'octicon-repo-forked' ;
} else if ( repo . mirror ) {
return 'octicon-mirror' ;
} else if ( repo . template ) {
return ` octicon-repo-template ` ;
} else if ( repo . private ) {
return 'octicon-lock' ;
} else if ( repo . internal ) {
return 'octicon-repo' ;
}
return 'octicon-repo' ;
2023-05-14 00:59:01 +03:00
} ,
statusIcon ( status ) {
return commitStatus [ status ] . name ;
} ,
statusColor ( status ) {
return commitStatus [ status ] . color ;
2023-06-02 21:39:07 +03:00
} ,
reposFilterKeyControl ( e ) {
switch ( e . key ) {
case 'Enter' :
document . querySelector ( '.repo-owner-name-list li.active a' ) ? . click ( ) ;
break ;
case 'ArrowUp' :
if ( this . activeIndex > 0 ) {
this . activeIndex -- ;
} else if ( this . page > 1 ) {
this . changePage ( this . page - 1 ) ;
this . activeIndex = this . searchLimit - 1 ;
}
break ;
case 'ArrowDown' :
if ( this . activeIndex < this . repos . length - 1 ) {
this . activeIndex ++ ;
} else if ( this . page < this . finalPage ) {
this . activeIndex = 0 ;
this . changePage ( this . page + 1 ) ;
}
break ;
case 'ArrowRight' :
if ( this . page < this . finalPage ) {
this . changePage ( this . page + 1 ) ;
}
break ;
case 'ArrowLeft' :
if ( this . page > 1 ) {
this . changePage ( this . page - 1 ) ;
}
break ;
}
if ( this . activeIndex === - 1 || this . activeIndex > this . repos . length - 1 ) {
this . activeIndex = 0 ;
}
2024-03-22 17:06:53 +03:00
} ,
2023-03-14 07:09:06 +03:00
} ,
} ;
export function initDashboardRepoList ( ) {
const el = document . getElementById ( 'dashboard-repo-list' ) ;
if ( el ) {
createApp ( sfc ) . mount ( el ) ;
}
}
export default sfc ; // activate the IDE's Vue plugin
< / script >
2023-09-02 17:59:07 +03:00
< template >
< div >
2024-03-07 17:01:11 +03:00
< div v-if ="!isOrganization" class="ui secondary stackable menu" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< a : class = "{item: true, active: tab === 'repos'}" @click ="changeTab('repos')" > {{ textMyRepos }} < span class = "ui grey label tw-ml-2" > { { reposTotalCount } } < / span > < / a >
< a : class = "{item: true, active: tab === 'organizations'}" @click ="changeTab('organizations')" > {{ textMyOrgs }} < span class = "ui grey label tw-ml-2" > { { organizationsTotalCount } } < / span > < / a >
2023-09-02 17:59:07 +03:00
< / div >
< div v-show ="tab === 'repos'" class="ui tab active list dashboard-repos" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< h4 v-if ="isOrganization" class="ui top attached tw-mt-4 tw-flex tw-items-center" >
2024-03-22 22:51:29 +03:00
< div class = "tw-flex-1 tw-flex tw-items-center" >
2023-09-02 17:59:07 +03:00
{ { textMyRepos } }
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< span class = "ui grey label tw-ml-2" > { { reposTotalCount } } < / span >
2023-09-02 17:59:07 +03:00
< / div >
< / h4 >
2024-03-07 17:01:11 +03:00
< div class = "ui top attached segment repos-search gt-rounded-top" >
2023-09-02 17:59:07 +03:00
< div class = "ui fluid action left icon input" : class = "{loading: isLoading}" >
< input type = "search" spellcheck = "false" maxlength = "255" @input ="changeReposFilter(reposFilter)" v-model ="searchQuery" ref="search" @keydown="reposFilterKeyControl" :placeholder ="textSearchRepos" >
< i class = "icon" > < svg -icon name = "octicon-search" :size ="16" / > < / i >
< div class = "ui dropdown icon button" :title ="textFilter" >
< svg -icon name = "octicon-filter" :size ="16" / >
< div class = "menu" >
< a class = "item" @click ="toggleArchivedFilter()" >
< div class = "ui checkbox" ref = "checkboxArchivedFilter" :title ="checkboxArchivedFilterTitle" >
<!-- the "hidden" is necessary to make the checkbox work without Fomantic UI js ,
otherwise if the "input" handles click event for intermediate status , it breaks the internal state -- >
< input type = "checkbox" class = "hidden" v -bind .prop = " checkboxArchivedFilterProps " >
< label >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "octicon-archive" :size ="16" class -name = " tw -mr -1 " / >
2023-09-02 17:59:07 +03:00
{ { textShowArchived } }
< / label >
< / div >
< / a >
< a class = "item" @click ="togglePrivateFilter()" >
< div class = "ui checkbox" ref = "checkboxPrivateFilter" :title ="checkboxPrivateFilterTitle" >
< input type = "checkbox" class = "hidden" v -bind .prop = " checkboxPrivateFilterProps " >
< label >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "octicon-lock" :size ="16" class -name = " tw -mr -1 " / >
2023-09-02 17:59:07 +03:00
{ { textShowPrivate } }
< / label >
< / div >
< / a >
< / div >
< / div >
< / div >
2024-03-15 05:05:31 +03:00
< overflow -menu class = "ui secondary pointing tabular borderless menu repos-filter" >
< div class = "overflow-menu-items tw-justify-center" >
< a class = "item" tabindex = "0" : class = "{active: reposFilter === 'all'}" @click ="changeReposFilter('all')" >
{ { textAll } }
< div v-show ="reposFilter === 'all'" class="ui circular mini grey label" > {{ repoTypeCount }} < / div >
< / a >
< a class = "item" tabindex = "0" : class = "{active: reposFilter === 'sources'}" @click ="changeReposFilter('sources')" >
{ { textSources } }
< div v-show ="reposFilter === 'sources'" class="ui circular mini grey label" > {{ repoTypeCount }} < / div >
< / a >
< a class = "item" tabindex = "0" : class = "{active: reposFilter === 'forks'}" @click ="changeReposFilter('forks')" >
{ { textForks } }
< div v-show ="reposFilter === 'forks'" class="ui circular mini grey label" > {{ repoTypeCount }} < / div >
< / a >
< a class = "item" tabindex = "0" : class = "{active: reposFilter === 'mirrors'}" @click ="changeReposFilter('mirrors')" v-if ="isMirrorsEnabled" >
{ { textMirrors } }
< div v-show ="reposFilter === 'mirrors'" class="ui circular mini grey label" > {{ repoTypeCount }} < / div >
< / a >
< a class = "item" tabindex = "0" : class = "{active: reposFilter === 'collaborative'}" @click ="changeReposFilter('collaborative')" >
{ { textCollaborative } }
< div v-show ="reposFilter === 'collaborative'" class="ui circular mini grey label" > {{ repoTypeCount }} < / div >
< / a >
< / div >
< / o v e r f l o w - m e n u >
2023-09-02 17:59:07 +03:00
< / div >
2024-03-18 17:47:05 +03:00
< div v-if ="repos.length" class="ui attached table segment tw-rounded-b" >
2023-09-02 17:59:07 +03:00
< ul class = "repo-owner-name-list" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< li class = "tw-flex tw-items-center tw-py-2" v-for ="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id" >
2023-09-02 17:59:07 +03:00
< a class = "repo-list-link muted" :href ="repo.link" >
< svg -icon :name ="repoIcon(repo)" :size ="16" class -name = " repo -list -icon " / >
< div class = "text truncate" > { { repo . full _name } } < / div >
< div v-if ="repo.archived" >
< svg -icon name = "octicon-archive" :size ="16" / >
< / div >
< / a >
2024-03-22 22:51:29 +03:00
< a class = "tw-flex tw-items-center" v-if ="repo.latest_commit_status" :href="repo.latest_commit_status.TargetLink" :data-tooltip-content="repo.locale_latest_commit_status.State" >
2023-09-02 17:59:07 +03:00
<!-- the commit status icon logic is taken from templates / repo / commit _status . tmpl -- >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon :name ="statusIcon(repo.latest_commit_status.State)" : class -name = " ' tw -ml -2 commit -status icon text ' + statusColor ( repo.latest_commit_status.State ) " :size ="16" / >
2023-09-02 17:59:07 +03:00
< / a >
< / li >
< / ul >
2024-03-18 17:47:05 +03:00
< div v-if ="showMoreReposLink" class="tw-text-center" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< div class = "divider tw-my-0" / >
< div class = "ui borderless pagination menu narrow tw-my-2" >
2023-09-02 17:59:07 +03:00
< a
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
class = "item navigation tw-py-1" : class = "{'disabled': page === 1}"
2023-09-02 17:59:07 +03:00
@ click = "changePage(1)" : title = "textFirstPage"
>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "gitea-double-chevron-left" :size ="16" class -name = " tw -mr -1 " / >
2023-09-02 17:59:07 +03:00
< / a >
< a
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
class = "item navigation tw-py-1" : class = "{'disabled': page === 1}"
2023-09-02 17:59:07 +03:00
@ click = "changePage(page - 1)" : title = "textPreviousPage"
>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "octicon-chevron-left" :size ="16" clsas -name = " tw -mr -1 " / >
2023-09-02 17:59:07 +03:00
< / a >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< a class = "active item tw-py-1" > { { page } } < / a >
2023-09-02 17:59:07 +03:00
< a
class = "item navigation" : class = "{'disabled': page === finalPage}"
@ click = "changePage(page + 1)" : title = "textNextPage"
>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "octicon-chevron-right" :size ="16" class -name = " tw -ml -1 " / >
2023-09-02 17:59:07 +03:00
< / a >
< a
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
class = "item navigation tw-py-1" : class = "{'disabled': page === finalPage}"
2023-09-02 17:59:07 +03:00
@ click = "changePage(finalPage)" : title = "textLastPage"
>
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "gitea-double-chevron-right" :size ="16" class -name = " tw -ml -1 " / >
2023-09-02 17:59:07 +03:00
< / a >
< / div >
< / div >
< / div >
< / div >
< div v-if ="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list dashboard-orgs" >
2024-03-18 17:47:05 +03:00
< div v-if ="organizations.length" class="ui attached table segment tw-rounded-b" >
2023-09-02 17:59:07 +03:00
< ul class = "repo-owner-name-list" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< li class = "tw-flex tw-items-center tw-py-2" v-for ="org in organizations" :key="org.name" >
2023-09-02 17:59:07 +03:00
< a class = "repo-list-link muted" : href = "subUrl + '/' + encodeURIComponent(org.name)" >
< svg -icon name = "octicon-organization" :size ="16" class -name = " repo -list -icon " / >
< div class = "text truncate" > { { org . name } } < / div >
< div > <!-- div to prevent underline of label on hover -- >
< span class = "ui tiny basic label" v-if ="org.org_visibility !== 'public'" >
{ { org . org _visibility === 'limited' ? textOrgVisibilityLimited : textOrgVisibilityPrivate } }
< / span >
< / div >
< / a >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< div class = "text light grey tw-flex tw-items-center tw-ml-2" >
2023-09-02 17:59:07 +03:00
{ { org . num _repos } }
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 19:42:49 +03:00
< svg -icon name = "octicon-repo" :size ="16" class -name = " tw -ml -1 tw -mt -0 .5 " / >
2023-09-02 17:59:07 +03:00
< / div >
< / li >
< / ul >
< / div >
< / div >
< / div >
< / template >
2023-05-29 11:55:23 +03:00
< style scoped >
ul {
list - style : none ;
margin : 0 ;
padding - left : 0 ;
}
ul li {
padding : 0 10 px ;
}
ul li : not ( : last - child ) {
border - bottom : 1 px solid var ( -- color - secondary ) ;
}
2024-03-15 05:05:31 +03:00
. repos - search {
padding - bottom : 0 ! important ;
}
. repos - filter {
padding - top : 0 ! important ;
margin - top : 0 ! important ;
border - bottom - width : 0 ! important ;
margin - bottom : 2 px ! important ;
}
. repos - filter . item {
padding - left : 6 px ! important ;
padding - right : 6 px ! important ;
}
2023-05-29 11:55:23 +03:00
. repo - list - link {
min - width : 0 ; /* for text truncation */
2023-08-22 11:49:00 +03:00
display : flex ;
align - items : center ;
flex : 1 ;
gap : 0.5 rem ;
2023-05-29 11:55:23 +03:00
}
. repo - list - link . svg {
color : var ( -- color - text - light - 2 ) ;
}
. repo - list - icon {
min - width : 16 px ;
margin - right : 2 px ;
}
/* octicon-mirror has no padding inside the SVG */
. repo - list - icon . octicon - mirror {
width : 14 px ;
min - width : 14 px ;
margin - left : 1 px ;
margin - right : 3 px ;
}
2023-06-02 21:39:07 +03:00
. repo - owner - name - list li . active {
background : var ( -- color - hover ) ;
}
2023-05-29 11:55:23 +03:00
< / style >