File tree 12 files changed +60
-44
lines changed
12 files changed +60
-44
lines changed Original file line number Diff line number Diff line change 1
1
# protobuf-to-typescript
2
2
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 " >
5
5
</a >
6
6
7
7
## Intro
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " pb -to-typescript" ,
2
+ "name" : " protobuf -to-typescript" ,
3
3
"version" : " 0.0.0" ,
4
- "repository" : " https://github.com/brandonxiang/pb -to-typescript.git" ,
4
+ "repository" : " https://github.com/brandonxiang/protobuf -to-typescript.git" ,
5
5
"author" :
" Weiping Xiang <[email protected] >" ,
6
6
"license" : " MIT" ,
7
7
"private" : " true" ,
Original file line number Diff line number Diff line change 30
30
31
31
### Patch Changes
32
32
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 )
34
34
35
35
## 3.0.0
36
36
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pbts" ,
3
3
"version" : " 4.0.3" ,
4
- "description" : " pb -to-typescript" ,
4
+ "description" : " protobuf -to-typescript" ,
5
5
"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" ,
7
7
"license" : " MIT" ,
8
8
"exports" : {
9
9
"./package.json" : " ./package.json" ,
29
29
],
30
30
"repository" : {
31
31
"type" : " git" ,
32
- "url" : " git+https://github.com/brandonxiang/pb -to-typescript.git"
32
+ "url" : " git+https://github.com/brandonxiang/protobuf -to-typescript.git"
33
33
},
34
34
"scripts" : {
35
35
"check" : " rollup -c" ,
36
36
"test" : " uvu tests"
37
37
},
38
38
"bugs" : {
39
- "url" : " https://github.com/brandonxiang/pb -to-typescript/issues"
39
+ "url" : " https://github.com/brandonxiang/protobuf -to-typescript/issues"
40
40
},
41
41
"dependencies" : {
42
42
"protobufjs" : " ^7.3.3" ,
Original file line number Diff line number Diff line change 13
13
"categories" : [
14
14
" Other"
15
15
],
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
+ },
20
20
"activationEvents" : [
21
21
" onCommand:pbToTypescript.fromSelection" ,
22
22
" onCommand:pbToTypescript.fromClipboard" ,
45
45
"activitybar" : [
46
46
{
47
47
"id" : " pbts" ,
48
- "title" : " pb to typescript" ,
49
- "icon" : " media/dep .svg"
48
+ "title" : " protobuf to typescript" ,
49
+ "icon" : " media/cat2 .svg"
50
50
}
51
51
]
52
52
},
93
93
"rimraf" : " ^3.0.2"
94
94
},
95
95
"dependencies" : {
96
- "pbts" : " ^4.0.0 " ,
96
+ "pbts" : " ^4.0.3 " ,
97
97
"copy-paste" : " 1.3.0"
98
98
}
99
99
}
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ function transformFromClipboard() {
56
56
57
57
function transformOnPanel ( ctx : ExtensionContext ) {
58
58
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
61
61
ViewColumn . One , // Editor column to show the new webview panel in.
62
62
{ enableScripts : true } // Webview options. More on these later.
63
63
) ;
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
- # Demo Page for pb -to-typescript
1
+ # Demo Page for protobuf -to-typescript
2
2
3
- This is a extremely simple demo page for pb -to-typescript
3
+ This is a extremely simple demo page for protobuf -to-typescript
Original file line number Diff line number Diff line change 27
27
gtag ( 'config' , 'G-6XV2G4JLK4' ) ;
28
28
</ script >
29
29
< style >
30
- .codemirror-wrapper {
31
- flex : 1 ;
32
- overflow-y : auto;
33
- background-color : white;
34
- border-radius : 10px ;
35
- }
36
30
/* Box sizing rules */
37
31
* ,
38
32
* ::before ,
Original file line number Diff line number Diff line change 3
3
import IndexPage from ' ./pages/index.svelte' ;
4
4
import MockPage from ' ./pages/mock.svelte' ;
5
5
import AstPage from ' ./pages/ast.svelte' ;
6
- import {PAGE_HASH } from ' ./constants/index' ;
6
+ import { PAGE_HASH } from ' ./constants/index' ;
7
7
8
8
let routeIndex = PAGE_HASH .INDEX_PAGE ;
9
9
10
- function onRouteChange (event ) {
10
+ function onRouteChange (event ) {
11
11
routeIndex = event .detail .route || 0 ;
12
12
}
13
-
14
13
</script >
15
14
16
15
<Navbar current ={routeIndex } on:change ={onRouteChange } />
33
32
--gray : #f0f1f2 ;
34
33
--dark-gray : #5c5c5c ;
35
34
}
36
- :global(.dark ) {
37
- background-color : var (--black );
38
- color : var (--white );
35
+ :global(.dark #container ) {
36
+ color : var (--black );
39
37
}
40
- :global(body ,html ) {
38
+ :global(body , html ) {
41
39
font-family : Sans-Serif ;
42
40
margin : 0 ;
43
41
}
44
- :global(h1 ,h2 ) {
42
+ :global(h1 , h2 ) {
45
43
margin : 16px 8px ;
46
44
}
47
45
:global(h3 ) {
66
64
flex-direction : column ;
67
65
position : relative ;
68
66
}
69
- :global(textarea ,pre ) {
67
+ :global(textarea , pre ) {
70
68
border : 1px solid var (--gray );
71
69
border-radius : 4px ;
72
70
}
73
- :global(.dark textarea ,pre ) {
71
+ :global(.dark textarea , pre ) {
74
72
background-color : var (--black );
75
- color : var (--white );
73
+ /* color: var(--white); */
76
74
}
77
75
:global(#container ) {
78
76
height : calc (100vh - 63px );
163
161
border-left : 2px solid red ;
164
162
border-bottom : 2px solid red ;
165
163
}
164
+ :global(.codemirror-wrapper ) {
165
+ flex : 1 ;
166
+ overflow-y : auto ;
167
+ background-color : white ;
168
+ border-radius : 10px ;
169
+ }
170
+
166
171
</style >
Original file line number Diff line number Diff line change 23
23
<a href ="/#mock" class ={current === 1 ? " active" : " " } on:click ={() => routerChange (PAGE_HASH .MOCK_PAGE )}>Mock</a >
24
24
<a href ="/#ast" class ={current === 2 ? " active" : " " } on:click ={() => routerChange (PAGE_HASH .AST_PAGE )}>AST</a >
25
25
<!-- <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 >
27
27
</header >
You can’t perform that action at this time.
0 commit comments