Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 12c86bcb16 | |||
| a826ddbfb1 | |||
| 297cf00891 | |||
| d393ae787d |
@@ -60,10 +60,8 @@ publish:
|
|||||||
|
|
||||||
publish-help:
|
publish-help:
|
||||||
stage: publish-help
|
stage: publish-help
|
||||||
image: docker:latest
|
tags:
|
||||||
services:
|
- docker
|
||||||
- name: docker:dind
|
|
||||||
alias: docker
|
|
||||||
script:
|
script:
|
||||||
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
|
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
|
||||||
- cd docs
|
- cd docs
|
||||||
|
|||||||
137
.idea/.idea.HopFrame/.idea/workspace.xml
generated
137
.idea/.idea.HopFrame/.idea/workspace.xml
generated
@@ -11,7 +11,11 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="0648788e-7696-4e60-bf12-5d5601f33d8c" name="Changes" comment="" />
|
<list default="true" id="0648788e-7696-4e60-bf12-5d5601f33d8c" name="Changes" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/HopFrame.Core/Services/Implementations/ContextExplorer.cs" beforeDir="false" afterPath="$PROJECT_DIR$/src/HopFrame.Core/Services/Implementations/ContextExplorer.cs" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/HopFrame.Web/Components/Pages/HopFrameTablePage.razor" beforeDir="false" afterPath="$PROJECT_DIR$/src/HopFrame.Web/Components/Pages/HopFrameTablePage.razor" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/testing/HopFrame.Testing/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/testing/HopFrame.Testing/Program.cs" afterDir="false" />
|
||||||
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
@@ -34,6 +38,7 @@
|
|||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
<option name="RESET_MODE" value="HARD" />
|
||||||
</component>
|
</component>
|
||||||
<component name="GitLabMergeRequestFiltersHistory">{
|
<component name="GitLabMergeRequestFiltersHistory">{
|
||||||
"lastFilter": {
|
"lastFilter": {
|
||||||
@@ -48,7 +53,7 @@
|
|||||||
<component name="GitLabMergeRequestsSettings">{
|
<component name="GitLabMergeRequestsSettings">{
|
||||||
"selectedUrlAndAccountId": {
|
"selectedUrlAndAccountId": {
|
||||||
"first": "https://git.leon-hoppe.de/leon.hoppe/hopframe.git",
|
"first": "https://git.leon-hoppe.de/leon.hoppe/hopframe.git",
|
||||||
"second": "2d65fdcb-5f13-45ad-a7ba-91dd4a88d6e4"
|
"second": "f58c9371-9f54-454e-a0db-5b4bc1187bad"
|
||||||
}
|
}
|
||||||
}</component>
|
}</component>
|
||||||
<component name="HighlightingSettingsPerFile">
|
<component name="HighlightingSettingsPerFile">
|
||||||
@@ -117,40 +122,42 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
<component name="PropertiesComponent">{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
".NET Launch Settings Profile.HopFrame.Testing.Api: https.executor": "Run",
|
".NET Launch Settings Profile.HopFrame.Testing.Api: https.executor": "Run",
|
||||||
".NET Launch Settings Profile.HopFrame.Testing.executor": "Run",
|
".NET Launch Settings Profile.HopFrame.Testing.executor": "Run",
|
||||||
".NET Launch Settings Profile.HopFrame.Testing: https.executor": "Run",
|
".NET Launch Settings Profile.HopFrame.Testing: https.executor": "Run",
|
||||||
".NET Project.HopFrame.Testing.executor": "Run",
|
".NET Project.HopFrame.Testing.executor": "Run",
|
||||||
"72b118b0-a6fc-4561-acdf-74f0b454dbb8.executor": "Debug",
|
"72b118b0-a6fc-4561-acdf-74f0b454dbb8.executor": "Debug",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"RunOnceActivity.git.unshallow": "true",
|
"RunOnceActivity.git.unshallow": "true",
|
||||||
"b5f11219-dfc4-47a1-b02c-90ab603034fb.executor": "Debug",
|
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
||||||
"dcdf1689-dc07-47e4-8824-2e60a4fbf301.executor": "Debug",
|
"b5f11219-dfc4-47a1-b02c-90ab603034fb.executor": "Debug",
|
||||||
"git-widget-placeholder": "feature/test-reports",
|
"dcdf1689-dc07-47e4-8824-2e60a4fbf301.executor": "Debug",
|
||||||
"list.type.of.created.stylesheet": "CSS",
|
"git-widget-placeholder": "dev",
|
||||||
"node.js.detected.package.eslint": "true",
|
"list.type.of.created.stylesheet": "CSS",
|
||||||
"node.js.detected.package.tslint": "true",
|
"node.js.detected.package.eslint": "true",
|
||||||
"node.js.selected.package.eslint": "(autodetect)",
|
"node.js.detected.package.tslint": "true",
|
||||||
"node.js.selected.package.tslint": "(autodetect)",
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
"nodejs_package_manager_path": "npm",
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
"settings.editor.selected.configurable": "preferences.pluginManager",
|
"nodejs_package_manager_path": "npm",
|
||||||
"vue.rearranger.settings.migration": "true"
|
"settings.editor.selected.configurable": "preferences.pluginManager",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
}
|
}
|
||||||
}]]></component>
|
}</component>
|
||||||
<component name="RunManager" selected=".NET Launch Settings Profile.HopFrame.Testing: https">
|
<component name="RunManager" selected=".NET Launch Settings Profile.HopFrame.Testing: https">
|
||||||
<configuration name="HopFrame.Testing: http" type="LaunchSettings" factoryName=".NET Launch Settings Profile">
|
<configuration name="HopFrame.Testing: http" type="LaunchSettings" factoryName=".NET Launch Settings Profile">
|
||||||
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing/HopFrame.Testing.csproj" />
|
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing/HopFrame.Testing.csproj" />
|
||||||
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
||||||
<option name="LAUNCH_PROFILE_NAME" value="http" />
|
<option name="LAUNCH_PROFILE_NAME" value="http" />
|
||||||
<option name="USE_EXTERNAL_CONSOLE" value="0" />
|
|
||||||
<option name="USE_MONO" value="0" />
|
<option name="USE_MONO" value="0" />
|
||||||
<option name="RUNTIME_ARGUMENTS" value="" />
|
<option name="RUNTIME_ARGUMENTS" value="" />
|
||||||
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
||||||
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
||||||
<option name="SEND_DEBUG_REQUEST" value="1" />
|
<option name="SEND_DEBUG_REQUEST" value="1" />
|
||||||
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
||||||
|
<option name="AUTO_ATTACH_CHILDREN" value="0" />
|
||||||
|
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Build" />
|
<option name="Build" />
|
||||||
</method>
|
</method>
|
||||||
@@ -159,13 +166,14 @@
|
|||||||
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing/HopFrame.Testing.csproj" />
|
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing/HopFrame.Testing.csproj" />
|
||||||
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
||||||
<option name="LAUNCH_PROFILE_NAME" value="https" />
|
<option name="LAUNCH_PROFILE_NAME" value="https" />
|
||||||
<option name="USE_EXTERNAL_CONSOLE" value="0" />
|
|
||||||
<option name="USE_MONO" value="0" />
|
<option name="USE_MONO" value="0" />
|
||||||
<option name="RUNTIME_ARGUMENTS" value="" />
|
<option name="RUNTIME_ARGUMENTS" value="" />
|
||||||
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
||||||
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
||||||
<option name="SEND_DEBUG_REQUEST" value="1" />
|
<option name="SEND_DEBUG_REQUEST" value="1" />
|
||||||
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
||||||
|
<option name="AUTO_ATTACH_CHILDREN" value="0" />
|
||||||
|
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Build" />
|
<option name="Build" />
|
||||||
</method>
|
</method>
|
||||||
@@ -174,13 +182,14 @@
|
|||||||
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing.Api/HopFrame.Testing.Api.csproj" />
|
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing.Api/HopFrame.Testing.Api.csproj" />
|
||||||
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
||||||
<option name="LAUNCH_PROFILE_NAME" value="http" />
|
<option name="LAUNCH_PROFILE_NAME" value="http" />
|
||||||
<option name="USE_EXTERNAL_CONSOLE" value="0" />
|
|
||||||
<option name="USE_MONO" value="0" />
|
<option name="USE_MONO" value="0" />
|
||||||
<option name="RUNTIME_ARGUMENTS" value="" />
|
<option name="RUNTIME_ARGUMENTS" value="" />
|
||||||
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
||||||
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
||||||
<option name="SEND_DEBUG_REQUEST" value="1" />
|
<option name="SEND_DEBUG_REQUEST" value="1" />
|
||||||
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
||||||
|
<option name="AUTO_ATTACH_CHILDREN" value="0" />
|
||||||
|
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Build" />
|
<option name="Build" />
|
||||||
</method>
|
</method>
|
||||||
@@ -189,13 +198,14 @@
|
|||||||
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing.Api/HopFrame.Testing.Api.csproj" />
|
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/testing/HopFrame.Testing.Api/HopFrame.Testing.Api.csproj" />
|
||||||
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
<option name="LAUNCH_PROFILE_TFM" value="net9.0" />
|
||||||
<option name="LAUNCH_PROFILE_NAME" value="https" />
|
<option name="LAUNCH_PROFILE_NAME" value="https" />
|
||||||
<option name="USE_EXTERNAL_CONSOLE" value="0" />
|
|
||||||
<option name="USE_MONO" value="0" />
|
<option name="USE_MONO" value="0" />
|
||||||
<option name="RUNTIME_ARGUMENTS" value="" />
|
<option name="RUNTIME_ARGUMENTS" value="" />
|
||||||
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
|
||||||
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
|
||||||
<option name="SEND_DEBUG_REQUEST" value="1" />
|
<option name="SEND_DEBUG_REQUEST" value="1" />
|
||||||
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
|
||||||
|
<option name="AUTO_ATTACH_CHILDREN" value="0" />
|
||||||
|
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Build" />
|
<option name="Build" />
|
||||||
</method>
|
</method>
|
||||||
@@ -267,30 +277,10 @@
|
|||||||
<workItem from="1744966207145" duration="5231000" />
|
<workItem from="1744966207145" duration="5231000" />
|
||||||
<workItem from="1751713720880" duration="8243000" />
|
<workItem from="1751713720880" duration="8243000" />
|
||||||
<workItem from="1751741813788" duration="4623000" />
|
<workItem from="1751741813788" duration="4623000" />
|
||||||
</task>
|
<workItem from="1768753475773" duration="455000" />
|
||||||
<task id="LOCAL-00016" summary="Added documentation for the configurators and service extensions methods">
|
<workItem from="1768753946559" duration="690000" />
|
||||||
<option name="closed" value="true" />
|
<workItem from="1768756619311" duration="94000" />
|
||||||
<created>1737208088933</created>
|
<workItem from="1768847832546" duration="758000" />
|
||||||
<option name="number" value="00016" />
|
|
||||||
<option name="presentableId" value="LOCAL-00016" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1737208088933</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00017" summary="Created tests for the core module">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1737212497960</created>
|
|
||||||
<option name="number" value="00017" />
|
|
||||||
<option name="presentableId" value="LOCAL-00017" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1737212497960</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00018" summary="Added more tests">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1737285123218</created>
|
|
||||||
<option name="number" value="00018" />
|
|
||||||
<option name="presentableId" value="LOCAL-00018" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1737285123218</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00019" summary="Added web module tests">
|
<task id="LOCAL-00019" summary="Added web module tests">
|
||||||
<option name="closed" value="true" />
|
<option name="closed" value="true" />
|
||||||
@@ -660,7 +650,31 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1751750495636</updated>
|
<updated>1751750495636</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="65" />
|
<task id="LOCAL-00065" summary="Code cleanup + new pipeline setup">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1768754560236</created>
|
||||||
|
<option name="number" value="00065" />
|
||||||
|
<option name="presentableId" value="LOCAL-00065" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1768754560236</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00066" summary="Fixed #38">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1768847968844</created>
|
||||||
|
<option name="number" value="00066" />
|
||||||
|
<option name="presentableId" value="LOCAL-00066" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1768847968844</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00067" summary="Fixed #37">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1768848267710</created>
|
||||||
|
<option name="number" value="00067" />
|
||||||
|
<option name="presentableId" value="LOCAL-00067" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1768848267710</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="68" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@@ -688,11 +702,19 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="UnityCheckinConfiguration" checkUnsavedScenes="true" />
|
<component name="UnityCheckinConfiguration" checkUnsavedScenes="true" />
|
||||||
<component name="UnityProjectConfiguration" hasMinimizedUI="false" />
|
<component name="UnityProjectConfiguration" hasMinimizedUI="false" />
|
||||||
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
<option name="TAB_STATES">
|
||||||
|
<map>
|
||||||
|
<entry key="MAIN">
|
||||||
|
<value>
|
||||||
|
<State />
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
|
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
|
||||||
<MESSAGE value="Added default button removal feature" />
|
|
||||||
<MESSAGE value="Added custom search functionality" />
|
|
||||||
<MESSAGE value="Added fully virtual properties" />
|
|
||||||
<MESSAGE value="Added basic export and import feature" />
|
<MESSAGE value="Added basic export and import feature" />
|
||||||
<MESSAGE value="Finished converter plugin" />
|
<MESSAGE value="Finished converter plugin" />
|
||||||
<MESSAGE value="Patched CI" />
|
<MESSAGE value="Patched CI" />
|
||||||
@@ -715,6 +737,9 @@
|
|||||||
<MESSAGE value="Updated coverage extraction" />
|
<MESSAGE value="Updated coverage extraction" />
|
||||||
<MESSAGE value="fixed coverage percentage printing" />
|
<MESSAGE value="fixed coverage percentage printing" />
|
||||||
<MESSAGE value="fixed echo cmd" />
|
<MESSAGE value="fixed echo cmd" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="fixed echo cmd" />
|
<MESSAGE value="Code cleanup + new pipeline setup" />
|
||||||
|
<MESSAGE value="Fixed #38" />
|
||||||
|
<MESSAGE value="Fixed #37" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Fixed #37" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -63,7 +63,7 @@ public sealed class TableConfigurator<TModel>(TableConfig config) {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines if the table should be ignored in the admin ui
|
/// Determines if the table should be ignored in the admin ui
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TableConfigurator<TModel> Ignore(bool ignore) {
|
public TableConfigurator<TModel> Ignore(bool ignore = true) {
|
||||||
InnerConfig.Ignored = ignore;
|
InnerConfig.Ignored = ignore;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageId>HopFrame.Core</PackageId>
|
<PackageId>HopFrame.Core</PackageId>
|
||||||
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ internal sealed class ContextExplorer(HopFrameConfig config, IServiceProvider pr
|
|||||||
|
|
||||||
public TableConfig? GetTable(string tableDisplayName) {
|
public TableConfig? GetTable(string tableDisplayName) {
|
||||||
foreach (var context in config.Contexts) {
|
foreach (var context in config.Contexts) {
|
||||||
var table = context.Tables.FirstOrDefault(table => table.DisplayName.Equals(tableDisplayName, StringComparison.CurrentCultureIgnoreCase));
|
var table = context.Tables
|
||||||
|
.Where(t => !t.Ignored)
|
||||||
|
.FirstOrDefault(table => table.DisplayName.Equals(tableDisplayName, StringComparison.CurrentCultureIgnoreCase));
|
||||||
if (table is null) continue;
|
if (table is null) continue;
|
||||||
|
|
||||||
SeedTableData(table);
|
SeedTableData(table);
|
||||||
@@ -30,7 +32,8 @@ internal sealed class ContextExplorer(HopFrameConfig config, IServiceProvider pr
|
|||||||
|
|
||||||
public TableConfig? GetTable(Type tableEntity) {
|
public TableConfig? GetTable(Type tableEntity) {
|
||||||
foreach (var context in config.Contexts) {
|
foreach (var context in config.Contexts) {
|
||||||
var table = context.Tables.FirstOrDefault(table => table.TableType == tableEntity);
|
var table = context.Tables
|
||||||
|
.FirstOrDefault(table => table.TableType == tableEntity);
|
||||||
if (table is null) continue;
|
if (table is null) continue;
|
||||||
|
|
||||||
SeedTableData(table);
|
SeedTableData(table);
|
||||||
|
|||||||
@@ -39,11 +39,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display: flex; gap: 5px; margin-bottom: 4px">
|
<div style="display: flex; gap: 5px; margin-bottom: 4px">
|
||||||
@if (!property.IsRequired) {
|
@if (!property.IsRequired) {
|
||||||
<FluentButton OnClick="async () => await SetPropertyValue(property, null, InputType.Relation)" Disabled="@(_currentlyEditing && !property.Editable)">
|
<FluentButton OnClick="@(async () => await SetPropertyValue(property, null, InputType.Relation))" Disabled="@(_currentlyEditing && !property.Editable)">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size20.Dismiss())" Color="Color.Neutral" />
|
<FluentIcon Value="@(new Icons.Regular.Size20.Dismiss())" Color="Color.Neutral" />
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
}
|
}
|
||||||
<FluentButton OnClick="async () => await OpenRelationalPicker(property)" Disabled="@(_currentlyEditing && !property.Editable)">
|
<FluentButton OnClick="@(async () => await OpenRelationalPicker(property))" Disabled="@(_currentlyEditing && !property.Editable)">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size20.Open())" Color="Color.Neutral" />
|
<FluentIcon Value="@(new Icons.Regular.Size20.Open())" Color="Color.Neutral" />
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
</div>
|
</div>
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
ValueChanged="@(async v => await SetPropertyValue(property, v, InputType.Enum))" />
|
ValueChanged="@(async v => await SetPropertyValue(property, v, InputType.Enum))" />
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; gap: 5px">
|
<div style="display: flex; gap: 5px">
|
||||||
<FluentButton OnClick="async () => await SetPropertyValue(property, null, InputType.Enum)" Disabled="@(_currentlyEditing && !property.Editable)">
|
<FluentButton OnClick="@(async () => await SetPropertyValue(property, null, InputType.Enum))" Disabled="@(_currentlyEditing && !property.Editable)">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size20.Dismiss())" Color="Color.Neutral" />
|
<FluentIcon Value="@(new Icons.Regular.Size20.Dismiss())" Color="Color.Neutral" />
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
DisplayActions="false"
|
DisplayActions="false"
|
||||||
DisplaySelection="true"
|
DisplaySelection="true"
|
||||||
TableDisplayName="@Content.SourceTable.DisplayName"
|
TableDisplayName="@Content.SourceTable.DisplayName"
|
||||||
|
TableType="@Content.SourceTable.TableType"
|
||||||
PerPage="15"
|
PerPage="15"
|
||||||
DialogData="Content"
|
DialogData="Content"
|
||||||
SelectionMode="@(Content.AllowMultiple ? DataGridSelectMode.Multiple : DataGridSelectMode.Single)"/>
|
SelectionMode="@(Content.AllowMultiple ? DataGridSelectMode.Multiple : DataGridSelectMode.Single)"/>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
@if (!DisplaySelection && _buttonToggles.ShowRefreshButton) {
|
@if (!DisplaySelection && _buttonToggles.ShowRefreshButton) {
|
||||||
<FluentButton
|
<FluentButton
|
||||||
IconStart="@(new Icons.Regular.Size16.ArrowClockwise())"
|
IconStart="@(new Icons.Regular.Size16.ArrowClockwise())"
|
||||||
OnClick="Reload"
|
OnClick="@(Reload)"
|
||||||
Loading="_loading"
|
Loading="_loading"
|
||||||
Style="margin-left: 10px">
|
Style="margin-left: 10px">
|
||||||
Refresh
|
Refresh
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
@foreach (var button in _pluginButtons.Where(pb => pb.IsForTable(_config)).Where(pb => pb.Position == PluginButtonPosition.TopLeft)) {
|
@foreach (var button in _pluginButtons.Where(pb => pb.IsForTable(_config)).Where(pb => pb.Position == PluginButtonPosition.TopLeft)) {
|
||||||
<FluentButton
|
<FluentButton
|
||||||
IconStart="@(button.Icon?.GetInstance())"
|
IconStart="@(button.Icon?.GetInstance())"
|
||||||
OnClick="() => button.Handler.Invoke(null!, _config!)">
|
OnClick="@(() => button.Handler.Invoke(null!, _config!))">
|
||||||
@button.Title
|
@button.Title
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
}
|
}
|
||||||
@@ -44,32 +44,33 @@
|
|||||||
style="position: relative; height: 32px"
|
style="position: relative; height: 32px"
|
||||||
class="hopframe-search">
|
class="hopframe-search">
|
||||||
|
|
||||||
|
@* ReSharper disable once CSharpWarnings::CS4014 *@
|
||||||
<FluentSearch
|
<FluentSearch
|
||||||
@ref="_searchBox"
|
@ref="_searchBox"
|
||||||
@oninput="OnSearch"
|
@oninput="OnSearch"
|
||||||
@onchange="OnSearch"
|
@onchange="OnSearch"
|
||||||
@onfocusin="() => { SearchFocus(); UpdateSearchSuggestions(); }"
|
@onfocusin="() => { SearchFocus(); UpdateSearchSuggestions(); }"
|
||||||
@onfocusout="SearchUnfocus"
|
@onfocusout="@(SearchUnfocus)"
|
||||||
Style="width: 500px"/>
|
Style="width: 500px"/>
|
||||||
|
|
||||||
@if (_isSearchActive && _searchSuggestions.Count > 0) {
|
@if (_isSearchActive && _searchSuggestions.Count > 0) {
|
||||||
<FluentListbox
|
<FluentListbox
|
||||||
TOption="string"
|
TOption="string"
|
||||||
Items="_searchSuggestions"
|
Items="_searchSuggestions"
|
||||||
SelectedOptionChanged="SearchSuggestionSelected"
|
SelectedOptionChanged="@(SearchSuggestionSelected)"
|
||||||
@onfocusin="SearchFocus"
|
@onfocusin="@(SearchFocus)"
|
||||||
@onfocusout="SearchUnfocus"/>
|
@onfocusout="@(SearchUnfocus)"/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (_hasCreatePolicy && DisplayActions && _buttonToggles.ShowAddEntityButton) {
|
@if (_hasCreatePolicy && DisplayActions && _buttonToggles.ShowAddEntityButton) {
|
||||||
<FluentButton OnClick="async () => { await CreateOrEdit(null); }">Add Entity</FluentButton>
|
<FluentButton OnClick="@(async () => { await CreateOrEdit(null); })">Add Entity</FluentButton>
|
||||||
}
|
}
|
||||||
|
|
||||||
@foreach (var button in _pluginButtons.Where(pb => pb.IsForTable(_config)).Where(pb => pb.Position == PluginButtonPosition.TopRight)) {
|
@foreach (var button in _pluginButtons.Where(pb => pb.IsForTable(_config)).Where(pb => pb.Position == PluginButtonPosition.TopRight)) {
|
||||||
<FluentButton
|
<FluentButton
|
||||||
IconStart="@(button.Icon?.GetInstance())"
|
IconStart="@(button.Icon?.GetInstance())"
|
||||||
OnClick="() => button.Handler.Invoke(null!, _config!)">
|
OnClick="@(() => button.Handler.Invoke(null!, _config!))">
|
||||||
@button.Title
|
@button.Title
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
}
|
}
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
TGridItem="object"
|
TGridItem="object"
|
||||||
SelectMode="SelectionMode"
|
SelectMode="SelectionMode"
|
||||||
SelectFromEntireRow="true"
|
SelectFromEntireRow="true"
|
||||||
OnSelect="data => SelectItem(data.Item, data.Selected)"
|
OnSelect="@(data => SelectItem(data.Item, data.Selected))"
|
||||||
SelectAllDisabled="true"
|
SelectAllDisabled="true"
|
||||||
Property="o => DialogData!.SelectedObjects.Contains(o)"
|
Property="o => DialogData!.SelectedObjects.Contains(o)"
|
||||||
Style="min-width: max-content; height: 44px; display: grid; align-items: center" />
|
Style="min-width: max-content; height: 44px; display: grid; align-items: center" />
|
||||||
@@ -100,19 +101,19 @@
|
|||||||
@if (DisplayActions && (_hasDeletePolicy || _hasUpdatePolicy)) {
|
@if (DisplayActions && (_hasDeletePolicy || _hasUpdatePolicy)) {
|
||||||
<TemplateColumn Title="Actions" Align="@Align.End" Style="min-height: 44px; min-width: max-content">
|
<TemplateColumn Title="Actions" Align="@Align.End" Style="min-height: 44px; min-width: max-content">
|
||||||
@foreach (var button in _pluginButtons.Where(pb => pb.IsForTable(_config)).Where(pb => pb.Position == PluginButtonPosition.OnEntry)) {
|
@foreach (var button in _pluginButtons.Where(pb => pb.IsForTable(_config)).Where(pb => pb.Position == PluginButtonPosition.OnEntry)) {
|
||||||
<FluentButton OnClick="() => button.Handler.Invoke(context, _config!)">
|
<FluentButton OnClick="@(() => button.Handler.Invoke(context, _config!))">
|
||||||
<FluentIcon Value="@(button.Icon!.GetInstance())" />
|
<FluentIcon Value="@(button.Icon!.GetInstance())" />
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (_hasUpdatePolicy && _buttonToggles.ShowEditButton) {
|
@if (_hasUpdatePolicy && _buttonToggles.ShowEditButton) {
|
||||||
<FluentButton aria-label="Edit entry" OnClick="async () => { await CreateOrEdit(context); }">
|
<FluentButton aria-label="Edit entry" OnClick="@(async () => { await CreateOrEdit(context); })">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size16.Edit())"/>
|
<FluentIcon Value="@(new Icons.Regular.Size16.Edit())"/>
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (_hasDeletePolicy && _buttonToggles.ShowDeleteButton) {
|
@if (_hasDeletePolicy && _buttonToggles.ShowDeleteButton) {
|
||||||
<FluentButton aria-label="Delete entry" OnClick="async () => { await DeleteEntry(context); }">
|
<FluentButton aria-label="Delete entry" OnClick="@(async () => { await DeleteEntry(context); })">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size16.Delete())" Color="Color.Warning"/>
|
<FluentIcon Value="@(new Icons.Regular.Size16.Delete())" Color="Color.Warning"/>
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
}
|
}
|
||||||
@@ -124,7 +125,7 @@
|
|||||||
|
|
||||||
@if (_totalPages > 1) {
|
@if (_totalPages > 1) {
|
||||||
<div class="hopframe-paginator">
|
<div class="hopframe-paginator">
|
||||||
<FluentButton BackgroundColor="transparent" OnClick="async () => await ChangePage(_currentPage - 1)">
|
<FluentButton BackgroundColor="transparent" OnClick="@(async () => await ChangePage(_currentPage - 1))">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size20.ArrowPrevious())" Color="Color.Neutral" />
|
<FluentIcon Value="@(new Icons.Regular.Size20.ArrowPrevious())" Color="Color.Neutral" />
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
|
|
||||||
@@ -134,12 +135,12 @@
|
|||||||
Items="Enumerable.Range(0, _totalPages)"
|
Items="Enumerable.Range(0, _totalPages)"
|
||||||
OptionValue="@(p => p.ToString())"
|
OptionValue="@(p => p.ToString())"
|
||||||
OptionText="@(p => (p + 1).ToString())"
|
OptionText="@(p => (p + 1).ToString())"
|
||||||
ValueChanged="async s => await ChangePage(Convert.ToInt32(s))"
|
ValueChanged="@(async s => await ChangePage(Convert.ToInt32(s)))"
|
||||||
Width="max-content" SelectedOption="@_currentPage"/>
|
Width="max-content" SelectedOption="@_currentPage"/>
|
||||||
|
|
||||||
<span>of @_totalPages</span>
|
<span>of @_totalPages</span>
|
||||||
|
|
||||||
<FluentButton BackgroundColor="transparent" OnClick="async () => await ChangePage(_currentPage + 1)">
|
<FluentButton BackgroundColor="transparent" OnClick="@(async () => await ChangePage(_currentPage + 1))">
|
||||||
<FluentIcon Value="@(new Icons.Regular.Size20.ArrowNext())" Color="Color.Neutral" />
|
<FluentIcon Value="@(new Icons.Regular.Size20.ArrowNext())" Color="Color.Neutral" />
|
||||||
</FluentButton>
|
</FluentButton>
|
||||||
</div>
|
</div>
|
||||||
@@ -173,7 +174,7 @@
|
|||||||
|
|
||||||
<FluentToastProvider MaxToastCount="10" />
|
<FluentToastProvider MaxToastCount="10" />
|
||||||
|
|
||||||
<InputFile style="display: none" @ref="FileInputElement" OnChange="OnInputFiles"></InputFile>
|
<InputFile style="display: none" @ref="FileInputElement" OnChange="@(OnInputFiles)"></InputFile>
|
||||||
|
|
||||||
@inject IContextExplorer Explorer
|
@inject IContextExplorer Explorer
|
||||||
@inject NavigationManager Navigator
|
@inject NavigationManager Navigator
|
||||||
@@ -187,7 +188,10 @@
|
|||||||
@code {
|
@code {
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public required string TableDisplayName { get; set; }
|
public string TableDisplayName { get; set; } = null!;
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public Type? TableType { get; set; }
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public bool DisplaySelection { get; set; }
|
public bool DisplaySelection { get; set; }
|
||||||
@@ -220,8 +224,6 @@
|
|||||||
private bool _hasDeletePolicy;
|
private bool _hasDeletePolicy;
|
||||||
private bool _hasCreatePolicy;
|
private bool _hasCreatePolicy;
|
||||||
|
|
||||||
private bool _allSelected;
|
|
||||||
|
|
||||||
private readonly CancellationTokenSource _tokenSource = new();
|
private readonly CancellationTokenSource _tokenSource = new();
|
||||||
private List<PluginButton> _pluginButtons = new();
|
private List<PluginButton> _pluginButtons = new();
|
||||||
private DefaultButtonToggles _buttonToggles = new();
|
private DefaultButtonToggles _buttonToggles = new();
|
||||||
@@ -230,6 +232,11 @@
|
|||||||
|
|
||||||
protected override void OnInitialized() {
|
protected override void OnInitialized() {
|
||||||
CurrentInstance = this;
|
CurrentInstance = this;
|
||||||
|
|
||||||
|
if (TableType is not null) {
|
||||||
|
_config ??= Explorer.GetTable(TableType);
|
||||||
|
}
|
||||||
|
|
||||||
_config ??= Explorer.GetTable(TableDisplayName);
|
_config ??= Explorer.GetTable(TableDisplayName);
|
||||||
|
|
||||||
if (_config is null || (_config.Ignored && DialogData is null)) {
|
if (_config is null || (_config.Ignored && DialogData is null)) {
|
||||||
@@ -443,14 +450,6 @@
|
|||||||
else DialogData!.SelectedObjects.Add(item);
|
else DialogData!.SelectedObjects.Add(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SelectAll() {
|
|
||||||
var selected = CurrentlyDisplayedModels.All(DialogData!.SelectedObjects.Contains);
|
|
||||||
foreach (var displayedModel in CurrentlyDisplayedModels) {
|
|
||||||
SelectItem(displayedModel, !selected);
|
|
||||||
}
|
|
||||||
_allSelected = selected;
|
|
||||||
}
|
|
||||||
|
|
||||||
private async Task<string> DisplayProperty(PropertyConfig config, object entry) {
|
private async Task<string> DisplayProperty(PropertyConfig config, object entry) {
|
||||||
var display = await _manager!.DisplayProperty(entry, config);
|
var display = await _manager!.DisplayProperty(entry, config);
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageId>HopFrame.Web</PackageId>
|
<PackageId>HopFrame.Web</PackageId>
|
||||||
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user