General improvements

This commit is contained in:
Dennis
2021-08-05 11:31:38 +02:00
parent 7b6f651015
commit f0f427a7bb
7 changed files with 26 additions and 8 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -121,10 +121,16 @@
</div>
</div>
<div class="space-y-2">
<div class="space-y-2" v-if="form.server_permissions['create']">
<h3 class="text-base leading-6 font-medium border-b border-dotted border-medium-emphasis pb-1">
{{ __('Available server providers') }}</h3>
<div v-if="!Object.keys(providers).length" class="bg-primary text-on-primary px-4 py-3 rounded relative space-y-2" role="alert">
<p class="block">
There are no server providers to select from. You can synchronize new server providers from the Services tab.
</p>
</div>
<div v-for="(name, id) in providers">
<input :id="`provider-${id}`" :value="id" v-model="form.providers"
class="form-checkbox" type="checkbox">

View File

@@ -111,10 +111,16 @@
</div>
</div>
<div class="space-y-2">
<div class="space-y-2" v-if="form.server_permissions['create']">
<h3 class="text-base leading-6 font-medium border-b border-dotted border-medium-emphasis pb-1">
{{ __('Available server providers') }}</h3>
<div v-if="!Object.keys(providers).length" class="bg-primary text-on-primary px-4 py-3 rounded relative space-y-2" role="alert">
<p class="block">
There are no server providers to select from. You can synchronize new server providers from the Services tab.
</p>
</div>
<div v-for="(name, id) in providers">
<input :id="`provider-${id}`" :value="id" v-model="form.providers"
class="form-checkbox" type="checkbox">

View File

@@ -88,18 +88,18 @@
</p>
</div>
<FormInput v-if="form.enable_api" allow-random-string :label="__('API token')" :errors="$page.props.errors.api_token"
v-model="form.api_token"/>
<div>
<input id="isolate_per_site_per_user" class="form-checkbox" type="checkbox"
v-model="form.isolate_per_site_per_user">
<label for="isolate_per_site_per_user" class="ml-2 text-sm">{{ __('Enable site isolation per site & user') }}</label>
<p class="text-small mt-1 text-medium-emphasis">
{{ __('This will make sure each site created by 1 user is always isolated from another.') }}
{{ __('This will make sure each site created by one user is always isolated from another.') }}
</p>
</div>
<FormInput v-if="form.enable_api" allow-random-string :label="__('API token')" :errors="$page.props.errors.api_token"
v-model="form.api_token"/>
<FormActions>
<Button>{{ __('Save changes') }}</Button>
</FormActions>

View File

@@ -1,5 +1,6 @@
<template>
<inertia-link
:as="componentIs"
:href="to"
:method="method"
class="flex items-center w-full h-10 px-6 whitespace-nowrap text-medium-emphasis text-small focus:bg-primary focus:text-on-primary hover:text-high-emphasis focus:outline-none"
@@ -15,6 +16,10 @@ export default {
type: String,
required: true,
},
componentIs: {
type: String,
default: 'a'
},
method: {
required: false,
default: 'get'

View File

@@ -44,7 +44,7 @@
<DropdownListItem class="text-danger" v-if="$page.props.auth.user.role === 'admin'"
:to="route('admin.dashboard')">{{ __('Administration') }}
</DropdownListItem>
<DropdownListItem :to="route('logout')" method="post">{{ __('Sign out') }}
<DropdownListItem :to="route('logout')" component-is="button" method="post">{{ __('Sign out') }}
</DropdownListItem>
</DropdownList>
</Dropdown>

View File

@@ -237,6 +237,7 @@
"This will allow your customers to make support requests to you.": "Dit maakt het mogelijk voor je klanten om contact op te kunnen nemen.",
"Enable documentation platform": "Zet documentatie platform aan",
"This will allow you to create articles for your users to look at.": "Dit maakt het mogelijk om artikelen te schrijven zoals tutorials.",
"This will make sure each site created by one user is always isolated from another.": "Dit zorgt ervoor dat elke site die aangemaakt wordt op een aparte system user aangemaakt wordt, zodat elke site geïsoleerd is van elkaar.",
"Send welcome email": "Verstuur welkom email",
"Server has been updated": "Server is geüpdatet",
"Select default package": "Selecteer standaard pakket",