Skip to content

Commit 62e66ef

Browse files
Removed index.html
1 parent 63f5fa5 commit 62e66ef

File tree

5 files changed

+22
-42
lines changed

5 files changed

+22
-42
lines changed

ui-vue-starter/plugin/index.html

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
{
2-
"id": "com.adobe.uxp.starter.vue",
3-
"name": "UXP Vue Starter Plugin",
4-
"version": "1.0.0",
5-
"main": "index.html",
62
"manifestVersion": 4,
3+
"id": "com.adobe.ps.starter.vue",
4+
"name": "Hello World",
5+
"version": "1.0.0",
6+
"main": "main.js",
77
"host": {
88
"app": "PS",
99
"minVersion": "22.0.0"
1010
},
1111
"entrypoints": [
12+
{
13+
"type": "command",
14+
"id": "commandFn",
15+
"label": {
16+
"default": "Show A Dialog"
17+
}
18+
},
1219
{
1320
"type": "panel",
14-
"id": "helloworld",
21+
"id": "HelloWorld",
1522
"label": {
1623
"default": "Hello World"
1724
},
@@ -23,30 +30,18 @@
2330
{
2431
"width": 23,
2532
"height": 23,
26-
"path": "icons/dark-panel.png",
33+
"path": "icons/dark.png",
2734
"scale": [1, 2],
28-
"theme": ["darkest", "dark", "medium"],
29-
"species": ["chrome"]
35+
"theme": ["darkest", "dark", "medium"]
3036
},
3137
{
3238
"width": 23,
3339
"height": 23,
34-
"path": "icons/light-panel.png",
40+
"path": "icons/light.png",
3541
"scale": [1, 2],
36-
"theme": ["lightest", "light"],
37-
"species": ["chrome"]
42+
"theme": ["lightest", "light"]
3843
}
3944
]
4045
}
41-
],
42-
"icons": [
43-
{
44-
"width": 48,
45-
"height": 48,
46-
"path": "icons/plugin.png",
47-
"scale": [1, 2],
48-
"theme": ["darkest", "dark", "medium", "lightest", "light", "all"],
49-
"species": ["pluginList"]
50-
}
5146
]
5247
}

ui-vue-starter/src/hello.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
}
3737
}
3838
}
39-
</script>
39+
</script>

ui-vue-starter/src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const hello = require("./hello.vue").default;
44

55
let dialog;
66
function getDialog() {
7+
if (dialog == null) {
78
document.body.innerHTML = `<dialog><div id="container"></div></dialog>`;
89
dialog = document.querySelector("dialog");
910
var app4 = new Vue({
@@ -13,12 +14,13 @@ function getDialog() {
1314
return h(hello, { props: { dialog } });
1415
},
1516
});
17+
}
1618
return dialog;
1719
}
1820

1921
module.exports = {
2022
commands: {
21-
menuCommand: function () {
23+
menuCommand: function() {
2224
getDialog().showModal();
2325
},
2426
},

ui-vue-starter/src/styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
p {
2-
color: blueviolet;
3-
}
2+
color: blueviolet;
3+
}

0 commit comments

Comments
 (0)