gitea/web_src/js
Lunny Xiao 7de114a332
Rework delete org and rename org UI (#34762)
# What's the problem of the original implementation

Renaming organization will mix with organization's information change
make the operation difficult to keep consistent.

This PR created a danger zone like what's repository setting. It also
moved organization's `rename` and `delete` operations to this zone. The
original updating repository will not change the name any more.

This is also a step to extract the `updaterepository` function
completely.

Before:


![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575)

![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2)

After:


![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3)

![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412)

![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2)

![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-21 18:21:48 +00:00
..
components Improve img lazy loading (#34804) 2025-06-21 14:53:22 +08:00
features Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
markup Fix footnote jump behavior on the issue page. (#34621) 2025-06-09 17:18:11 +00:00
modules Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +00:00
render Refactor markup and pdf-viewer to use new init framework (#33772) 2025-03-03 11:49:15 -08:00
standalone Update TypeScript types (#33799) 2025-03-05 08:03:44 -08:00
utils Add repo file tree item link behavior (#34730) 2025-06-20 02:28:19 +08:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 -05:00
webcomponents Optimize overflow-menu (#34183) 2025-04-13 01:59:36 +00:00
bootstrap.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
bootstrap.ts Add types to fetch,toast,bootstrap,svg (#31627) 2024-07-25 23:31:24 +00:00
globals.d.ts Fix various Fomantic UI and htmx problems (#33851) 2025-03-11 11:35:05 -07:00
globals.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
htmx.ts Update JS and PY deps, misc tweaks (#33903) 2025-03-16 10:04:18 +01:00
index.ts Optimize the calling code of queryElems (#34235) 2025-04-19 08:17:07 +08:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +02:00
svg.ts Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
types.ts Enable Typescript noImplicitAny (#33322) 2025-01-22 15:11:51 +08:00
utils.test.ts Use git diff-tree for DiffFileTree on diff pages (#33514) 2025-02-28 00:58:25 +00:00
utils.ts Add fullscreen mode as a more efficient operation way to view projects (#34081) 2025-04-23 13:42:22 +08:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00