-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix URL calculation in clone input box #29470
Conversation
Ported the function as-is and added comments so we don't forget about this in the future. Fixes: go-gitea#29462
I haven't looked at the frontend closely in a while, is there no way to reuse the same code instead of trying to keep them in sync? |
Well… there is one:
|
No easy way to share code between a inline scripts and scripts that build with webpack. Moving the inline script to webpack causes rendering flashes, only web components could avoid those while staying in webpack. |
Maybe https://github.com/icelam/html-inline-script-webpack-plugin can do it in the future. |
Ported the function as-is and added comments so we don't forget about this in the future. Fixes: go-gitea#29462
Backport #29470 by @silverwind Ported the function as-is and added comments so we don't forget about this in the future. Fixes: #29462 Co-authored-by: silverwind <[email protected]>
* giteaofficial/main: (23 commits) Fix wrong test usage of `AppSubURL` (go-gitea#29459) Improve contrast on blame timestamp, fix double border (go-gitea#29482) Fix/Improve `processWindowErrorEvent` (go-gitea#29407) Apply compact padding to small buttons with svg icons (go-gitea#29471) Fix counter display number incorrectly displayed on the page (go-gitea#29448) Fix incorrect user location link on profile page (go-gitea#29474) Fix workflow trigger event bugs (go-gitea#29467) Fix URL calculation in clone input box (go-gitea#29470) Remove jQuery from the "find file" page (go-gitea#29456) Move generate from module to service (go-gitea#29465) The job should always run when `if` is `always()` (go-gitea#29464) Recolor dark theme to blue shade (go-gitea#29283) Let ctx.FormOptionalBool() return optional.Option[bool] (go-gitea#29461) Implement actions badge svgs (go-gitea#28102) Fix missed return (go-gitea#29450) Use tailwind instead of `gt-[wh]-` helper classes (go-gitea#29423) Lock issues and pulls faster (go-gitea#29436) Allow to change primary email before account activation (go-gitea#29412) Update docs about `DEFAULT_ACTIONS_URL` (go-gitea#29442) Only use supported sort order for "explore/users" page (go-gitea#29430) ...
Ported the function as-is and added comments so we don't forget about this in the future.
Fixes: #29462