Skip to content

Commit 2bae800

Browse files
committed
Move assets into the media folder
1 parent 84c8d7d commit 2bae800

File tree

7 files changed

+36
-4
lines changed

7 files changed

+36
-4
lines changed

media/explain/cytoscape.min.js

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"scripts": {
3535
"test": "vitest",
3636
"dsc": "npx tsx src/dsc",
37+
"prepackage": "rm -rf media/explain/cytoscape.min.js && cp node_modules/cytoscape/dist/cytoscape.min.js media/explain",
3738
"package": "vsce package",
3839
"vscode:prepublish": "rm -rf dist && npm run webpack && npm run dsc",
3940
"webpack": "vscd --clean && webpack --mode development",

src/views/cytoscape/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,22 @@ export class CytoscapeGraph {
9393
const iconMap = JSON.stringify(icons);
9494
const tooltips = JSON.stringify(this.tooltips);
9595
const cssUri = this.getUri(
96-
["src", "views", "cytoscape", "media", "explain.css"],
96+
["media", "explain", "explain.css"],
9797
webview
9898
);
9999

100100
const codiconsUri = this.getUri(
101-
["src", "views", "cytoscape", "media", "codicons", "dist", "codicon.css"],
101+
["media", "explain", "dist", "codicon.css"],
102102
webview
103103
);
104104

105105
const cytoscapeUri = this.getUri(
106-
["node_modules", "cytoscape", "dist", "cytoscape.min.js"],
106+
["media", "explain", "cytoscape.min.js"],
107107
webview
108108
);
109109

110110
const explainUri = this.getUri(
111-
["src", "views", "cytoscape", "media", "explain.js"],
111+
["media", "explain", "explain.js"],
112112
webview
113113
);
114114

0 commit comments

Comments
 (0)