You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add "Go to file", "Delete Directory" to repo file list page (go-gitea#35911)
/claim go-gitea#35898Resolvesgo-gitea#35898
### Summary of key changes:
1. Add file name search/Go to file functionality to repo button row.
2. Add backend functionality to delete directory
3. Add context menu for directories with functionality to copy path & delete a directory
4. Move Add/Upload file dropdown to right for parity with Github UI
5. Add tree view to the edit/upload UI
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Copy file name to clipboardExpand all lines: options/locale/locale_en-US.ini
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1354,8 +1354,11 @@ editor.this_file_locked = File is locked
1354
1354
editor.must_be_on_a_branch = You must be on a branch to make or propose changes to this file.
1355
1355
editor.fork_before_edit = You must fork this repository to make or propose changes to this file.
1356
1356
editor.delete_this_file = Delete File
1357
+
editor.delete_this_directory = Delete Directory
1357
1358
editor.must_have_write_access = You must have write access to make or propose changes to this file.
1358
1359
editor.file_delete_success = File "%s" has been deleted.
1360
+
editor.directory_delete_success = Directory "%s" has been deleted.
1361
+
editor.delete_directory = Delete directory '%s'
1359
1362
editor.name_your_file = Name your file…
1360
1363
editor.filename_help = Add a directory by typing its name followed by a slash ('/'). Remove a directory by typing backspace at the beginning of the input field.
log.Debug("first call to get directory file commit info")
321
+
clearFilesCommitInfo:=func() {
322
+
log.Warn("clear directory file commit info to force async loading on frontend")
323
+
fori:=rangefiles {
324
+
files[i].Commit=nil
325
+
}
326
+
}
327
+
_=clearFilesCommitInfo
328
+
// clearFilesCommitInfo() // TODO: LAST-COMMIT-ASYNC-LOADING: debug the frontend async latest commit info loading, uncomment this line, and it needs more tests
0 commit comments