Upgrade vue-cli to version 5 (#594)

* Upgrade to Vue CLI 5 (fails to compile)

* Upgrade versions with last few weeks of changes

* Updated to fork-ts-checker-webpack-plugin 7.2.3

* Remove package.json overrides in lieu of the fixed fork-ts-checker-webpack-plugin@6.5.1

* Fix svg importing

* Comments

* For debugging only: added infrastructureLogging to vue.config.js

* Now works on Windows, waiting on fork-ts-checker-webpack-plugin backport if possible

* Switch to the fixed fork-ts-checker-webpack-plugin@6.5.2

* Fix license checker build compilation

Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
Keavon Chambers
2022-04-26 01:47:13 -07:00
parent 265cc0fe32
commit 92ee3bbad3
8 changed files with 7381 additions and 17145 deletions

View File

@@ -35,12 +35,10 @@ export default defineComponent({
throw new Error("Layout row type does not exist");
},
},
data: () => {
return {
isWidgetRow,
isWidgetSection,
};
},
data: () => ({
isWidgetRow,
isWidgetSection,
}),
components: {
WidgetRow,
WidgetSection,

View File

@@ -84,13 +84,11 @@ const WidgetSection = defineComponent({
widgetData: { type: Object as PropType<WidgetSectionFromJsMessages>, required: true },
layoutTarget: { required: true },
},
data: () => {
return {
isWidgetRow,
isWidgetSection,
expanded: true,
};
},
data: () => ({
isWidgetRow,
isWidgetSection,
expanded: true,
}),
methods: {
updateLayout(widgetId: BigInt, value: unknown) {
this.editor.instance.update_layout(this.layoutTarget, widgetId, value);

View File

@@ -34,9 +34,7 @@ export function createJsDispatcher() {
// Messages with empty data are provided by wasm-bindgen as a string with the message name, like: "NameOfThisMessage"
const unwrappedMessageData = messageData[messageType] || {};
const isJsMessageConstructor = (fn: typeof messageConstructor): fn is typeof JsMessage => {
return "jsMessageMarker" in fn;
};
const isJsMessageConstructor = (fn: typeof messageConstructor): fn is typeof JsMessage => "jsMessageMarker" in fn;
let message: JsMessage;
if (isJsMessageConstructor(messageConstructor)) {
message = plainToInstance(messageConstructor, unwrappedMessageData);

View File

@@ -36,9 +36,7 @@ export function createDialogState(editor: EditorState) {
}
};
const dialogIsVisible = (): boolean => {
return state.visible;
};
const dialogIsVisible = (): boolean => state.visible;
const comingSoon = (issueNumber?: number): void => {
const bugMessage = `— but you can help add it!\nSee issue #${issueNumber} on GitHub.`;