sprotty-vscode
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -37,2 +37,3 @@ /******************************************************************************** | ||
protected createWebviewPanel(): vscode.WebviewPanel; | ||
protected readonly localResourceRoots: vscode.Uri[]; | ||
protected getWebViewContent(): string; | ||
@@ -39,0 +40,0 @@ protected connect(): Promise<void>; |
@@ -98,5 +98,3 @@ "use strict"; | ||
var diagramPanel = vscode.window.createWebviewPanel(this.diagramIdentifier.diagramType || 'diagram', this.title, vscode.ViewColumn.Beside, { | ||
localResourceRoots: [ | ||
vscode.Uri.file(path.join(this.extension.context.extensionPath, 'diagram')) | ||
], | ||
localResourceRoots: this.localResourceRoots, | ||
enableScripts: true, | ||
@@ -108,2 +106,11 @@ retainContextWhenHidden: true | ||
}; | ||
Object.defineProperty(SprottyWebview.prototype, "localResourceRoots", { | ||
get: function () { | ||
return [ | ||
vscode.Uri.file(path.join(this.extension.context.extensionPath, this.scriptPath)) | ||
]; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
SprottyWebview.prototype.getWebViewContent = function () { | ||
@@ -110,0 +117,0 @@ return "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, height=device-height\">\n <title>" + this.title + "</title>\n <link\n rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.6.3/css/all.css\"\n integrity=\"sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/\"\n crossorigin=\"anonymous\">\n </head>\n <body>\n <div id=\"" + this.diagramIdentifier.clientId + "\" style=\"height: 100%;\"></div>\n <script src=\"" + this.resourceUri(this.scriptPath) + "\"></script>\n </body>\n </html>"; |
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"engines": { | ||
@@ -13,0 +13,0 @@ "vscode": "^1.30.0" |
@@ -65,5 +65,3 @@ /******************************************************************************** | ||
{ | ||
localResourceRoots: [ | ||
vscode.Uri.file(path.join(this.extension.context.extensionPath, 'diagram')) | ||
], | ||
localResourceRoots: this.localResourceRoots, | ||
enableScripts: true, | ||
@@ -76,2 +74,8 @@ retainContextWhenHidden: true | ||
protected get localResourceRoots(): vscode.Uri[] { | ||
return [ | ||
vscode.Uri.file(path.join(this.extension.context.extensionPath, this.scriptPath)) | ||
]; | ||
} | ||
protected getWebViewContent() { | ||
@@ -78,0 +82,0 @@ return ` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67749
1141