fix rates tab
This commit is contained in:
parent
bb802ed756
commit
0222d493f8
2 changed files with 100 additions and 70 deletions
|
|
@ -7,6 +7,12 @@
|
||||||
class="setting-label"
|
class="setting-label"
|
||||||
:class="{ 'faint': shouldBeDisabled }"
|
:class="{ 'faint': shouldBeDisabled }"
|
||||||
>
|
>
|
||||||
|
<ModifiedIndicator
|
||||||
|
:changed="isChanged"
|
||||||
|
:onclick="reset"
|
||||||
|
/>
|
||||||
|
<ProfileSettingIndicator :is-profile="isProfileSetting" />
|
||||||
|
{{ ' ' }}
|
||||||
<template v-if="backendDescriptionLabel">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel + ' ' }}
|
{{ backendDescriptionLabel + ' ' }}
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -22,82 +28,98 @@
|
||||||
>
|
>
|
||||||
{{ backendDescriptionDescription + ' ' }}
|
{{ backendDescriptionDescription + ' ' }}
|
||||||
</p>
|
</p>
|
||||||
<table>
|
<div class="setting-control">
|
||||||
<tr>
|
<table>
|
||||||
<th> </th>
|
<tr>
|
||||||
<th>
|
<th> </th>
|
||||||
{{ $t('admin_dash.rate_limit.period') }}
|
<th>
|
||||||
</th>
|
{{ $t('admin_dash.rate_limit.period') }}
|
||||||
<th>
|
</th>
|
||||||
{{ $t('admin_dash.rate_limit.amount') }}
|
<th>
|
||||||
</th>
|
{{ $t('admin_dash.rate_limit.amount') }}
|
||||||
</tr>
|
</th>
|
||||||
<tr>
|
</tr>
|
||||||
<td v-if="isSeparate">
|
<tr>
|
||||||
{{ $t('admin_dash.rate_limit.unauthenticated') }}
|
<td v-if="isSeparate">
|
||||||
</td>
|
{{ $t('admin_dash.rate_limit.unauthenticated') }}
|
||||||
<td v-else>
|
</td>
|
||||||
{{ $t('admin_dash.rate_limit.rate_limit') }}
|
<td v-else>
|
||||||
</td>
|
{{ $t('admin_dash.rate_limit.rate_limit') }}
|
||||||
<td>
|
</td>
|
||||||
<input
|
<td>
|
||||||
class="input string-input"
|
<input
|
||||||
type="number"
|
class="input string-input"
|
||||||
:value="normalizedState[0][0]"
|
type="number"
|
||||||
@change="e => update({ event: e, index: 0, side: 0, eventType: 'edit' })"
|
:value="normalizedState[0][0]"
|
||||||
>
|
@change="e => update({ event: e, index: 0, side: 0, eventType: 'edit' })"
|
||||||
</td>
|
>
|
||||||
<td>
|
</td>
|
||||||
<input
|
<td>
|
||||||
class="input string-input"
|
<input
|
||||||
type="number"
|
class="input string-input"
|
||||||
:value="normalizedState[0][1]"
|
type="number"
|
||||||
@change="e => update({ event: e, index: 1, side: 0, eventType: 'edit' })"
|
:value="normalizedState[0][1]"
|
||||||
>
|
@change="e => update({ event: e, index: 1, side: 0, eventType: 'edit' })"
|
||||||
</td>
|
>
|
||||||
</tr>
|
</td>
|
||||||
<tr v-if="isSeparate">
|
</tr>
|
||||||
<td>
|
<tr v-if="isSeparate">
|
||||||
{{ $t('admin_dash.rate_limit.authenticated') }}
|
<td>
|
||||||
</td>
|
{{ $t('admin_dash.rate_limit.authenticated') }}
|
||||||
<td>
|
</td>
|
||||||
<input
|
<td>
|
||||||
class="input string-input"
|
<input
|
||||||
type="number"
|
class="input string-input"
|
||||||
:value="normalizedState[1][0]"
|
type="number"
|
||||||
@change="e => update({ event: e, index: 0, side: 1, eventType: 'edit' })"
|
:value="normalizedState[1][0]"
|
||||||
>
|
@change="e => update({ event: e, index: 0, side: 1, eventType: 'edit' })"
|
||||||
</td>
|
>
|
||||||
<td>
|
</td>
|
||||||
<input
|
<td>
|
||||||
class="input string-input"
|
<input
|
||||||
type="number"
|
class="input string-input"
|
||||||
:value="normalizedState[1][1]"
|
type="number"
|
||||||
@change="e => update({ event: e, index: 1, side: 1, eventType: 'edit' })"
|
:value="normalizedState[1][1]"
|
||||||
>
|
@change="e => update({ event: e, index: 1, side: 1, eventType: 'edit' })"
|
||||||
</td>
|
>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
<Checkbox
|
</table>
|
||||||
:model-value="isSeparate"
|
<Checkbox
|
||||||
@update:model-value="event => update({ event: event ? 'join' : 'split', eventType: 'toggleMode' })"
|
:model-value="isSeparate"
|
||||||
>
|
@update:model-value="event => update({ event: event ? 'join' : 'split', eventType: 'toggleMode' })"
|
||||||
{{ $t('admin_dash.rate_limit.separate') }}
|
>
|
||||||
</Checkbox>
|
{{ $t('admin_dash.rate_limit.separate') }}
|
||||||
<div>
|
</Checkbox>
|
||||||
<ModifiedIndicator
|
|
||||||
:changed="isChanged"
|
|
||||||
:onclick="reset"
|
|
||||||
/>
|
|
||||||
<ProfileSettingIndicator :is-profile="isProfileSetting" />
|
|
||||||
<DraftButtons />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<DraftButtons />
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script src="./rate_setting.js"></script>
|
<script src="./rate_setting.js"></script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.RateSetting {
|
.RateSetting {
|
||||||
|
&.setting-item {
|
||||||
|
display: grid;
|
||||||
|
grid-template-areas:
|
||||||
|
"label control"
|
||||||
|
"desc control"
|
||||||
|
". draft";
|
||||||
|
|
||||||
|
.setting-label {
|
||||||
|
text-align: right;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.setting-description {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.setting-control {
|
||||||
|
align-self: end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1413,6 +1413,14 @@
|
||||||
":oauth_app_creation": {
|
":oauth_app_creation": {
|
||||||
"label": "OAuth app creation",
|
"label": "OAuth app creation",
|
||||||
"description": "For registering new OAuth App ID"
|
"description": "For registering new OAuth App ID"
|
||||||
|
},
|
||||||
|
":ap_routes": {
|
||||||
|
"label": "ActivityPub",
|
||||||
|
"description": "Federation endpoints"
|
||||||
|
},
|
||||||
|
":account_confirmation_resend": {
|
||||||
|
"label": "Account confirmation resend",
|
||||||
|
"description": "How often user can resend confirmation mail"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Pleroma_DOT_Formatter": {
|
"Pleroma_DOT_Formatter": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue