Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang
d4c789dfc1
Refactor repo clone button and repo clone links, fix JS error on empty repo page ( #19208 )
...
The last PR about clone buttons introduced an JS error when visiting an empty repo page:
* https://github.com/go-gitea/gitea/pull/19028
* `Uncaught ReferenceError: isSSH is not defined`, because the variables are scoped and doesn't share between sub templates.
This:
1. Simplify `templates/repo/clone_buttons.tmpl` and make code clear
2. Move most JS code into `initRepoCloneLink`
3. Remove unused `CloneLink.Git`
4. Remove `ctx.Data["DisableSSH"] / ctx.Data["ExposeAnonSSH"] / ctx.Data["DisableHTTP"]`, and only set them when is is needed (eg: deploy keys / ssh keys)
5. Introduce `Data["CloneButton*"]` to provide data for clone buttons and links
6. Introduce `Data["RepoCloneLink"]` for the repo clone link (not the wiki)
7. Remove most `ctx.Data["PageIsWiki"]` because it has been set in the `/wiki` middleware
8. Remove incorrect `quickstart` class in `migrating.tmpl`
3 years ago
..
comp
Fix EasyMDE error when input Enter ( #19004 )
3 years ago
admin-common.js
Add LDAP group sync to Teams, fixes #1395 ( #16299 )
3 years ago
admin-emails.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
admin-users.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
clipboard.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
codeeditor.js
Add new JS linter rules ( #17699 )
3 years ago
colorpicker.js
Move jquery-minicolors to npm/webpack ( #12305 )
4 years ago
common-global.js
Replace deprecated String.prototype.substr() with String.prototype.slice() ( #18796 )
3 years ago
common-issue.js
Replace deprecated String.prototype.substr() with String.prototype.slice() ( #18796 )
3 years ago
common-organization.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
contextpopup.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
dropzone.js
Update JS dependencies ( #17611 )
3 years ago
emoji.js
Frontend refactor, PascalCase to camelCase, remove unused code ( #17365 )
3 years ago
eventsource.sharedworker.js
Update JS dependencies ( #16708 )
3 years ago
heatmap.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
imagediff.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
install.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
notification.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
org-team.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-branch.js
Add apply-patch, basic revert and cherry-pick functionality ( #17902 )
3 years ago
repo-code.js
Replace deprecated String.prototype.substr() with String.prototype.slice() ( #18796 )
3 years ago
repo-commit.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-common.js
Refactor repo clone button and repo clone links, fix JS error on empty repo page ( #19208 )
3 years ago
repo-diff.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-editor.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-graph.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-home.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-issue-content.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-issue.js
Fix the editor height in review box ( #19003 )
3 years ago
repo-legacy.js
Refactor repo clone button and repo clone links, fix JS error on empty repo page ( #19208 )
3 years ago
repo-migrate.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-migration.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-projects.js
Feature: show issue assignee on project board ( #15232 )
3 years ago
repo-release.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-settings.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-template.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-unicode-escape.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
repo-wiki.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
serviceworker.js
Frontend refactor, PascalCase to camelCase, remove unused code ( #17365 )
3 years ago
sshkey-helper.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
stopwatch.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
tablesort.js
Added missing `data-` prefix. ( #17884 )
3 years ago
tribute.js
Frontend refactor, PascalCase to camelCase, remove unused code ( #17365 )
3 years ago
user-auth-webauthn.js
Prevent security failure due to bad APP_ID ( #18678 )
3 years ago
user-auth.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago
user-settings.js
Use explicit jQuery import, remove unused eslint globals ( #18435 )
3 years ago