-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cms-Kit: Allow to write global css/js #11705
Conversation
@yekalkan please help to @gizemmutukurt to test this. |
|
||
public static class GlobalResources | ||
{ | ||
public const string Default = GroupName + ".Menus"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public const string Default = GroupName + ".Menus"; | |
public const string Default = GroupName + ".GlobalResources"; |
@@ -0,0 +1,7 @@ | |||
// This file is part of GlobalResourcesAdminClientProxy, you can customize it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file accidently added? There is GlobalResourceAdminClientProxy
above.
|
||
} | ||
|
||
public Task<GlobalResource> FindByName(string name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public Task<GlobalResource> FindByName(string name, | |
public Task<GlobalResource> FindByNameAsync(string name, |
{ | ||
} | ||
|
||
public Task<GlobalResource> FindByName(string name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public Task<GlobalResource> FindByName(string name, | |
public Task<GlobalResource> FindByNameAsync(string name, |
@@ -0,0 +1 @@ | |||
<script src="/global-resources/script"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/global-resources/script
is too common. change to /cms-kit/global-resources/script
. Also, I didn't see, which controller matches this URL?
@@ -0,0 +1 @@ | |||
<link rel="stylesheet" href="/global-resources/style"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/global-resources/style
is too common. change to /cms-kit/global-resources/style
.
|
||
var service = volo.cmsKit.admin.globalResources.globalResourceAdmin; | ||
|
||
$('#SaveResourcesButton').on('click','',function(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have a single save button, why we have separate service methods (setGlobalStyle
and setGlobalScript
), and we have only one method for get.
I think this is not consistent. Unify these two methods into a single method and make a single AJAX call.
@gizemmutukurt that's OK for me. Please you visually test and merge. |
Test is OK. |
Resolves #11690