mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Update JS dependencies (#16708)
* Update JS dependencies - Update all JS dependencies - Adapt to recent webpack changes - Add new lint rules and fix issues - Regenerate SVGs and update svgo api usage Fixes: https://github.com/go-gitea/gitea/pull/16492 * adapt jest config and sort keys Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -67,7 +67,7 @@ class Source {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
self.onconnect = (e) => {
 | 
			
		||||
self.addEventListener('connect', (e) => {
 | 
			
		||||
  for (const port of e.ports) {
 | 
			
		||||
    port.addEventListener('message', (event) => {
 | 
			
		||||
      if (event.data.type === 'start') {
 | 
			
		||||
@@ -131,4 +131,4 @@ self.onconnect = (e) => {
 | 
			
		||||
    });
 | 
			
		||||
    port.start();
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -53,9 +53,9 @@ export async function initNotificationCount() {
 | 
			
		||||
    worker.addEventListener('error', (event) => {
 | 
			
		||||
      console.error(event);
 | 
			
		||||
    });
 | 
			
		||||
    worker.port.onmessageerror = () => {
 | 
			
		||||
    worker.port.addEventListener('messageerror', () => {
 | 
			
		||||
      console.error('Unable to deserialize message');
 | 
			
		||||
    };
 | 
			
		||||
    });
 | 
			
		||||
    worker.port.postMessage({
 | 
			
		||||
      type: 'start',
 | 
			
		||||
      url: `${window.location.origin}${AppSubUrl}/user/events`,
 | 
			
		||||
 
 | 
			
		||||
@@ -31,9 +31,9 @@ export async function initStopwatch() {
 | 
			
		||||
    worker.addEventListener('error', (event) => {
 | 
			
		||||
      console.error(event);
 | 
			
		||||
    });
 | 
			
		||||
    worker.port.onmessageerror = () => {
 | 
			
		||||
    worker.port.addEventListener('messageerror', () => {
 | 
			
		||||
      console.error('Unable to deserialize message');
 | 
			
		||||
    };
 | 
			
		||||
    });
 | 
			
		||||
    worker.port.postMessage({
 | 
			
		||||
      type: 'start',
 | 
			
		||||
      url: `${window.location.origin}${AppSubUrl}/user/events`,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user