Commit 78b882b34ccc898968e827a4ef0d1bca222256c9

Authored by ly525
1 parent d8238705

refactor: use webpack alias

front-end/h5/src/components/core/editor/canvas/edit.js
1 import { mapState, mapActions } from 'vuex' 1 import { mapState, mapActions } from 'vuex'
2 -import Shape from '../../support/shape'  
3 -import ContextMenu from '../../support/contexmenu' 2 +import Shape from 'core/support/shape'
  3 +import ContextMenu from 'core/support/contexmenu'
4 4
5 export default { 5 export default {
6 props: ['elements', 'handleClickElementProp', 'handleClickCanvasProp'], 6 props: ['elements', 'handleClickElementProp', 'handleClickCanvasProp'],
front-end/h5/src/components/core/editor/fixed-tools/options.js
1 -import undoRedoHistory from '../../../../store/plugins/undo-redo/History' 1 +import undoRedoHistory from '@/store/plugins/undo-redo/History'
2 2
3 const fixedTools = [ 3 const fixedTools = [
4 { 4 {
front-end/h5/src/components/core/editor/right-panel/props.js
1 import Vue from 'vue' 1 import Vue from 'vue'
2 import { mapState, mapActions } from 'vuex' 2 import { mapState, mapActions } from 'vuex'
3 import { getVM, getComponentsForPropsEditor } from '@/utils/element' 3 import { getVM, getComponentsForPropsEditor } from '@/utils/element'
4 -import '../../styles/props-config-panel.scss' 4 +import 'core/styles/props-config-panel.scss'
5 5
6 export default { 6 export default {
7 data: () => ({ 7 data: () => ({
front-end/h5/src/components/core/editor/index.js renamed to front-end/h5/src/components/core/index.js
@@ -2,15 +2,15 @@ import { mapState, mapActions } from 'vuex' @@ -2,15 +2,15 @@ import { mapState, mapActions } from 'vuex'
2 import Vue from 'vue' 2 import Vue from 'vue'
3 3
4 import 'core/support/index.js' 4 import 'core/support/index.js'
5 -import '../styles/index.scss' 5 +import 'core/styles/index.scss'
6 import 'animate.css' 6 import 'animate.css'
7 7
8 -import FixedTools from './fixed-tools/index'  
9 -import EditorRightPanel from './right-panel/index'  
10 -import EditorCanvas from './canvas/index'  
11 -import EditorActionMenu from './header/action-menu'  
12 -import EditorLeftPanel from './left-panel/index'  
13 -import PreviewDialog from './modals/preview.vue' 8 +import FixedTools from 'core/editor/fixed-tools/index'
  9 +import EditorRightPanel from 'core/editor/right-panel/index'
  10 +import EditorCanvas from 'core/editor/canvas/index'
  11 +import EditorActionMenu from 'core/editor/header/action-menu'
  12 +import EditorLeftPanel from 'core/editor/left-panel/index'
  13 +import PreviewDialog from 'core/editor/modals/preview.vue'
14 import Header from '@/components/common/header/index' 14 import Header from '@/components/common/header/index'
15 import Feedback from '@/components/common/feedback/index' 15 import Feedback from '@/components/common/feedback/index'
16 import AdjustLineV from 'core/support/adjust-line/vertical' 16 import AdjustLineV from 'core/support/adjust-line/vertical'
front-end/h5/src/components/core/models/page.js
1 -import Element from '../models/element'  
2 -import LbpBackground from '../plugins/lbp-background' 1 +import Element from 'core/models/element'
  2 +import LbpBackground from 'core/plugins/lbp-background'
3 3
4 class Page { 4 class Page {
5 constructor (page = {}) { 5 constructor (page = {}) {
front-end/h5/src/components/core/plugins/index.js
@@ -17,7 +17,7 @@ import LbpQQMap from 'core/plugins/lbp-qq-map/src' @@ -17,7 +17,7 @@ import LbpQQMap from 'core/plugins/lbp-qq-map/src'
17 import LbpLineChart from 'core/plugins/charts/line' 17 import LbpLineChart from 'core/plugins/charts/line'
18 import LbpTable from 'core/plugins/lbp-table' 18 import LbpTable from 'core/plugins/lbp-table'
19 import LbpNewsList from 'core/plugins/lbp-news-list' 19 import LbpNewsList from 'core/plugins/lbp-news-list'
20 -// import LbpTabs from '../components/plugins/lbp-tabs' 20 +// import LbpTabs from 'core/components/plugins/lbp-tabs'
21 21
22 export const pluginsList = [ 22 export const pluginsList = [
23 { 23 {
front-end/h5/src/components/core/plugins/styles/bg-music.scss
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 right: 0; 26 right: 0;
27 top: 0; 27 top: 0;
28 border-radius: 15px; 28 border-radius: 15px;
29 - background-image: url(../bg-music.svg); 29 + background-image: url(./bg-music.svg);
30 background-size: contain; 30 background-size: contain;
31 background-repeat: no-repeat; 31 background-repeat: no-repeat;
32 32
front-end/h5/src/components/core/plugins/bg-music.svg renamed to front-end/h5/src/components/core/plugins/styles/bg-music.svg
front-end/h5/src/components/core/support/image-gallery/tabs/personal.js
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 * https://github.com/ly525/luban-h5/issues/138 2 * https://github.com/ly525/luban-h5/issues/138
3 */ 3 */
4 import axios from 'axios' 4 import axios from 'axios'
5 -import ImageItem from '../components/image-item.js'  
6 -import Uploader from '../components/uploader.js' 5 +import ImageItem from 'core/support/image-gallery/components/image-item.js'
  6 +import Uploader from 'core/support/image-gallery/components/uploader.js'
7 7
8 export default { 8 export default {
9 data: () => ({ 9 data: () => ({
front-end/h5/src/components/core/support/image-gallery/tabs/pixabay.js
@@ -2,14 +2,14 @@ @@ -2,14 +2,14 @@
2 * @Author: ly525 2 * @Author: ly525
3 * @Date: 2019-12-01 18:11:50 3 * @Date: 2019-12-01 18:11:50
4 * @LastEditors: ly525 4 * @LastEditors: ly525
5 - * @LastEditTime: 2020-01-13 00:48:13 5 + * @LastEditTime: 2020-10-11 00:01:25
6 * @FilePath: /luban-h5/front-end/h5/src/components/core/support/image-gallery/tabs/pixabay.js 6 * @FilePath: /luban-h5/front-end/h5/src/components/core/support/image-gallery/tabs/pixabay.js
7 * @Github: https://github.com/ly525/luban-h5 7 * @Github: https://github.com/ly525/luban-h5
8 * @Description: Do not edit 8 * @Description: Do not edit
9 * @Copyright 2018 - 2020 luban-h5. All Rights Reserved 9 * @Copyright 2018 - 2020 luban-h5. All Rights Reserved
10 */ 10 */
11 import axios from 'axios' 11 import axios from 'axios'
12 -import ImageItem from '../components/image-item.js' 12 +import ImageItem from 'core/support/image-gallery/components/image-item.js'
13 13
14 export default { 14 export default {
15 data: () => ({ 15 data: () => ({
front-end/h5/src/components/core/support/video-gallery/tabs/personal.js
1 /* 1 /*
2 * @Author: ly525 2 * @Author: ly525
3 * @Date: 2020-01-12 20:42:09 3 * @Date: 2020-01-12 20:42:09
4 - * @LastEditors : ly525  
5 - * @LastEditTime : 2020-01-13 00:39:29 4 + * @LastEditors: ly525
  5 + * @LastEditTime: 2020-10-11 00:01:40
6 * @FilePath: /luban-h5/front-end/h5/src/components/core/support/video-gallery/tabs/personal.js 6 * @FilePath: /luban-h5/front-end/h5/src/components/core/support/video-gallery/tabs/personal.js
7 * @Github: https://github.com/ly525/luban-h5 7 * @Github: https://github.com/ly525/luban-h5
8 * @Description: Do not edit 8 * @Description: Do not edit
9 * @Copyright 2018 - 2020 luban-h5. All Rights Reserved 9 * @Copyright 2018 - 2020 luban-h5. All Rights Reserved
10 */ 10 */
11 import axios from 'axios' 11 import axios from 'axios'
12 -import VideoItem from '../components/video-item.js'  
13 -import Uploader from '../components/uploader.js' 12 +import VideoItem from 'core/support/video-gallery/components/video-item.js'
  13 +import Uploader from 'core/support/video-gallery/components/uploader.js'
14 14
15 export default { 15 export default {
16 data: () => ({ 16 data: () => ({
front-end/h5/src/router.js
@@ -36,11 +36,6 @@ export default new Router({ @@ -36,11 +36,6 @@ export default new Router({
36 ] 36 ]
37 }, 37 },
38 { 38 {
39 - path: '/about',  
40 - name: 'about',  
41 - component: () => import('./views/About.vue')  
42 - },  
43 - {  
44 path: '/editor/:workId', // #!zh 编辑器页面,核心功能部分 39 path: '/editor/:workId', // #!zh 编辑器页面,核心功能部分
45 name: 'editor', 40 name: 'editor',
46 component: () => import('./views/Editor.vue') 41 component: () => import('./views/Editor.vue')
front-end/h5/src/views/Editor.vue
1 <script> 1 <script>
2 -import CoreEditor from 'core/editor/index.js' 2 +import CoreEditor from 'core/index.js'
3 export default { 3 export default {
4 render () { 4 render () {
5 return ( 5 return (