new config guest_redirection added

This commit is contained in:
Milos Stojanovic
2020-05-09 18:13:14 +02:00
parent b067207179
commit a533eef33a
6 changed files with 13 additions and 2 deletions

View File

@@ -2,6 +2,9 @@
## Upcoming...
* New config: 'guest_redirection' (useful for external auth adapters)
* More css classes so the elements can be easily hidden (e.g. add_to_head style)
## 7.3.5 - 2020-04-18
* Translations added: Polish, Italian

View File

@@ -16,6 +16,7 @@ return [
'default_archive_name' => 'archive.zip',
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
'guest_redirection' => '', // useful for external auth adapters
],
'services' => [

View File

@@ -23,6 +23,7 @@ Note: if you've made a mistake in configuration file (forgot to close a quote?)
'default_archive_name' => 'archive.zip',
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
'guest_redirection' => '', // useful for external auth adapters
],
```

View File

@@ -1,5 +1,5 @@
<template>
<div>
<div v-if="!$store.state.config.guest_redirection">
<a v-if="can('read')" id="back-arrow" @click="$router.push('/')">
<b-icon icon="times" />
</a>
@@ -48,6 +48,10 @@ export default {
}
},
mounted() {
if (this.$store.state.config.guest_redirection) {
window.location.href = this.$store.state.config.guest_redirection
return
}
this.$refs.username.focus()
},
methods: {

View File

@@ -15,6 +15,7 @@ return [
'default_archive_name' => 'archive.zip',
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php'],
'date_format' => 'YY/MM/DD hh:mm:ss',
'guest_redirection' => '', // useful for external auth adapters
],
'services' => [

View File

@@ -7,6 +7,7 @@
"upload_max_size": 104857600,
"upload_chunk_size": 1048576,
"upload_simultaneous": 3,
"default_archive_name": "archive.zip"
"default_archive_name": "archive.zip",
"guest_redirection": ""
}
}