Skip to content

Commit

Permalink
add svg icons for loadbalancer, virtual machine scaleset, and service…
Browse files Browse the repository at this point in the history
… fabric resources. (#1255)

* add service fabric svg

* add service fabric svg

* add loadbalancer svg

* add vmss svg

* add svg icons for loadbalancer, virtual machine scaleset, and service fabric resources

* fix test getIcon: display correct icon
  • Loading branch information
jagilber authored Mar 15, 2021
1 parent 61ba4b9 commit b2458ef
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the "vscode-azurearmtools" extension will be documented in this file.

## Version 0.16.0 (2021--)

### Added

- Svg icons for loadbalancer, virtual machine scaleset, and service fabric resources.

## Version 0.15.0 (2021-03-08)

### Added
Expand Down
16 changes: 16 additions & 0 deletions icons/loadbalancers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions icons/servicefabric.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/virtualmachinescalesets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/vscodeIntegration/Treeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const resourceIcons: [string, string][] = [
["Microsoft.Automation/automationAccounts/webhooks", "automation.svg"],
["Microsoft.Cdn/profiles", "cdnprofiles.svg"],
["Microsoft.Compute/virtualMachines", "virtualmachines.svg"],
["Microsoft.Compute/virtualMachineScaleSets", "virtualmachinescalesets.svg"],
["Microsoft.Compute/virtualMachines/extensions", "extensions.svg"],
["Microsoft.ContainerInstance/containerGroups", "containerinstances.svg"],
["Microsoft.DocumentDB/databaseAccounts", "cosmosdb.svg"],
Expand Down Expand Up @@ -100,6 +101,7 @@ const resourceIcons: [string, string][] = [
["Microsoft.KeyVault/vaults/secrets", "keyvaults.svg"],
["Microsoft.Media/mediaServices", "mediaservices.svg"],
["Microsoft.Network/azureFirewalls", "firewall.svg"],
["Microsoft.Network/loadBalancers", "loadbalancers.svg"],
["Microsoft.Network/networkInterfaces", "nic.svg"],
["Microsoft.Network/networkSecurityGroups", "nsg.svg"],
["Microsoft.Network/networkSecurityGroups/securityRules", "nsg.svg"],
Expand All @@ -109,6 +111,7 @@ const resourceIcons: [string, string][] = [
["Microsoft.Network/trafficManagerProfiles", "trafficmanagerprofiles.svg"],
["Microsoft.Network/virtualNetworkGateways", "virtualnetworkgateways.svg"],
["Microsoft.Network/virtualNetworks", "virtualnetworks.svg"],
["Microsoft.ServiceFabric/clusters", "servicefabric.svg"],
["Microsoft.Sql/instancePools", "sqlservers.svg"],
["Microsoft.Sql/locations/instanceFailoverGroups", "sqlservers.svg"],
["Microsoft.Sql/managedInstances", "sqlservers.svg"],
Expand Down
12 changes: 12 additions & 0 deletions test/Treeview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ suite("TreeView", async (): Promise<void> => {
{
"type": "Microsoft.Compute/virtualMachines/extensions"
},
{
"type": "Microsoft.Compute/virtualMachineScaleSets"
},
{
"type": "Microsoft.ContainerInstance/containerGroups"
},
Expand Down Expand Up @@ -409,6 +412,9 @@ suite("TreeView", async (): Promise<void> => {
{
"type": "Microsoft.Network/azureFirewalls"
},
{
"type": "Microsoft.Network/loadBalancers"
},
{
"type": "Microsoft.Network/networkInterfaces"
},
Expand Down Expand Up @@ -436,6 +442,9 @@ suite("TreeView", async (): Promise<void> => {
{
"type": "Microsoft.Network/virtualNetworks"
},
{
"type": "Microsoft.ServiceFabric/clusters"
},
{
"type": "Microsoft.Sql/instancePools"
},
Expand Down Expand Up @@ -703,6 +712,7 @@ suite("TreeView", async (): Promise<void> => {
getIconObject("cdnprofiles.svg", undefined),
getIconObject("virtualmachines.svg", undefined),
getIconObject("extensions.svg", undefined),
getIconObject("virtualmachinescalesets.svg", undefined),
getIconObject("containerinstances.svg", undefined),
getIconObject("cosmosdb.svg", undefined),
getIconObject("cosmosdb.svg", undefined),
Expand Down Expand Up @@ -740,6 +750,7 @@ suite("TreeView", async (): Promise<void> => {
getIconObject("keyvaults.svg", undefined),
getIconObject("mediaservices.svg", undefined),
getIconObject("firewall.svg", undefined),
getIconObject("loadbalancers.svg", undefined),
getIconObject("nic.svg", undefined),
getIconObject("nsg.svg", undefined),
getIconObject("nsg.svg", undefined),
Expand All @@ -749,6 +760,7 @@ suite("TreeView", async (): Promise<void> => {
getIconObject("trafficmanagerprofiles.svg", undefined),
getIconObject("virtualnetworkgateways.svg", undefined),
getIconObject("virtualnetworks.svg", undefined),
getIconObject("servicefabric.svg", undefined),
getIconObject("sqlservers.svg", undefined),
getIconObject("sqlservers.svg", undefined),
getIconObject("sqlservers.svg", undefined),
Expand Down

0 comments on commit b2458ef

Please sign in to comment.