mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	ui.test.ts
This commit is contained in:
		
							parent
							
								
									3f7440b10a
								
							
						
					
					
						commit
						a277c11a2b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,6 @@
 | 
			
		|||
 * SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import { registerAsUiLib } from '@/scripts/aiscript/ui.js';
 | 
			
		||||
import { errors, Interpreter, Parser, values } from '@syuilo/aiscript';
 | 
			
		||||
import { describe, expect, test } from 'vitest';
 | 
			
		||||
import { type Ref, ref } from 'vue';
 | 
			
		||||
| 
						 | 
				
			
			@ -20,12 +19,14 @@ import type {
 | 
			
		|||
	AsUiTextarea,
 | 
			
		||||
	AsUiTextInput,
 | 
			
		||||
} from '@/scripts/aiscript/ui.js';
 | 
			
		||||
import { registerAsUiLib } from '@/scripts/aiscript/ui.js';
 | 
			
		||||
 | 
			
		||||
type ExeResult = {
 | 
			
		||||
	root: AsUiRoot;
 | 
			
		||||
	get: (id: string) => AsUiComponent;
 | 
			
		||||
	outputs: values.Value[];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
async function exe(script: string): Promise<ExeResult> {
 | 
			
		||||
	const rootRef = ref<AsUiRoot>();
 | 
			
		||||
	const componentRefs = ref<Ref<AsUiComponent>[]>([]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue