Skip to content

Commit 953d303

Browse files
committed
release vscode plugin to 0.0.7
1 parent 8acd5b2 commit 953d303

File tree

12 files changed

+60
-44
lines changed

12 files changed

+60
-44
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# protobuf-to-typescript
22

3-
<a href="https://github.com/brandonxiang/pb-to-typescript/blob/master/LICENSE">
4-
<img src="https://img.shields.io/github/license/brandonxiang/pb-to-typescript" alt="license">
3+
<a href="https://github.com/brandonxiang/protobuf-to-typescript/blob/master/LICENSE">
4+
<img src="https://img.shields.io/github/license/brandonxiang/protobuf-to-typescript" alt="license">
55
</a>
66

77
## Intro

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "pb-to-typescript",
2+
"name": "protobuf-to-typescript",
33
"version": "0.0.0",
4-
"repository": "https://github.com/brandonxiang/pb-to-typescript.git",
4+
"repository": "https://github.com/brandonxiang/protobuf-to-typescript.git",
55
"author": "Weiping Xiang <[email protected]>",
66
"license": "MIT",
77
"private": "true",

packages/core/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
### Patch Changes
3232

33-
- fix cli issue [#17](https://github.com/brandonxiang/pb-to-typescript/issues/17)
33+
- fix cli issue [#17](https://github.com/brandonxiang/protobuf-to-typescript/issues/17)
3434

3535
## 3.0.0
3636

packages/core/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "pbts",
33
"version": "4.0.3",
4-
"description": "pb-to-typescript",
4+
"description": "protobuf-to-typescript",
55
"author": "weiping.xiang <[email protected]>",
6-
"homepage": "https://github.com/brandonxiang/pb-to-typescript#readme",
6+
"homepage": "https://github.com/brandonxiang/protobuf-to-typescript#readme",
77
"license": "MIT",
88
"exports": {
99
"./package.json": "./package.json",
@@ -29,14 +29,14 @@
2929
],
3030
"repository": {
3131
"type": "git",
32-
"url": "git+https://github.com/brandonxiang/pb-to-typescript.git"
32+
"url": "git+https://github.com/brandonxiang/protobuf-to-typescript.git"
3333
},
3434
"scripts": {
3535
"check": "rollup -c",
3636
"test": "uvu tests"
3737
},
3838
"bugs": {
39-
"url": "https://github.com/brandonxiang/pb-to-typescript/issues"
39+
"url": "https://github.com/brandonxiang/protobuf-to-typescript/issues"
4040
},
4141
"dependencies": {
4242
"protobufjs": "^7.3.3",

packages/vscode/media/cat2.svg

+16
Loading

packages/vscode/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"categories": [
1414
"Other"
1515
],
16-
"repository": {
17-
"type": "git",
18-
"url": "git@github.com:kukudeshiyi/vscode-protobuf-to-typescript.git"
19-
},
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/brandonxiang/protobuf-to-typescript.git"
19+
},
2020
"activationEvents": [
2121
"onCommand:pbToTypescript.fromSelection",
2222
"onCommand:pbToTypescript.fromClipboard",
@@ -45,8 +45,8 @@
4545
"activitybar": [
4646
{
4747
"id": "pbts",
48-
"title": "pb to typescript",
49-
"icon": "media/dep.svg"
48+
"title": "protobuf to typescript",
49+
"icon": "media/cat2.svg"
5050
}
5151
]
5252
},
@@ -93,7 +93,7 @@
9393
"rimraf": "^3.0.2"
9494
},
9595
"dependencies": {
96-
"pbts": "^4.0.0",
96+
"pbts": "^4.0.3",
9797
"copy-paste": "1.3.0"
9898
}
9999
}

packages/vscode/src/extension.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function transformFromClipboard() {
5656

5757
function transformOnPanel (ctx: ExtensionContext) {
5858
const panel = window.createWebviewPanel(
59-
'pb to typescript', // Identifies the type of the webview. Used internally
60-
'pb to typescript', // Title of the panel displayed to the user
59+
'protobuf to typescript', // Identifies the type of the webview. Used internally
60+
'protobuf to typescript', // Title of the panel displayed to the user
6161
ViewColumn.One, // Editor column to show the new webview panel in.
6262
{ enableScripts: true} // Webview options. More on these later.
6363
);

packages/vscode/webview/index.html

+7-6
Large diffs are not rendered by default.

packages/web/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Demo Page for pb-to-typescript
1+
# Demo Page for protobuf-to-typescript
22

3-
This is a extremely simple demo page for pb-to-typescript
3+
This is a extremely simple demo page for protobuf-to-typescript

packages/web/app/index.html

-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@
2727
gtag('config', 'G-6XV2G4JLK4');
2828
</script>
2929
<style>
30-
.codemirror-wrapper {
31-
flex: 1;
32-
overflow-y: auto;
33-
background-color: white;
34-
border-radius: 10px;
35-
}
3630
/* Box sizing rules */
3731
*,
3832
*::before,

packages/web/app/main.svelte

+16-11
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
import IndexPage from './pages/index.svelte';
44
import MockPage from './pages/mock.svelte';
55
import AstPage from './pages/ast.svelte';
6-
import {PAGE_HASH} from './constants/index';
6+
import { PAGE_HASH } from './constants/index';
77
88
let routeIndex = PAGE_HASH.INDEX_PAGE;
99
10-
function onRouteChange (event) {
10+
function onRouteChange(event) {
1111
routeIndex = event.detail.route || 0;
1212
}
13-
1413
</script>
1514

1615
<Navbar current={routeIndex} on:change={onRouteChange} />
@@ -33,15 +32,14 @@
3332
--gray: #f0f1f2;
3433
--dark-gray: #5c5c5c;
3534
}
36-
:global(.dark) {
37-
background-color: var(--black);
38-
color: var(--white);
35+
:global(.dark #container) {
36+
color: var(--black);
3937
}
40-
:global(body,html) {
38+
:global(body, html) {
4139
font-family: Sans-Serif;
4240
margin: 0;
4341
}
44-
:global(h1,h2) {
42+
:global(h1, h2) {
4543
margin: 16px 8px;
4644
}
4745
:global(h3) {
@@ -66,13 +64,13 @@
6664
flex-direction: column;
6765
position: relative;
6866
}
69-
:global(textarea,pre) {
67+
:global(textarea, pre) {
7068
border: 1px solid var(--gray);
7169
border-radius: 4px;
7270
}
73-
:global(.dark textarea,pre) {
71+
:global(.dark textarea, pre) {
7472
background-color: var(--black);
75-
color: var(--white);
73+
/* color: var(--white); */
7674
}
7775
:global(#container) {
7876
height: calc(100vh - 63px);
@@ -163,4 +161,11 @@
163161
border-left: 2px solid red;
164162
border-bottom: 2px solid red;
165163
}
164+
:global(.codemirror-wrapper) {
165+
flex: 1;
166+
overflow-y: auto;
167+
background-color: white;
168+
border-radius: 10px;
169+
}
170+
166171
</style>

packages/web/components/nav-bar.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
<a href="/#mock" class={current === 1 ? "active": ""} on:click={() => routerChange(PAGE_HASH.MOCK_PAGE)}>Mock</a>
2424
<a href="/#ast" class={current === 2 ? "active": ""} on:click={() => routerChange(PAGE_HASH.AST_PAGE)}>AST</a>
2525
<!-- <a href="http://www.jsontots.com/" target="_blank">JSON Converter</a> -->
26-
<a class="github-link" href="https://github.com/brandonxiang/pb-to-typescript">Github</a>
26+
<a class="github-link" href="https://github.com/brandonxiang/protobuf-to-typescript">Github</a>
2727
</header>

0 commit comments

Comments
 (0)