silverwind 
							
						 
					 
					
						
						
							
						
						c2fb27beb4 
					 
					
						
						
							
							Improvements for Content Copy ( #21842 )  
						
						... 
						
						
						
						It now supports copying Markdown, SVG and Images (not in Firefox
currently because of lacking
[`ClipboardItem`](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem )
support, but can be enabled in `about:config` and works). It will fetch
the data if in a rendered view or when it's an image.
Followup to https://github.com/go-gitea/gitea/pull/21629 . 
						
						
					 
					
						2022-11-21 17:59:42 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						9db221780f 
					 
					
						
						
							
							Ignore line anchor links with leading zeroes ( #21728 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/21722 
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2022-11-11 18:22:36 +08:00 
						 
				 
			
				
					
						
							
							
								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

### After

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


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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						1b2cd4c4e1 
					 
					
						
						
							
							Replace fomantic popup module with tippy.js ( #20428 )  
						
						... 
						
						
						
						- replace fomantic popup module with tippy.js
- fix chaining and add comment
- add 100ms delay to tooltips
- stopwatch improvments, raise default maxWidth
- update web_src/js/features/common-global.js
- use type=submit instead of js 
						
						
					 
					
						2022-08-09 14:37:34 +02:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
						
						5ca224a789 
					 
					
						
						
							
							Allow to mark files in a PR as viewed ( #19007 )  
						
						... 
						
						
						
						Users can now mark files in PRs as viewed, resulting in them not being shown again by default when they reopen the PR again. 
						
						
					 
					
						2022-05-07 20:28:10 +02:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						03eba32bd9 
					 
					
						
						
							
							Add a new menu in file view to open blame view and fix blame view select range bug ( #19500 )  
						
						
						
						
					 
					
						2022-04-26 13:54:40 +03:00 
						 
				 
			
				
					
						
							
							
								CommanderRoot 
							
						 
					 
					
						
						
							
						
						1ab88da0e4 
					 
					
						
						
							
							Replace deprecated String.prototype.substr() with String.prototype.slice() ( #18796 )  
						
						... 
						
						
						
						String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with the slice() method which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2022-02-18 14:50:36 +08:00 
						 
				 
			
				
					
						
							
							
								Jimmy Praet 
							
						 
					 
					
						
						
							
						
						9444135ff5 
					 
					
						
						
							
							Fix source code line highlighting ( #18729 )  
						
						... 
						
						
						
						Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2022-02-12 05:00:24 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						19b017f398 
					 
					
						
						
							
							Use explicit jQuery import, remove unused eslint globals ( #18435 )  
						
						... 
						
						
						
						- Don't rely on globals (window.$) for jQuery import
- Remove eslint globals no longer in use 
						
						
					 
					
						2022-01-28 21:00:11 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						a159c3175f 
					 
					
						
						
							
							Add new JS linter rules ( #17699 )  
						
						... 
						
						
						
						* Add new JS linter rules
Adds a few useful rules from eslint-plugin-github. Notable changes:
- Forbid dataset usage, its camel-casing behaviour makes it hard to
  grep for attributes.
- Forbid .then() and .catch(), we should generally prefer await for new
  code. For rare cases where they are useful, a eslint-disable-line
  directive can be set.
- Add docs js to linting
* also enable github/array-foreach
* small tweak
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2021-11-22 16:19:01 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						89beceeb9a 
					 
					
						
						
							
							Fix a UI error when folding a file content in a commit view ( #17446 )  
						
						
						
						
					 
					
						2021-10-27 19:11:56 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						1a7473ff45 
					 
					
						
						
							
							Split index.js to separate files ( #17315 )  
						
						... 
						
						
						
						* split `index.js` to separate files
* tune clipboard
* fix promise
* fix document
* remove intermediate empty file
* fix async event listener
* use `export function` instead of `export {}`, add more comments
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: 6543 <6543@obermui.de > 
						
						
					 
					
						2021-10-17 01:28:04 +08:00