mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	chore: add comments
This commit is contained in:
		
							parent
							
								
									ce6cc21bcd
								
							
						
					
					
						commit
						14cc341cc9
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,5 @@
 | 
			
		|||
// NIRAX --- A lightweight router
 | 
			
		||||
 | 
			
		||||
import { EventEmitter } from 'eventemitter3';
 | 
			
		||||
import { Ref, Component, ref, shallowRef, ShallowRef } from 'vue';
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,5 @@
 | 
			
		|||
// PIZZAX --- A lightweight store
 | 
			
		||||
 | 
			
		||||
import { onUnmounted, Ref, ref, watch } from 'vue';
 | 
			
		||||
import { $i } from './account';
 | 
			
		||||
import { api } from './os';
 | 
			
		||||
| 
						 | 
				
			
			@ -116,7 +118,7 @@ export class Storage<T extends StateDef> {
 | 
			
		|||
				api('i/registry/set', {
 | 
			
		||||
					scope: ['client', this.key],
 | 
			
		||||
					key: key,
 | 
			
		||||
					value: value
 | 
			
		||||
					value: value,
 | 
			
		||||
				});
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -161,7 +163,7 @@ export class Storage<T extends StateDef> {
 | 
			
		|||
				const val = setter ? setter(value) : value;
 | 
			
		||||
				this.set(key, val);
 | 
			
		||||
				valueRef.value = val;
 | 
			
		||||
			}
 | 
			
		||||
			},
 | 
			
		||||
		};
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue