-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SyncfusionExamples/863642-sample
config(863642):Added sample
- Loading branch information
Showing
1,854 changed files
with
539,061 additions
and
0 deletions.
There are no files selected for viewing
1,035 changes: 1,035 additions & 0 deletions
1,035
Serene1/.vs/Serene1/config/applicationhost.config
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.31702.278 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serene1.Web", "Serene1\Serene1.Web\Serene1.Web.csproj", "{557BF446-0543-4876-BA40-6213AF1F6B7B}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{557BF446-0543-4876-BA40-6213AF1F6B7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{557BF446-0543-4876-BA40-6213AF1F6B7B}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{557BF446-0543-4876-BA40-6213AF1F6B7B}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{557BF446-0543-4876-BA40-6213AF1F6B7B}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {66333E47-65E1-44D0-8094-8A88BEC498C2} | ||
EndGlobalSection | ||
EndGlobal |
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,18 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"sergen": { | ||
"version": "5.2.4", | ||
"commands": [ | ||
"sergen" | ||
] | ||
}, | ||
"microsoft.web.librarymanager.cli": { | ||
"version": "2.1.161", | ||
"commands": [ | ||
"libman" | ||
] | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
.../Serene1/Serene1.Web/Imports/ClientTypes/Administration.PermissionCheckEditorAttribute.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,25 @@ | ||
using Serenity; | ||
using Serenity.ComponentModel; | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
|
||
namespace Serene1.Administration | ||
{ | ||
public partial class PermissionCheckEditorAttribute : CustomEditorAttribute | ||
{ | ||
public const string Key = "Serene1.Administration.PermissionCheckEditor"; | ||
|
||
public PermissionCheckEditorAttribute() | ||
: base(Key) | ||
{ | ||
} | ||
|
||
public bool ShowRevoke | ||
{ | ||
get { return GetOption<bool>("showRevoke"); } | ||
set { SetOption("showRevoke", value); } | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
Serene1/Serene1/Serene1.Web/Imports/ClientTypes/Administration.RoleCheckEditorAttribute.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,19 @@ | ||
using Serenity; | ||
using Serenity.ComponentModel; | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
|
||
namespace Serene1.Administration | ||
{ | ||
public partial class RoleCheckEditorAttribute : CustomEditorAttribute | ||
{ | ||
public const string Key = "Serene1.Administration.RoleCheckEditor"; | ||
|
||
public RoleCheckEditorAttribute() | ||
: base(Key) | ||
{ | ||
} | ||
} | ||
} |
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,83 @@ | ||
| ||
namespace MVC | ||
{ | ||
public static class Views | ||
{ | ||
public static class Administration | ||
{ | ||
public static class Language | ||
{ | ||
public const string LanguageIndex = "~/Modules/Administration/Language/LanguageIndex.cshtml"; | ||
} | ||
|
||
public static class Role | ||
{ | ||
public const string RoleIndex = "~/Modules/Administration/Role/RoleIndex.cshtml"; | ||
} | ||
|
||
public static class Translation | ||
{ | ||
public const string TranslationIndex = "~/Modules/Administration/Translation/TranslationIndex.cshtml"; | ||
} | ||
|
||
public static class User | ||
{ | ||
public const string UserIndex = "~/Modules/Administration/User/UserIndex.cshtml"; | ||
} | ||
|
||
} | ||
|
||
public static class Common | ||
{ | ||
public static class Dashboard | ||
{ | ||
public const string DashboardIndex = "~/Modules/Common/Dashboard/DashboardIndex.cshtml"; | ||
} | ||
} | ||
|
||
public static class Errors | ||
{ | ||
public const string AccessDenied = "~/Views/Errors/AccessDenied.cshtml"; | ||
public const string ValidationError = "~/Views/Errors/ValidationError.cshtml"; | ||
} | ||
|
||
public static class Membership | ||
{ | ||
public static class Account | ||
{ | ||
public const string AccountLogin = "~/Modules/Membership/Account/AccountLogin.cshtml"; | ||
public static class ChangePassword | ||
{ | ||
public const string AccountChangePassword = "~/Modules/Membership/Account/ChangePassword/AccountChangePassword.cshtml"; | ||
} | ||
|
||
public static class ForgotPassword | ||
{ | ||
public const string AccountForgotPassword = "~/Modules/Membership/Account/ForgotPassword/AccountForgotPassword.cshtml"; | ||
} | ||
|
||
public static class ResetPassword | ||
{ | ||
public const string AccountResetPassword = "~/Modules/Membership/Account/ResetPassword/AccountResetPassword.cshtml"; | ||
public const string AccountResetPasswordEmail = "~/Modules/Membership/Account/ResetPassword/AccountResetPasswordEmail.cshtml"; | ||
} | ||
|
||
public static class SignUp | ||
{ | ||
public const string AccountActivateEmail = "~/Modules/Membership/Account/SignUp/AccountActivateEmail.cshtml"; | ||
public const string AccountSignUp = "~/Modules/Membership/Account/SignUp/AccountSignUp.cshtml"; | ||
} | ||
} | ||
} | ||
|
||
public static class Shared | ||
{ | ||
public const string _Layout = "~/Views/Shared/_Layout.cshtml"; | ||
public const string _LayoutHead = "~/Views/Shared/_LayoutHead.cshtml"; | ||
public const string _LayoutNoNavigation = "~/Views/Shared/_LayoutNoNavigation.cshtml"; | ||
public const string _Sidebar = "~/Views/Shared/_Sidebar.cshtml"; | ||
public const string Error = "~/Views/Shared/Error.cshtml"; | ||
} | ||
|
||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.LanguageColumns.ts
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,5 @@ | ||
namespace Serene1.Administration { | ||
export class LanguageColumns { | ||
static columnsKey = 'Administration.Language'; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.LanguageForm.ts
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,27 @@ | ||
namespace Serene1.Administration { | ||
export interface LanguageForm { | ||
LanguageId: Serenity.StringEditor; | ||
LanguageName: Serenity.StringEditor; | ||
} | ||
|
||
export class LanguageForm extends Serenity.PrefixedContext { | ||
static formKey = 'Administration.Language'; | ||
private static init: boolean; | ||
|
||
constructor(prefix: string) { | ||
super(prefix); | ||
|
||
if (!LanguageForm.init) { | ||
LanguageForm.init = true; | ||
|
||
var s = Serenity; | ||
var w0 = s.StringEditor; | ||
|
||
Q.initFormType(LanguageForm, [ | ||
'LanguageId', w0, | ||
'LanguageName', w0 | ||
]); | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.LanguageRow.ts
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 @@ | ||
namespace Serene1.Administration { | ||
export interface LanguageRow { | ||
Id?: number; | ||
LanguageId?: string; | ||
LanguageName?: string; | ||
} | ||
|
||
export namespace LanguageRow { | ||
export const idProperty = 'Id'; | ||
export const nameProperty = 'LanguageName'; | ||
export const localTextPrefix = 'Administration.Language'; | ||
export const lookupKey = 'Administration.Language'; | ||
|
||
export function getLookup(): Q.Lookup<LanguageRow> { | ||
return Q.getLookup<LanguageRow>('Administration.Language'); | ||
} | ||
export const deletePermission = 'Administration:Translation'; | ||
export const insertPermission = 'Administration:Translation'; | ||
export const readPermission = 'Administration:Translation'; | ||
export const updatePermission = 'Administration:Translation'; | ||
|
||
export declare const enum Fields { | ||
Id = "Id", | ||
LanguageId = "LanguageId", | ||
LanguageName = "LanguageName" | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.LanguageService.ts
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,31 @@ | ||
namespace Serene1.Administration { | ||
export namespace LanguageService { | ||
export const baseUrl = 'Administration/Language'; | ||
|
||
export declare function Create(request: Serenity.SaveRequest<LanguageRow>, onSuccess?: (response: Serenity.SaveResponse) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
export declare function Update(request: Serenity.SaveRequest<LanguageRow>, onSuccess?: (response: Serenity.SaveResponse) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
export declare function Delete(request: Serenity.DeleteRequest, onSuccess?: (response: Serenity.DeleteResponse) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
export declare function Retrieve(request: Serenity.RetrieveRequest, onSuccess?: (response: Serenity.RetrieveResponse<LanguageRow>) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
export declare function List(request: Serenity.ListRequest, onSuccess?: (response: Serenity.ListResponse<LanguageRow>) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
|
||
export declare const enum Methods { | ||
Create = "Administration/Language/Create", | ||
Update = "Administration/Language/Update", | ||
Delete = "Administration/Language/Delete", | ||
Retrieve = "Administration/Language/Retrieve", | ||
List = "Administration/Language/List" | ||
} | ||
|
||
[ | ||
'Create', | ||
'Update', | ||
'Delete', | ||
'Retrieve', | ||
'List' | ||
].forEach(x => { | ||
(<any>LanguageService)[x] = function (r, s, o) { | ||
return Q.serviceRequest(baseUrl + '/' + x, r, s, o); | ||
}; | ||
}); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.PermissionKeys.ts
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,6 @@ | ||
namespace Serene1.Administration { | ||
export namespace PermissionKeys { | ||
export const Security = "Administration:Security"; | ||
export const Translation = "Administration:Translation"; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RoleColumns.ts
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,5 @@ | ||
namespace Serene1.Administration { | ||
export class RoleColumns { | ||
static columnsKey = 'Administration.Role'; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RoleForm.ts
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,25 @@ | ||
namespace Serene1.Administration { | ||
export interface RoleForm { | ||
RoleName: Serenity.StringEditor; | ||
} | ||
|
||
export class RoleForm extends Serenity.PrefixedContext { | ||
static formKey = 'Administration.Role'; | ||
private static init: boolean; | ||
|
||
constructor(prefix: string) { | ||
super(prefix); | ||
|
||
if (!RoleForm.init) { | ||
RoleForm.init = true; | ||
|
||
var s = Serenity; | ||
var w0 = s.StringEditor; | ||
|
||
Q.initFormType(RoleForm, [ | ||
'RoleName', w0 | ||
]); | ||
} | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ne1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RolePermissionListRequest.ts
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,8 @@ | ||
namespace Serene1.Administration { | ||
export interface RolePermissionListRequest extends Serenity.ServiceRequest { | ||
RoleID?: number; | ||
Module?: string; | ||
Submodule?: string; | ||
} | ||
} | ||
|
5 changes: 5 additions & 0 deletions
5
...e1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RolePermissionListResponse.ts
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,5 @@ | ||
namespace Serene1.Administration { | ||
export interface RolePermissionListResponse extends Serenity.ListResponse<string> { | ||
} | ||
} | ||
|
25 changes: 25 additions & 0 deletions
25
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RolePermissionRow.ts
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,25 @@ | ||
namespace Serene1.Administration { | ||
export interface RolePermissionRow { | ||
RolePermissionId?: number; | ||
RoleId?: number; | ||
PermissionKey?: string; | ||
RoleRoleName?: string; | ||
} | ||
|
||
export namespace RolePermissionRow { | ||
export const idProperty = 'RolePermissionId'; | ||
export const nameProperty = 'PermissionKey'; | ||
export const localTextPrefix = 'Administration.RolePermission'; | ||
export const deletePermission = 'Administration:Security'; | ||
export const insertPermission = 'Administration:Security'; | ||
export const readPermission = 'Administration:Security'; | ||
export const updatePermission = 'Administration:Security'; | ||
|
||
export declare const enum Fields { | ||
RolePermissionId = "RolePermissionId", | ||
RoleId = "RoleId", | ||
PermissionKey = "PermissionKey", | ||
RoleRoleName = "RoleRoleName" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Serene1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RolePermissionService.ts
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,22 @@ | ||
namespace Serene1.Administration { | ||
export namespace RolePermissionService { | ||
export const baseUrl = 'Administration/RolePermission'; | ||
|
||
export declare function Update(request: RolePermissionUpdateRequest, onSuccess?: (response: Serenity.SaveResponse) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
export declare function List(request: RolePermissionListRequest, onSuccess?: (response: RolePermissionListResponse) => void, opt?: Q.ServiceOptions<any>): JQueryXHR; | ||
|
||
export declare const enum Methods { | ||
Update = "Administration/RolePermission/Update", | ||
List = "Administration/RolePermission/List" | ||
} | ||
|
||
[ | ||
'Update', | ||
'List' | ||
].forEach(x => { | ||
(<any>RolePermissionService)[x] = function (r, s, o) { | ||
return Q.serviceRequest(baseUrl + '/' + x, r, s, o); | ||
}; | ||
}); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...1/Serene1/Serene1.Web/Imports/ServerTypings/Administration.RolePermissionUpdateRequest.ts
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,9 @@ | ||
namespace Serene1.Administration { | ||
export interface RolePermissionUpdateRequest extends Serenity.ServiceRequest { | ||
RoleID?: number; | ||
Module?: string; | ||
Submodule?: string; | ||
Permissions?: string[]; | ||
} | ||
} | ||
|
Oops, something went wrong.