mobile fix, and port change
This commit is contained in:
parent
380b2ddaf5
commit
f9b35f3de8
|
|
@ -1,9 +1,18 @@
|
||||||
namespace BlazorHybrid
|
using Microsoft.AspNetCore.Components.WebView.Maui;
|
||||||
|
|
||||||
|
namespace BlazorHybrid
|
||||||
{
|
{
|
||||||
public partial class MainPage : ContentPage
|
public partial class MainPage : ContentPage
|
||||||
{
|
{
|
||||||
public MainPage()
|
public MainPage()
|
||||||
{
|
{
|
||||||
|
BlazorWebViewHandler.BlazorWebViewMapper.AppendToMapping("CustomBlazorWebViewMapper", (handler, view) =>
|
||||||
|
{
|
||||||
|
#if IOS
|
||||||
|
var configs = handler.PlatformView.Configuration;
|
||||||
|
configs.AllowsInlineMediaPlayback = true;
|
||||||
|
#endif
|
||||||
|
});
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<base href="/" />
|
<base href="/" />
|
||||||
<link href="_content/SharedUI/css/app.css" rel="stylesheet" />
|
<link href="_content/SharedUI/css/app.css" rel="stylesheet" />
|
||||||
<!--Fontos-->
|
<!--Fontos-->
|
||||||
<link href="BlazorWasm.Client.styles.css" rel="stylesheet" />
|
<link href="BlazorHybrid.styles.css" rel="stylesheet" />
|
||||||
<!--Fontos vége-->
|
<!--Fontos vége-->
|
||||||
<link rel="stylesheet" href="_content/SharedUI/assets/css/style.css">
|
<link rel="stylesheet" href="_content/SharedUI/assets/css/style.css">
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
|
||||||
<script src="_framework/blazor.webassembly.js" autostart="true"></script>
|
<script src="_framework/blazor.webview.js" autostart="true"></script>
|
||||||
<script src="_content/SharedUI/assets/js/scripts.js"></script>
|
<script src="_content/SharedUI/assets/js/scripts.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
"applicationUrl": "http://localhost:5153",
|
"applicationUrl": "http://localhost:5200",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
"applicationUrl": "https://localhost:7185;http://localhost:5153",
|
"applicationUrl": "https://localhost:7300;http://localhost:5200",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
"applicationUrl": "http://localhost:5153"
|
"applicationUrl": "http://localhost:5200"
|
||||||
},
|
},
|
||||||
"https": {
|
"https": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
},
|
},
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||||
"applicationUrl": "https://localhost:7185;http://localhost:5153"
|
"applicationUrl": "https://localhost:7300;http://localhost:5200"
|
||||||
},
|
},
|
||||||
"IIS Express": {
|
"IIS Express": {
|
||||||
"commandName": "IISExpress",
|
"commandName": "IISExpress",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue