mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-09-19 01:04:45 +08:00
Frontend refactor, PascalCase to camelCase, remove unused code (#17365)
* Frontend refactor, PascalCase to camelCase, remove unused code * fix
This commit is contained in:
integrations
modules/context
routers/web/repo
templates
web_src/js
components
features
admin-common.jscommon-global.js
comp
emoji.jsissue-content-history.jslastcommitloader.jsnotification.jsorg-team.jsprojects.jsrepo-common.jsrepo-diff.jsrepo-editor.jsrepo-home.jsrepo-issue.jsrepo-legacy.jsrepo-migrate.jsrepo-settings.jsrepo-template.jsrepo-wiki.jsserviceworker.jsstopwatch.jstribute.jsuser-auth-u2f.jsmarkup
publicpath.js@ -114,7 +114,7 @@ func testUIDeleteBranch(t *testing.T, session *TestSession, ownerName, repoName,
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
|
||||
req = NewRequestWithValues(t, "POST", relURL+"/delete", map[string]string{
|
||||
"_csrf": getCsrf(t, htmlDoc.doc),
|
||||
"_csrf": htmlDoc.GetCSRF(),
|
||||
"name": branchName,
|
||||
})
|
||||
session.MakeRequest(t, req, http.StatusOK)
|
||||
@ -127,7 +127,7 @@ func testDeleteRepository(t *testing.T, session *TestSession, ownerName, repoNam
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
|
||||
req = NewRequestWithValues(t, "POST", relURL+"?action=delete", map[string]string{
|
||||
"_csrf": getCsrf(t, htmlDoc.doc),
|
||||
"_csrf": htmlDoc.GetCSRF(),
|
||||
"repo_name": repoName,
|
||||
})
|
||||
session.MakeRequest(t, req, http.StatusFound)
|
||||
|
Reference in New Issue
Block a user