Skip to content

Commit

Permalink
debug webview
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjien committed Jul 21, 2024
1 parent ff4aad2 commit 9a9d3cc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm --no-git-tag-version version patch && git add .
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ src/**
esbuild.js
.gitignore
.yarnrc
!.out
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## [v0.2.33]
## [v0.3.1]

### New Feature

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jenkins-log-reader",
"displayName": "jenkins-log-reader",
"description": "read jenkins log, analyse with local AI.",
"version": "0.2.33",
"version": "0.3.1",
"engines": {
"vscode": "^1.91.0"
},
Expand Down Expand Up @@ -151,7 +151,7 @@
"esbuild-plugin-copy": "^2.0.1",
"eslint": "^8.57.0",
"glob": "^11.0.0",
"husky": "^9.0.11",
"husky": "^9.1.1",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.39",
Expand Down
4 changes: 2 additions & 2 deletions src/panels/JenkinsPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class JenkinsPanel {
if (JenkinsPanel.currentPanel) {
JenkinsPanel.currentPanel._panel.reveal(ViewColumn.One);
} else {
const panel = window.createWebviewPanel("webView", "Jenkins Log Analysis", ViewColumn.One, {
const panel = window.createWebviewPanel("webview", "Jenkins Log Analysis", ViewColumn.One, {
enableScripts: true,
localResourceRoots: [Uri.joinPath(extensionUri, "out")],
});
Expand All @@ -66,7 +66,7 @@ export class JenkinsPanel {
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${webview.cspSource} https:; style-src ${webview.cspSource}; script-src 'nonce-${nonce}'; style-src-elem ${webview.cspSource} 'unsafe-inline'; font-src ${webview.cspSource}">
<link rel="stylesheet" href="${stylesUri}">
<title>Jenkins Log Analysis</title>
<title>Jenkins Logs Analysis</title>
</head>
<body>
Expand Down

0 comments on commit 9a9d3cc

Please sign in to comment.