code-structure.md
3.72 KB
Code Structure
Front End
It is recommended to look at router.js first, and then start with front-end/h5/src/views/Editor.vue. Here is the entrance to the Editor.
front-end/h5/src # source code for front end, includes: editor, work-manager, form-stat etc.
βββ assets
β βββ 403.svg
β βββ 404.svg
β βββ 500.svg
β βββ logo.png
β βββ placeholder-for-work.svg
β βββ unauth-page-illustration.svg
βββ components
β βββ core # core
β β βββ editor # editor module
β β β βββ canvas # cavasοΌedit model + preview mode
β β β β βββ edit.js # canvas for edit mode
β β β β βββ preview.js # canvas for preview mode
β β β βββ edit-panel # config panel for actions, plugin props, animation, actions etc.
β β β β βββ action.js #
β β β β βββ props.js #
β β β β βββ script.js #
β β β βββ header
β β β βββ modals
β β β β βββ preview.vue # preivew modal
β β β βββ shortcuts-panel # the shortcut buttons for plugins
β β β β βββ index.js
β β β β βββ shortcut-button.js
β β β βββ index.js
β β βββ models #
β β β βββ element.js #
β β β βββ page.js #
β β β βββ work.js #
β β βββ styles
β β β βββ index.scss
β β βββ support #
β β βββ shape.js # drag&drop to change the shape of an element
β βββ plugins # plugin list: button, form (submit button + input box), text, pictures etc.
β β βββ lbp-button.js
β β βββ lbp-form-button.js
β β βββ lbp-form-input.js
β β βββ lbp-picture-placeholder.jpg
β β βββ lbp-picture.js
β β βββ lbp-text.js
β βββ HelloWorld.vue
βββ constants #
β βββ api.js #
βββ mixins #
β βββ load-plugins.js # load plugins
βββ pages
β βββ editor # entry for editor
β βββ home
β βββ index
βββ store
β βββ modules
β β βββ editor.js
β β βββ element.js
β β βββ loading.js
β β βββ page.js
β β βββ user.js
β β βββ visible.js
β β βββ work.js
β βββ plugins # vuex plugins
β β βββ undo-redo #
β β βββ History.js
β β βββ index.js
β βββ index.js
βββ utils
β βββ element.js
β βββ http.js
β βββ strapi.js
βββ views
β βββ work-manager
β β βββ form-stat
β β β βββ column.js
β β β βββ detail.vue
β β β βββ index.vue
β β βββ index.vue
β β βββ list.vue
β βββ About.vue
β βββ Editor.vue # a wrapper around the core editor, where the list of plug-ins is loaded
β βββ Home.vue
βββ App.vue
βββ engine-entry.js # preview engine for previewing and viewing mobie page on your phone
βββ main.js # entry for editor + work-manager
βββ registerServiceWorker.js
βββ router.js #
Editor + work-manager (work management page) entry