mirror of https://github.com/halo-dev/halo-admin
release 1.1.0
parent
d96a7f6a73
commit
bdd85b05ed
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "halo-admin",
|
"name": "halo-admin",
|
||||||
"version": "1.1.0-beta.3",
|
"version": "1.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "halo-admin",
|
"name": "halo-admin",
|
||||||
"version": "1.1.0-beta.3",
|
"version": "1.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
|
|
|
@ -108,6 +108,22 @@
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
>
|
>
|
||||||
|
<template
|
||||||
|
slot="author"
|
||||||
|
slot-scope="text,record"
|
||||||
|
>
|
||||||
|
<a-icon
|
||||||
|
type="user"
|
||||||
|
v-if="record.isAdmin"
|
||||||
|
style="margin-right: 3px;"
|
||||||
|
/>
|
||||||
|
<a
|
||||||
|
:href="record.authorUrl"
|
||||||
|
target="_blank"
|
||||||
|
v-if="record.authorUrl"
|
||||||
|
>{{ text }}</a>
|
||||||
|
<span v-else>{{ text }}</span>
|
||||||
|
</template>
|
||||||
<p
|
<p
|
||||||
class="comment-content-wrapper"
|
class="comment-content-wrapper"
|
||||||
slot="content"
|
slot="content"
|
||||||
|
@ -272,7 +288,8 @@ import commentApi from '@/api/comment'
|
||||||
const postColumns = [
|
const postColumns = [
|
||||||
{
|
{
|
||||||
title: '昵称',
|
title: '昵称',
|
||||||
dataIndex: 'author'
|
dataIndex: 'author',
|
||||||
|
scopedSlots: { customRender: 'author' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '内容',
|
title: '内容',
|
||||||
|
@ -308,7 +325,8 @@ const postColumns = [
|
||||||
const sheetColumns = [
|
const sheetColumns = [
|
||||||
{
|
{
|
||||||
title: '昵称',
|
title: '昵称',
|
||||||
dataIndex: 'author'
|
dataIndex: 'author',
|
||||||
|
scopedSlots: { customRender: 'author' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '内容',
|
title: '内容',
|
||||||
|
|
|
@ -18,9 +18,22 @@
|
||||||
:href="item.authorUrl"
|
:href="item.authorUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ item.author }}</a> 发表在 《<a
|
>{{ item.author }}</a> 发表在 《<a
|
||||||
|
v-if="item.post.status=='PUBLISHED'"
|
||||||
:href="options.blog_url+'/archives/'+item.post.url"
|
:href="options.blog_url+'/archives/'+item.post.url"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ item.post.title }}</a>》
|
>{{ item.post.title }}</a><a
|
||||||
|
v-else-if="item.post.status=='INTIMATE'"
|
||||||
|
:href="options.blog_url+'/archives/'+item.post.url+'/password'"
|
||||||
|
target="_blank"
|
||||||
|
>{{ item.post.title }}</a><a
|
||||||
|
v-else-if="item.post.status=='DRAFT'"
|
||||||
|
href="javascript:void(0)"
|
||||||
|
@click="handlePostPreview(item.post.id)"
|
||||||
|
>{{ item.post.title }}</a><a
|
||||||
|
v-else
|
||||||
|
href="javascript:void(0)"
|
||||||
|
>{{ item.post.title }}</a>
|
||||||
|
》
|
||||||
</template>
|
</template>
|
||||||
<template
|
<template
|
||||||
slot="author"
|
slot="author"
|
||||||
|
@ -30,8 +43,16 @@
|
||||||
:href="item.authorUrl"
|
:href="item.authorUrl"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ item.author }}</a> 发表在 《<a
|
>{{ item.author }}</a> 发表在 《<a
|
||||||
|
v-if="item.sheet.status=='PUBLISHED'"
|
||||||
:href="options.blog_url+'/s/'+item.sheet.url"
|
:href="options.blog_url+'/s/'+item.sheet.url"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
>{{ item.sheet.title }}</a><a
|
||||||
|
v-else-if="item.sheet.status=='DRAFT'"
|
||||||
|
href="javascript:void(0)"
|
||||||
|
@click="handleSheetPreview(item.sheet.id)"
|
||||||
|
>{{ item.sheet.title }}</a><a
|
||||||
|
v-else
|
||||||
|
href="javascript:void(0)"
|
||||||
>{{ item.sheet.title }}</a>》
|
>{{ item.sheet.title }}</a>》
|
||||||
</template>
|
</template>
|
||||||
<!-- <template slot="actions">
|
<!-- <template slot="actions">
|
||||||
|
@ -56,6 +77,8 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import commentApi from '@/api/comment'
|
import commentApi from '@/api/comment'
|
||||||
|
import postApi from '@/api/post'
|
||||||
|
import sheetApi from '@/api/sheet'
|
||||||
|
|
||||||
import marked from 'marked'
|
import marked from 'marked'
|
||||||
export default {
|
export default {
|
||||||
|
@ -95,6 +118,16 @@ export default {
|
||||||
this.comments = response.data.data
|
this.comments = response.data.data
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
handlePostPreview(postId) {
|
||||||
|
postApi.preview(postId).then(response => {
|
||||||
|
window.open(response.data, '_blank')
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSheetPreview(sheetId) {
|
||||||
|
sheetApi.preview(sheetId).then(response => {
|
||||||
|
window.open(response.data, '_blank')
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,14 +143,14 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
themeApi.getContent(this.selectedTheme.id,file.path).then(response => {
|
themeApi.getContent(this.selectedTheme.id, file.path).then(response => {
|
||||||
this.content = response.data.data
|
this.content = response.data.data
|
||||||
this.file = file
|
this.file = file
|
||||||
this.buttonDisabled = false
|
this.buttonDisabled = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handlerSaveContent() {
|
handlerSaveContent() {
|
||||||
themeApi.saveContent(this.selectedTheme.id,this.file.path, this.content).then(response => {
|
themeApi.saveContent(this.selectedTheme.id, this.file.path, this.content).then(response => {
|
||||||
this.$message.success('保存成功!')
|
this.$message.success('保存成功!')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
v-if="record.topPriority!=0"
|
v-if="record.topPriority!=0"
|
||||||
theme="twoTone"
|
theme="twoTone"
|
||||||
twoToneColor="red"
|
twoToneColor="red"
|
||||||
|
style="margin-right: 3px;"
|
||||||
/>
|
/>
|
||||||
<a
|
<a
|
||||||
v-if="record.status=='PUBLISHED'"
|
v-if="record.status=='PUBLISHED'"
|
||||||
|
|
|
@ -155,6 +155,10 @@ export default {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
date: '2019-09-11',
|
||||||
|
content: 'Halo v1.1.0 发布'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
date: '2019-07-09',
|
date: '2019-07-09',
|
||||||
content: 'Halo v1.0.3 发布'
|
content: 'Halo v1.0.3 发布'
|
||||||
|
|
Loading…
Reference in New Issue