mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Clean up component files by removing 'name' property
This commit is contained in:
parent
47a748e446
commit
f367f12ca2
14 changed files with 53 additions and 36 deletions
10
.vscode/settings.json
vendored
10
.vscode/settings.json
vendored
|
@ -22,13 +22,13 @@
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
},
|
},
|
||||||
"rust-analyzer.rustfmt.extraArgs": [
|
"rust-analyzer.rustfmt.extraArgs": [
|
||||||
"--config", // Remove when rustfmt
|
"--config",
|
||||||
"match_block_trailing_comma=true", // 2.0 is released
|
"match_block_trailing_comma=true", // Remove when rustfmt2.0 is released https://github.com/rust-lang/rustfmt/issues/3380
|
||||||
"--config", // Remove when `control_brace_style` becomes stable
|
"--config",
|
||||||
"control_brace_style=ClosingNextLine" // https://github.com/rust-lang/rustfmt/issues/3377
|
"control_brace_style=ClosingNextLine" // Remove when `control_brace_style` becomes stable https://github.com/rust-lang/rustfmt/issues/3377
|
||||||
],
|
],
|
||||||
"rust-analyzer.diagnostics.disabled": [
|
"rust-analyzer.diagnostics.disabled": [
|
||||||
"missing-unsafe" // Remove when rust-analyzer bug fixes unsafe code on WASM JavaScript https://github.com/rust-analyzer/rust-analyzer/issues/5412
|
"missing-unsafe" // Remove when rust-analyzer bug fixes unsafe code on WASM JavaScript https://github.com/rust-analyzer/rust-analyzer/issues/5412
|
||||||
],
|
],
|
||||||
"vetur.format.options.useTabs": true,
|
"vetur.format.options.useTabs": true,
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
|
|
35
.vscode/vuecomp.code-snippets
vendored
Normal file
35
.vscode/vuecomp.code-snippets
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
// Place your Graphite workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
|
||||||
|
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
|
||||||
|
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
|
||||||
|
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||||
|
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
|
||||||
|
// Placeholders with the same ids are connected.
|
||||||
|
"Vue Component Template": {
|
||||||
|
"prefix": "vuecomp",
|
||||||
|
"body": [
|
||||||
|
"<template>",
|
||||||
|
"\t<${1:div}>",
|
||||||
|
"\t\t$0",
|
||||||
|
"\t</${1:div}>",
|
||||||
|
"</template>",
|
||||||
|
"",
|
||||||
|
"<style lang=\"scss\">",
|
||||||
|
"",
|
||||||
|
"</style>",
|
||||||
|
"",
|
||||||
|
"<script lang=\"ts\">",
|
||||||
|
"import { defineComponent } from \"vue\";",
|
||||||
|
"",
|
||||||
|
"export default defineComponent({",
|
||||||
|
"\tcomponents: {",
|
||||||
|
"\t},",
|
||||||
|
"\tprops: {",
|
||||||
|
"\t},",
|
||||||
|
"});",
|
||||||
|
"</script>",
|
||||||
|
"",
|
||||||
|
],
|
||||||
|
"description": "Template for a new Vue component file"
|
||||||
|
}
|
||||||
|
}
|
|
@ -2,18 +2,6 @@
|
||||||
<MainWindow />
|
<MainWindow />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
import { defineComponent } from "vue";
|
|
||||||
import MainWindow from "./components/window/MainWindow.vue";
|
|
||||||
|
|
||||||
export default defineComponent({
|
|
||||||
name: "App",
|
|
||||||
components: {
|
|
||||||
MainWindow,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
html, body, #app {
|
html, body, #app {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -26,3 +14,12 @@ html, body, #app {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import { defineComponent } from "vue";
|
||||||
|
import MainWindow from "./components/window/MainWindow.vue";
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
components: { MainWindow },
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
|
@ -48,7 +48,6 @@ import { defineComponent } from "vue";
|
||||||
import InputHint from "./InputHint.vue";
|
import InputHint from "./InputHint.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "FooterBar",
|
|
||||||
components: {
|
components: {
|
||||||
InputHint,
|
InputHint,
|
||||||
},
|
},
|
||||||
|
|
|
@ -70,7 +70,6 @@ export enum MouseInputInteraction {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "InputHint",
|
|
||||||
props: {
|
props: {
|
||||||
inputKeys: { type: Array, default: () => [] },
|
inputKeys: { type: Array, default: () => [] },
|
||||||
inputMouse: { type: String },
|
inputMouse: { type: String },
|
||||||
|
|
|
@ -50,7 +50,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({});
|
||||||
name: "FileMenu",
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -36,7 +36,6 @@ import WindowTitle from "./WindowTitle.vue";
|
||||||
import WindowButtons from "./WindowButtons.vue";
|
import WindowButtons from "./WindowButtons.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "HeaderBar",
|
|
||||||
components: {
|
components: {
|
||||||
FileMenu,
|
FileMenu,
|
||||||
WindowTitle,
|
WindowTitle,
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "WindowButtons",
|
|
||||||
props: {
|
props: {
|
||||||
maximized: { type: Boolean, default: false },
|
maximized: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,7 +16,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({});
|
||||||
name: "WindowTitle",
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -15,7 +15,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({});
|
||||||
name: "LayoutCol",
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -15,7 +15,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({});
|
||||||
name: "LayoutRow",
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -134,7 +134,6 @@
|
||||||
import { defineComponent } from "vue";
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "DockablePanel",
|
|
||||||
props: {
|
props: {
|
||||||
tabConstantWidths: { type: Boolean, default: false },
|
tabConstantWidths: { type: Boolean, default: false },
|
||||||
tabCloseButtons: { type: Boolean, default: false },
|
tabCloseButtons: { type: Boolean, default: false },
|
||||||
|
|
|
@ -45,7 +45,6 @@ import LayoutCol from "../layout/LayoutCol.vue";
|
||||||
import DockablePanel from "./DockablePanel.vue";
|
import DockablePanel from "./DockablePanel.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "PanelArea",
|
|
||||||
components: {
|
components: {
|
||||||
LayoutRow,
|
LayoutRow,
|
||||||
LayoutCol,
|
LayoutCol,
|
||||||
|
|
|
@ -42,7 +42,6 @@ import PanelArea from "../panel-system/PanelArea.vue";
|
||||||
import FooterBar from "../footer/FooterBar.vue";
|
import FooterBar from "../footer/FooterBar.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "MainWindow",
|
|
||||||
components: {
|
components: {
|
||||||
LayoutRow,
|
LayoutRow,
|
||||||
LayoutCol,
|
LayoutCol,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue