mobile fix, and port change

This commit is contained in:
Adam 2024-03-02 23:22:24 +01:00
parent 380b2ddaf5
commit f9b35f3de8
4 changed files with 16 additions and 7 deletions

View File

@ -1,9 +1,18 @@
namespace BlazorHybrid
using Microsoft.AspNetCore.Components.WebView.Maui;
namespace BlazorHybrid
{
public partial class MainPage : ContentPage
{
public MainPage()
{
BlazorWebViewHandler.BlazorWebViewMapper.AppendToMapping("CustomBlazorWebViewMapper", (handler, view) =>
{
#if IOS
var configs = handler.PlatformView.Configuration;
configs.AllowsInlineMediaPlayback = true;
#endif
});
InitializeComponent();
}
}

View File

@ -13,7 +13,7 @@
<base href="/" />
<link href="_content/SharedUI/css/app.css" rel="stylesheet" />
<!--Fontos-->
<link href="BlazorWasm.Client.styles.css" rel="stylesheet" />
<link href="BlazorHybrid.styles.css" rel="stylesheet" />
<!--Fontos vége-->
<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="_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>
</body>

View File

@ -11,7 +11,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:5153",
"applicationUrl": "http://localhost:5200",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
@ -21,7 +21,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"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": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

View File

@ -8,7 +8,7 @@
},
"dotnetRunMessages": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:5153"
"applicationUrl": "http://localhost:5200"
},
"https": {
"commandName": "Project",
@ -18,7 +18,7 @@
},
"dotnetRunMessages": true,
"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": {
"commandName": "IISExpress",