Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Place1 committed Feb 19, 2020
1 parent 383dd63 commit 925f217
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 34 deletions.
6 changes: 3 additions & 3 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"devDependencies": {
"@types/common-tags": "^1.8.0",
"@types/qrcode": "^1.3.4",
"grpc-ts-web": "0.1.5",
"grpc-ts-web": "0.1.6",
"prettier": "^1.19.1"
}
}
71 changes: 48 additions & 23 deletions website/src/sdk/devices_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class Devices {




export declare namespace Device {
export type AsObject = {
name: string,
Expand All @@ -110,9 +111,13 @@ export declare namespace Device {

export class Device extends jspb.Message {

constructor() {
private static repeatedFields_ = [

];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, Device.repeatedFields_, null);
}


Expand Down Expand Up @@ -164,12 +169,12 @@ export class Device extends jspb.Message {

toObject(): Device.AsObject {
let f: any;
return {
name: this.getName(),
return {name: this.getName(),
owner: this.getOwner(),
publicKey: this.getPublicKey(),
address: this.getAddress(),
createdAt: (f = this.getCreatedAt()) && f.toObject(),

};
}

Expand Down Expand Up @@ -238,7 +243,8 @@ export class Device extends jspb.Message {
return message;
}

}export declare namespace AddDeviceReq {
}
export declare namespace AddDeviceReq {
export type AsObject = {
name: string,
publicKey: string,
Expand All @@ -247,9 +253,13 @@ export class Device extends jspb.Message {

export class AddDeviceReq extends jspb.Message {

constructor() {
private static repeatedFields_ = [

];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, AddDeviceReq.repeatedFields_, null);
}


Expand Down Expand Up @@ -277,9 +287,9 @@ export class AddDeviceReq extends jspb.Message {

toObject(): AddDeviceReq.AsObject {
let f: any;
return {
name: this.getName(),
return {name: this.getName(),
publicKey: this.getPublicKey(),

};
}

Expand Down Expand Up @@ -323,16 +333,21 @@ export class AddDeviceReq extends jspb.Message {
return message;
}

}export declare namespace ListDevicesReq {
}
export declare namespace ListDevicesReq {
export type AsObject = {
}
}

export class ListDevicesReq extends jspb.Message {

constructor() {
private static repeatedFields_ = [

];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, ListDevicesReq.repeatedFields_, null);
}


Expand Down Expand Up @@ -372,25 +387,30 @@ export class ListDevicesReq extends jspb.Message {
return message;
}

}export declare namespace ListDevicesRes {
}
export declare namespace ListDevicesRes {
export type AsObject = {
items?: Array<Device.AsObject>,
items: Array<Device.AsObject>,
}
}

export class ListDevicesRes extends jspb.Message {

constructor() {
private static repeatedFields_ = [
1,
];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, ListDevicesRes.repeatedFields_, null);
}


getItems(): Array<Device> {
return jspb.Message.getRepeatedWrapperField(this, Device, 1);
}

setItems(value?: Array<Device>): void {
setItems(value: Array<Device>): void {
(jspb.Message as any).setRepeatedWrapperField(this, 1, value);
}

Expand All @@ -407,7 +427,7 @@ export class ListDevicesRes extends jspb.Message {
toObject(): ListDevicesRes.AsObject {
let f: any;
return {
items: (f = this.getItems()) && f.toObject(),
items: this.getItems().map((item) => item.toObject()),
};
}

Expand Down Expand Up @@ -444,17 +464,22 @@ export class ListDevicesRes extends jspb.Message {
return message;
}

}export declare namespace DeleteDeviceReq {
}
export declare namespace DeleteDeviceReq {
export type AsObject = {
name: string,
}
}

export class DeleteDeviceReq extends jspb.Message {

constructor() {
private static repeatedFields_ = [

];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, DeleteDeviceReq.repeatedFields_, null);
}


Expand All @@ -474,8 +499,8 @@ export class DeleteDeviceReq extends jspb.Message {

toObject(): DeleteDeviceReq.AsObject {
let f: any;
return {
name: this.getName(),
return {name: this.getName(),

};
}

Expand Down
24 changes: 17 additions & 7 deletions website/src/sdk/server_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,21 @@ export class Server {




export declare namespace InfoReq {
export type AsObject = {
}
}

export class InfoReq extends jspb.Message {

constructor() {
private static repeatedFields_ = [

];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, InfoReq.repeatedFields_, null);
}


Expand Down Expand Up @@ -96,7 +101,8 @@ export class InfoReq extends jspb.Message {
return message;
}

}export declare namespace InfoRes {
}
export declare namespace InfoRes {
export type AsObject = {
publicKey: string,
host?: googleProtobufWrappers.StringValue.AsObject,
Expand All @@ -107,9 +113,13 @@ export class InfoReq extends jspb.Message {

export class InfoRes extends jspb.Message {

constructor() {
private static repeatedFields_ = [

];

constructor(data?: jspb.Message.MessageArray) {
super();
jspb.Message.initialize(this, [], 0, -1, [], null);
jspb.Message.initialize(this, data || [], 0, -1, InfoRes.repeatedFields_, null);
}


Expand Down Expand Up @@ -153,11 +163,11 @@ export class InfoRes extends jspb.Message {

toObject(): InfoRes.AsObject {
let f: any;
return {
publicKey: this.getPublicKey(),
return {publicKey: this.getPublicKey(),
host: (f = this.getHost()) && f.toObject(),
port: this.getPort(),
hostVpnIp: this.getHostVpnIp(),

};
}

Expand Down

0 comments on commit 925f217

Please sign in to comment.