Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,15 @@ watch(authMechanisms, () => {
<ApplicableEntities
v-if="isAdmin"
v-model:groups="internalStorage.applicableGroups"
v-model:users="internalStorage.applicableUsers" />
v-model:users="internalStorage.applicableUsers"
:class="$style.externalStorageDialog__dropdown" />

<NcSelect
v-model="backend"
:options="backends"
:disabled="!!(internalStorage.id && internalStorage.backend)"
:inputLabel="t('files_external', 'External storage')"
:class="$style.externalStorageDialog__dropdown"
label="name"
required />

Expand All @@ -108,6 +110,7 @@ watch(authMechanisms, () => {
:options="authMechanisms"
:disabled="!internalStorage.backend || authMechanisms.length <= 1 || !!(internalStorage.id && internalStorage.authMechanism)"
:inputLabel="t('files_external', 'Authentication')"
:class="$style.externalStorageDialog__dropdown"
label="name"
required />

Expand Down Expand Up @@ -146,4 +149,8 @@ watch(authMechanisms, () => {
.externalStorageDialog__configuration {
margin-block: 0.5rem;
}

.externalStorageDialog__dropdown {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not "1 0 auto"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it but it causes them to take extra space

image

flex: 0 0 auto;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,20 @@ defineProps<{
:name="configKey"
:required="!(configOption.flags & ConfigurationFlag.Optional)"
:label="configOption.value"
:title="configOption.tooltip" />
:title="configOption.tooltip"
:class="$style.configurationEntry" />
<NcCheckboxRadioSwitch
v-else
v-model="value"
type="switch"
:title="configOption.tooltip">
:title="configOption.tooltip"
:class="$style.configurationEntry">
{{ configOption.value }}
</NcCheckboxRadioSwitch>
</template>

<style module>
.configurationEntry {
flex: 1 0 auto;
}
</style>
2 changes: 0 additions & 2 deletions dist/AuthMechanismRsa-Bue2F6rp.chunk.mjs

This file was deleted.

1 change: 0 additions & 1 deletion dist/AuthMechanismRsa-Bue2F6rp.chunk.mjs.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/AuthMechanismRsa-DG_XgyTI.chunk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import{b as g,n as _,u as o,o as r,c as p,C as M,y as d,w as v,j as V,t as b,s as k,z as x,f,F as E,B as q,L as K,M as U,k as c,l as j}from"./Web-BwmPK40i.chunk.mjs";import{c as w}from"./index-BLNGy7h5.chunk.mjs";import{a as C}from"./index-DL1yHC1K-DnBG6QLJ.chunk.mjs";import{t as u}from"./translation-DoG5ZELJ-CFYnqluG.chunk.mjs";import{b as L}from"./index-B-dGqfIG.chunk.mjs";import{N}from"./logger-D3RVzcfQ-8mOgKmZ4.chunk.mjs";import{N as S}from"./index-BOH7nBEM.chunk.mjs";import{N as z}from"./NcCheckboxRadioSwitch-D8Dfv4iw-ChIm2mK6.chunk.mjs";import{N as A}from"./NcPasswordField-Be5_qcfm-ZLEgTVOQ.chunk.mjs";import{_ as B}from"./NcTextField.vue_vue_type_script_setup_true_lang-BQHjkK8r-BU5OWoch.chunk.mjs";import{a as y,C as O}from"./types-BINwlUX8.chunk.mjs";import{_ as $}from"./public-C1mLBHT3.chunk.mjs";import{l as P}from"./logger-n22jyIXx.chunk.mjs";const R=g({__name:"ConfigurationEntry",props:k({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=_(e,"modelValue");return(l,i)=>e.configOption.type!==o(y).Boolean?(r(),p(M(e.configOption.type===o(y).Password?o(A):o(B)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=t=>a.value=t),name:e.configKey,required:!(e.configOption.flags&o(O).Optional),label:e.configOption.value,title:e.configOption.tooltip,class:d(l.$style.configurationEntry)},null,8,["modelValue","name","required","label","title","class"])):(r(),p(o(z),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=t=>a.value=t),type:"switch",title:e.configOption.tooltip,class:d(l.$style.configurationEntry)},{default:v(()=>[V(b(e.configOption.value),1)]),_:1},8,["modelValue","title","class"]))}}),F="_configurationEntry_1cmcq_2",G={configurationEntry:F},H={$style:G},T=$(R,[["__cssModules",H]]),D=g({__name:"AuthMechanismRsa",props:k({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=_(e,"modelValue"),l=j();x(l,()=>{l.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:t}=await w.post(L("/apps/files_external/ajax/public_key.php"),{keyLength:l.value});a.value.private_key=t.data.private_key,a.value.public_key=t.data.public_key}catch(t){P.error("Error generating RSA key pair",{error:t}),C(u("files_external","Error generating key pair"))}}return(t,m)=>(r(),f("div",null,[(r(!0),f(E,null,q(e.authMechanism.configuration,(n,s)=>K((r(),p(T,{key:n.value,modelValue:a.value[s],"onUpdate:modelValue":h=>a.value[s]=h,configKey:s,configOption:n},null,8,["modelValue","onUpdate:modelValue","configKey","configOption"])),[[U,!(n.flags&o(O).Hidden)]])),128)),c(o(S),{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=n=>l.value=n),clearable:!1,inputLabel:o(u)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","inputLabel"]),c(o(N),{disabled:!l.value,wide:"",onClick:i},{default:v(()=>[V(b(o(u)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),ne=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"}));export{ne as A,T as C};
//# sourceMappingURL=AuthMechanismRsa-DG_XgyTI.chunk.mjs.map
1 change: 1 addition & 0 deletions dist/AuthMechanismRsa-DG_XgyTI.chunk.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/common-AuthMechanismRsa-DGFpo-hc.chunk.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
._configurationEntry_1cmcq_2{flex:1 0 auto}
Loading
Loading