mirror of https://github.com/halo-dev/halo-admin
Remove useless files or codes.
parent
09d80a298a
commit
99dc4f6b1e
|
@ -1,153 +0,0 @@
|
|||
<template>
|
||||
<div :class="['description-list', size, layout === 'vertical' ? 'vertical': 'horizontal']">
|
||||
<div v-if="title" class="title">{{ title }}</div>
|
||||
<a-row>
|
||||
<slot></slot>
|
||||
</a-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Col } from 'ant-design-vue/es/grid/'
|
||||
|
||||
const Item = {
|
||||
name: 'DetailListItem',
|
||||
props: {
|
||||
term: {
|
||||
type: String,
|
||||
default: '',
|
||||
required: false
|
||||
}
|
||||
},
|
||||
inject: {
|
||||
col: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
render() {
|
||||
return (
|
||||
<Col {...{ props: responsive[this.col] }}>
|
||||
<div class="term">{this.$props.term}</div>
|
||||
<div class="content">{this.$slots.default}</div>
|
||||
</Col>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const responsive = {
|
||||
1: { xs: 24 },
|
||||
2: { xs: 24, sm: 12 },
|
||||
3: { xs: 24, sm: 12, md: 8 },
|
||||
4: { xs: 24, sm: 12, md: 6 }
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'DetailList',
|
||||
Item: Item,
|
||||
components: {
|
||||
Col
|
||||
},
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: '',
|
||||
required: false
|
||||
},
|
||||
col: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 3
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'large'
|
||||
},
|
||||
layout: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'horizontal'
|
||||
}
|
||||
},
|
||||
provide() {
|
||||
return {
|
||||
col: this.col > 4 ? 4 : this.col
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
.description-list {
|
||||
|
||||
.title {
|
||||
color: rgba(0,0,0,.85);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/deep/ .term {
|
||||
color: rgba(0,0,0,.85);
|
||||
display: table-cell;
|
||||
line-height: 20px;
|
||||
margin-right: 8px;
|
||||
padding-bottom: 16px;
|
||||
white-space: nowrap;
|
||||
|
||||
&:not(:empty):after {
|
||||
content: ":";
|
||||
margin: 0 8px 0 2px;
|
||||
position: relative;
|
||||
top: -.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/deep/ .content {
|
||||
color: rgba(0,0,0,.65);
|
||||
display: table-cell;
|
||||
min-height: 22px;
|
||||
line-height: 22px;
|
||||
padding-bottom: 16px;
|
||||
width: 100%;
|
||||
&:empty {
|
||||
content: ' ';
|
||||
height: 38px;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
&.small {
|
||||
|
||||
.title {
|
||||
font-size: 14px;
|
||||
color: rgba(0, 0, 0, .65);
|
||||
font-weight: normal;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
/deep/ .term, .content {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
&.large {
|
||||
/deep/ .term, .content {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
.term {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
/deep/ .term, .content {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,2 +0,0 @@
|
|||
import DescriptionList from './DescriptionList'
|
||||
export default DescriptionList
|
|
@ -191,7 +191,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import DetailList from '@/components/Tools/DetailList'
|
||||
import SettingItem from '@/components/SettingDrawer/SettingItem'
|
||||
import config from '@/config/defaultSettings'
|
||||
import { updateTheme, colorList } from '@/components/Tools/setting'
|
||||
|
@ -199,7 +198,6 @@ import { mixin, mixinDevice } from '@/utils/mixin'
|
|||
|
||||
export default {
|
||||
components: {
|
||||
DetailList,
|
||||
SettingItem
|
||||
},
|
||||
mixins: [mixin, mixinDevice],
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<script>
|
||||
/* WARNING: 兼容老引入,请勿继续使用 */
|
||||
import DescriptionList from '@/components/DescriptionList'
|
||||
export default DescriptionList
|
||||
</script>
|
|
@ -1,40 +0,0 @@
|
|||
<template>
|
||||
<div class="side-profile">
|
||||
<router-link :to="{ name:'Dashboard' }">
|
||||
<a-avatar class="avatar" size="large" src="https://gravatar.loli.net/avatar/?s=256&d=mm"/>
|
||||
</router-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'SideProfile',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: 'Halo Dashboard',
|
||||
required: false
|
||||
},
|
||||
showTitle: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
required: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scope>
|
||||
.sider .side-profile {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 72px;
|
||||
line-height: 72px;
|
||||
padding-left: 24px;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
overflow: hidden;
|
||||
z-index: 9;
|
||||
}
|
||||
</style>
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
body {
|
||||
overflow-y: scroll;
|
||||
padding: 0!important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.layout.ant-layout {
|
||||
|
@ -572,6 +572,18 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.ant-comment {
|
||||
.ant-comment-actions {
|
||||
margin-bottom: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-comment-inner {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.bottom-control {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
|
@ -598,7 +610,8 @@ body {
|
|||
-webkit-box-direction: normal;
|
||||
-ms-flex-flow: row wrap;
|
||||
flex-flow: row wrap;
|
||||
.ant-pagination-options-size-changer.ant-select{
|
||||
margin:0
|
||||
|
||||
.ant-pagination-options-size-changer.ant-select {
|
||||
margin: 0
|
||||
}
|
||||
}
|
|
@ -3,13 +3,11 @@ import Vue from 'vue'
|
|||
// pro components
|
||||
import Ellipsis from '@/components/Ellipsis'
|
||||
import FooterToolbar from '@/components/FooterToolbar'
|
||||
import DescriptionList from '@/components/DescriptionList'
|
||||
import Upload from '@/components/Upload/Upload'
|
||||
|
||||
const _components = {
|
||||
Ellipsis,
|
||||
FooterToolbar,
|
||||
DescriptionList,
|
||||
Upload
|
||||
}
|
||||
|
||||
|
|
|
@ -172,18 +172,18 @@ export const asyncRouterMap = [
|
|||
component: () => import('@/views/system/OptionForm'),
|
||||
meta: { title: '博客设置', hiddenHeaderContent: false }
|
||||
},
|
||||
{
|
||||
path: '/system/backup',
|
||||
name: 'BackupList',
|
||||
component: () => import('@/views/system/BackupList'),
|
||||
meta: { title: '博客备份', hiddenHeaderContent: false }
|
||||
},
|
||||
{
|
||||
path: '/system/tools',
|
||||
name: 'ToolList',
|
||||
component: () => import('@/views/system/ToolList'),
|
||||
meta: { title: '小工具', hiddenHeaderContent: false }
|
||||
},
|
||||
// {
|
||||
// path: '/system/backup',
|
||||
// name: 'BackupList',
|
||||
// component: () => import('@/views/system/BackupList'),
|
||||
// meta: { title: '博客备份', hiddenHeaderContent: false }
|
||||
// },
|
||||
// {
|
||||
// path: '/system/tools',
|
||||
// name: 'ToolList',
|
||||
// component: () => import('@/views/system/ToolList'),
|
||||
// meta: { title: '小工具', hiddenHeaderContent: false }
|
||||
// },
|
||||
{
|
||||
path: '/system/about',
|
||||
name: 'About',
|
||||
|
|
|
@ -43,6 +43,7 @@ export function timeAgo(time) {
|
|||
}
|
||||
return hours + ' 小时前'
|
||||
}
|
||||
if (days < 0) return '刚刚'
|
||||
if (days < 5) {
|
||||
return days + ' 天前'
|
||||
} else {
|
||||
|
|
|
@ -325,15 +325,3 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.ant-comment {
|
||||
.ant-comment-actions {
|
||||
margin-bottom: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
}
|
||||
.ant-comment-inner {
|
||||
padding: 0 !important;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -76,7 +76,10 @@
|
|||
</router-link>
|
||||
<a-dropdown v-show="queryParam.status!=null && queryParam.status!=''">
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="queryParam.status === 'DRAFT'">
|
||||
<a-menu-item
|
||||
key="1"
|
||||
v-if="queryParam.status === 'DRAFT'"
|
||||
>
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
@click="handleDeleteMore"
|
||||
|
@ -84,7 +87,10 @@
|
|||
<span>发布</span>
|
||||
</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="2" v-if="queryParam.status === 'PUBLISHED' || queryParam.status ==='DRAFT'">
|
||||
<a-menu-item
|
||||
key="2"
|
||||
v-if="queryParam.status === 'PUBLISHED' || queryParam.status ==='DRAFT'"
|
||||
>
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
@click="handleRecycleMore"
|
||||
|
@ -92,7 +98,10 @@
|
|||
<span>移到回收站</span>
|
||||
</a>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="3" v-if="queryParam.status === 'RECYCLE'">
|
||||
<a-menu-item
|
||||
key="3"
|
||||
v-if="queryParam.status === 'RECYCLE'"
|
||||
>
|
||||
<a
|
||||
href="javascript:void(0);"
|
||||
@click="handleDeleteMore"
|
||||
|
@ -119,6 +128,12 @@
|
|||
:loading="postsLoading"
|
||||
:pagination="false"
|
||||
>
|
||||
<ellipsis
|
||||
:length="25"
|
||||
tooltip
|
||||
slot="postTitle"
|
||||
slot-scope="postTitle"
|
||||
>{{ postTitle }}</ellipsis>
|
||||
<span
|
||||
slot="status"
|
||||
slot-scope="statusProperty"
|
||||
|
@ -238,7 +253,8 @@ export default {
|
|||
columns: [
|
||||
{
|
||||
title: '标题',
|
||||
dataIndex: 'title'
|
||||
dataIndex: 'title',
|
||||
scopedSlots: { customRender: 'postTitle' }
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
|
|
Loading…
Reference in New Issue