11import { ref , computed , onMounted , inject } from "vue"
22import { ApiResult , toDate } from "@servicestack/client"
33import { useClient , useUtils , useFormatters , useMetadata , css } from "@servicestack/vue"
4- import { QueryUserApiKeys , CreateUserApiKey , UpdateUserApiKey , DeleteUserApiKey } from "./dtos .mjs"
4+ import { QueryUserApiKeys , CreateUserApiKey , UpdateUserApiKey , DeleteUserApiKey } from "./apikeys-apis .mjs"
55
66function arraysAreEqual ( a , b ) {
77 if ( ! a || ! b ) return false
@@ -11,7 +11,7 @@ function arraysAreEqual(a, b) {
1111const CopyIcon = {
1212 template :`
1313 <div @click="copy(text)">
14- <div class="cursor-pointer select-none p-1 rounded-md border block border-gray-200 bg-white hover:bg-gray-50">
14+ <div class="cursor-pointer select-none p-1 rounded-md border block border-gray-200 dark:border-gray-700 bg-white dark:bg-black hover:bg-gray-50 dark:hover:bg-gray-900 ">
1515 <svg v-if="copied" class="w-6 h-6 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
1616 <svg v-else xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-gray-500" viewBox="0 0 24 24"><g fill="none"><path d="M8 5H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1M8 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M8 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m0 0h2a2 2 0 0 1 2 2v3m2 4H10m0 0l3-3m-3 3l3 3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
1717 </div>
@@ -101,7 +101,7 @@ const CreateApiKeyForm = {
101101 </div>
102102 </div>
103103 </div>
104- <div class="px-4 py-3 bg-gray-50 text-right sm:px-6 flex justify-between">
104+ <div class="px-4 py-3 bg-gray-50 dark:bg-gray-900 text-right sm:px-6 flex justify-between">
105105 <div>
106106 <SecondaryButton @click="$emit('done')">Cancel</SecondaryButton>
107107 </div>
@@ -220,7 +220,7 @@ const EditApiKeyForm = {
220220 </div>
221221 </div>
222222 </div>
223- <div class="px-4 py-3 bg-gray-50 text-right sm:px-6 flex justify-between">
223+ <div class="px-4 py-3 bg-gray-50 dark:bg-gray-900 text-right sm:px-6 flex justify-between">
224224 <div>
225225 <ConfirmDelete @delete="submitDelete" />
226226 </div>
0 commit comments