mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-19 03:27:29 +02:00
Version 3.0.372
This commit is contained in:
parent
6d22dbf40b
commit
f1cbab1d0a
97 changed files with 20446 additions and 17572 deletions
|
@ -139,6 +139,9 @@ namespace TINK.ViewModel.Info
|
|||
UpdateUrlsAction(urls); // Update main model to prevent duplicate queries.
|
||||
}
|
||||
|
||||
//set font size for html content (necessary for iOS)
|
||||
string headerString = "<header><meta name='viewport' content='width=device-width, intial-scale=2.0, maximum-scale=5.0, minimum-scale=1.0, user-scalable=no'></header>";
|
||||
|
||||
// Gets privacy info from server.
|
||||
async Task<HtmlWebViewSource> GetInfoPrivacy()
|
||||
{
|
||||
|
@ -150,7 +153,7 @@ namespace TINK.ViewModel.Info
|
|||
// Information to access resource is missing
|
||||
return new HtmlWebViewSource
|
||||
{
|
||||
Html = await Task.FromResult(ViewModelHelper.FromBody("No privacy resource available. Resource path is null or empty."))
|
||||
Html = headerString + await Task.FromResult(ViewModelHelper.FromBody("No privacy resource available. Resource path is null or empty."))
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -158,7 +161,7 @@ namespace TINK.ViewModel.Info
|
|||
|
||||
return new HtmlWebViewSource
|
||||
{
|
||||
Html = await ViewModelHelper.GetSource(
|
||||
Html = headerString + await ViewModelHelper.GetSource(
|
||||
GetUriText(), // "site/privacy.html"
|
||||
IsSiteCachingOn)
|
||||
};
|
||||
|
@ -175,7 +178,7 @@ namespace TINK.ViewModel.Info
|
|||
// Information to access resource is missing
|
||||
return new HtmlWebViewSource
|
||||
{
|
||||
Html = await Task.FromResult(ViewModelHelper.FromBody("No impress resource available. Resource path is null or empty."))
|
||||
Html = headerString + await Task.FromResult(ViewModelHelper.FromBody("No impress resource available. Resource path is null or empty."))
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -183,7 +186,7 @@ namespace TINK.ViewModel.Info
|
|||
|
||||
return new HtmlWebViewSource
|
||||
{
|
||||
Html = await ViewModelHelper.GetSource(
|
||||
Html = headerString + await ViewModelHelper.GetSource(
|
||||
GetUriText(), // "site/privacy.html"
|
||||
IsSiteCachingOn)
|
||||
};
|
||||
|
@ -210,11 +213,14 @@ namespace TINK.ViewModel.Info
|
|||
string GetUriText()
|
||||
=> $"https://{hostName}/{agbResourcePath}";
|
||||
|
||||
//set font size for html content (necessary for iOS)
|
||||
string headerString = "<header><meta name='viewport' content='width=device-width, intial-scale=2.0, maximum-scale=5.0, minimum-scale=1.0, user-scalable=no'></header>";
|
||||
|
||||
if (string.IsNullOrEmpty(agbResourcePath))
|
||||
{
|
||||
return new HtmlWebViewSource
|
||||
{
|
||||
Html = await Task.FromResult(ViewModelHelper.FromBody("No terms resource available. Resource path is null or empty."))
|
||||
Html = headerString + await Task.FromResult(ViewModelHelper.FromBody("No terms resource available. Resource path is null or empty."))
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -222,7 +228,7 @@ namespace TINK.ViewModel.Info
|
|||
|
||||
return new HtmlWebViewSource
|
||||
{
|
||||
Html = await ViewModelHelper.GetSource(
|
||||
Html = headerString + await ViewModelHelper.GetSource(
|
||||
GetUriText(), // "agb.html"
|
||||
isSiteCachingOn)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue