Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Xamarin for Android, iOS and UWP running on .NET Standard Library. * Working on Home page * Added MasterDetailPage, WIP * Working on Weather Widget View Working on Android, missing config and iOS resources * Some adjustements to Weather view * Refactor WeatherWidgetItem style * Refactor existing pages style and organization * Working on MainMenu * MainPage -> HomePage, created LiftStatusPage * Working on Lift Status page Also, updated csproj of iOS project after update * Working on Lift Status * Weather Widget gets real data * Fixed binding problem on WeatherWidgetItem * Adding SplashScreens and Icons * Added splash logo * Added tinier splash image * working on the documentdb integration * Working on Lift Status List * Fix loading in LiftStatus page in iOS * Working on rentals * modify the backend services to use DocumentDB * Working on rentals page * Working on Dining, also created some Solution Folders * Integrate documentDB * Fix issues * Working on Dining, also created some Solution Folders * More work on dining page * Stars and dollars signs * New default user geolocation, some config * Apply some feedback Add marker icon * Image loading and listview optimizations * Working on new NavigationService * Dining and Lift detail * Recover cachingstrategy in DiningPage * Remove unused var * DistanceFormattedText converter * DistanceFormattedText converter * Lift Detail map marker * Rental tabs and created rental form view * SkiApp data generator update * Update database views * AppSettings update, real keys have been replced by variables * Changed Recommendations API from DataMarket to Cognitive Services * Working on Dining View * FIxed sorting * Changed Anomaly Detection API from DataMarket to AzureML * Updated deployment script * Updated setup doc * Navigation fixed * tokenize the XamarinApp config * Fix an issue with the store procedure * Delete .suo * Tabbed Page icons for iOS * Working on rental form * Working on rental form * Working on the batch scoring * working on the batch scoring feature * Change the SA logic to start/stop the existing jobs * Fix the query * Working on forms * automate powebi, cognetive services & azureml * Form actually saves data * Rental form saves and navigates back to the list * Move data initializers to a new method in rental form * Rental DTO for creation, fixed issue with missing JSON serializations * Improve the doc * add the sample app to import the powerbi report * Update the app * Change pickuphour to TimeSpan * Added loading state * fix deployments issues * Fix date select and data initialization * Sorting icon in dinner, optimize PNG * Optimize PNG iOS resources * Fix issues * Fix issues * update advanced app * Better UI in Lifts page * High demand * Add scrollview * Update image for better resolution * Similar restaurants recommendations * Better HTTP handling, working on Auth * Working on Login * User info fetching * Login complete * update docs
- Loading branch information
Showing
295 changed files
with
34,098 additions
and
2,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
|
||
param( | ||
[String] $accountName, | ||
[String] $connectionKey, | ||
[String] $databaseName, | ||
[String] $collectionName | ||
) | ||
|
||
begin | ||
{ | ||
Write-Host $accountName | ||
Write-Host $databaseName | ||
Write-Host $collectionName | ||
|
||
function GetKey([System.String]$Verb = '',[System.String]$ResourceId = '', | ||
[System.String]$ResourceType = '',[System.String]$Date = '',[System.String]$masterKey = '') { | ||
|
||
$keyBytes = [System.Convert]::FromBase64String($masterKey) | ||
$text = @($Verb.ToLowerInvariant() + "`n" + $ResourceType.ToLowerInvariant() + "`n" + $ResourceId + "`n" + $Date.ToLowerInvariant() + "`n" + "`n") | ||
$body =[Text.Encoding]::UTF8.GetBytes($text) | ||
$hmacsha = new-object -TypeName System.Security.Cryptography.HMACSHA256 -ArgumentList (,$keyBytes) | ||
$hash = $hmacsha.ComputeHash($body) | ||
$signature = [System.Convert]::ToBase64String($hash) | ||
|
||
[System.Web.HttpUtility]::UrlEncode($('type=master&ver=1.0&sig=' + $signature)) | ||
} | ||
|
||
function GetUTDate() { | ||
$date = get-date | ||
$date = $date.ToUniversalTime(); | ||
return $date.ToString("ddd, dd MMM yyyy HH:mm:ss \G\M\T") | ||
} | ||
|
||
function BuildHeaders([string]$action = "get",[string]$resType, [string]$resourceId){ | ||
$authz = GetKey -Verb $action -ResourceType $resType -ResourceId $resourceId -Date $apiDate -masterKey $connectionKey | ||
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | ||
$headers.Add("Authorization", $authz) | ||
$headers.Add("x-ms-version", '2015-12-16') | ||
$headers.Add("x-ms-date", $apiDate) | ||
$headers | ||
} | ||
|
||
function GetDatabaseCount() { | ||
$uri = $rootUri + "/dbs" | ||
$hdr = BuildHeaders -resType dbs | ||
$response = Invoke-RestMethod -Uri $uri -Method Get -Headers $hdr | ||
$response.Databases.Count | ||
Write-Host ("Found " + $Response.Databases.Count + " Database(s)") | ||
} | ||
|
||
function CreateDatabase(){ | ||
$uri = $rootUri + "/dbs" | ||
$headers = BuildHeaders -action Post -resType dbs | ||
$headers.Add("x-ms-documentdb-is-upsert", "true") | ||
$content = @{id=$databaseName} | ConvertTo-Json | ||
$response = Invoke-RestMethod $uri -Method Post -Body $content -ContentType 'application/json' -Headers $headers | ||
} | ||
|
||
function CreateCollection(){ | ||
|
||
$uri = $rootUri + "/dbs/" + $databaseName + "/colls" | ||
$resourceId = "dbs/"+ $databaseName | ||
$headers = BuildHeaders -action Post -resType colls -resourceId $resourceId | ||
$headers.Add("x-ms-documentdb-is-upsert", "true") | ||
$headers.Add("x-ms-offer-throughput", "1000") | ||
|
||
$content = @{id=$collectionName} | ConvertTo-Json | ||
$response = Invoke-RestMethod $uri -Method Post -Body $content -ContentType 'application/json' -Headers $headers | ||
} | ||
|
||
$rootUri = "https://" + $accountName + ".documents.azure.com" | ||
write-host ("Root URI is " + $rootUri) | ||
$apiDate = GetUTDate | ||
|
||
$databasecount = GetDatabaseCount | ||
if ($databasecount -gt 1) { | ||
Write-Host "Database already exists" | ||
return | ||
} | ||
|
||
CreateDatabase | ||
CreateCollection | ||
|
||
} | ||
|
||
|
||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.