File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
extensions/ql-vscode/src/stories/data-extensions-editor Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+
3+ import { ComponentMeta , ComponentStory } from "@storybook/react" ;
4+
5+ import { MethodRow as MethodRowComponent } from "../../view/data-extensions-editor/MethodRow" ;
6+
7+ export default {
8+ title : "Data Extensions Editor/Method Row" ,
9+ component : MethodRowComponent ,
10+ } as ComponentMeta < typeof MethodRowComponent > ;
11+
12+ const Template : ComponentStory < typeof MethodRowComponent > = ( args ) => (
13+ < MethodRowComponent { ...args } />
14+ ) ;
15+
16+ export const MethodRow = Template . bind ( { } ) ;
17+ MethodRow . args = {
18+ externalApiUsage : {
19+ signature : "org.sql2o.Sql2o#open()" ,
20+ packageName : "org.sql2o" ,
21+ typeName : "Sql2o" ,
22+ methodName : "open" ,
23+ methodParameters : "()" ,
24+ supported : true ,
25+ usages : [
26+ {
27+ label : "open(...)" ,
28+ url : {
29+ uri : "file:/home/runner/work/sql2o-example/sql2o-example/src/main/java/org/example/HelloController.java" ,
30+ startLine : 14 ,
31+ startColumn : 24 ,
32+ endLine : 14 ,
33+ endColumn : 35 ,
34+ } ,
35+ } ,
36+ {
37+ label : "open(...)" ,
38+ url : {
39+ uri : "file:/home/runner/work/sql2o-example/sql2o-example/src/main/java/org/example/HelloController.java" ,
40+ startLine : 25 ,
41+ startColumn : 24 ,
42+ endLine : 25 ,
43+ endColumn : 35 ,
44+ } ,
45+ } ,
46+ ] ,
47+ } ,
48+ modeledMethod : {
49+ type : "summary" ,
50+ input : "Argument[-1]" ,
51+ output : "ReturnValue" ,
52+ kind : "taint" ,
53+ } ,
54+ } ;
You can’t perform that action at this time.
0 commit comments