Skip to content

Commit

Permalink
First steps code splitting with Vite 3
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Aug 4, 2022
1 parent 2c787e6 commit 5a537cb
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion panel/dist/js/index.js

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions panel/dist/js/vendor.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions panel/dist/js/vuedraggable.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions panel/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@vue/test-utils": "^1.3.0",
"autoprefixer": "^10.4.7",
"c8": "^7.11.3",
"cypress": "^10.3.0",
"cypress": "^10.4.0",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
Expand Down
8 changes: 4 additions & 4 deletions panel/src/components/Forms/Writer/Writer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export default {
link: (editor) => {
this.$refs.linkDialog.open(editor.getMarkAttrs("link"));
},
email: () => {
this.$refs.emailDialog.open(this.editor.getMarkAttrs("email"));
email: (editor) => {
this.$refs.emailDialog.open(editor.getMarkAttrs("email"));
},
paste: this.paste,
toolbar: (toolbar) => {
Expand All @@ -174,13 +174,13 @@ export default {
}
},
update: (payload) => {
if (!this.editor) {
if (!payload.editor) {
return;
}
// compare documents to avoid minor HTML differences
// to cause unwanted updates
const jsonNew = JSON.stringify(this.editor.getJSON());
const jsonNew = JSON.stringify(payload.editor.getJSON());
const jsonOld = JSON.stringify(this.json);
if (jsonNew === jsonOld) {
Expand Down
4 changes: 1 addition & 3 deletions panel/src/components/Misc/Draggable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
</template>

<script>
import Draggable from "vuedraggable/src/vuedraggable";
/**
* The Draggable component implements the
* [Vue.Draggable](https://github.com/SortableJS/Vue.Draggable)
Expand All @@ -33,7 +31,7 @@ import Draggable from "vuedraggable/src/vuedraggable";
*/
export default {
components: {
draggable: Draggable
draggable: () => import("vuedraggable/src/vuedraggable")
},
props: {
data: Object,
Expand Down

0 comments on commit 5a537cb

Please sign in to comment.