mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 04:11:10 +00:00
Moves the file explorer styling and layout into the bundled themes
This commit is contained in:
1 parent
3f69693332
commit
a32f80337b
72 files changed
+1577
-1682
No files matched your search
@@ -0,0 +1,105 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Themes;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System.Collections.Generic;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Themes;
|
||||
|
||||
/// <summary>
|
||||
/// Builds the file system browser model for the themed component template, resolving the localized strings and theme asset URLs server side.
|
||||
/// </summary>
|
||||
public sealed class ThemeFileSystemBrowserBuilder
|
||||
{
|
||||
// the resource base name deliberately excludes the "Core.Resources" segment: the localization factory re-roots it with the configured ResourcesPath
|
||||
private const string VIEW_RESOURCE_BASE_NAME = "Lumina.Presentation.Web.Views.Shared.Components.FileSystemBrowser.Default";
|
||||
private const string VIEW_RESOURCE_LOCATION = "Lumina.Presentation.Web";
|
||||
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
private readonly IStringLocalizer _localizer;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ThemeFileSystemBrowserBuilder"/> class.
|
||||
/// </summary>
|
||||
/// <param name="stringLocalizerFactory">Injected factory used to create the localizer of the file system browser resources.</param>
|
||||
/// <param name="httpContextAccessor">Injected accessor for the current HTTP context.</param>
|
||||
public ThemeFileSystemBrowserBuilder(IStringLocalizerFactory stringLocalizerFactory, IHttpContextAccessor httpContextAccessor)
|
||||
{
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
_localizer = stringLocalizerFactory.Create(VIEW_RESOURCE_BASE_NAME, VIEW_RESOURCE_LOCATION);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Builds the model of the file system browser component for the given theme.
|
||||
/// </summary>
|
||||
/// <param name="assetBase">The base URL of the assets of the active theme.</param>
|
||||
/// <param name="treeNodeTemplate">The raw template source of the tree view node, or an empty string when the theme does not provide one.</param>
|
||||
/// <param name="explorerItemTemplate">The raw template source of the explorer item, or an empty string when the theme does not provide one.</param>
|
||||
/// <param name="pathSegmentTemplate">The raw template source of the address bar path segment, or an empty string when the theme does not provide one.</param>
|
||||
/// <returns>The model available to the themed file system browser template.</returns>
|
||||
public ThemeFileSystemBrowserDto Build(
|
||||
string assetBase,
|
||||
string treeNodeTemplate,
|
||||
string explorerItemTemplate,
|
||||
string pathSegmentTemplate)
|
||||
{
|
||||
Dictionary<string, object?> strings = new()
|
||||
{
|
||||
["listView"] = Localize("ListView"),
|
||||
["detailsView"] = Localize("DetailsView"),
|
||||
["smallIconsView"] = Localize("SmallIconsView"),
|
||||
["mediumIconsView"] = Localize("MediumIconsView"),
|
||||
["largeIconsView"] = Localize("LargeIconsView"),
|
||||
["extraLargeIconsView"] = Localize("ExtraLargeIconsView"),
|
||||
["back"] = Localize("Back"),
|
||||
["forward"] = Localize("Forward"),
|
||||
["upOneLevel"] = Localize("UpOneLevel"),
|
||||
["toggleTreeView"] = Localize("ToggleTreeView"),
|
||||
["toggleThumbnails"] = Localize("ToggleThumbanils"),
|
||||
["toggleHiddenItems"] = Localize("ToggleHiddenItems"),
|
||||
["toggleSelectionMode"] = Localize("ToggleSelectionMode"),
|
||||
["editPath"] = Localize("EditPath"),
|
||||
["navigate"] = Localize("Navigate"),
|
||||
["newDirectory"] = Localize("NewDirectory"),
|
||||
["favoriteDirectory"] = Localize("FavoriteDirectory"),
|
||||
["name"] = Localize("Name"),
|
||||
["directory"] = Localize("Directory"),
|
||||
["cancel"] = Localize("Cancel"),
|
||||
["open"] = Localize("Open")
|
||||
};
|
||||
|
||||
return new ThemeFileSystemBrowserDto(
|
||||
AppBase: GetAppBaseUrl(),
|
||||
AssetBase: assetBase,
|
||||
IconBaseUrl: $"{assetBase}/images/icons",
|
||||
FileIconsUrl: $"{assetBase}/file-icons.json",
|
||||
TreeNodeTemplate: treeNodeTemplate,
|
||||
ExplorerItemTemplate: explorerItemTemplate,
|
||||
PathSegmentTemplate: pathSegmentTemplate,
|
||||
Strings: strings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the absolute base URL of the current Web application request, used to reference the application scripts from a static theme template.
|
||||
/// </summary>
|
||||
/// <returns>The absolute base URL with a trailing slash, or an empty string when the current HTTP context is unavailable.</returns>
|
||||
private string GetAppBaseUrl()
|
||||
{
|
||||
HttpRequest? request = _httpContextAccessor.HttpContext?.Request;
|
||||
if (request is null)
|
||||
return string.Empty;
|
||||
|
||||
return $"{request.Scheme}://{request.Host}{request.PathBase}/";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resolves a localized file system browser string.
|
||||
/// </summary>
|
||||
/// <param name="key">The resource key of the string.</param>
|
||||
/// <returns>The localized string.</returns>
|
||||
private string Localize(string key)
|
||||
{
|
||||
return _localizer[key].Value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Themes;
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Core.Themes;
|
||||
|
||||
/// <summary>
|
||||
/// Renders the file system browser component with the active theme, inlining the sub templates of its dynamic content so that the client script can render nodes, items and path segments from theme markup.
|
||||
/// </summary>
|
||||
public class ThemeFileSystemBrowserRenderer
|
||||
{
|
||||
// the page keys mirror the template files of the theme packs, pinned in each theme manifest so that a missing sub template does not resolve to the component shell template
|
||||
private const string SHELL_PAGE_KEY = "shared/file-system-browser";
|
||||
private const string TREE_NODE_PAGE_KEY = "shared/file-system-browser/tree-node";
|
||||
private const string EXPLORER_ITEM_PAGE_KEY = "shared/file-system-browser/explorer-item";
|
||||
private const string PATH_SEGMENT_PAGE_KEY = "shared/file-system-browser/path-segment";
|
||||
|
||||
private static readonly JsonSerializerOptions s_camelCaseJsonOptions = new()
|
||||
{
|
||||
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
|
||||
};
|
||||
|
||||
private readonly ThemeService _themeService;
|
||||
private readonly ThemeTemplateEngine _templateEngine;
|
||||
private readonly ThemeFileSystemBrowserBuilder _builder;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ThemeFileSystemBrowserRenderer"/> class.
|
||||
/// </summary>
|
||||
/// <param name="themeService">The service that resolves the render documents.</param>
|
||||
/// <param name="templateEngine">The template engine used to render the component shell template.</param>
|
||||
/// <param name="builder">The builder used to produce the component model.</param>
|
||||
public ThemeFileSystemBrowserRenderer(ThemeService themeService, ThemeTemplateEngine templateEngine, ThemeFileSystemBrowserBuilder builder)
|
||||
{
|
||||
_themeService = themeService;
|
||||
_templateEngine = templateEngine;
|
||||
_builder = builder;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Renders the themed file system browser component.
|
||||
/// </summary>
|
||||
/// <param name="configuration">The runtime configuration of the file system browser.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>An <see cref="Result{TValue}"/> containing either the component HTML, or an error.</returns>
|
||||
public virtual async Task<Result<string>> RenderAsync(ThemeFileSystemBrowserConfigurationDto configuration, CancellationToken cancellationToken)
|
||||
{
|
||||
try
|
||||
{
|
||||
ThemeRenderDocumentDto shellDocument = await _themeService.GetRenderDocumentAsync(SHELL_PAGE_KEY, requestedThemeId: null, cancellationToken).ConfigureAwait(false);
|
||||
string themeId = shellDocument.Theme.Id;
|
||||
string assetBase = $"/theme-assets/{themeId}/assets";
|
||||
|
||||
string treeNodeTemplate = await GetSubTemplateAsync(themeId, shellDocument.Template, TREE_NODE_PAGE_KEY, cancellationToken).ConfigureAwait(false);
|
||||
string explorerItemTemplate = await GetSubTemplateAsync(themeId, shellDocument.Template, EXPLORER_ITEM_PAGE_KEY, cancellationToken).ConfigureAwait(false);
|
||||
string pathSegmentTemplate = await GetSubTemplateAsync(themeId, shellDocument.Template, PATH_SEGMENT_PAGE_KEY, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
ThemeFileSystemBrowserDto model = _builder.Build(assetBase, treeNodeTemplate, explorerItemTemplate, pathSegmentTemplate);
|
||||
Result<ThemePageRenderResultDto> renderResult = _templateEngine.RenderPage(shellDocument.Template, model);
|
||||
if (renderResult.IsFailure)
|
||||
return renderResult.Errors;
|
||||
|
||||
return renderResult.Value.Content + renderResult.Value.Script + BuildInitializationScript(configuration, assetBase);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// the file system browser is best effort: when the component template of the active theme cannot be loaded or rendered, the application Razor fallback is rendered instead
|
||||
return Error.NotFound(code: "Theme.Template.Unavailable", description: "The file system browser theme template could not be loaded.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the raw template source of a file system browser sub template, degrading to an empty string when the theme does not provide one.
|
||||
/// </summary>
|
||||
/// <param name="themeId">The manifest id of the active theme.</param>
|
||||
/// <param name="shellTemplate">The raw template source of the component shell, used to detect the mirrored resolution falling back to the shell when a sub template is missing.</param>
|
||||
/// <param name="pageKey">The page key of the sub template.</param>
|
||||
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
|
||||
/// <returns>The raw template source, or an empty string when the theme does not provide the template.</returns>
|
||||
private async Task<string> GetSubTemplateAsync(string themeId, string shellTemplate, string pageKey, CancellationToken cancellationToken)
|
||||
{
|
||||
try
|
||||
{
|
||||
ThemeRenderDocumentDto document = await _themeService.GetRenderDocumentAsync(pageKey, themeId, cancellationToken).ConfigureAwait(false);
|
||||
// when the theme does not ship the sub template, the mirrored template resolution walks up the path scopes
|
||||
// and returns the component shell template instead, which the client script must not render as dynamic content
|
||||
if (string.Equals(document.Template, shellTemplate, StringComparison.Ordinal))
|
||||
return string.Empty;
|
||||
|
||||
return document.Template;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// each sub template is best effort: when the theme omits one, the client script renders that part with its built-in markup instead
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Builds the initialization script of the file system browser, which passes the runtime configuration to the client script.
|
||||
/// </summary>
|
||||
/// <param name="configuration">The runtime configuration of the file system browser.</param>
|
||||
/// <param name="assetBase">The base URL of the assets of the active theme.</param>
|
||||
/// <returns>The initialization script element.</returns>
|
||||
private static string BuildInitializationScript(ThemeFileSystemBrowserConfigurationDto configuration, string assetBase)
|
||||
{
|
||||
string initConfigJson = JsonSerializer.Serialize(new
|
||||
{
|
||||
configuration.ServerBasePath,
|
||||
configuration.ClientBasePath,
|
||||
configuration.Path,
|
||||
configuration.ViewMode,
|
||||
configuration.IconSize,
|
||||
IconBaseUrl = $"{assetBase}/images/icons",
|
||||
FileIconsUrl = $"{assetBase}/file-icons.json"
|
||||
}, s_camelCaseJsonOptions);
|
||||
|
||||
return $"<script defer data-component-init=\"file-system-browser\">\n" +
|
||||
" // this outer function executes immediately and creates a scope for the variables\n" +
|
||||
" (function() {\n" +
|
||||
" // this inner function contains the actual initialization code that needs to run\n" +
|
||||
" async function checkAndInit() {\n" +
|
||||
" if (typeof initFileSystemBrowser === 'undefined' || typeof callApiGetAsync === 'undefined') {\n" +
|
||||
" setTimeout(checkAndInit, 10);\n" +
|
||||
" return;\n" +
|
||||
" }\n" +
|
||||
$" await initFileSystemBrowser({initConfigJson});\n" +
|
||||
" }\n" +
|
||||
" checkAndInit().catch(error => console.error('Failed to initialize file system browser:', error));\n" +
|
||||
" })();\n" +
|
||||
"</script>";
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,14 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Presentation.Web.Common.DTO.Configuration;
|
||||
using Lumina.Presentation.Web.Common.DTO.Themes;
|
||||
using Lumina.Presentation.Web.Common.Enums.FileSystem;
|
||||
using Lumina.Presentation.Web.Common.Primitives;
|
||||
using Lumina.Presentation.Web.Core.Themes;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -15,31 +20,43 @@ namespace Lumina.Presentation.Web.Core.ViewComponents;
|
||||
public class FileSystemBrowserViewComponent : ViewComponent
|
||||
{
|
||||
private readonly ServerConfigurationDto _serverConfiguration;
|
||||
private readonly ThemeFileSystemBrowserRenderer _renderer;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FileSystemBrowserViewComponent"/> class.
|
||||
/// </summary>
|
||||
/// <param name="serverConfigurationOptions">Injected service for retrieving <see cref="ServerConfigurationDto"/>.</param>
|
||||
public FileSystemBrowserViewComponent(IOptions<ServerConfigurationDto> serverConfigurationOptions)
|
||||
/// <param name="renderer">Injected renderer of the themed file system browser component.</param>
|
||||
public FileSystemBrowserViewComponent(IOptions<ServerConfigurationDto> serverConfigurationOptions, ThemeFileSystemBrowserRenderer renderer)
|
||||
{
|
||||
_serverConfiguration = serverConfigurationOptions.Value;
|
||||
_renderer = renderer;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invokes the <see cref="FileSystemBrowser"/> view component.
|
||||
/// Invokes the <see cref="FileSystemBrowser"/> view component, rendering the theme template of the file system browser when available.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// An <see cref="IViewComponentResult"/> that renders the view with file system browsing configuration.
|
||||
/// </returns>
|
||||
public IViewComponentResult Invoke()
|
||||
/// <returns>An <see cref="IViewComponentResult"/> that renders the themed component, or the application fallback view when the theme template is unavailable.</returns>
|
||||
public async Task<IViewComponentResult> InvokeAsync()
|
||||
{
|
||||
ThemeFileSystemBrowserConfigurationDto configuration = new(
|
||||
ServerBasePath: $"{_serverConfiguration.BaseAddress}:{_serverConfiguration.Port}/api/v{_serverConfiguration.ApiVersion}/",
|
||||
ClientBasePath: "http://localhost:5012/", // TODO: take from appsettings or environment
|
||||
Path: RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\",
|
||||
ViewMode: FileSystemViewMode.List.ToString().ToLower(),
|
||||
IconSize: FileSystemIconSize.Large.ToString().ToLower());
|
||||
|
||||
Result<string> themedResult = await _renderer.RenderAsync(configuration, CancellationToken.None).ConfigureAwait(false);
|
||||
if (themedResult.IsSuccess)
|
||||
return View("Themed", themedResult.Value);
|
||||
|
||||
return View(new
|
||||
{
|
||||
Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\",
|
||||
ServerBasePath = $"{_serverConfiguration.BaseAddress}:{_serverConfiguration.Port}/api/v{_serverConfiguration.ApiVersion}/",
|
||||
ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment
|
||||
ViewMode = FileSystemViewMode.List,
|
||||
IconSize = FileSystemIconSize.Large
|
||||
{
|
||||
Path = configuration.Path,
|
||||
ServerBasePath = configuration.ServerBasePath,
|
||||
ClientBasePath = configuration.ClientBasePath,
|
||||
ViewMode = configuration.ViewMode,
|
||||
IconSize = configuration.IconSize
|
||||
});
|
||||
}
|
||||
}
|
||||
+37
-477
@@ -1,488 +1,51 @@
|
||||
@using Lumina.Presentation.Web.Common.DTO.Common
|
||||
@using Lumina.Presentation.Web.Common.Api
|
||||
@using Lumina.Presentation.Web.Common.Enums.FileSystem
|
||||
@using Lumina.Presentation.Web.Common.Enums.Notifications
|
||||
@using Lumina.Presentation.Web.Common.Exceptions
|
||||
@using Lumina.Presentation.Web.Common.DTO.FileSystemManagement
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
@using Microsoft.AspNetCore.Components
|
||||
@using System.Text.Json
|
||||
@using System.Text
|
||||
|
||||
@{
|
||||
var componentScriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
@*
|
||||
This view is the application fallback of the file system browser component, rendered only when the theme template of the component cannot be loaded.
|
||||
It is intentionally plain and unstyled: on a healthy site the component comes from the theme's shared/file-system-browser template.
|
||||
It keeps the DOM contract the client script binds to, without any images, so that the active theme cannot leak into the fallback.
|
||||
*@
|
||||
|
||||
<div id="file-system-browser-dialog" class="container-background above-modal">
|
||||
<div id="file-system-browser-content">
|
||||
<div id="file-system-browser-header">
|
||||
<div id="file-system-browser-shine-spark"></div>
|
||||
<div id="file-system-browser-shine-effect"></div>
|
||||
<div id="file-system-browser-header-navigation-container">
|
||||
<!--File System Navigator-->
|
||||
<div id="navigator-view-mode-container">
|
||||
<!--List View Mode-->
|
||||
<svg id="navigator-list-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["ListView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M3,5 h8 v8 h-8 z M11,9 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M5,7 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M3,13 h8 v8 h-8 z M11,17 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M5,15 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M3,21 h8 v8 h-8 z M11,25 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M5,23 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M20,5 h8 v8 h-8 z M28,9 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M22,7 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M20,13 h8 v8 h-8 z M28,17 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M22,15 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M20,21 h8 v8 h-8 z M28,25 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill list" filter="url(#glow)" d="M22,23 h4 v4 h-4 z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Details View Mode-->
|
||||
<svg id="navigator-details-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["DetailsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M3,5 h8 v8 h-8 z M11,9 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M5,7 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M3,13 h8 v8 h-8 z M11,17 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M5,15 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M3,21 h8 v8 h-8 z M11,25 h4" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M5,23 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M17.5,8.5 h5 v1 h-5 z" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M17.5,16.5 h5 v1 h-5 z" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M17.5,24.5 h5 v1 h-5 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M25,8.5 h5 v1 h-5 z" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M25,16.5 h5 v1 h-5 z" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill details" filter="url(#glow)" d="M25,24.5 h5 v1 h-5 z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Small Icons View Mode-->
|
||||
<svg id="navigator-small-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["SmallIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M4,5 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M6,7 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M4,13 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M6,15 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M4,21 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M6,23 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M12,5 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M14,7 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M12,13 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M14,15 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M12,21 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M14,23 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M20,5 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M22,7 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M20,13 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M22,15 h4 v4 h-4 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M20,21 h8 v8 h-8 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill small-icons" filter="url(#glow)" d="M22,23 h4 v4 h-4 z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Medium Icons View Mode-->
|
||||
<svg id="navigator-medium-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["MediumIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M4,5 h12 v12 h-12 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M6,7 h8 v8 h-8 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M4,17 h12 v12 h-12 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M6,19 h8 v8 h-8 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M16,5 h12 v12 h-12 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M18,7 h8 v8 h-8 z" />
|
||||
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M16,17 h12 v12 h-12 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill medium-icons" filter="url(#glow)" d="M18,19 h8 v8 h-8 z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Large Icons View Mode-->
|
||||
<svg id="navigator-large-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["LargeIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill large-icons" filter="url(#glow)" d="M4,5 h24 v24 h-24 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill large-icons" filter="url(#glow)" d="M6,7 h20 v20 h-20 z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Extra Large Icons View Mode-->
|
||||
<svg id="navigator-extra-large-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["ExtraLargeIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="stroke:currentColor;" class="navigator-icon-fill extra-large-icons" filter="url(#glow)" d="M4,5 h24 v24 h-24 z" fill="none" stroke-width="1" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill extra-large-icons" filter="url(#glow)" d="M11,12 L16,17 L21,12 L26,17 V7 H6 V17 Z" fill="none" stroke-width="1" />
|
||||
</g>
|
||||
</svg>
|
||||
<button id="navigator-list-view" type="button">@_localizer["ListView"]</button>
|
||||
<button id="navigator-details-view" type="button">@_localizer["DetailsView"]</button>
|
||||
<button id="navigator-small-icons-view" type="button">@_localizer["SmallIconsView"]</button>
|
||||
<button id="navigator-medium-icons-view" type="button">@_localizer["MediumIconsView"]</button>
|
||||
<button id="navigator-large-icons-view" type="button">@_localizer["LargeIconsView"]</button>
|
||||
<button id="navigator-extra-large-icons-view" type="button">@_localizer["ExtraLargeIconsView"]</button>
|
||||
</div>
|
||||
<!--Navigation-->
|
||||
<div id="navigator-navigation-controls-container">
|
||||
<!--Navigation-->
|
||||
<div id="navigator-history">
|
||||
<img src="~/images/ui/back.svg" id="navigator-navigate-back" class="navigation-icon" alt="@_localizer["Back"]" title="@_localizer["Back"]" />
|
||||
<img src="~/images/ui/forward.svg" id="navigator-navigate-forward" class="navigation-icon" alt="@_localizer["Forward"]" title="@_localizer["Forward"]" />
|
||||
<img src="~/images/ui/up.svg" id="navigator-navigate-up" class="navigation-icon" alt="@_localizer["UpOneLevel"]" title="@_localizer["UpOneLevel"]" />
|
||||
<button id="navigator-navigate-back" type="button">@_localizer["Back"]</button>
|
||||
<button id="navigator-navigate-forward" type="button">@_localizer["Forward"]</button>
|
||||
<button id="navigator-navigate-up" type="button">@_localizer["UpOneLevel"]</button>
|
||||
</div>
|
||||
<!--Toggle Tree View-->
|
||||
<svg id="navigator-toggle-tree-view-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["ToggleTreeView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(6,6) scale(0.55)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill tree-view" filter="url(#glow)" d="M 4 4 L 4 14 L 9 14 L 9 23 L 18 23 L 18 28 L 28 28 L 28 18 L 18 18 L 18 22 L 10 22 L 10 14 L 14 14 L 14 9 L 18 9 L 18 14 L 28 14 L 28 4 L 18 4 L 18 8 L 14 8 L 14 4 L 4 4 z M 5 5 L 13 5 L 13 13 L 5 13 L 5 5 z M 19 5 L 27 5 L 27 13 L 19 13 L 19 5 z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Toggle Thumbnails-->
|
||||
<svg id="navigator-toggle-thumbnails-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["ToggleThumbanils"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(3,2.5) scale(0.32)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill thumbnails" filter="url(#glow)" d="M 20,17L 44.25,17L 56,28.75L 56,59L 20,59L 20,17 Z M 24,21L 24,55L 52,55L 52,34L 39,34L 39,21L 24,21 Z M 43,22.25L 43,30L 50.75,30L 43,22.25 Z M 27,47.5L 30,50.5L 42.5,38L 47.5,43L 51,39L 51,54L 25,54L 25,50L 27,47.5 Z M 33,22C 33,26.3723 29.3723,30 25,30L 25,22L 33,22 Z " />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Toggle Hidden Elements-->
|
||||
<svg id="navigator-toggle-hidden-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["ToggleHiddenItems"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<linearGradient id="linearGradient" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(5,5) scale(0.85)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill hidden-elements" filter="url(#glow)" d="M14.3307 7.16929C13.5873 7.05887 12.806 7 12 7C7.02944 7 3 9.23858 3 12C3 13.4401 4.09589 14.738 5.84963 15.6504L8.21192 13.2881C8.07452 12.8839 8 12.4506 8 12C8 9.79086 9.79086 8 12 8C12.4506 8 12.8839 8.07452 13.2881 8.21192L14.3307 7.16929Z" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill hidden-elements" filter="url(#glow)" d="M11.2308 15.9261C11.4797 15.9746 11.7369 16 12 16C14.2091 16 16 14.2091 16 12C16 11.7369 15.9746 11.4797 15.9261 11.2308L18.5726 8.58427C20.0782 9.47809 21 10.6792 21 12C21 14.7614 16.9706 17 12 17C11.4016 17 10.8169 16.9676 10.2512 16.9057L11.2308 15.9261Z" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill hidden-elements" filter="url(#glow)" d="M17.7929 5.20711C18.1834 4.81658 18.8166 4.81658 19.2071 5.20711C19.5976 5.59763 19.5976 6.2308 19.2071 6.62132L6.47919 19.3492C6.08866 19.7398 5.4555 19.7398 5.06497 19.3492C4.67445 18.9587 4.67445 18.3256 5.06497 17.935L17.7929 5.20711Z" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--Toggle Selection Mode-->
|
||||
<svg id="navigator-toggle-selection-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>@_localizer["ToggleSelectionMode"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
<feFuncA type="table" tableValues="0 0.5 1" />
|
||||
</feComponentTransfer>
|
||||
<feGaussianBlur in="adjustedAlpha" stdDeviation="2" result="blur" />
|
||||
<feFlood flood-color="#039bfc" result="color" />
|
||||
<feComposite in="color" in2="blur" operator="in" result="softGlowColored" />
|
||||
<feMerge>
|
||||
<feMergeNode in="softGlowColored" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
<linearGradient id="linearGradient1" x1="5" x2="195" y1="174.76" y2="174.76" gradientTransform="matrix(.32632 0 0 .095367 -.63187 42.834)" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="0" />
|
||||
<stop stop-color="#039bfc" offset=".225" />
|
||||
<stop stop-color="#039bfc" offset=".5" />
|
||||
<stop stop-color="#039bfc" offset=".775" />
|
||||
<stop stop-color="#039bfc" stop-opacity="0" offset="1" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<g transform="translate(0,-0.5) scale(0.475)">
|
||||
<rect x=".99971" y="59" width="62.001" height="1" ry="0" fill="url(#linearGradient)" stroke-width="3.7796" style="mix-blend-mode:normal;paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5">
|
||||
<rect x="4.5" y="4.5" width="21" height="21" ry="2.5" fill="none" stroke="#039bfc" style="paint-order:stroke fill markers" filter="url(#glow)" />
|
||||
</g>
|
||||
<g transform="translate(8,8) scale(0.030)">
|
||||
<path xmlns="http://www.w3.org/2000/svg" style="fill:currentColor;" class="navigator-icon-fill selection-mode" filter="url(#glow)" d="M161.9,21.9v21.9h131.2V0H161.9v43.7V21.9v21.9h131.2V0H161.9v43.7V21.9z M406.6,425.9L393,408.7l-52.4,41.6l-79.4-102.1 l-53,61.8l-38.9-217.9l198.1,99.1l-78.6,26.2l100.9,122.4L406.6,425.9L393,408.7L406.6,425.9l16.9-13.9l-60.4-73.2l118.3-39.4 L110.8,114l70.4,394.5l78.2-91.2l73.7,94.7l104.5-82.9l-14.2-17.2L406.6,425.9z M424.3,87.5V0h-87.5v43.7l43.7,0l0,43.7H424.3 L424.3,87.5z M118.1,0H30.7v87.5h43.7l0-43.7l43.7,0V0L118.1,0z M30.7,306.2v87.5h87.5v-43.7l-43.7,0l0-43.7H30.7z M402.5,131.2 h-21.9v87.5h43.7v-87.5h-43.7H402.5h-21.9v87.5h43.7v-87.5h-43.7H402.5z M52.5,262.4h21.9V131.2H30.7v131.2h43.7H52.5h21.9V131.2 H30.7v131.2h43.7H52.5z" />
|
||||
</g>
|
||||
</svg>
|
||||
<button id="navigator-toggle-tree-view-button" type="button">@_localizer["ToggleTreeView"]</button>
|
||||
<button id="navigator-toggle-thumbnails-button" type="button">@_localizer["ToggleThumbanils"]</button>
|
||||
<button id="navigator-toggle-hidden-button" type="button">@_localizer["ToggleHiddenItems"]</button>
|
||||
<button id="navigator-toggle-selection-button" type="button">@_localizer["ToggleSelectionMode"]</button>
|
||||
</div>
|
||||
<!--Navigator-->
|
||||
<div id="navigator-address-bar-container">
|
||||
<div id="navigator-address-bar-group">
|
||||
<input type="text" class="enlightenment-input navigator-address-bar-input" Name="navigator-address-bar-input" autocomplete="on" id="navigator-address-bar-input" />
|
||||
<input type="text" class="navigator-address-bar-input" Name="navigator-address-bar-input" autocomplete="on" id="navigator-address-bar-input" />
|
||||
<div id="navigator-address-bar">
|
||||
<ul id="navigator-path-segments">
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<button id="navigator-edit-path-button" class="navigator-edit-path-button abort-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/edit.svg" id="navigator-edit-icon" alt="@_localizer["EditPath"]" title="@_localizer["EditPath"]" />
|
||||
</button>
|
||||
<button id="navigator-navigate-button" class="navigator-navigate-button confirm-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/check.svg" id="navigator-navigate-icon" alt="@_localizer["Navigate"]" title="@_localizer["Navigate"]" />
|
||||
</button>
|
||||
<button class="file-system-browser-content-new-directory abort-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/new-directory.svg" id="navigator-new-directory-icon" alt="@_localizer["NewDirectory"]" title="@_localizer["NewDirectory"]" />
|
||||
</button>
|
||||
<button class="file-system-browser-content-favorite-directory abort-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/favorite-star.svg" class="navigation-icon favorite-unselected" alt="@_localizer["FavoriteDirectory"]" title="@_localizer["FavoriteDirectory"]" />
|
||||
</button>
|
||||
<button id="navigator-edit-path-button" type="button">@_localizer["EditPath"]</button>
|
||||
<button id="navigator-navigate-button" type="button">@_localizer["Navigate"]</button>
|
||||
<button class="file-system-browser-content-new-directory" type="button">@_localizer["NewDirectory"]</button>
|
||||
<button class="file-system-browser-content-favorite-directory" type="button">@_localizer["FavoriteDirectory"]</button>
|
||||
</div>
|
||||
<!--End File System Navigator-->
|
||||
</div>
|
||||
@@ -510,23 +73,19 @@
|
||||
</div>
|
||||
<div id="file-system-browser-actions-container">
|
||||
<div id="file-system-browser-actions-path-container">
|
||||
<label class="text-light-one">@_localizer["Directory"]</label>
|
||||
<input type="text" id="file-system-browser-selected-element" Name="file-system-browser-selected-element" class="enlightenment-input w-100" readonly autocomplete="on" />
|
||||
<label>@_localizer["Directory"]</label>
|
||||
<input type="text" id="file-system-browser-selected-element" Name="file-system-browser-selected-element" readonly autocomplete="on" />
|
||||
</div>
|
||||
<div id="file-system-browser-actions">
|
||||
<button id="file-system-browser-cancel-button" class="abort-button w-100px">@_localizer["Cancel"]</button>
|
||||
<button id="file-system-browser-confirm-button" class="confirm-button w-100px" disabled>@_localizer["Open"]</button>
|
||||
<button id="file-system-browser-cancel-button" type="button">@_localizer["Cancel"]</button>
|
||||
<button id="file-system-browser-confirm-button" type="button" disabled>@_localizer["Open"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@* <div id="divModal"></div>
|
||||
<label class="text-light-one">@_localizer["EnterNewDirectoryName"]</label>
|
||||
<EnlightenmentInput Type="text" Name="newDirectoryName" AutoComplete="true" />
|
||||
<EnlightenmentButton IsConfirmButton="false">@_localizer["Cancel"]</EnlightenmentButton>
|
||||
<EnlightenmentButton>@_localizer["Confirm"]</EnlightenmentButton> *@
|
||||
</div>
|
||||
<div id="visible-selection-rectangle"></div>
|
||||
<div id="selection-rectangle"></div>
|
||||
<script defer src="~/js/theme-client-template-engine.js" data-component-script="file-system-browser"></script>
|
||||
<script defer src="~/js/file-system-browser-dialog.js" data-component-script="file-system-browser"></script>
|
||||
<script defer data-component-init="file-system-browser">
|
||||
// this outer function executes immediately and creates a scope for the variables
|
||||
@@ -537,12 +96,13 @@
|
||||
setTimeout(checkAndInit, 10);
|
||||
return;
|
||||
}
|
||||
await initFileSystemBrowser(
|
||||
'@Model.ServerBasePath',
|
||||
'@Model.ClientBasePath',
|
||||
'@Model.Path.Replace(@"\", @"\\")',
|
||||
'@Model.ViewMode.ToString().ToLower()',
|
||||
'@Model.IconSize.ToString().ToLower()');
|
||||
await initFileSystemBrowser({
|
||||
serverBasePath: '@Model.ServerBasePath',
|
||||
clientBasePath: '@Model.ClientBasePath',
|
||||
path: '@Model.Path.Replace(@"\", @"\\")',
|
||||
viewMode: '@Model.ViewMode',
|
||||
iconSize: '@Model.IconSize'
|
||||
});
|
||||
}
|
||||
checkAndInit().catch(error => console.error('Failed to initialize file system browser:', error));
|
||||
})();
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@model string
|
||||
|
||||
@Html.Raw(Model)
|
||||
Reference in new issue
Block a user