mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Update JS dependencies (#15033)
* Update JS dependencies - Update all JS dependencies - For octicons, rename trashcan to trash - For svgo, migrate to v2 api, output seems to have slightly changed but icons look the same - For stylelint, update config, fix custom property duplicates - For monaco, drop legacy Edge support - For eslint, enable new rules, fix new issues - For less-loader, remove deprecated import syntax * update svgo usage in generate-images and rebuild logo.svg with it
This commit is contained in:
		@@ -46,9 +46,8 @@ class Source {
 | 
			
		||||
  listen(eventType) {
 | 
			
		||||
    if (this.listening[eventType]) return;
 | 
			
		||||
    this.listening[eventType] = true;
 | 
			
		||||
    const self = this;
 | 
			
		||||
    this.eventSource.addEventListener(eventType, (event) => {
 | 
			
		||||
      self.notifyClients({
 | 
			
		||||
      this.notifyClients({
 | 
			
		||||
        type: eventType,
 | 
			
		||||
        data: event.data
 | 
			
		||||
      });
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
const {csrf} = window.config;
 | 
			
		||||
const {csrf, PageIsProjects} = window.config;
 | 
			
		||||
 | 
			
		||||
export default async function initProject() {
 | 
			
		||||
  if (!window.config || !window.config.PageIsProjects) {
 | 
			
		||||
  if (!PageIsProjects) {
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user