Skip to content

Commit

Permalink
refactor: use webpack alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Oct 11, 2020
1 parent d823870 commit 78b882b
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 29 deletions.
4 changes: 2 additions & 2 deletions front-end/h5/src/components/core/editor/canvas/edit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mapState, mapActions } from 'vuex'
import Shape from '../../support/shape'
import ContextMenu from '../../support/contexmenu'
import Shape from 'core/support/shape'
import ContextMenu from 'core/support/contexmenu'

export default {
props: ['elements', 'handleClickElementProp', 'handleClickCanvasProp'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import undoRedoHistory from '../../../../store/plugins/undo-redo/History'
import undoRedoHistory from '@/store/plugins/undo-redo/History'

const fixedTools = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { mapState, mapActions } from 'vuex'
import { getVM, getComponentsForPropsEditor } from '@/utils/element'
import '../../styles/props-config-panel.scss'
import 'core/styles/props-config-panel.scss'

export default {
data: () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { mapState, mapActions } from 'vuex'
import Vue from 'vue'

import 'core/support/index.js'
import '../styles/index.scss'
import 'core/styles/index.scss'
import 'animate.css'

import FixedTools from './fixed-tools/index'
import EditorRightPanel from './right-panel/index'
import EditorCanvas from './canvas/index'
import EditorActionMenu from './header/action-menu'
import EditorLeftPanel from './left-panel/index'
import PreviewDialog from './modals/preview.vue'
import FixedTools from 'core/editor/fixed-tools/index'
import EditorRightPanel from 'core/editor/right-panel/index'
import EditorCanvas from 'core/editor/canvas/index'
import EditorActionMenu from 'core/editor/header/action-menu'
import EditorLeftPanel from 'core/editor/left-panel/index'
import PreviewDialog from 'core/editor/modals/preview.vue'
import Header from '@/components/common/header/index'
import Feedback from '@/components/common/feedback/index'
import AdjustLineV from 'core/support/adjust-line/vertical'
Expand Down
4 changes: 2 additions & 2 deletions front-end/h5/src/components/core/models/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Element from '../models/element'
import LbpBackground from '../plugins/lbp-background'
import Element from 'core/models/element'
import LbpBackground from 'core/plugins/lbp-background'

class Page {
constructor (page = {}) {
Expand Down
2 changes: 1 addition & 1 deletion front-end/h5/src/components/core/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import LbpQQMap from 'core/plugins/lbp-qq-map/src'
import LbpLineChart from 'core/plugins/charts/line'
import LbpTable from 'core/plugins/lbp-table'
import LbpNewsList from 'core/plugins/lbp-news-list'
// import LbpTabs from '../components/plugins/lbp-tabs'
// import LbpTabs from 'core/components/plugins/lbp-tabs'

export const pluginsList = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
right: 0;
top: 0;
border-radius: 15px;
background-image: url(../bg-music.svg);
background-image: url(./bg-music.svg);
background-size: contain;
background-repeat: no-repeat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* https://github.com/ly525/luban-h5/issues/138
*/
import axios from 'axios'
import ImageItem from '../components/image-item.js'
import Uploader from '../components/uploader.js'
import ImageItem from 'core/support/image-gallery/components/image-item.js'
import Uploader from 'core/support/image-gallery/components/uploader.js'

export default {
data: () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
* @Author: ly525
* @Date: 2019-12-01 18:11:50
* @LastEditors: ly525
* @LastEditTime: 2020-01-13 00:48:13
* @LastEditTime: 2020-10-11 00:01:25
* @FilePath: /luban-h5/front-end/h5/src/components/core/support/image-gallery/tabs/pixabay.js
* @Github: https://github.com/ly525/luban-h5
* @Description: Do not edit
* @Copyright 2018 - 2020 luban-h5. All Rights Reserved
*/
import axios from 'axios'
import ImageItem from '../components/image-item.js'
import ImageItem from 'core/support/image-gallery/components/image-item.js'

export default {
data: () => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*
* @Author: ly525
* @Date: 2020-01-12 20:42:09
* @LastEditors : ly525
* @LastEditTime : 2020-01-13 00:39:29
* @LastEditors: ly525
* @LastEditTime: 2020-10-11 00:01:40
* @FilePath: /luban-h5/front-end/h5/src/components/core/support/video-gallery/tabs/personal.js
* @Github: https://github.com/ly525/luban-h5
* @Description: Do not edit
* @Copyright 2018 - 2020 luban-h5. All Rights Reserved
*/
import axios from 'axios'
import VideoItem from '../components/video-item.js'
import Uploader from '../components/uploader.js'
import VideoItem from 'core/support/video-gallery/components/video-item.js'
import Uploader from 'core/support/video-gallery/components/uploader.js'

export default {
data: () => ({
Expand Down
5 changes: 0 additions & 5 deletions front-end/h5/src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ export default new Router({
}
]
},
{
path: '/about',
name: 'about',
component: () => import('./views/About.vue')
},
{
path: '/editor/:workId', // #!zh 编辑器页面,核心功能部分
name: 'editor',
Expand Down
2 changes: 1 addition & 1 deletion front-end/h5/src/views/Editor.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import CoreEditor from 'core/editor/index.js'
import CoreEditor from 'core/index.js'
export default {
render () {
return (
Expand Down

0 comments on commit 78b882b

Please sign in to comment.