Skip to content

Commit 7a07eeb

Browse files
committed
Fix ManageUserApiKeys.mjs + rename to apikeys-apis.mjs to prevent dtos update
1 parent 3f20368 commit 7a07eeb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

MyApp/wwwroot/pages/Account/Manage/ManageUserApiKeys.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ref, computed, onMounted, inject } from "vue"
22
import { ApiResult, toDate } from "@servicestack/client"
33
import { 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

66
function arraysAreEqual(a, b) {
77
if (!a || !b) return false
@@ -11,7 +11,7 @@ function arraysAreEqual(a, b) {
1111
const 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>

MyApp/wwwroot/pages/Account/Manage/dtos.mjs renamed to MyApp/wwwroot/pages/Account/Manage/apikeys-apis.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,3 @@ export class DeleteUserApiKey {
183183
getMethod() { return 'DELETE' }
184184
createResponse() { return new EmptyResponse() }
185185
}
186-

0 commit comments

Comments
 (0)