Skip to content

Commit b394f5e

Browse files
committed
feat: Add media menagement
1 parent 6cf8777 commit b394f5e

21 files changed

+2754
-650
lines changed

coreui/package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coreui/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
"@coreui/coreui-vue-chartjs": "^1.0.0",
3030
"@coreui/icons": "^1.0.0-beta.3",
3131
"@coreui/vue": "coreui/coreui-vue#3.0.0-beta.3",
32+
"axios": "^0.19.0",
33+
"cropperjs": "^1.5.6",
3234
"vue": "^2.6.10",
33-
"vue-router": "^3.1.3",
34-
"axios": "^0.19.0"
35+
"vue-router": "^3.1.3"
3536
},
3637
"devDependencies": {
3738
"@vue/cli-plugin-babel": "^4.1.1",

coreui/src/assets/scss/_custom.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,13 @@
77
width: 1.2rem;
88
height: 1.2rem;
99
font-size: 1.2rem;
10-
}
10+
}
11+
12+
.click-file{
13+
cursor:pointer;
14+
}
15+
16+
#cropp-img-img{
17+
max-width:500px;
18+
max-height:500px;
19+
}

coreui/src/containers/TheHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
/>
2020
<CHeaderNav class="d-md-down-none mr-auto">
2121
<CHeaderNavItem class="px-3">
22-
<CHeaderNavLink to="/dashboard">
23-
Dashboard
22+
<CHeaderNavLink to="/media">
23+
Media
2424
</CHeaderNavLink>
2525
</CHeaderNavItem>
2626
<CHeaderNavItem class="px-3">

coreui/src/router/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const EditNote = () => import('@/views/notes/EditNote')
6565
const CreateNote = () => import('@/views/notes/CreateNote')
6666

6767
const EditMenu = () => import('@/views/menu/EditMenu')
68+
const Media = () => import('@/views/media/Media')
6869

6970
Vue.use(Router)
7071

@@ -88,6 +89,11 @@ function configRoutes () {
8889
name: 'Edit Menu',
8990
component: EditMenu
9091
},
92+
{
93+
path: 'media',
94+
name: 'Media',
95+
component: Media
96+
},
9197
{
9298
path: 'dashboard',
9399
name: 'Dashboard',

0 commit comments

Comments
 (0)