Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Tags on hover #102

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.accesskey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class AccessKeysFolderNode extends FiltersFolderNode<FiltersAccessKeys> i
continue;
}

resources.push(new ResourceNode(this.profile, "", item.accessKeyId, "AccessKey", deleteAccessKey, getAccessKey));
resources.push(new ResourceNode(this.profile, "", item.accessKeyId, "AccessKey", deleteAccessKey, getAccessKey, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.apiaccessrule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ApiAccessRulesFolderNode extends FiltersFolderNode<FiltersApiAccess
continue;
}

resources.push(new ResourceNode(this.profile, "", item.apiAccessRuleId, "ApiAccessRule", deleteApiAccessRule, getApiAccessRule));
resources.push(new ResourceNode(this.profile, "", item.apiAccessRuleId, "ApiAccessRule", deleteApiAccessRule, getApiAccessRule, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class CasFolderNode extends FiltersFolderNode<FiltersCa> implements Explo
continue;
}

resources.push(new ResourceNode(this.profile, "", item.caId, "Ca", deleteCa, getCa));
resources.push(new ResourceNode(this.profile, "", item.caId, "Ca", deleteCa, getCa, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.clientgateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ClientGatewaysFolderNode extends FiltersFolderNode<FiltersClientGat
continue;
}

resources.push(new ResourceNode(this.profile, "", item.clientGatewayId, "ClientGateway", deleteClientGateway, getClientGateway));
resources.push(new ResourceNode(this.profile, "", item.clientGatewayId, "ClientGateway", deleteClientGateway, getClientGateway, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.dedicatedgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class DedicatedGroupsFolderNode extends FiltersFolderNode<FiltersDedicate
continue;
}

resources.push(new ResourceNode(this.profile, item.name, item.dedicatedGroupId, "DedicatedGroup", deleteDedicatedGroup, getDedicatedGroup));
resources.push(new ResourceNode(this.profile, item.name, item.dedicatedGroupId, "DedicatedGroup", deleteDedicatedGroup, getDedicatedGroup, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.dhcpoption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class DhcpOptionsFolderNode extends FiltersFolderNode<FiltersDhcpOptions>
continue;
}

resources.push(new ResourceNode(this.profile, "", item.dhcpOptionsSetId, "DhcpOption", deleteDhcpOption, getDhcpOption));
resources.push(new ResourceNode(this.profile, "", item.dhcpOptionsSetId, "DhcpOption", deleteDhcpOption, getDhcpOption, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.directlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class DirectLinksFolderNode extends FiltersFolderNode<FiltersDirectLink>
continue;
}

resources.push(new ResourceNode(this.profile, "", item.directLinkId, "DirectLink", deleteDirectLink, getDirectLink));
resources.push(new ResourceNode(this.profile, "", item.directLinkId, "DirectLink", deleteDirectLink, getDirectLink, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.directlinkinterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class DirectLinkInterfacesFolderNode extends FiltersFolderNode<FiltersDir
continue;
}

resources.push(new ResourceNode(this.profile, "", item.directLinkInterfaceId, "DirectLinkInterface", deleteDirectLinkInterface, getDirectLinkInterface));
resources.push(new ResourceNode(this.profile, "", item.directLinkInterfaceId, "DirectLinkInterface", deleteDirectLinkInterface, getDirectLinkInterface, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class OMIsFolderNode extends FolderNode implements ExplorerFolderNode {
if (typeof image.imageId === 'undefined' || typeof image.imageName === 'undefined') {
continue;
}
resources.push(new ResourceNode(this.profile, image.imageName, image.imageId, "omis", deleteOMI, getOMI));
resources.push(new ResourceNode(this.profile, image.imageName, image.imageId, "omis", deleteOMI, getOMI, image.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.keypair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class KeypairsFolderNode extends FiltersFolderNode<FiltersKeypair> implem
if (typeof keypair.keypairName === 'undefined') {
continue;
}
resources.push(new ResourceNode(this.profile, "", keypair.keypairName, "keypairs", deleteKeypair, getKeypair));
resources.push(new ResourceNode(this.profile, "", keypair.keypairName, "keypairs", deleteKeypair, getKeypair, undefined));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.loadbalancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class LoadBalancerFolderNode extends FiltersFolderNode<FiltersLoadBalance
if (typeof lb.loadBalancerName === 'undefined') {
continue;
}
resources.push(new ResourceNode(this.profile, "", lb.loadBalancerName, "loadbalancers", deleteLoadBalancer, getLoadBalancer));
resources.push(new ResourceNode(this.profile, "", lb.loadBalancerName, "loadbalancers", deleteLoadBalancer, getLoadBalancer, lb.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.natservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class NatServicesFolderNode extends FiltersFolderNode<FiltersNatService>
continue;
}

resources.push(new ResourceNode(this.profile, "", item.natServiceId, "NatService", deleteNatService, getNatService));
resources.push(new ResourceNode(this.profile, "", item.natServiceId, "NatService", deleteNatService, getNatService, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.netaccesspoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class NetAccessPointsFolderNode extends FiltersFolderNode<FiltersNetAcces
continue;
}

resources.push(new ResourceNode(this.profile, "", item.netAccessPointId, "NetAccessPoint", deleteNetAccessPoint, getNetAccessPoint));
resources.push(new ResourceNode(this.profile, "", item.netAccessPointId, "NetAccessPoint", deleteNetAccessPoint, getNetAccessPoint, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.netpeering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class NetPeeringsFolderNode extends FiltersFolderNode<FiltersNetPeering>
continue;
}

resources.push(new ResourceNode(this.profile, "", item.netPeeringId, "NetPeering", deleteNetPeering, getNetPeering));
resources.push(new ResourceNode(this.profile, "", item.netPeeringId, "NetPeering", deleteNetPeering, getNetPeering, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SnapshotsFolderNode extends FiltersFolderNode<FiltersSnapshot> impl
if (typeof snapshot.snapshotId === 'undefined' || typeof snapshot.description === 'undefined') {
continue;
}
resources.push(new ResourceNode(this.profile, snapshot.description, snapshot.snapshotId, "snapshots", deleteSnapshot, getSnapshot));
resources.push(new ResourceNode(this.profile, snapshot.description, snapshot.snapshotId, "snapshots", deleteSnapshot, getSnapshot, snapshot.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.subnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class SubnetsFolderNode extends FiltersFolderNode<FiltersSubnet> implemen
continue;
}

resources.push(new ResourceNode(this.profile, "", item.subnetId, "Subnet", deleteSubnet, getSubnet));
resources.push(new ResourceNode(this.profile, "", item.subnetId, "Subnet", deleteSubnet, getSubnet, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.vmgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class VmGroupsFolderNode extends FiltersFolderNode<FiltersVmGroup> implem
continue;
}

resources.push(new ResourceNode(this.profile, item.vmGroupName, item.vmGroupId, "VmGroup", deleteVmGroup, getVmGroup));
resources.push(new ResourceNode(this.profile, item.vmGroupName, item.vmGroupId, "VmGroup", deleteVmGroup, getVmGroup, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.vmtemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class VmTemplatesFolderNode extends FiltersFolderNode<FiltersVmTemplate>
continue;
}

resources.push(new ResourceNode(this.profile, item.vmTemplateName, item.vmTemplateId, "VmTemplate", deleteVmTemplate, getVmTemplate));
resources.push(new ResourceNode(this.profile, item.vmTemplateName, item.vmTemplateId, "VmTemplate", deleteVmTemplate, getVmTemplate, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/simple/node.folder.vpnconnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class VpnConnectionsFolderNode extends FiltersFolderNode<FiltersVpnConnec
continue;
}

resources.push(new ResourceNode(this.profile, "", item.vpnConnectionId, "VpnConnection", deleteVpnConnection, getVpnConnection));
resources.push(new ResourceNode(this.profile, "", item.vpnConnectionId, "VpnConnection", deleteVpnConnection, getVpnConnection, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.flexiblegpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class FlexibleGpusFolderNode extends FiltersFolderNode<FiltersFlexibleGpu
continue;
}

resources.push(new FlexibleGpuResourceNode(this.profile, "", item.flexibleGpuId, item.state));
resources.push(new FlexibleGpuResourceNode(this.profile, "", item.flexibleGpuId, item.state, undefined));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.internetservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class InternetServicesFolderNode extends FiltersFolderNode<FiltersInterne
continue;
}

resources.push(new InternetServiceResourceNode(this.profile, "", item.internetServiceId, item.netId === "undefined" ? "unlink" : "link"));
resources.push(new InternetServiceResourceNode(this.profile, "", item.internetServiceId, item.netId === "undefined" ? "unlink" : "link", item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class VpcFolderNode extends FiltersFolderNode<FiltersNet> implements Expl
if (typeof net.netId === 'undefined') {
continue;
}
resources.push(new NetResourceNode(this.profile, "", net.netId?.toString()));
resources.push(new NetResourceNode(this.profile, "", net.netId?.toString(), net.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.nic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class NicsFolderNode extends FiltersFolderNode<FiltersNic> implements Exp
continue;
}

resources.push(new NicResourceNode(this.profile, "", item.nicId, item.state));
resources.push(new NicResourceNode(this.profile, "", item.nicId, item.state, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.publicip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ExternalIPsFolderNode extends FiltersFolderNode<FiltersPublicIp> im
if (typeof publicIp.publicIp === 'undefined' || typeof publicIp.publicIpId === 'undefined') {
continue;
}
resources.push(new PublicIpResourceNode(this.profile, publicIp.publicIp, publicIp.publicIpId, (typeof publicIp.linkPublicIpId === "undefined" || publicIp.linkPublicIpId.length === 0) ? "unlink" : "link"));
resources.push(new PublicIpResourceNode(this.profile, publicIp.publicIp, publicIp.publicIpId, (typeof publicIp.linkPublicIpId === "undefined" || publicIp.linkPublicIpId.length === 0) ? "unlink" : "link", publicIp.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.routetable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class RouteTablesFolderNode extends FiltersFolderNode<FiltersRouteTable>
if (typeof routeTable.routeTableId === 'undefined') {
continue;
}
resources.push(new RouteTableResourceNode(this.profile, "", routeTable.routeTableId, (typeof routeTable.linkRouteTables === 'undefined') || routeTable.linkRouteTables.length === 0 ? 'unlink' : 'link'));
resources.push(new RouteTableResourceNode(this.profile, "", routeTable.routeTableId, (typeof routeTable.linkRouteTables === 'undefined') || routeTable.linkRouteTables.length === 0 ? 'unlink' : 'link', routeTable.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.securitygroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SecurityGroupsFolderNode extends FiltersFolderNode<FiltersSecurityG
if (typeof sg.securityGroupId === 'undefined' || typeof sg.securityGroupName === 'undefined') {
continue;
}
resources.push(new SecurityGroupResourceNode(this.profile, sg.securityGroupName, sg.securityGroupId));
resources.push(new SecurityGroupResourceNode(this.profile, sg.securityGroupName, sg.securityGroupId, sg.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.virtualgateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class VirtualGatewaysFolderNode extends FiltersFolderNode<FiltersVirtualG
continue;
}

resources.push(new VirtualGatewayResourceNode(this.profile, "", item.virtualGatewayId));
resources.push(new VirtualGatewayResourceNode(this.profile, "", item.virtualGatewayId, item.tags));

}
return Promise.resolve(resources.sort(resourceNodeCompare));
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class VmsFolderNode extends FiltersFolderNode<FiltersVm> implements Explo
}
}

resources.push(new VmResourceNode(this.profile, getVmName(vm), vm.vmId?.toString(), vm.state, isWindows));
resources.push(new VmResourceNode(this.profile, getVmName(vm), vm.vmId?.toString(), vm.state, isWindows, vm.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
2 changes: 1 addition & 1 deletion src/flat/folders/specific/node.folder.volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class VolumeFolderNode extends FiltersFolderNode<FiltersVolume> implement
if (typeof volume.volumeId === 'undefined' || typeof volume.state === 'undefined') {
continue;
}
resources.push(new VolumeResourceNode(this.profile, "", volume.volumeId, volume.state));
resources.push(new VolumeResourceNode(this.profile, "", volume.volumeId, volume.state, volume.tags));
}
return Promise.resolve(resources.sort(resourceNodeCompare));
});
Expand Down
5 changes: 3 additions & 2 deletions src/flat/resources/node.resources.eip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { deleteExternalIP, unlinkExternalIP, getExternalIP } from '../../cloud/p
import { Profile } from '../node';
import { ResourceNode } from './node.resources';
import { LinkResourceNode } from './types/node.resources.link';
import { ResourceTag } from 'outscale-api';


export class PublicIpResourceNode extends ResourceNode implements LinkResourceNode {

constructor(readonly profile: Profile, readonly resourceName: string, readonly resourceId: string, readonly resourceState: string) {
super(profile, resourceName, resourceId, "eips", deleteExternalIP, getExternalIP);
constructor(readonly profile: Profile, readonly resourceName: string, readonly resourceId: string, readonly resourceState: string, readonly tags: Array<ResourceTag> | undefined) {
super(profile, resourceName, resourceId, "eips", deleteExternalIP, getExternalIP, tags);
}

getContextValue(): string {
Expand Down
5 changes: 3 additions & 2 deletions src/flat/resources/node.resources.flexiblegpus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { deleteFlexibleGpu, getFlexibleGpu, unlinkFlexibleGpu } from '../../clou
import { Profile } from '../node';
import { ResourceNode } from './node.resources';
import { LinkResourceNode } from './types/node.resources.link';
import { ResourceTag } from 'outscale-api';


export class FlexibleGpuResourceNode extends ResourceNode implements LinkResourceNode {

constructor(readonly profile: Profile, readonly resourceName: string, readonly resourceId: string, readonly resourceState: string) {
super(profile, resourceName, resourceId, "FlexibleGpu", deleteFlexibleGpu, getFlexibleGpu);
constructor(readonly profile: Profile, readonly resourceName: string, readonly resourceId: string, readonly resourceState: string, readonly tags: Array<ResourceTag> | undefined) {
super(profile, resourceName, resourceId, "FlexibleGpu", deleteFlexibleGpu, getFlexibleGpu, tags);
}

getContextValue(): string {
Expand Down
5 changes: 3 additions & 2 deletions src/flat/resources/node.resources.internetservices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { deleteInternetService, getInternetService, unlinkInternetService } from
import { Profile } from '../node';
import { ResourceNode } from './node.resources';
import { LinkResourceNode } from './types/node.resources.link';
import { ResourceTag } from 'outscale-api';


export class InternetServiceResourceNode extends ResourceNode implements LinkResourceNode {

constructor(readonly profile: Profile, readonly resourceName: string, readonly resourceId: string, readonly resourceState: string) {
super(profile, resourceName, resourceId, "InternetService", deleteInternetService, getInternetService);
constructor(readonly profile: Profile, readonly resourceName: string, readonly resourceId: string, readonly resourceState: string, readonly tags: Array<ResourceTag> | undefined) {
super(profile, resourceName, resourceId, "InternetService", deleteInternetService, getInternetService, tags);
}

getContextValue(): string {
Expand Down
Loading
Loading