wip
This commit is contained in:
parent
89eeeeff58
commit
6d07156b21
3 changed files with 84 additions and 58 deletions
|
@ -1,43 +1,45 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="uqshojas">
|
<div>
|
||||||
<MkButton @click="add()" primary style="margin: 0 auto 16px auto;"><i class="fas fa-plus"></i> {{ $ts.add }}</MkButton>
|
<MkHeader :info="header"/>
|
||||||
<section class="_card _gap ads" v-for="ad in ads">
|
<div class="uqshojas">
|
||||||
<div class="_content ad">
|
<section class="_card _gap ads" v-for="ad in ads">
|
||||||
<MkAd v-if="ad.url" :specify="ad"/>
|
<div class="_content ad">
|
||||||
<MkInput v-model="ad.url" type="url">
|
<MkAd v-if="ad.url" :specify="ad"/>
|
||||||
<template #label>URL</template>
|
<MkInput v-model="ad.url" type="url">
|
||||||
</MkInput>
|
<template #label>URL</template>
|
||||||
<MkInput v-model="ad.imageUrl">
|
</MkInput>
|
||||||
<template #label>{{ $ts.imageUrl }}</template>
|
<MkInput v-model="ad.imageUrl">
|
||||||
</MkInput>
|
<template #label>{{ $ts.imageUrl }}</template>
|
||||||
<div style="margin: 32px 0;">
|
</MkInput>
|
||||||
<MkRadio v-model="ad.place" value="square">square</MkRadio>
|
<div style="margin: 32px 0;">
|
||||||
<MkRadio v-model="ad.place" value="horizontal">horizontal</MkRadio>
|
<MkRadio v-model="ad.place" value="square">square</MkRadio>
|
||||||
<MkRadio v-model="ad.place" value="horizontal-big">horizontal-big</MkRadio>
|
<MkRadio v-model="ad.place" value="horizontal">horizontal</MkRadio>
|
||||||
|
<MkRadio v-model="ad.place" value="horizontal-big">horizontal-big</MkRadio>
|
||||||
|
</div>
|
||||||
|
<!--
|
||||||
|
<div style="margin: 32px 0;">
|
||||||
|
{{ $ts.priority }}
|
||||||
|
<MkRadio v-model="ad.priority" value="high">{{ $ts.high }}</MkRadio>
|
||||||
|
<MkRadio v-model="ad.priority" value="middle">{{ $ts.middle }}</MkRadio>
|
||||||
|
<MkRadio v-model="ad.priority" value="low">{{ $ts.low }}</MkRadio>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
|
<MkInput v-model="ad.ratio" type="number">
|
||||||
|
<template #label>{{ $ts.ratio }}</template>
|
||||||
|
</MkInput>
|
||||||
|
<MkInput v-model="ad.expiresAt" type="date">
|
||||||
|
<template #label>{{ $ts.expiration }}</template>
|
||||||
|
</MkInput>
|
||||||
|
<MkTextarea v-model="ad.memo">
|
||||||
|
<template #label>{{ $ts.memo }}</template>
|
||||||
|
</MkTextarea>
|
||||||
|
<div class="buttons">
|
||||||
|
<MkButton class="button" inline @click="save(ad)" primary><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>
|
||||||
|
<MkButton class="button" inline @click="remove(ad)" danger><i class="fas fa-trash-alt"></i> {{ $ts.remove }}</MkButton>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--
|
</section>
|
||||||
<div style="margin: 32px 0;">
|
</div>
|
||||||
{{ $ts.priority }}
|
|
||||||
<MkRadio v-model="ad.priority" value="high">{{ $ts.high }}</MkRadio>
|
|
||||||
<MkRadio v-model="ad.priority" value="middle">{{ $ts.middle }}</MkRadio>
|
|
||||||
<MkRadio v-model="ad.priority" value="low">{{ $ts.low }}</MkRadio>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
<MkInput v-model="ad.ratio" type="number">
|
|
||||||
<template #label>{{ $ts.ratio }}</template>
|
|
||||||
</MkInput>
|
|
||||||
<MkInput v-model="ad.expiresAt" type="date">
|
|
||||||
<template #label>{{ $ts.expiration }}</template>
|
|
||||||
</MkInput>
|
|
||||||
<MkTextarea v-model="ad.memo">
|
|
||||||
<template #label>{{ $ts.memo }}</template>
|
|
||||||
</MkTextarea>
|
|
||||||
<div class="buttons">
|
|
||||||
<MkButton class="button" inline @click="save(ad)" primary><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>
|
|
||||||
<MkButton class="button" inline @click="remove(ad)" danger><i class="fas fa-trash-alt"></i> {{ $ts.remove }}</MkButton>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -67,6 +69,17 @@ export default defineComponent({
|
||||||
icon: 'fas fa-audio-description',
|
icon: 'fas fa-audio-description',
|
||||||
bg: 'var(--bg)',
|
bg: 'var(--bg)',
|
||||||
},
|
},
|
||||||
|
header: {
|
||||||
|
title: this.$ts.ads,
|
||||||
|
icon: 'fas fa-audio-description',
|
||||||
|
bg: 'var(--bg)',
|
||||||
|
actions: [{
|
||||||
|
asFullButton: true,
|
||||||
|
icon: 'fas fa-plus',
|
||||||
|
text: this.$ts.add,
|
||||||
|
handler: this.add,
|
||||||
|
}],
|
||||||
|
},
|
||||||
ads: [],
|
ads: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,24 +1,27 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="ztgjmzrw">
|
<div>
|
||||||
<MkButton @click="add()" primary style="margin: 0 auto 16px auto;"><i class="fas fa-plus"></i> {{ $ts.add }}</MkButton>
|
<MkHeader :info="header"/>
|
||||||
<section class="_card _gap announcements" v-for="announcement in announcements">
|
|
||||||
<div class="_content announcement">
|
<div class="ztgjmzrw">
|
||||||
<MkInput v-model="announcement.title">
|
<section class="_card _gap announcements" v-for="announcement in announcements">
|
||||||
<template #label>{{ $ts.title }}</template>
|
<div class="_content announcement">
|
||||||
</MkInput>
|
<MkInput v-model="announcement.title">
|
||||||
<MkTextarea v-model="announcement.text">
|
<template #label>{{ $ts.title }}</template>
|
||||||
<template #label>{{ $ts.text }}</template>
|
</MkInput>
|
||||||
</MkTextarea>
|
<MkTextarea v-model="announcement.text">
|
||||||
<MkInput v-model="announcement.imageUrl">
|
<template #label>{{ $ts.text }}</template>
|
||||||
<template #label>{{ $ts.imageUrl }}</template>
|
</MkTextarea>
|
||||||
</MkInput>
|
<MkInput v-model="announcement.imageUrl">
|
||||||
<p v-if="announcement.reads">{{ $t('nUsersRead', { n: announcement.reads }) }}</p>
|
<template #label>{{ $ts.imageUrl }}</template>
|
||||||
<div class="buttons">
|
</MkInput>
|
||||||
<MkButton class="button" inline @click="save(announcement)" primary><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>
|
<p v-if="announcement.reads">{{ $t('nUsersRead', { n: announcement.reads }) }}</p>
|
||||||
<MkButton class="button" inline @click="remove(announcement)"><i class="fas fa-trash-alt"></i> {{ $ts.remove }}</MkButton>
|
<div class="buttons">
|
||||||
|
<MkButton class="button" inline @click="save(announcement)" primary><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>
|
||||||
|
<MkButton class="button" inline @click="remove(announcement)"><i class="fas fa-trash-alt"></i> {{ $ts.remove }}</MkButton>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</section>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -46,6 +49,17 @@ export default defineComponent({
|
||||||
icon: 'fas fa-broadcast-tower',
|
icon: 'fas fa-broadcast-tower',
|
||||||
bg: 'var(--bg)',
|
bg: 'var(--bg)',
|
||||||
},
|
},
|
||||||
|
header: {
|
||||||
|
title: this.$ts.announcements,
|
||||||
|
icon: 'fas fa-broadcast-tower',
|
||||||
|
bg: 'var(--bg)',
|
||||||
|
actions: [{
|
||||||
|
asFullButton: true,
|
||||||
|
icon: 'fas fa-plus',
|
||||||
|
text: this.$ts.add,
|
||||||
|
handler: this.add,
|
||||||
|
}],
|
||||||
|
},
|
||||||
announcements: [],
|
announcements: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -235,7 +235,6 @@ export default defineComponent({
|
||||||
> .main {
|
> .main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow: auto;
|
|
||||||
--baseContentWidth: 100%;
|
--baseContentWidth: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue