edit
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
Any raw assets you want to be deployed with your application can be placed in
|
|
||||||
this directory (and child directories). Deployment of the asset to your application
|
|
||||||
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
|
|
||||||
|
|
||||||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
|
||||||
|
|
||||||
These files will be deployed with your package and will be accessible using Essentials:
|
|
||||||
|
|
||||||
async Task LoadMauiAsset()
|
|
||||||
{
|
|
||||||
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
|
|
||||||
using var reader = new StreamReader(stream);
|
|
||||||
|
|
||||||
var contents = reader.ReadToEnd();
|
|
||||||
}
|
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
display: block;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -123,16 +123,16 @@
|
|||||||
// ========== DEBUG LOGGING ==========
|
// ========== DEBUG LOGGING ==========
|
||||||
function debugLog(msg) {
|
function debugLog(msg) {
|
||||||
console.log('[Reader] ' + msg);
|
console.log('[Reader] ' + msg);
|
||||||
var logDiv = document.getElementById('debug-log');
|
//var logDiv = document.getElementById('debug-log');
|
||||||
if (logDiv) {
|
//if (logDiv) {
|
||||||
var line = document.createElement('div');
|
// var line = document.createElement('div');
|
||||||
line.textContent = new Date().toLocaleTimeString() + ': ' + msg;
|
// line.textContent = new Date().toLocaleTimeString() + ': ' + msg;
|
||||||
logDiv.appendChild(line);
|
// logDiv.appendChild(line);
|
||||||
logDiv.scrollTop = logDiv.scrollHeight;
|
// logDiv.scrollTop = logDiv.scrollHeight;
|
||||||
while (logDiv.children.length > 50) {
|
// while (logDiv.children.length > 50) {
|
||||||
logDiv.removeChild(logDiv.firstChild);
|
// logDiv.removeChild(logDiv.firstChild);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showError(msg) {
|
function showError(msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user