Autocomplete in messaging
This commit is contained in:
		
							parent
							
								
									b9f9fe2927
								
							
						
					
					
						commit
						1dc28da65a
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -32,13 +32,13 @@ import * as Misskey from 'misskey-js'; | ||||||
| import autosize from 'autosize'; | import autosize from 'autosize'; | ||||||
| //import insertTextAtCursor from 'insert-text-at-cursor'; | //import insertTextAtCursor from 'insert-text-at-cursor'; | ||||||
| import { throttle } from 'throttle-debounce'; | import { throttle } from 'throttle-debounce'; | ||||||
|  | import { Autocomplete } from '@/scripts/autocomplete'; | ||||||
| import { formatTimeString } from '@/scripts/format-time-string'; | import { formatTimeString } from '@/scripts/format-time-string'; | ||||||
| import { selectFile } from '@/scripts/select-file'; | import { selectFile } from '@/scripts/select-file'; | ||||||
| import * as os from '@/os'; | import * as os from '@/os'; | ||||||
| import { stream } from '@/stream'; | import { stream } from '@/stream'; | ||||||
| import { defaultStore } from '@/store'; | import { defaultStore } from '@/store'; | ||||||
| import { i18n } from '@/i18n'; | import { i18n } from '@/i18n'; | ||||||
| //import { Autocomplete } from '@/scripts/autocomplete'; |  | ||||||
| import { uploadFile } from '@/scripts/upload'; | import { uploadFile } from '@/scripts/upload'; | ||||||
| 
 | 
 | ||||||
| const props = defineProps<{ | const props = defineProps<{ | ||||||
|  | @ -203,8 +203,7 @@ onMounted(() => { | ||||||
| 	autosize(textEl); | 	autosize(textEl); | ||||||
| 
 | 
 | ||||||
| 	// TODO: detach when unmount | 	// TODO: detach when unmount | ||||||
| 	// TODO | 	new Autocomplete(textEl, $$(text)); | ||||||
| 	//new Autocomplete(textEl, this, { model: 'text' }); |  | ||||||
| 
 | 
 | ||||||
| 	// 書きかけの投稿を復元 | 	// 書きかけの投稿を復元 | ||||||
| 	const draft = JSON.parse(localStorage.getItem('message_drafts') || '{}')[draftKey]; | 	const draft = JSON.parse(localStorage.getItem('message_drafts') || '{}')[draftKey]; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue