Add custom chunk url to front

This commit is contained in:
SebClem 2024-07-12 14:31:55 +02:00
parent 39e2478a03
commit 13883ab883
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 43 additions and 18 deletions

View File

@ -32,9 +32,12 @@
</v-select>
</v-col>
</v-row>
<v-row v-if="data.webdavEndpoint.type == WebdavEndpointType.CUSTOM">
<div v-if="data.webdavEndpoint.type == WebdavEndpointType.CUSTOM">
<v-row>
<v-col>
<div class="text-subtitle-1 text-medium-emphasis">Custom Endpoint</div>
<div class="text-subtitle-1 text-medium-emphasis">
Custom endpoint
</div>
<v-text-field
placeholder="/remote.php/dav/files/$username"
hint="You can use the $username variable"
@ -48,10 +51,30 @@
></v-text-field>
</v-col>
</v-row>
<v-row>
<v-col>
<div class="text-subtitle-1 text-medium-emphasis">
Custom chunk endpoint
</div>
<v-text-field
placeholder="/remote.php/dav/uploads/$username"
hint="You can use the $username variable"
variant="outlined"
density="compact"
hide-details="auto"
v-model="data.webdavEndpoint.customChunkEndpoint"
:error-messages="errors.customChunkEndpoint"
:loading="loading"
color="orange"
></v-text-field>
</v-col>
</v-row>
</div>
<v-row class="mt-0">
<v-col class="d-flex align-content-end">
<v-switch
label="Allow Self Signed Certificate"
label="Allow self signed certificate"
v-model="data.allowSelfSignedCerts"
hide-details="auto"
density="compact"
@ -65,7 +88,7 @@
<v-row class="mt-0">
<v-col class="d-flex align-content-end">
<v-switch
label="Chunked Upload (Beta)"
label="Chunked upload (Beta)"
v-model="data.chunckedUpload"
hide-details="auto"
density="compact"
@ -171,6 +194,7 @@ const errors = ref({
allowSelfSignedCerts: [],
type: [],
customEndpoint: [],
customChunkEndpoint: [],
chunckedUpload: [],
});

View File

@ -13,5 +13,6 @@ export interface WebdavConfig {
webdavEndpoint: {
type: WebdavEndpointType;
customEndpoint?: string;
customChunkEndpoint?: string;
};
}