Merge pull request #1249 from unoplatform/dev/ds/nav-options

Rename Frame Navigation Option -> Blank
This commit is contained in:
Dan Siegel 2023-03-10 08:22:28 -06:00 коммит произвёл GitHub
Родитель 3556320c36 fc604f4e32
Коммит d73afd94d5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 20 добавлений и 21 удалений

Просмотреть файл

@ -33,7 +33,7 @@ jobs:
templateArgs: '-di false'
HostingOnly:
createdProjectName: UnoAppHostingOnly01
templateArgs: '-config false -loc false -http false -log none --navigation frame'
templateArgs: '-config false -loc false -http false -log none --navigation blank'
NoConfiguration:
createdProjectName: UnoAppNoConfiguration01
templateArgs: '-config false'
@ -54,7 +54,7 @@ jobs:
templateArgs: '-server false -http false'
FrameNavigation:
createdProjectName: UnoAppFrameNavigation01
templateArgs: '--navigation frame'
templateArgs: '--navigation blank'
Net6:
createdProjectName: UnoAppNet6
templateArgs: '-tfm net6.0'

Просмотреть файл

@ -391,17 +391,16 @@
"datatype": "choice",
"choices": [
{
"choice": "default",
"displayName": "Default",
"description": "Uses Uno.Extensions.Navigation to navigate between pages"
"choice": "regions",
"displayName": "Regions",
"description": "Uses Uno.Extensions.Navigation to navigate using regions"
},
{
"choice": "frame",
"displayName": "Frame",
"description": "Uses Frame to navigate between pages"
"choice": "blank",
"displayName": "Blank",
"description": "Provides Blank App experience with default WinUI Frame Navigation"
}
],
"defaultValue": "default"
]
},
"cpm": {
"displayName": "Central Package Management",
@ -1119,11 +1118,11 @@
"cases": [
{
"condition": "(preset == 'recommended')",
"value": "default"
"value": "regions"
},
{
"condition": "(preset == 'blank')",
"value": "frame"
"value": "blank"
}
]
}
@ -1139,22 +1138,22 @@
"useExtensionsNavigation": {
"type": "computed",
"datatype": "bool",
"value": "useDependencyInjection && navigationEvaluator != 'frame'"
"value": "useDependencyInjection && navigationEvaluator != 'blank'"
},
"useReactiveExtensionsNavigation": {
"type": "computed",
"datatype": "bool",
"value": "useExtensionsNavigation && useMvux"
},
"useDefaultNav": {
"useRegionsNav": {
"type": "computed",
"datatype": "bool",
"value": "useExtensionsNavigation && navigationEvaluator == 'default'"
"value": "useExtensionsNavigation && navigationEvaluator == 'regions'"
},
"useFrameNav": {
"type": "computed",
"datatype": "bool",
"value": "preset == 'blank' || !useDependencyInjection || navigationEvaluator == 'frame'"
"value": "!useDependencyInjection || navigationEvaluator == 'blank'"
},
"useInfrastructureNamespace": {
"type": "computed",
@ -1164,7 +1163,7 @@
"useBusinessModelsNamespace": {
"type": "computed",
"datatype": "bool",
"value": "useDependencyInjection && (useConfiguration || navigationEvaluator != 'frame')"
"value": "useDependencyInjection && (useConfiguration || navigationEvaluator != 'blank')"
},
"HostIdentifier": {
"type": "bind",
@ -1565,9 +1564,9 @@
}
},
{
"condition": "(!useDefaultNav)",
"condition": "(!useRegionsNav)",
"exclude": [
"MyExtensionsApp/Business/Models/Entity.cs",
"MyExtensionsApp/Business/Models/Entity.cs"
]
},
{

Просмотреть файл

@ -14,7 +14,7 @@ public class App : Application
{
var builder = this.CreateBuilder(args)
#if (useDefaultNav)
#if (useExtensionsNavigation)
// Add navigation support for toolkit controls such as TabBar and NavigationView
.UseToolkitNavigation()
#endif
@ -110,7 +110,7 @@ public class App : Application
private static void RegisterRoutes(IViewRegistry views, IRouteRegistry routes)
{
#if (useDefaultNav)
#if (useRegionsNav)
views.Register(
new ViewMap(ViewModel: typeof($shellRouteViewModel$)),
new ViewMap<MainPage, $mainRouteViewModel$>(),