lint
This commit is contained in:
parent
e0fbeee88e
commit
1492937a7e
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<component
|
<component
|
||||||
class="media-upload"
|
|
||||||
:is="normalButton ? 'button' : 'label'"
|
:is="normalButton ? 'button' : 'label'"
|
||||||
|
class="media-upload"
|
||||||
:class="{ disabled: disabled, ['media-upload button-default btn']: normalButton }"
|
:class="{ disabled: disabled, ['media-upload button-default btn']: normalButton }"
|
||||||
:title="$t('tool_tip.media_upload')"
|
:title="$t('tool_tip.media_upload')"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
|
@ -23,13 +23,13 @@
|
||||||
</template>
|
</template>
|
||||||
<input
|
<input
|
||||||
v-if="uploadReady"
|
v-if="uploadReady"
|
||||||
|
ref="input"
|
||||||
class="hidden-input-file"
|
class="hidden-input-file"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
type="file"
|
type="file"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
@change="change"
|
|
||||||
ref="input"
|
|
||||||
:accept="acceptTypes"
|
:accept="acceptTypes"
|
||||||
|
@change="change"
|
||||||
>
|
>
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="frontends-tab" :label="$t('admin_dash.tabs.frontends')">
|
<div
|
||||||
|
class="frontends-tab"
|
||||||
|
:label="$t('admin_dash.tabs.frontends')"
|
||||||
|
>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h2>{{ $t('admin_dash.tabs.frontends') }}</h2>
|
<h2>{{ $t('admin_dash.tabs.frontends') }}</h2>
|
||||||
<p>{{ $t('admin_dash.frontend.wip_notice') }}</p>
|
<p>{{ $t('admin_dash.frontend.wip_notice') }}</p>
|
||||||
|
@ -20,23 +23,26 @@
|
||||||
</StringSetting>
|
</StringSetting>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<GroupSetting path=":pleroma.:frontends.:primary"/>
|
<GroupSetting path=":pleroma.:frontends.:primary" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="setting-list">
|
<div class="setting-list">
|
||||||
<h3>{{ $t('admin_dash.frontend.available_frontends') }}</h3>
|
<h3>{{ $t('admin_dash.frontend.available_frontends') }}</h3>
|
||||||
<ul class="cards-list">
|
<ul class="cards-list">
|
||||||
<li v-for="frontend in frontends" :key="frontend.name">
|
<li
|
||||||
|
v-for="frontend in frontends"
|
||||||
|
:key="frontend.name"
|
||||||
|
>
|
||||||
<strong>{{ frontend.name }}</strong>
|
<strong>{{ frontend.name }}</strong>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
<span v-if="adminDraft[':pleroma'][':frontends'][':primary'].name === frontend.name">
|
<span v-if="adminDraft[':pleroma'][':frontends'][':primary'].name === frontend.name">
|
||||||
<i18n-t
|
<i18n-t
|
||||||
keypath="admin_dash.frontend.is_default"
|
|
||||||
v-if="adminDraft[':pleroma'][':frontends'][':primary'].ref === frontend.refs[0]"
|
v-if="adminDraft[':pleroma'][':frontends'][':primary'].ref === frontend.refs[0]"
|
||||||
|
keypath="admin_dash.frontend.is_default"
|
||||||
/>
|
/>
|
||||||
<i18n-t
|
<i18n-t
|
||||||
keypath="admin_dash.frontend.is_default_custom"
|
|
||||||
v-else
|
v-else
|
||||||
|
keypath="admin_dash.frontend.is_default_custom"
|
||||||
>
|
>
|
||||||
<template #version>
|
<template #version>
|
||||||
<code>{{ adminDraft[':pleroma'][':frontends'][':primary'].ref }}</code>
|
<code>{{ adminDraft[':pleroma'][':frontends'][':primary'].ref }}</code>
|
||||||
|
@ -45,13 +51,30 @@
|
||||||
</span>
|
</span>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ $t('admin_dash.frontend.repository') }}</dt>
|
<dt>{{ $t('admin_dash.frontend.repository') }}</dt>
|
||||||
<dd><a :href="frontend.git" target="_blank">{{ frontend.git }}</a></dd>
|
<dd>
|
||||||
|
<a
|
||||||
|
:href="frontend.git"
|
||||||
|
target="_blank"
|
||||||
|
>{{ frontend.git }}</a>
|
||||||
|
</dd>
|
||||||
<template v-if="expertLevel">
|
<template v-if="expertLevel">
|
||||||
<dt>{{ $t('admin_dash.frontend.versions') }}</dt>
|
<dt>{{ $t('admin_dash.frontend.versions') }}</dt>
|
||||||
<dd v-for="ref in frontend.refs" :key="ref"><code>{{ ref }}</code></dd>
|
<dd
|
||||||
|
v-for="ref in frontend.refs"
|
||||||
|
:key="ref"
|
||||||
|
>
|
||||||
|
<code>{{ ref }}</code>
|
||||||
|
</dd>
|
||||||
</template>
|
</template>
|
||||||
<dt v-if="expertLevel">{{ $t('admin_dash.frontend.build_url') }}</dt>
|
<dt v-if="expertLevel">
|
||||||
<dd v-if="expertLevel"><a :href="frontend.build_url" target="_blank">{{ frontend.build_url }}</a></dd>
|
{{ $t('admin_dash.frontend.build_url') }}
|
||||||
|
</dt>
|
||||||
|
<dd v-if="expertLevel">
|
||||||
|
<a
|
||||||
|
:href="frontend.build_url"
|
||||||
|
target="_blank"
|
||||||
|
>{{ frontend.build_url }}</a>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<div>
|
<div>
|
||||||
<span class="btn-group">
|
<span class="btn-group">
|
||||||
|
@ -62,7 +85,7 @@
|
||||||
@click="update(frontend)"
|
@click="update(frontend)"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
frontend.installed
|
frontend.installed
|
||||||
? $t('admin_dash.frontend.reinstall')
|
? $t('admin_dash.frontend.reinstall')
|
||||||
: $t('admin_dash.frontend.install')
|
: $t('admin_dash.frontend.install')
|
||||||
}}
|
}}
|
||||||
|
@ -100,19 +123,22 @@
|
||||||
</template>
|
</template>
|
||||||
</Popover>
|
</Popover>
|
||||||
</span>
|
</span>
|
||||||
<span class="btn-group" v-if="frontend.name !== 'admin-fe'">
|
<span
|
||||||
|
v-if="frontend.name !== 'admin-fe'"
|
||||||
|
class="btn-group"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="button button-default btn"
|
class="button button-default btn"
|
||||||
type="button"
|
type="button"
|
||||||
:disabled="
|
:disabled="
|
||||||
adminDraft[':pleroma'][':frontends'][':primary'].name === frontend.name &&
|
adminDraft[':pleroma'][':frontends'][':primary'].name === frontend.name &&
|
||||||
adminDraft[':pleroma'][':frontends'][':primary'].ref === frontend.refs[0]
|
adminDraft[':pleroma'][':frontends'][':primary'].ref === frontend.refs[0]
|
||||||
"
|
"
|
||||||
:title="$t('admin_dash.frontend.update')"
|
:title="$t('admin_dash.frontend.update')"
|
||||||
@click="setDefault(frontend)"
|
@click="setDefault(frontend)"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
$t('admin_dash.frontend.set_default')
|
$t('admin_dash.frontend.set_default')
|
||||||
}}
|
}}
|
||||||
</button>
|
</button>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
v-if="matchesExpertLevel"
|
v-if="matchesExpertLevel"
|
||||||
class="AttachmentSetting"
|
class="AttachmentSetting"
|
||||||
>
|
>
|
||||||
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
<label
|
||||||
|
:for="path"
|
||||||
|
:class="{ 'faint': shouldBeDisabled }"
|
||||||
|
>
|
||||||
<template v-if="backendDescriptionLabel">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel + ' ' }}
|
{{ backendDescriptionLabel + ' ' }}
|
||||||
</template>
|
</template>
|
||||||
|
@ -51,10 +54,10 @@
|
||||||
ref="mediaUpload"
|
ref="mediaUpload"
|
||||||
class="media-upload-icon"
|
class="media-upload-icon"
|
||||||
:drop-files="dropFiles"
|
:drop-files="dropFiles"
|
||||||
@uploaded="setMediaFile"
|
|
||||||
@upload-failed="uploadFailed"
|
|
||||||
normal-button
|
normal-button
|
||||||
:accept-types="acceptTypes"
|
:accept-types="acceptTypes"
|
||||||
|
@uploaded="setMediaFile"
|
||||||
|
@upload-failed="uploadFailed"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
v-if="matchesExpertLevel"
|
v-if="matchesExpertLevel"
|
||||||
class="NumberSetting"
|
class="NumberSetting"
|
||||||
>
|
>
|
||||||
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
<label
|
||||||
|
:for="path"
|
||||||
|
:class="{ 'faint': shouldBeDisabled }"
|
||||||
|
>
|
||||||
<template v-if="backendDescriptionLabel">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel + ' ' }}
|
{{ backendDescriptionLabel + ' ' }}
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
v-if="matchesExpertLevel"
|
v-if="matchesExpertLevel"
|
||||||
class="StringSetting"
|
class="StringSetting"
|
||||||
>
|
>
|
||||||
<label :for="path" :class="{ 'faint': shouldBeDisabled }">
|
<label
|
||||||
|
:for="path"
|
||||||
|
:class="{ 'faint': shouldBeDisabled }"
|
||||||
|
>
|
||||||
<template v-if="backendDescriptionLabel">
|
<template v-if="backendDescriptionLabel">
|
||||||
{{ backendDescriptionLabel + ' ' }}
|
{{ backendDescriptionLabel + ' ' }}
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -125,21 +125,24 @@
|
||||||
id="unscrolled-content"
|
id="unscrolled-content"
|
||||||
class="extra-content"
|
class="extra-content"
|
||||||
/>
|
/>
|
||||||
<span class="admin-buttons" v-if="modalMode === 'admin'">
|
<span
|
||||||
|
v-if="modalMode === 'admin'"
|
||||||
|
class="admin-buttons"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="button-default btn"
|
class="button-default btn"
|
||||||
@click="resetAdminDraft"
|
|
||||||
:disabled="!adminDraftAny"
|
:disabled="!adminDraftAny"
|
||||||
|
@click="resetAdminDraft"
|
||||||
>
|
>
|
||||||
{{ $t("admin_dash.reset_all") }}
|
{{ $t("admin_dash.reset_all") }}
|
||||||
</button>
|
</button>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
<button
|
<button
|
||||||
class="button-default btn"
|
class="button-default btn"
|
||||||
@click="pushAdminDraft"
|
|
||||||
:disabled="!adminDraftAny"
|
:disabled="!adminDraftAny"
|
||||||
|
@click="pushAdminDraft"
|
||||||
>
|
>
|
||||||
{{ $t("admin_dash.commit_all") }}
|
{{ $t("admin_dash.commit_all") }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue