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

View File

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