Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjien committed Sep 4, 2024
1 parent 25245a3 commit a604de2
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 24 deletions.
29 changes: 15 additions & 14 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.3.17",
"version": "0.3.19",
"engines": {
"vscode": "^1.92.0"
},
Expand Down Expand Up @@ -63,12 +63,13 @@
"jenkins-log-reader.aiModel": {
"type": "string",
"enum": [
"llama3.1:latest",
"llama3:latest",
"qwen2:7b",
"gemma:latest",
"mistral:7b"
],
"default": "llama3",
"default": "llama3.1:latest",
"title": "AI Model",
"order": 4,
"description": "AI Model"
Expand Down Expand Up @@ -129,32 +130,32 @@
"prepare": "husky"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.7",
"@types/node": "20.14.11",
"@types/node": "22.5.3",
"@types/vscode": "^1.92.0",
"@types/vscode-webview": "^1.57.5",
"auto-changelog": "^2.4.0",
"esbuild": "^0.23.0",
"esbuild-plugin-copy": "^2.0.1",
"esbuild": "^0.23.1",
"esbuild-plugin-copy": "^2.1.1",
"glob": "^11.0.0",
"husky": "^9.1.3",
"husky": "^9.1.5",
"normalize.css": "^8.0.1",
"postcss": "^8.4.40",
"postcss": "^8.4.45",
"prettier": "^3.3.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"tailwindcss": "^3.4.7",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
},
"dependencies": {
"@tailwindcss/typography": "^0.5.13",
"@tailwindcss/typography": "^0.5.15",
"@vscode/webview-ui-toolkit": "^1.4.0",
"autoprefixer": "^10.4.19",
"axios": "^1.7.2",
"autoprefixer": "^10.4.20",
"axios": "^1.7.7",
"crypto": "^1.0.1",
"marked": "^13.0.2",
"openai": "^4.53.2",
"marked": "^14.1.1",
"openai": "^4.57.2",
"react-markdown": "^9.0.1",
"rehype-highlight": "^7.0.0",
"rehype-raw": "^7.0.0",
Expand Down
96 changes: 90 additions & 6 deletions src/extension.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,95 @@
@tailwind base;
/* @tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities; */

details > summary {
list-style: none;
:root {
--container-padding: 20px;
--input-padding-vertical: 6px;
--input-padding-horizontal: 4px;
--input-margin-vertical: 4px;
--input-margin-horizontal: 0;
}

details summary::-webkit-details-marker {
display: none;
body {
padding: 0 var(--container-padding);
color: var(--vscode-foreground);
font-size: var(--vscode-font-size);
font-weight: var(--vscode-font-weight);
font-family: var(--vscode-font-family);
background-color: var(--vscode-editor-background);
}

ol,
ul {
padding-left: var(--container-padding);
}

body > *,
form > * {
margin-block-start: var(--input-margin-vertical);
margin-block-end: var(--input-margin-vertical);
}

*:focus {
outline-color: var(--vscode-focusBorder) !important;
}

a {
color: var(--vscode-textLink-foreground);
}

a:hover,
a:active {
color: var(--vscode-textLink-activeForeground);
}

code {
font-size: var(--vscode-editor-font-size);
font-family: var(--vscode-editor-font-family);
}

button {
border: none;
padding: var(--input-padding-vertical) var(--input-padding-horizontal);
width: 100%;
text-align: center;
outline: 1px solid transparent;
outline-offset: 2px !important;
color: var(--vscode-button-foreground);
background: var(--vscode-button-background);
}

button:hover {
cursor: pointer;
background: var(--vscode-button-hoverBackground);
}

button:focus {
outline-color: var(--vscode-focusBorder);
}

button.secondary {
color: var(--vscode-button-secondaryForeground);
background: var(--vscode-button-secondaryBackground);
}

button.secondary:hover {
background: var(--vscode-button-secondaryHoverBackground);
}

input:not([type='checkbox']),
textarea {
display: block;
width: 100%;
border: none;
font-family: var(--vscode-font-family);
padding: var(--input-padding-vertical) var(--input-padding-horizontal);
color: var(--vscode-input-foreground);
outline-color: var(--vscode-input-border);
background-color: var(--vscode-input-background);
}

input::placeholder,
textarea::placeholder {
color: var(--vscode-input-placeholderForeground);
}
8 changes: 4 additions & 4 deletions src/panels/JenkinsPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export class JenkinsPanel {
<div class="container mx-auto">
<details>
<summary>
<p class="grid grid-cols-4 gap-1 " >
<h1 class="col-span-2 text-xl text-center font-bold text-inherit">Jenkins Server</h1>
<vscode-button class="col-span-1 w-auto place-self-end text-xs text-center rounded h-6 " id="refresh">Refresh</vscode-button>
</p>
<div style="display: flex" >
<h1 >Jenkins Server</h1>
<vscode-button id="refresh">Refresh</vscode-button>
</div>
</summary>
<section class="grid grid-cols-4 gap-1 align-middle">
Expand Down
30 changes: 30 additions & 0 deletions src/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
html {
box-sizing: border-box;
font-size: 13px;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
margin: 0;
padding: 0;
font-weight: normal;
}

img {
max-width: 100%;
height: auto;
}

0 comments on commit a604de2

Please sign in to comment.