mirror of https://github.com/halo-dev/halo
chore: upgrade dependencies. (halo-dev/console#237)
parent
8e38006e81
commit
4e6a0a00d0
|
@ -2601,34 +2601,6 @@
|
||||||
"webpack-sources": "^1.4.3"
|
"webpack-sources": "^1.4.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vue-loader-v16": {
|
|
||||||
"version": "npm:vue-loader@16.0.0-beta.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.5.tgz",
|
|
||||||
"integrity": "sha512-ciWfzNefqWlmzKznCWY9hl+fPP4KlQ0A9MtHbJ/8DpyY+dAM8gDrjufIdxwTgC4szE4EZC3A6ip/BbrqM84GqA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"@types/mini-css-extract-plugin": "^0.9.1",
|
|
||||||
"chalk": "^3.0.0",
|
|
||||||
"hash-sum": "^2.0.0",
|
|
||||||
"loader-utils": "^1.2.3",
|
|
||||||
"merge-source-map": "^1.1.0",
|
|
||||||
"source-map": "^0.6.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"chalk": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-styles": "^4.1.0",
|
|
||||||
"supports-color": "^7.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"wrap-ansi": {
|
"wrap-ansi": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
|
||||||
|
@ -3114,9 +3086,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ant-design-vue": {
|
"ant-design-vue": {
|
||||||
"version": "1.6.4",
|
"version": "1.6.5",
|
||||||
"resolved": "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-1.6.4.tgz",
|
"resolved": "https://registry.npmjs.org/ant-design-vue/-/ant-design-vue-1.6.5.tgz",
|
||||||
"integrity": "sha512-BQ37Vcw6itMIsa+UFr+ad4I3Tx6ZYAPnComvWXQwWqDuVIW4A0M5X+nY/pTTIaH9cPSxMse8KUSUu0ibuYj3Ag==",
|
"integrity": "sha512-FzLrK+JuJUq+g4vd+UjFFi13ZdSsb11EZFapisFXilJxpc1LxqyunZu5AP4nr9vFLs3J4UX2A6q+Rp/Fi6JrLg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@ant-design/icons": "^2.1.1",
|
"@ant-design/icons": "^2.1.1",
|
||||||
"@ant-design/icons-vue": "^2.0.0",
|
"@ant-design/icons-vue": "^2.0.0",
|
||||||
|
@ -16133,6 +16105,86 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vue-loader-v16": {
|
||||||
|
"version": "npm:vue-loader@16.0.0-beta.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.5.tgz",
|
||||||
|
"integrity": "sha512-ciWfzNefqWlmzKznCWY9hl+fPP4KlQ0A9MtHbJ/8DpyY+dAM8gDrjufIdxwTgC4szE4EZC3A6ip/BbrqM84GqA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/mini-css-extract-plugin": "^0.9.1",
|
||||||
|
"chalk": "^3.0.0",
|
||||||
|
"hash-sum": "^2.0.0",
|
||||||
|
"loader-utils": "^1.2.3",
|
||||||
|
"merge-source-map": "^1.1.0",
|
||||||
|
"source-map": "^0.6.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-styles": {
|
||||||
|
"version": "4.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
||||||
|
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/color-name": "^1.1.1",
|
||||||
|
"color-convert": "^2.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chalk": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"ansi-styles": "^4.1.0",
|
||||||
|
"supports-color": "^7.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"color-convert": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"color-name": "~1.1.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"color-name": {
|
||||||
|
"version": "1.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||||
|
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"has-flag": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"source-map": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"supports-color": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"has-flag": "^4.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"vue-ls": {
|
"vue-ls": {
|
||||||
"version": "3.2.1",
|
"version": "3.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/vue-ls/-/vue-ls-3.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/vue-ls/-/vue-ls-3.2.1.tgz",
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"test:unit": "vue-cli-service test:unit"
|
"test:unit": "vue-cli-service test:unit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ant-design-vue": "^1.6.4",
|
"ant-design-vue": "^1.6.5",
|
||||||
"axios": "^0.19.2",
|
"axios": "^0.19.2",
|
||||||
"enquire.js": "^2.1.6",
|
"enquire.js": "^2.1.6",
|
||||||
"filepond": "^4.19.2",
|
"filepond": "^4.19.2",
|
||||||
|
|
|
@ -57,16 +57,17 @@
|
||||||
</div>
|
</div>
|
||||||
<a-divider class="divider-transparent" />
|
<a-divider class="divider-transparent" />
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<a-button
|
<a-space>
|
||||||
type="dashed"
|
<a-button
|
||||||
class="mr-2"
|
type="dashed"
|
||||||
v-if="isChooseAvatar"
|
v-if="isChooseAvatar"
|
||||||
@click="handleSelectGravatar"
|
@click="handleSelectGravatar"
|
||||||
>使用 Gravatar</a-button>
|
>使用 Gravatar</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
@click="handleShowUploadModal"
|
@click="handleShowUploadModal"
|
||||||
type="primary"
|
type="primary"
|
||||||
>上传附件</a-button>
|
>上传附件</a-button>
|
||||||
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,8 @@ import {
|
||||||
Timeline,
|
Timeline,
|
||||||
Steps,
|
Steps,
|
||||||
Empty,
|
Empty,
|
||||||
Result
|
Result,
|
||||||
|
Space
|
||||||
} from 'ant-design-vue'
|
} from 'ant-design-vue'
|
||||||
|
|
||||||
Vue.use(Anchor)
|
Vue.use(Anchor)
|
||||||
|
@ -100,6 +101,7 @@ Vue.use(Timeline)
|
||||||
Vue.use(Steps)
|
Vue.use(Steps)
|
||||||
Vue.use(Empty)
|
Vue.use(Empty)
|
||||||
Vue.use(Result)
|
Vue.use(Result)
|
||||||
|
Vue.use(Space)
|
||||||
|
|
||||||
Vue.prototype.$message = message
|
Vue.prototype.$message = message
|
||||||
Vue.prototype.$notification = notification
|
Vue.prototype.$notification = notification
|
||||||
|
|
|
@ -74,12 +74,13 @@
|
||||||
:sm="24"
|
:sm="24"
|
||||||
>
|
>
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleQuery()"
|
@click="handleQuery()"
|
||||||
>查询</a-button>
|
>查询</a-button>
|
||||||
<a-button @click="handleResetParam()">重置</a-button>
|
<a-button @click="handleResetParam()">重置</a-button>
|
||||||
|
</a-space>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -126,34 +126,35 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider class="divider-transparent" />
|
<a-divider class="divider-transparent" />
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<a-popconfirm
|
<a-space>
|
||||||
title="你确定要添加到图库?"
|
<a-popconfirm
|
||||||
@confirm="handleAddToPhoto"
|
title="你确定要添加到图库?"
|
||||||
okText="确定"
|
@confirm="handleAddToPhoto"
|
||||||
cancelText="取消"
|
okText="确定"
|
||||||
v-if="addToPhoto"
|
cancelText="取消"
|
||||||
>
|
v-if="addToPhoto"
|
||||||
<a-button
|
>
|
||||||
type="dashed"
|
<a-button
|
||||||
class="mr-2"
|
type="dashed"
|
||||||
>添加到图库</a-button>
|
>添加到图库</a-button>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
title="你确定要删除该附件?"
|
title="你确定要删除该附件?"
|
||||||
@confirm="handleDeleteAttachment"
|
@confirm="handleDeleteAttachment"
|
||||||
okText="确定"
|
okText="确定"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
>
|
>
|
||||||
<ReactiveButton
|
<ReactiveButton
|
||||||
type="danger"
|
type="danger"
|
||||||
@callback="handleDeletedCallback"
|
@callback="handleDeletedCallback"
|
||||||
:loading="deleting"
|
:loading="deleting"
|
||||||
:errored="deleteErrored"
|
:errored="deleteErrored"
|
||||||
text="删除"
|
text="删除"
|
||||||
loadedText="删除成功"
|
loadedText="删除成功"
|
||||||
erroredText="删除失败"
|
erroredText="删除失败"
|
||||||
></ReactiveButton>
|
></ReactiveButton>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -98,25 +98,25 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider class="divider-transparent" />
|
<a-divider class="divider-transparent" />
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<a-button
|
<a-space>
|
||||||
type="dashed"
|
<a-button
|
||||||
class="mr-2"
|
type="dashed"
|
||||||
@click="handleEditComment"
|
@click="handleEditComment"
|
||||||
v-if="!editable"
|
v-if="!editable"
|
||||||
>编辑</a-button>
|
>编辑</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="mr-2"
|
@click="handleUpdateComment"
|
||||||
@click="handleUpdateComment"
|
v-if="editable"
|
||||||
v-if="editable"
|
>保存</a-button>
|
||||||
>保存</a-button>
|
<a-popconfirm
|
||||||
<a-popconfirm
|
title="你确定要将此评论者加入黑名单?"
|
||||||
title="你确定要将此评论者加入黑名单?"
|
okText="确定"
|
||||||
okText="确定"
|
cancelText="取消"
|
||||||
cancelText="取消"
|
>
|
||||||
>
|
<a-button type="danger">加入黑名单</a-button>
|
||||||
<a-button type="danger">加入黑名单</a-button>
|
</a-popconfirm>
|
||||||
</a-popconfirm>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -43,12 +43,13 @@
|
||||||
:sm="24"
|
:sm="24"
|
||||||
>
|
>
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleQuery()"
|
@click="handleQuery()"
|
||||||
>查询</a-button>
|
>查询</a-button>
|
||||||
<a-button @click="handleResetParam()">重置</a-button>
|
<a-button @click="handleResetParam()">重置</a-button>
|
||||||
|
</a-space>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -207,29 +207,29 @@
|
||||||
v-if="themeConfigurations.length>0"
|
v-if="themeConfigurations.length>0"
|
||||||
class="w-full"
|
class="w-full"
|
||||||
>
|
>
|
||||||
<a-button
|
<a-space>
|
||||||
v-if="!this.isMobile() && theme.activated && viewMode"
|
<a-button
|
||||||
type="primary"
|
v-if="!this.isMobile() && theme.activated && viewMode"
|
||||||
@click="toggleViewMode"
|
type="primary"
|
||||||
class="mr-2"
|
@click="toggleViewMode"
|
||||||
ghost
|
ghost
|
||||||
>普通模式</a-button>
|
>普通模式</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
v-else-if="!this.isMobile() && theme.activated && !viewMode"
|
v-else-if="!this.isMobile() && theme.activated && !viewMode"
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@click="toggleViewMode"
|
@click="toggleViewMode"
|
||||||
class="mr-2"
|
>预览模式</a-button>
|
||||||
>预览模式</a-button>
|
<ReactiveButton
|
||||||
<ReactiveButton
|
type="primary"
|
||||||
type="primary"
|
@click="handleSaveSettings"
|
||||||
@click="handleSaveSettings"
|
@callback="saveErrored=false"
|
||||||
@callback="saveErrored=false"
|
:loading="saving"
|
||||||
:loading="saving"
|
:errored="saveErrored"
|
||||||
:errored="saveErrored"
|
text="保存"
|
||||||
text="保存"
|
loadedText="保存成功"
|
||||||
loadedText="保存成功"
|
erroredText="保存失败"
|
||||||
erroredText="保存失败"
|
></ReactiveButton>
|
||||||
></ReactiveButton>
|
</a-space>
|
||||||
</footer-tool-bar>
|
</footer-tool-bar>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -43,31 +43,30 @@
|
||||||
<AttachmentDrawer v-model="attachmentDrawerVisible" />
|
<AttachmentDrawer v-model="attachmentDrawerVisible" />
|
||||||
|
|
||||||
<footer-tool-bar :style="{ width: isSideMenu() && isDesktop() ? `calc(100% - ${sidebarOpened ? 256 : 80}px)` : '100%'}">
|
<footer-tool-bar :style="{ width: isSideMenu() && isDesktop() ? `calc(100% - ${sidebarOpened ? 256 : 80}px)` : '100%'}">
|
||||||
<ReactiveButton
|
<a-space>
|
||||||
type="danger"
|
<ReactiveButton
|
||||||
class="mr-2"
|
type="danger"
|
||||||
@click="handleSaveDraft(false)"
|
@click="handleSaveDraft(false)"
|
||||||
@callback="draftSavederrored = false"
|
@callback="draftSavederrored = false"
|
||||||
:loading="draftSaving"
|
:loading="draftSaving"
|
||||||
:errored="draftSavederrored"
|
:errored="draftSavederrored"
|
||||||
text="保存草稿"
|
text="保存草稿"
|
||||||
loadedText="保存成功"
|
loadedText="保存成功"
|
||||||
erroredText="保存失败"
|
erroredText="保存失败"
|
||||||
></ReactiveButton>
|
></ReactiveButton>
|
||||||
<a-button
|
<a-button
|
||||||
@click="handlePreview"
|
@click="handlePreview"
|
||||||
class="mr-2"
|
:loading="previewSaving"
|
||||||
:loading="previewSaving"
|
>预览</a-button>
|
||||||
>预览</a-button>
|
<a-button
|
||||||
<a-button
|
type="primary"
|
||||||
type="primary"
|
@click="postSettingVisible = true"
|
||||||
@click="postSettingVisible = true"
|
>发布</a-button>
|
||||||
class="mr-2"
|
<a-button
|
||||||
>发布</a-button>
|
type="dashed"
|
||||||
<a-button
|
@click="attachmentDrawerVisible = true"
|
||||||
type="dashed"
|
>附件库</a-button>
|
||||||
@click="attachmentDrawerVisible = true"
|
</a-space>
|
||||||
>附件库</a-button>
|
|
||||||
</footer-tool-bar>
|
</footer-tool-bar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -110,9 +109,9 @@ export default {
|
||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
// Get post id from query
|
// Get post id from query
|
||||||
const postId = to.query.postId
|
const postId = to.query.postId
|
||||||
next(vm => {
|
next((vm) => {
|
||||||
if (postId) {
|
if (postId) {
|
||||||
postApi.get(postId).then(response => {
|
postApi.get(postId).then((response) => {
|
||||||
const post = response.data.data
|
const post = response.data.data
|
||||||
vm.postToStage = post
|
vm.postToStage = post
|
||||||
vm.selectedTagIds = post.tagIds
|
vm.selectedTagIds = post.tagIds
|
||||||
|
@ -148,7 +147,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: '当前页面数据未保存,确定要离开吗?',
|
title: '当前页面数据未保存,确定要离开吗?',
|
||||||
content: h => <div style="color:red;">如果离开当面页面,你的数据很可能会丢失!</div>,
|
content: (h) => <div style="color:red;">如果离开当面页面,你的数据很可能会丢失!</div>,
|
||||||
onOk() {
|
onOk() {
|
||||||
next()
|
next()
|
||||||
},
|
},
|
||||||
|
@ -210,7 +209,7 @@ export default {
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.draftSavederrored = true
|
this.draftSavederrored = true
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
this.postToStage = response.data.data
|
this.postToStage = response.data.data
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
@ -226,7 +225,7 @@ export default {
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.draftSavederrored = true
|
this.draftSavederrored = true
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
this.postToStage = response.data.data
|
this.postToStage = response.data.data
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
@ -244,11 +243,11 @@ export default {
|
||||||
this.previewSaving = true
|
this.previewSaving = true
|
||||||
if (this.postToStage.id) {
|
if (this.postToStage.id) {
|
||||||
// Update the post
|
// Update the post
|
||||||
postApi.update(this.postToStage.id, this.postToStage, false).then(response => {
|
postApi.update(this.postToStage.id, this.postToStage, false).then((response) => {
|
||||||
this.$log.debug('Updated post', response.data.data)
|
this.$log.debug('Updated post', response.data.data)
|
||||||
postApi
|
postApi
|
||||||
.preview(this.postToStage.id)
|
.preview(this.postToStage.id)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
window.open(response.data, '_blank')
|
window.open(response.data, '_blank')
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
@ -259,12 +258,12 @@ export default {
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Create the post
|
// Create the post
|
||||||
postApi.create(this.postToStage, false).then(response => {
|
postApi.create(this.postToStage, false).then((response) => {
|
||||||
this.$log.debug('Created post', response.data.data)
|
this.$log.debug('Created post', response.data.data)
|
||||||
this.postToStage = response.data.data
|
this.postToStage = response.data.data
|
||||||
postApi
|
postApi
|
||||||
.preview(this.postToStage.id)
|
.preview(this.postToStage.id)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
window.open(response.data, '_blank')
|
window.open(response.data, '_blank')
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
@ -64,12 +64,13 @@
|
||||||
:sm="24"
|
:sm="24"
|
||||||
>
|
>
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleQuery()"
|
@click="handleQuery()"
|
||||||
>查询</a-button>
|
>查询</a-button>
|
||||||
<a-button @click="handleResetParam()">重置</a-button>
|
<a-button @click="handleResetParam()">重置</a-button>
|
||||||
|
</a-space>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -105,22 +105,22 @@
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
v-if="categoryFormVisible"
|
v-if="categoryFormVisible"
|
||||||
@click="handlerCreateCategory"
|
@click="handlerCreateCategory"
|
||||||
>保存</a-button>
|
>保存</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
class="mr-2"
|
v-if="!categoryFormVisible"
|
||||||
v-if="!categoryFormVisible"
|
@click="categoryFormVisible = true"
|
||||||
@click="categoryFormVisible = true"
|
>新增</a-button>
|
||||||
>新增</a-button>
|
<a-button
|
||||||
<a-button
|
v-if="categoryFormVisible"
|
||||||
v-if="categoryFormVisible"
|
@click="categoryFormVisible = false"
|
||||||
@click="categoryFormVisible = false"
|
>取消</a-button>
|
||||||
>取消</a-button>
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -276,32 +276,32 @@
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<a-button
|
<a-space>
|
||||||
class="mr-2"
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@click="advancedVisible = true"
|
@click="advancedVisible = true"
|
||||||
>高级</a-button>
|
>高级</a-button>
|
||||||
<ReactiveButton
|
<ReactiveButton
|
||||||
type="danger"
|
type="danger"
|
||||||
v-if="saveDraftButton"
|
v-if="saveDraftButton"
|
||||||
class="mr-2"
|
@click="handleDraftClick"
|
||||||
@click="handleDraftClick"
|
@callback="handleSavedCallback"
|
||||||
@callback="handleSavedCallback"
|
:loading="draftSaving"
|
||||||
:loading="draftSaving"
|
:errored="draftSavedErrored"
|
||||||
:errored="draftSavedErrored"
|
text="保存草稿"
|
||||||
text="保存草稿"
|
loadedText="保存成功"
|
||||||
loadedText="保存成功"
|
erroredText="保存失败"
|
||||||
erroredText="保存失败"
|
></ReactiveButton>
|
||||||
></ReactiveButton>
|
<ReactiveButton
|
||||||
<ReactiveButton
|
@click="handlePublishClick"
|
||||||
@click="handlePublishClick"
|
@callback="handleSavedCallback"
|
||||||
@callback="handleSavedCallback"
|
:loading="saving"
|
||||||
:loading="saving"
|
:errored="savedErrored"
|
||||||
:errored="savedErrored"
|
:text="`${selectedPost.id?'保存':'发布'}`"
|
||||||
:text="`${selectedPost.id?'保存':'发布'}`"
|
:loadedText="`${selectedPost.id?'保存':'发布'}成功`"
|
||||||
:loadedText="`${selectedPost.id?'保存':'发布'}成功`"
|
:erroredText="`${selectedPost.id?'保存':'发布'}失败`"
|
||||||
:erroredText="`${selectedPost.id?'保存':'发布'}失败`"
|
></ReactiveButton>
|
||||||
></ReactiveButton>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -38,31 +38,30 @@
|
||||||
|
|
||||||
<AttachmentDrawer v-model="attachmentDrawerVisible" />
|
<AttachmentDrawer v-model="attachmentDrawerVisible" />
|
||||||
<footer-tool-bar :style="{ width: isSideMenu() && isDesktop() ? `calc(100% - ${sidebarOpened ? 256 : 80}px)` : '100%'}">
|
<footer-tool-bar :style="{ width: isSideMenu() && isDesktop() ? `calc(100% - ${sidebarOpened ? 256 : 80}px)` : '100%'}">
|
||||||
<ReactiveButton
|
<a-space>
|
||||||
type="danger"
|
<ReactiveButton
|
||||||
class="mr-2"
|
type="danger"
|
||||||
@click="handleSaveDraft(false)"
|
@click="handleSaveDraft(false)"
|
||||||
@callback="draftSavederrored = false"
|
@callback="draftSavederrored = false"
|
||||||
:loading="draftSaving"
|
:loading="draftSaving"
|
||||||
:errored="draftSavederrored"
|
:errored="draftSavederrored"
|
||||||
text="保存草稿"
|
text="保存草稿"
|
||||||
loadedText="保存成功"
|
loadedText="保存成功"
|
||||||
erroredText="保存失败"
|
erroredText="保存失败"
|
||||||
></ReactiveButton>
|
></ReactiveButton>
|
||||||
<a-button
|
<a-button
|
||||||
@click="handlePreview"
|
@click="handlePreview"
|
||||||
class="mr-2"
|
:loading="previewSaving"
|
||||||
:loading="previewSaving"
|
>预览</a-button>
|
||||||
>预览</a-button>
|
<a-button
|
||||||
<a-button
|
type="primary"
|
||||||
type="primary"
|
@click="sheetSettingVisible = true"
|
||||||
class="mr-2"
|
>发布</a-button>
|
||||||
@click="sheetSettingVisible = true"
|
<a-button
|
||||||
>发布</a-button>
|
type="dashed"
|
||||||
<a-button
|
@click="attachmentDrawerVisible = true"
|
||||||
type="dashed"
|
>附件库</a-button>
|
||||||
@click="attachmentDrawerVisible = true"
|
</a-space>
|
||||||
>附件库</a-button>
|
|
||||||
</footer-tool-bar>
|
</footer-tool-bar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -192,32 +192,32 @@
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
|
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<a-button
|
<a-space>
|
||||||
class="mr-2"
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@click="advancedVisible = true"
|
@click="advancedVisible = true"
|
||||||
>高级</a-button>
|
>高级</a-button>
|
||||||
<ReactiveButton
|
<ReactiveButton
|
||||||
type="danger"
|
type="danger"
|
||||||
v-if="saveDraftButton"
|
v-if="saveDraftButton"
|
||||||
class="mr-2"
|
@click="handleDraftClick"
|
||||||
@click="handleDraftClick"
|
@callback="handleSavedCallback"
|
||||||
@callback="handleSavedCallback"
|
:loading="draftSaving"
|
||||||
:loading="draftSaving"
|
:errored="draftSavedErrored"
|
||||||
:errored="draftSavedErrored"
|
text="保存草稿"
|
||||||
text="保存草稿"
|
loadedText="保存成功"
|
||||||
loadedText="保存成功"
|
erroredText="保存失败"
|
||||||
erroredText="保存失败"
|
></ReactiveButton>
|
||||||
></ReactiveButton>
|
<ReactiveButton
|
||||||
<ReactiveButton
|
@click="handlePublishClick"
|
||||||
@click="handlePublishClick"
|
@callback="handleSavedCallback"
|
||||||
@callback="handleSavedCallback"
|
:loading="saving"
|
||||||
:loading="saving"
|
:errored="savedErrored"
|
||||||
:errored="savedErrored"
|
:text="`${selectedSheet.id?'保存':'发布'}`"
|
||||||
:text="`${selectedSheet.id?'保存':'发布'}`"
|
:loadedText="`${selectedSheet.id?'保存':'发布'}成功`"
|
||||||
:loadedText="`${selectedSheet.id?'保存':'发布'}成功`"
|
:erroredText="`${selectedSheet.id?'保存':'发布'}失败`"
|
||||||
:erroredText="`${selectedSheet.id?'保存':'发布'}失败`"
|
></ReactiveButton>
|
||||||
></ReactiveButton>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -43,12 +43,13 @@
|
||||||
:sm="24"
|
:sm="24"
|
||||||
>
|
>
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleQuery()"
|
@click="handleQuery()"
|
||||||
>查询</a-button>
|
>查询</a-button>
|
||||||
<a-button @click="resetParam()">重置</a-button>
|
<a-button @click="resetParam()">重置</a-button>
|
||||||
|
</a-space>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -46,12 +46,13 @@
|
||||||
:sm="24"
|
:sm="24"
|
||||||
>
|
>
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleQuery()"
|
@click="handleQuery()"
|
||||||
>查询</a-button>
|
>查询</a-button>
|
||||||
<a-button @click="resetParam()">重置</a-button>
|
<a-button @click="resetParam()">重置</a-button>
|
||||||
|
</a-space>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -289,26 +290,26 @@
|
||||||
/>
|
/>
|
||||||
<a-divider class="divider-transparent" />
|
<a-divider class="divider-transparent" />
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<a-button
|
<a-space>
|
||||||
type="dashed"
|
<a-button
|
||||||
class="mr-2"
|
type="dashed"
|
||||||
@click="editable = true"
|
@click="editable = true"
|
||||||
v-if="!editable"
|
v-if="!editable"
|
||||||
>编辑</a-button>
|
>编辑</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="mr-2"
|
@click="handleCreateOrUpdate"
|
||||||
@click="handleCreateOrUpdate"
|
v-else
|
||||||
v-else
|
>保存</a-button>
|
||||||
>保存</a-button>
|
<a-popconfirm
|
||||||
<a-popconfirm
|
title="你确定要删除该图片?"
|
||||||
title="你确定要删除该图片?"
|
okText="确定"
|
||||||
okText="确定"
|
cancelText="取消"
|
||||||
cancelText="取消"
|
@confirm="handleDeletePhoto"
|
||||||
@confirm="handleDeletePhoto"
|
>
|
||||||
>
|
<a-button type="danger">删除</a-button>
|
||||||
<a-button type="danger">删除</a-button>
|
</a-popconfirm>
|
||||||
</a-popconfirm>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -56,24 +56,25 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider class="divider-transparent" />
|
<a-divider class="divider-transparent" />
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<ReactiveButton
|
<a-space>
|
||||||
type="primary"
|
<ReactiveButton
|
||||||
class="mr-2"
|
type="primary"
|
||||||
icon="download"
|
icon="download"
|
||||||
@click="handleBackupClick"
|
@click="handleBackupClick"
|
||||||
@callback="handleBackupedCallback"
|
@callback="handleBackupedCallback"
|
||||||
:loading="backuping"
|
:loading="backuping"
|
||||||
:errored="backupErrored"
|
:errored="backupErrored"
|
||||||
text="备份"
|
text="备份"
|
||||||
loadedText="备份成功"
|
loadedText="备份成功"
|
||||||
erroredText="备份失败"
|
erroredText="备份失败"
|
||||||
></ReactiveButton>
|
></ReactiveButton>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
icon="reload"
|
icon="reload"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="handleListBackups"
|
@click="handleListBackups"
|
||||||
>刷新</a-button>
|
>刷新</a-button>
|
||||||
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -56,24 +56,25 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-divider class="divider-transparent" />
|
<a-divider class="divider-transparent" />
|
||||||
<div class="bottom-control">
|
<div class="bottom-control">
|
||||||
<ReactiveButton
|
<a-space>
|
||||||
type="primary"
|
<ReactiveButton
|
||||||
class="mr-2"
|
type="primary"
|
||||||
icon="download"
|
icon="download"
|
||||||
@click="handleExportClick"
|
@click="handleExportClick"
|
||||||
@callback="handleBackupedCallback"
|
@callback="handleBackupedCallback"
|
||||||
:loading="backuping"
|
:loading="backuping"
|
||||||
:errored="backupErrored"
|
:errored="backupErrored"
|
||||||
text="备份"
|
text="备份"
|
||||||
loadedText="备份成功"
|
loadedText="备份成功"
|
||||||
erroredText="备份失败"
|
erroredText="备份失败"
|
||||||
></ReactiveButton>
|
></ReactiveButton>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
icon="reload"
|
icon="reload"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="handleListBackups"
|
@click="handleListBackups"
|
||||||
>刷新</a-button>
|
>刷新</a-button>
|
||||||
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -15,25 +15,26 @@
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-popconfirm
|
<a-space>
|
||||||
:title="'修改配置文件之后需重启才能生效,是否继续?'"
|
<a-popconfirm
|
||||||
okText="确定"
|
:title="'修改配置文件之后需重启才能生效,是否继续?'"
|
||||||
cancelText="取消"
|
okText="确定"
|
||||||
@confirm="handleUpdateConfig()"
|
cancelText="取消"
|
||||||
>
|
@confirm="handleUpdateConfig()"
|
||||||
<a-button
|
>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
>保存</a-button>
|
>保存</a-button>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
:title="'你确定要重启吗?'"
|
:title="'你确定要重启吗?'"
|
||||||
okText="确定"
|
okText="确定"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
@confirm="handleRestartApplication()"
|
@confirm="handleRestartApplication()"
|
||||||
>
|
>
|
||||||
<a-button type="danger">重启</a-button>
|
<a-button type="danger">重启</a-button>
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -43,12 +43,13 @@
|
||||||
:sm="24"
|
:sm="24"
|
||||||
>
|
>
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button
|
<a-space>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleQuery()"
|
@click="handleQuery()"
|
||||||
>查询</a-button>
|
>查询</a-button>
|
||||||
<a-button @click="handleResetParam()">重置</a-button>
|
<a-button @click="handleResetParam()">重置</a-button>
|
||||||
|
</a-space>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -9,26 +9,27 @@
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-select
|
<a-space>
|
||||||
defaultValue="200"
|
<a-select
|
||||||
v-model="logLines"
|
defaultValue="200"
|
||||||
@change="handleLoadLogsLines"
|
v-model="logLines"
|
||||||
style="margin-right: 8px;width: 100px"
|
@change="handleLoadLogsLines"
|
||||||
>
|
style="width: 100px"
|
||||||
<a-select-option value="200">200 行</a-select-option>
|
>
|
||||||
<a-select-option value="500">500 行</a-select-option>
|
<a-select-option value="200">200 行</a-select-option>
|
||||||
<a-select-option value="800">800 行</a-select-option>
|
<a-select-option value="500">500 行</a-select-option>
|
||||||
<a-select-option value="1000">1000 行</a-select-option>
|
<a-select-option value="800">800 行</a-select-option>
|
||||||
</a-select>
|
<a-select-option value="1000">1000 行</a-select-option>
|
||||||
<a-button
|
</a-select>
|
||||||
type="primary"
|
<a-button
|
||||||
class="mr-2"
|
type="primary"
|
||||||
@click="handleLoadLogsLines()"
|
@click="handleLoadLogsLines()"
|
||||||
>刷新</a-button>
|
>刷新</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@click="handleDownloadLogFile()"
|
@click="handleDownloadLogFile()"
|
||||||
>下载</a-button>
|
>下载</a-button>
|
||||||
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue