Merge fd44c72fc5 into 0de73e8971
				
					
				
			This commit is contained in:
		
						commit
						42e729a6c6
					
				
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @ -42,9 +42,9 @@ | ||||
|     "@regexper/render": "^1.0.0", | ||||
|     "@sindresorhus/slugify": "^2.2.1", | ||||
|     "@tabler/icons-vue": "^3.20.0", | ||||
|     "@tiptap/pm": "2.1.6", | ||||
|     "@tiptap/starter-kit": "2.1.6", | ||||
|     "@tiptap/vue-3": "2.0.3", | ||||
|     "@tiptap/pm": "2.11.0", | ||||
|     "@tiptap/starter-kit": "2.11.0", | ||||
|     "@tiptap/vue-3": "2.11.0", | ||||
|     "@types/figlet": "^1.5.8", | ||||
|     "@types/markdown-it": "^13.0.7", | ||||
|     "@vicons/material": "^0.12.0", | ||||
| @ -94,7 +94,7 @@ | ||||
|     "ulid": "^2.3.0", | ||||
|     "unicode-emoji-json": "^0.4.0", | ||||
|     "unplugin-auto-import": "^0.16.4", | ||||
|     "uuid": "^9.0.0", | ||||
|     "uuid": "^11.0.3", | ||||
|     "vue": "^3.3.4", | ||||
|     "vue-i18n": "^9.9.1", | ||||
|     "vue-router": "^4.1.6", | ||||
| @ -123,7 +123,7 @@ | ||||
|     "@types/node-forge": "^1.3.2", | ||||
|     "@types/qrcode": "^1.5.0", | ||||
|     "@types/ua-parser-js": "^0.7.36", | ||||
|     "@types/uuid": "^9.0.0", | ||||
|     "@types/uuid": "^10.0.0", | ||||
|     "@unocss/eslint-config": "^0.57.0", | ||||
|     "@vitejs/plugin-vue": "^4.3.2", | ||||
|     "@vitejs/plugin-vue-jsx": "^3.0.2", | ||||
|  | ||||
							
								
								
									
										14275
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										14275
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -128,7 +128,7 @@ function activateOption(option: PaletteOption) { | ||||
|       <c-input-text ref="inputRef" v-model:value="searchPrompt" raw-text placeholder="Type to search a tool or a command..." autofocus clearable /> | ||||
| 
 | ||||
|       <div v-for="(options, category) in filteredSearchResult" :key="category"> | ||||
|         <div ml-3 mt-3 text-sm font-bold text-primary op-60> | ||||
|         <div ml-3 mt-3 text-sm text-primary font-bold op-60> | ||||
|           {{ category }} | ||||
|         </div> | ||||
|         <command-palette-option v-for="option in options" :key="option.name" :option="option" :selected="selectedOptionIndex === getOptionIndex(option)" @activated="activateOption" /> | ||||
|  | ||||
| @ -1,10 +1,11 @@ | ||||
| <script setup lang="ts"> | ||||
| import { v1 as generateUuidV1, v3 as generateUuidV3, v4 as generateUuidV4, v5 as generateUuidV5, NIL as nilUuid } from 'uuid'; | ||||
| import { v1 as generateUuidV1, v3 as generateUuidV3, v4 as generateUuidV4, v5 as generateUuidV5, v6 as generateUuidV6, v7 as generateUuidV7, NIL as nilUuid } from 'uuid'; | ||||
| 
 | ||||
| import { useCopy } from '@/composable/copy'; | ||||
| import { computedRefreshable } from '@/composable/computedRefreshable'; | ||||
| import { withDefaultOnError } from '@/utils/defaults'; | ||||
| 
 | ||||
| const versions = ['NIL', 'v1', 'v3', 'v4', 'v5'] as const; | ||||
| const versions = ['NIL', 'v1', 'v3', 'v4', 'v5', 'v6', 'v7'] as const; | ||||
| 
 | ||||
| const version = useStorage<typeof versions[number]>('uuid-generator:version', 'v4'); | ||||
| const count = useStorage('uuid-generator:quantity', 1); | ||||
| @ -29,11 +30,13 @@ const generators = { | ||||
|     clockseq: index, | ||||
|     msecs: Date.now(), | ||||
|     nsecs: Math.floor(Math.random() * 10000), | ||||
|     node: Array.from({ length: 6 }, () => Math.floor(Math.random() * 256)), | ||||
|     node: Uint8Array.from(Array.from({ length: 6 }, () => Math.floor(Math.random() * 256))), // NOSONAR | ||||
|   }), | ||||
|   v3: () => generateUuidV3(v35Args.value.name, v35Args.value.namespace), | ||||
|   v4: () => generateUuidV4(), | ||||
|   v5: () => generateUuidV5(v35Args.value.name, v35Args.value.namespace), | ||||
|   v6: () => generateUuidV6(), | ||||
|   v7: () => generateUuidV7(), | ||||
| }; | ||||
| 
 | ||||
| const [uuids, refreshUUIDs] = computedRefreshable(() => withDefaultOnError(() => | ||||
|  | ||||
| @ -151,7 +151,7 @@ function onSearchInput() { | ||||
|       > | ||||
|         <div flex-1 truncate> | ||||
|           <slot name="displayed-value"> | ||||
|             <input v-if="searchable && isOpen" ref="searchInputRef" v-model="searchQuery" type="text" placeholder="Search..." class="search-input" w-full lh-normal color-current @input="onSearchInput"> | ||||
|             <input v-if="searchable && isOpen" ref="searchInputRef" v-model="searchQuery" type="text" placeholder="Search..." class="search-input" w-full color-current lh-normal @input="onSearchInput"> | ||||
|             <span v-else-if="selectedOption" lh-normal> | ||||
|               {{ selectedOption.label }} | ||||
|             </span> | ||||
|  | ||||
| @ -39,7 +39,7 @@ const headers = computed(() => { | ||||
| <template> | ||||
|   <div class="relative overflow-x-auto rounded"> | ||||
|     <table class="w-full border-collapse text-left text-sm text-gray-500 dark:text-gray-400" role="table" :aria-label="description"> | ||||
|       <thead v-if="!hideHeaders" class="bg-#ffffff uppercase text-gray-700 dark:bg-#333333 dark:text-gray-400" border-b="1px solid dark:transparent #efeff5"> | ||||
|       <thead v-if="!hideHeaders" class="bg-#ffffff text-gray-700 uppercase dark:bg-#333333 dark:text-gray-400" border-b="1px solid dark:transparent #efeff5"> | ||||
|         <tr> | ||||
|           <th v-for="header in headers" :key="header.key" scope="col" class="px-6 py-3 text-xs"> | ||||
|             {{ header.label }} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user