@adminforth/mcp 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{ $t('asks to act on your behalf in {brand}: it will see and change everything you can.', { brand: brandName }) }}
|
|
22
22
|
</template>
|
|
23
23
|
</p>
|
|
24
|
-
<Checkbox v-
|
|
24
|
+
<Checkbox v-model="readOnlyChosen" :disabled="authorization.serverReadOnly" class="mt-4">
|
|
25
25
|
{{ $t('Read only: the agent can only read data') }}
|
|
26
26
|
</Checkbox>
|
|
27
27
|
<p v-if="authorization.loopbackRedirect" class="mt-3 text-sm font-medium text-amber-700 dark:text-amber-300">
|
|
@@ -71,8 +71,9 @@ const request = String(route.query.request);
|
|
|
71
71
|
const authorization = ref<Authorization | null>(null);
|
|
72
72
|
const error = ref('');
|
|
73
73
|
const resolving = ref(false);
|
|
74
|
-
|
|
75
|
-
//
|
|
74
|
+
// Read-only is the default. With the plugin readOnly option every connection is read-only, so the checkbox stays
|
|
75
|
+
// checked and locked.
|
|
76
|
+
const readOnlyChosen = ref(true);
|
|
76
77
|
const readOnly = computed(() => authorization.value?.serverReadOnly || readOnlyChosen.value);
|
|
77
78
|
// AdminForth sends no frame protection headers, so a site sharing the admin panel domain could load this page in
|
|
78
79
|
// an invisible frame and trick a click on Allow (clickjacking). The consent is never offered inside a frame.
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<div class="mt-2">
|
|
105
105
|
<Input v-model="secretName" type="text" fullWidth placeholder="Claude Code" />
|
|
106
106
|
</div>
|
|
107
|
-
<Checkbox v-
|
|
107
|
+
<Checkbox v-model="secretReadOnly" :disabled="serverReadOnly" class="mt-4">
|
|
108
108
|
{{ $t('Read only: the agent can only read data') }}
|
|
109
109
|
</Checkbox>
|
|
110
110
|
</div>
|
|
@@ -158,7 +158,8 @@ const authSecrets = ref<AuthSecret[]>([]);
|
|
|
158
158
|
const loading = ref(true);
|
|
159
159
|
const dialogRef = ref();
|
|
160
160
|
const secretName = ref('');
|
|
161
|
-
|
|
161
|
+
// Read-only is the default; with the plugin readOnly option the checkbox stays checked and locked.
|
|
162
|
+
const secretReadOnly = ref(true);
|
|
162
163
|
const serverReadOnly = ref(false);
|
|
163
164
|
const createdSecret = ref('');
|
|
164
165
|
const creating = ref(false);
|
|
@@ -272,7 +273,7 @@ async function loadAuthSecrets() {
|
|
|
272
273
|
|
|
273
274
|
function openConnectDialog() {
|
|
274
275
|
secretName.value = '';
|
|
275
|
-
secretReadOnly.value =
|
|
276
|
+
secretReadOnly.value = true;
|
|
276
277
|
createdSecret.value = '';
|
|
277
278
|
dialogRef.value?.open();
|
|
278
279
|
}
|