forgejo/web_src/js
Yarden Shoham e3a7f15791
Add "Copy" button to file view of raw text (#21629)
If a raw text file is displayed, a copy button of the text is enabled.

* Closes #12866

### Before

![image](https://user-images.githubusercontent.com/20454870/198898628-df1bcb0c-79d7-4ffb-95e4-441d77430827.png)

### After

![image](https://user-images.githubusercontent.com/20454870/199988152-ea1099ad-29e1-4765-a9ca-4c03c1737453.png)

#### Rendered files and binaries have their button disabled

![image](https://user-images.githubusercontent.com/20454870/199988408-73de6327-5e9e-462b-b2b6-8c3f5b878386.png)

![image](https://user-images.githubusercontent.com/20454870/199988563-844f8656-f48d-4929-880e-b6558c1c054a.png)

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-11-04 15:33:50 -04:00
..
components Localize time units on activity heatmap (#21570) 2022-10-28 09:48:24 -04:00
features Add "Copy" button to file view of raw text (#21629) 2022-11-04 15:33:50 -04:00
markup Fix opaque background on mermaid diagrams (#21642) 2022-10-31 20:57:31 +00:00
modules Improve commit status icons (#21124) 2022-09-09 17:03:18 -04:00
standalone Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
test Switch from jest to vitest (#21444) 2022-10-14 21:36:16 +08:00
bootstrap.js Fix mermaid-related bugs (#21431) 2022-10-15 18:04:00 -04:00
index.js Add system setting table with cache and also add cache supports for user setting (#18058) 2022-10-17 07:29:26 +08:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js Refactor from Vue2 to Vue3 (#20044) 2022-10-01 22:26:38 +08:00
svg.test.js Remove vitest globals (#21505) 2022-10-19 14:50:19 +08:00
utils.js Localize time units on activity heatmap (#21570) 2022-10-28 09:48:24 -04:00
utils.test.js Localize time units on activity heatmap (#21570) 2022-10-28 09:48:24 -04:00