chore: install prettier
This commit is contained in:
@@ -25,12 +25,23 @@
|
||||
</div>
|
||||
<template v-if="option === 'your'">
|
||||
<template v-if="tab === 'message'">
|
||||
<div class="field is-grouped" v-for="(v, i) in message">
|
||||
<div
|
||||
class="field is-grouped"
|
||||
v-for="(v, i) in message"
|
||||
>
|
||||
<div class="control is-expanded">
|
||||
<textarea class="textarea" placeholder="" rows="3" v-model="v.text"></textarea>
|
||||
<textarea
|
||||
class="textarea"
|
||||
placeholder=""
|
||||
rows="3"
|
||||
v-model="v.text"
|
||||
></textarea>
|
||||
</div>
|
||||
<div class="control">
|
||||
<a class="mr-3" @click="add()">
|
||||
<a
|
||||
class="mr-3"
|
||||
@click="add()"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'add1.png', type: 'primary', size: 20 }"></SvgIcon>
|
||||
</a>
|
||||
<a @click="remove(v, i)">
|
||||
@@ -44,22 +55,40 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
<button class="button is-primary has-text-white" @click="update()">Cập nhật</button>
|
||||
<button
|
||||
class="button is-primary has-text-white"
|
||||
@click="update()"
|
||||
>
|
||||
Cập nhật
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="tab === 'image'">
|
||||
<div class="field is-grouped mb-0">
|
||||
<div class="control is-expanded"></div>
|
||||
<div class="control">
|
||||
<FileUpload v-bind="{ position: 'left' }" @files="getImages"></FileUpload>
|
||||
<FileUpload
|
||||
v-bind="{ position: 'left' }"
|
||||
@files="getImages"
|
||||
></FileUpload>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-grouped is-grouped-multiline" v-if="image.length > 0">
|
||||
<div class="control mb-2" v-for="(v, i) in image">
|
||||
<div
|
||||
class="field is-grouped is-grouped-multiline"
|
||||
v-if="image.length > 0"
|
||||
>
|
||||
<div
|
||||
class="control mb-2"
|
||||
v-for="(v, i) in image"
|
||||
>
|
||||
<ChipImage
|
||||
style="width: 128px"
|
||||
@remove="removeImage(v, i)"
|
||||
v-bind="{ show: ['copy', 'download', 'delete'], file: v, image: `${$getpath()}static/files/${v.file}` }"
|
||||
v-bind="{
|
||||
show: ['copy', 'download', 'delete'],
|
||||
file: v,
|
||||
image: `${$getpath()}static/files/${v.file}`,
|
||||
}"
|
||||
>
|
||||
</ChipImage>
|
||||
</div>
|
||||
@@ -69,24 +98,47 @@
|
||||
<div class="field is-grouped mb-0">
|
||||
<div class="control is-expanded"></div>
|
||||
<div class="control">
|
||||
<FileUpload v-bind="{ position: 'left', type: 'file' }" @files="getFiles"></FileUpload>
|
||||
<FileUpload
|
||||
v-bind="{ position: 'left', type: 'file' }"
|
||||
@files="getFiles"
|
||||
></FileUpload>
|
||||
</div>
|
||||
</div>
|
||||
<FileShow @remove="removeFile" v-bind="{ files: file, show: { delete: 1 } }"></FileShow>
|
||||
<FileShow
|
||||
@remove="removeFile"
|
||||
v-bind="{ files: file, show: { delete: 1 } }"
|
||||
></FileShow>
|
||||
</template>
|
||||
<template v-else-if="tab === 'link'">
|
||||
<div class="field is-grouped" v-for="(v, i) in link">
|
||||
<div
|
||||
class="field is-grouped"
|
||||
v-for="(v, i) in link"
|
||||
>
|
||||
<div class="control is-expanded">
|
||||
<input class="input" placeholder="" v-model="v.link" />
|
||||
<input
|
||||
class="input"
|
||||
placeholder=""
|
||||
v-model="v.link"
|
||||
/>
|
||||
</div>
|
||||
<div class="control">
|
||||
<a class="mr-3" @click="copyContent(v.link)">
|
||||
<a
|
||||
class="mr-3"
|
||||
@click="copyContent(v.link)"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'copy.svg', type: 'primary', size: 20 }"></SvgIcon>
|
||||
</a>
|
||||
<a class="mr-3" :href="v.link" target="_blank">
|
||||
<a
|
||||
class="mr-3"
|
||||
:href="v.link"
|
||||
target="_blank"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'open.svg', type: 'primary', size: 20 }"></SvgIcon>
|
||||
</a>
|
||||
<a class="mr-3" @click="addLink()">
|
||||
<a
|
||||
class="mr-3"
|
||||
@click="addLink()"
|
||||
>
|
||||
<SvgIcon v-bind="{ name: 'add1.png', type: 'primary', size: 18 }"></SvgIcon>
|
||||
</a>
|
||||
<a @click="removeLink(v, i)">
|
||||
@@ -95,14 +147,23 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-5">
|
||||
<button class="button is-primary has-text-white" @click="update()">Cập nhật</button>
|
||||
<button
|
||||
class="button is-primary has-text-white"
|
||||
@click="update()"
|
||||
>
|
||||
Cập nhật
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else-if="option === 'system'">
|
||||
<template v-if="tab === 'message'">
|
||||
<div v-if="message">
|
||||
<div class="px-2 py-2 mb-2" style="border: 1px solid #e8e8e8" v-for="(v, i) in message">
|
||||
<div
|
||||
class="px-2 py-2 mb-2"
|
||||
style="border: 1px solid #e8e8e8"
|
||||
v-for="(v, i) in message"
|
||||
>
|
||||
<span class="mr-3">{{ v.text }}</span>
|
||||
<a @click="copyContent(v.text)">
|
||||
<SvgIcon v-bind="{ name: 'copy.svg', type: 'primary', size: 20 }"></SvgIcon>
|
||||
@@ -111,11 +172,21 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="tab === 'image'">
|
||||
<div class="field is-grouped is-grouped-multiline" v-if="image.length > 0">
|
||||
<div class="control mb-2" v-for="(v, i) in image">
|
||||
<div
|
||||
class="field is-grouped is-grouped-multiline"
|
||||
v-if="image.length > 0"
|
||||
>
|
||||
<div
|
||||
class="control mb-2"
|
||||
v-for="(v, i) in image"
|
||||
>
|
||||
<ChipImage
|
||||
style="width: 128px"
|
||||
v-bind="{ show: ['copy', 'download'], file: v, image: `${$getpath()}static/files/${v.file}` }"
|
||||
v-bind="{
|
||||
show: ['copy', 'download'],
|
||||
file: v,
|
||||
image: `${$getpath()}static/files/${v.file}`,
|
||||
}"
|
||||
>
|
||||
</ChipImage>
|
||||
</div>
|
||||
@@ -125,8 +196,17 @@
|
||||
<FileShow v-bind="{ files: file }"></FileShow>
|
||||
</template>
|
||||
<template v-else-if="tab === 'link'">
|
||||
<div class="px-2 py-2 mb-2" style="border: 1px solid #e8e8e8" v-for="(v, i) in link">
|
||||
<a :href="v.link" target="_blank" class="mr-3">{{ v.link }}</a>
|
||||
<div
|
||||
class="px-2 py-2 mb-2"
|
||||
style="border: 1px solid #e8e8e8"
|
||||
v-for="(v, i) in link"
|
||||
>
|
||||
<a
|
||||
:href="v.link"
|
||||
target="_blank"
|
||||
class="mr-3"
|
||||
>{{ v.link }}</a
|
||||
>
|
||||
<a @click="copyContent(v.link)">
|
||||
<SvgIcon v-bind="{ name: 'copy.svg', type: 'primary', size: 20 }"></SvgIcon>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user