Portal links for main branch (#12319)

* first commit

* json field added

* message genericized

* order changed

* removed summary page text

* fixed url
This commit is contained in:
Alex Ma
2020-09-15 14:41:10 -07:00
committed by GitHub
parent caeb33248e
commit 92ed830564
5 changed files with 109 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
<svg id="a96792b7-ce28-4ca3-9767-4e065ef4820f" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18">
<defs>
<linearGradient id="ef16bf9d-a8b6-4181-b6cd-66fc5203f956" x1="2.59" y1="10.16" x2="15.41" y2="10.16" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#005ba1" />
<stop offset="0.07" stop-color="#0060a9" />
<stop offset="0.36" stop-color="#0071c8" />
<stop offset="0.52" stop-color="#0078d4" />
<stop offset="0.64" stop-color="#0074cd" />
<stop offset="0.82" stop-color="#006abb" />
<stop offset="1" stop-color="#005ba1" />
</linearGradient>
<radialGradient id="bf3846c3-4d74-4743-ab9a-f334c248bd92" cx="9.36" cy="10.57" r="7.07" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#f2f2f2" />
<stop offset="0.58" stop-color="#eee" />
<stop offset="1" stop-color="#e6e6e6" />
</radialGradient>
</defs>
<title>Icon-databases-130</title>
<path d="M9,5.14c-3.54,0-6.41-1-6.41-2.32V15.18c0,1.27,2.82,2.3,6.32,2.32H9c3.54,0,6.41-1,6.41-2.32V2.82C15.41,4.11,12.54,5.14,9,5.14Z" fill="url(#ef16bf9d-a8b6-4181-b6cd-66fc5203f956)" />
<path d="M15.41,2.82c0,1.29-2.87,2.32-6.41,2.32s-6.41-1-6.41-2.32S5.46.5,9,.5s6.41,1,6.41,2.32" fill="#e8e8e8" />
<path d="M13.92,2.63c0,.82-2.21,1.48-4.92,1.48S4.08,3.45,4.08,2.63,6.29,1.16,9,1.16s4.92.66,4.92,1.47" fill="#50e6ff" />
<path d="M9,3a11.55,11.55,0,0,0-3.89.57A11.42,11.42,0,0,0,9,4.11a11.15,11.15,0,0,0,3.89-.58A11.84,11.84,0,0,0,9,3Z" fill="#198ab3" />
<path d="M12.9,11.4V8H12v4.13h2.46V11.4ZM5.76,9.73a1.83,1.83,0,0,1-.51-.31.44.44,0,0,1-.12-.32.34.34,0,0,1,.15-.3.68.68,0,0,1,.42-.12,1.62,1.62,0,0,1,1,.29V8.11a2.58,2.58,0,0,0-1-.16,1.64,1.64,0,0,0-1.09.34,1.08,1.08,0,0,0-.42.89c0,.51.32.91,1,1.21a2.88,2.88,0,0,1,.62.36.42.42,0,0,1,.15.32.38.38,0,0,1-.16.31.81.81,0,0,1-.45.11,1.66,1.66,0,0,1-1.09-.42V12a2.17,2.17,0,0,0,1.07.24,1.88,1.88,0,0,0,1.18-.33A1.08,1.08,0,0,0,6.84,11a1.05,1.05,0,0,0-.25-.7A2.42,2.42,0,0,0,5.76,9.73ZM11,11.32a2.34,2.34,0,0,0,.33-1.26A2.32,2.32,0,0,0,11,9a1.81,1.81,0,0,0-.7-.75,2,2,0,0,0-1-.26,2.11,2.11,0,0,0-1.08.27A1.86,1.86,0,0,0,7.49,9a2.46,2.46,0,0,0-.26,1.14,2.26,2.26,0,0,0,.24,1,1.76,1.76,0,0,0,.69.74,2.06,2.06,0,0,0,1,.3l.86,1h1.21L10,12.08A1.79,1.79,0,0,0,11,11.32ZM10,11.07a.94.94,0,0,1-.76.35.92.92,0,0,1-.76-.36,1.52,1.52,0,0,1-.29-1,1.53,1.53,0,0,1,.29-1,1,1,0,0,1,.78-.37.87.87,0,0,1,.75.37,1.62,1.62,0,0,1,.27,1A1.46,1.46,0,0,1,10,11.07Z" fill="url(#bf3846c3-4d74-4743-ab9a-f334c248bd92)" />
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -391,6 +391,71 @@
"when": "version=sql2019"
}
]
},
{
"name": "sql-azure-setup",
"displayName": "%azure-sqldb-display-name%",
"description": "%azure-sqldb-description%",
"platforms": "*",
"icon": {
"light": "./images/azure-sql-db.svg",
"dark": "./images/azure-sql-db.svg"
},
"okButtonText": "%azure-sqldb-ok-button-text%",
"options": [
{
"name": "resource-type",
"displayName": "%resource-type-display-name%",
"values": [
{
"name": "single-database",
"displayName": "%sql-azure-single-database-display-name%"
},
{
"name": "elastic-pool",
"displayName": "%sql-azure-elastic-pool-display-name%"
},
{
"name": "database-server",
"displayName": "%sql-azure-database-server-display-name%"
}
]
}
],
"providers": [
{
"webPageUrl": "https://portal.azure.com/#create/Microsoft.SQLDatabase",
"requiredTools": [],
"when": "resource-type=single-database"
},
{
"webPageUrl": "https://portal.azure.com/#create/Microsoft.SQLElasticDatabasePool",
"requiredTools": [],
"when": "resource-type=elastic-pool"
},
{
"webPageUrl": "https://portal.azure.com/#create/Microsoft.SQLServer",
"requiredTools": [],
"when": "resource-type=database-server"
}
],
"agreement": {
"template": "%azure-sqldb-agreement%",
"links": [
{
"text": "%microsoft-privacy-statement%",
"url": "https://go.microsoft.com/fwlink/?LinkId=853010"
},
{
"text": "%azure-sqldb-agreement-sqldb-eula%",
"url": "https://azure.microsoft.com/support/legal/"
},
{
"text": "%azure-sqldb-agreement-azdata-eula%",
"url": "https://aka.ms/eula-azdata-en"
}
]
}
}
]
},

View File

@@ -46,5 +46,15 @@
"bdc-agreement-azdata-eula": "azdata License Terms",
"bdc-agreement-bdc-eula": "SQL Server License Terms",
"deployment.configuration.title": "Deployment configuration",
"azdata-install-location-description": "Location of the azdata package used for the install command"
"azdata-install-location-description": "Location of the azdata package used for the install command",
"azure-sqldb-display-name": "Azure SQL Database",
"azure-sqldb-description": "Select a resource type and then you will be taken to the Azure portal to create the Azure resource.",
"azure-sqldb-ok-button-text": "Create in Azure portal",
"resource-type-display-name": "Resource Type",
"sql-azure-single-database-display-name": "Single Database",
"sql-azure-elastic-pool-display-name": "Elastic Pool",
"sql-azure-database-server-display-name": "Database Server",
"azure-sqldb-agreement": "I accept {0}, {1} and {2}.",
"azure-sqldb-agreement-sqldb-eula": "Azure SQL DB License Terms",
"azure-sqldb-agreement-azdata-eula": "azdata License Terms"
}

View File

@@ -18,6 +18,7 @@ export interface ResourceType {
providers: DeploymentProvider[];
agreement?: AgreementInfo;
displayIndex?: number;
okButtonText?: string;
getProvider(selectedOptions: { option: string, value: string }[]): DeploymentProvider | undefined;
}

View File

@@ -176,6 +176,14 @@ export class ResourceTypePickerDialog extends DialogBase {
private selectResourceType(resourceType: ResourceType): void {
this._selectedResourceType = resourceType;
//handle special case when resource type has different OK button.
if (this._selectedResourceType.okButtonText) {
this._dialogObject.okButton.label = this._selectedResourceType.okButtonText;
}
else {
this._dialogObject.okButton.label = localize('deploymentDialog.OKButtonText', "Select");
}
this._agreementCheckboxChecked = false;
this._agreementContainer.clearItems();
if (resourceType.agreement) {