-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
load flowpart and bagpart resources by name (#15954)
--------- Co-authored-by: Hisham Bin Ateya <[email protected]> Co-authored-by: Mike Alhayek <[email protected]>
- Loading branch information
1 parent
2954956
commit 17019c4
Showing
7 changed files
with
73 additions
and
18 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/OrchardCore.Modules/OrchardCore.Flows/ResourceManifest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.Extensions.Options; | ||
using OrchardCore.ResourceManagement; | ||
|
||
namespace OrchardCore.Flows; | ||
|
||
public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions> | ||
{ | ||
private static ResourceManifest _manifest; | ||
|
||
static ResourceManagementOptionsConfiguration() | ||
{ | ||
_manifest = new ResourceManifest(); | ||
|
||
_manifest | ||
.DefineStyle("flowpart-edit") | ||
.SetUrl( "~/OrchardCore.Flows/Styles/flows.edit.min.css", "~/OrchardCore.Flows/Styles/flows.edit.css"); | ||
|
||
_manifest | ||
.DefineScript("flowpart-edit") | ||
.SetDependencies("jQuery") | ||
.SetUrl("~/OrchardCore.Flows/Scripts/flows.edit.min.js","~/OrchardCore.Flows/Scripts/flows.edit.js"); | ||
} | ||
|
||
public void Configure(ResourceManagementOptions options) | ||
{ | ||
options.ResourceManifests.Add(_manifest); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/OrchardCore.Modules/OrchardCore.Widgets/ResourceManifest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.Extensions.Options; | ||
using OrchardCore.ResourceManagement; | ||
|
||
namespace OrchardCore.Widgets; | ||
|
||
public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions> | ||
{ | ||
private static ResourceManifest _manifest; | ||
|
||
static ResourceManagementOptionsConfiguration() | ||
{ | ||
_manifest = new ResourceManifest(); | ||
|
||
_manifest | ||
.DefineStyle("widgetslist-edit") | ||
.SetUrl( "~/OrchardCore.Widgets/Styles/widgetslist.edit.min.css", "~/OrchardCore.Widgets/Styles/widgetslist.edit.css"); | ||
|
||
_manifest | ||
.DefineScript("widgetslist-edit") | ||
.SetDependencies("jQuery") | ||
.SetUrl("~/OrchardCore.Widgets/Scripts/widgetslist.edit.min.js","~/OrchardCore.Widgets/Scripts/widgetslist.edit.js"); | ||
} | ||
|
||
public void Configure(ResourceManagementOptions options) | ||
{ | ||
options.ResourceManifests.Add(_manifest); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters