├── CMS_CORE_NG ├── ClientApp │ ├── src │ │ ├── assets │ │ │ ├── .gitkeep │ │ │ └── images │ │ │ │ ├── spinner.gif │ │ │ │ ├── profilepic.png │ │ │ │ └── bg-register.jpeg │ │ ├── app │ │ │ ├── app.component.css │ │ │ ├── home │ │ │ │ ├── home.component.css │ │ │ │ ├── home.component.html │ │ │ │ ├── home.component.ts │ │ │ │ └── home.component.spec.ts │ │ │ ├── user │ │ │ │ ├── user.component.css │ │ │ │ ├── user-settings │ │ │ │ │ ├── user-settings.component.css │ │ │ │ │ └── user-settings.component.spec.ts │ │ │ │ ├── user.component.html │ │ │ │ ├── user.component.ts │ │ │ │ ├── user-activity │ │ │ │ │ ├── user-activity.component.css │ │ │ │ │ ├── user-activity.component.spec.ts │ │ │ │ │ └── user-activity.component.ts │ │ │ │ ├── user.component.spec.ts │ │ │ │ ├── user-profile │ │ │ │ │ ├── user-profile.component.spec.ts │ │ │ │ │ └── user-profile.component.css │ │ │ │ ├── user.module.ts │ │ │ │ └── user-routing.module.ts │ │ │ ├── terms │ │ │ │ ├── terms.component.css │ │ │ │ ├── terms.component.ts │ │ │ │ └── terms.component.spec.ts │ │ │ ├── nav-menu │ │ │ │ ├── nav-menu.component.css │ │ │ │ ├── nav-menu.component.spec.ts │ │ │ │ └── nav-menu.component.ts │ │ │ ├── app.component.html │ │ │ ├── interfaces │ │ │ │ ├── store-state.ts │ │ │ │ ├── login.ts │ │ │ │ ├── country.ts │ │ │ │ ├── address.ts │ │ │ │ ├── register.ts │ │ │ │ └── profile.ts │ │ │ ├── contact-us │ │ │ │ ├── contact-us.component.css │ │ │ │ ├── contact-us.component.spec.ts │ │ │ │ └── contact-us.component.ts │ │ │ ├── app.component.ts │ │ │ ├── send-code │ │ │ │ ├── send-code.component.css │ │ │ │ └── send-code.component.spec.ts │ │ │ ├── validate-code │ │ │ │ ├── validate-code.component.css │ │ │ │ ├── validate-code.component.spec.ts │ │ │ │ └── validate-code.component.html │ │ │ ├── about-us │ │ │ │ ├── about-us.component.ts │ │ │ │ └── about-us.component.spec.ts │ │ │ ├── login │ │ │ │ ├── login.component.spec.ts │ │ │ │ └── login.component.css │ │ │ ├── register │ │ │ │ ├── register.component.spec.ts │ │ │ │ └── register.component.css │ │ │ ├── forgot-password │ │ │ │ ├── forgot-password.component.spec.ts │ │ │ │ ├── forgot-password.component.css │ │ │ │ └── forgot-password.component.html │ │ │ ├── services │ │ │ │ ├── country.service.ts │ │ │ │ └── common │ │ │ │ │ └── validator.service.ts │ │ │ ├── app.component.spec.ts │ │ │ └── app-routing.module.ts │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── main.ts │ │ └── test.ts │ ├── .prettierrc.json │ ├── .editorconfig │ ├── e2e │ │ ├── src │ │ │ ├── app.po.ts │ │ │ └── app.e2e-spec.ts │ │ ├── tsconfig.json │ │ └── protractor.conf.js │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── tsconfig.base.json │ ├── tsconfig.json │ ├── .browserslistrc │ ├── .gitignore │ ├── README.md │ └── karma.conf.js ├── wwwroot │ ├── lib │ │ ├── popper.js │ │ │ └── esm │ │ │ │ ├── types.js │ │ │ │ ├── types.min.js │ │ │ │ ├── utils │ │ │ │ ├── getAltAxis.min.js │ │ │ │ ├── getVariation.min.js │ │ │ │ ├── getAltLen.min.js │ │ │ │ ├── within.min.js │ │ │ │ ├── getAltAxis.js │ │ │ │ ├── getAltLen.js │ │ │ │ ├── getFreshSideObject.min.js │ │ │ │ ├── getVariation.js │ │ │ │ ├── within.js │ │ │ │ ├── expandToHashMap.min.js │ │ │ │ ├── getBasePlacement.min.js │ │ │ │ ├── getMainAxisFromPlacement.min.js │ │ │ │ ├── uniqueBy.min.js │ │ │ │ ├── getBasePlacement.js │ │ │ │ ├── getMainAxisFromPlacement.js │ │ │ │ ├── getFreshSideObject.js │ │ │ │ ├── debounce.min.js │ │ │ │ ├── rectToClientRect.min.js │ │ │ │ ├── getOppositeVariationPlacement.min.js │ │ │ │ ├── mergePaddingObject.min.js │ │ │ │ ├── expandToHashMap.js │ │ │ │ ├── format.min.js │ │ │ │ ├── getOppositePlacement.min.js │ │ │ │ ├── mergePaddingObject.js │ │ │ │ ├── rectToClientRect.js │ │ │ │ ├── getOppositeVariationPlacement.js │ │ │ │ ├── uniqueBy.js │ │ │ │ ├── getOppositePlacement.js │ │ │ │ ├── format.js │ │ │ │ ├── mergeByName.min.js │ │ │ │ ├── debounce.js │ │ │ │ ├── orderModifiers.min.js │ │ │ │ ├── mergeByName.js │ │ │ │ ├── computeOffsets.min.js │ │ │ │ ├── computeAutoPlacement.min.js │ │ │ │ ├── orderModifiers.js │ │ │ │ ├── detectOverflow.min.js │ │ │ │ └── validateModifiers.min.js │ │ │ │ ├── popper-base.min.js │ │ │ │ ├── popper-base.js │ │ │ │ ├── modifiers │ │ │ │ ├── popperOffsets.min.js │ │ │ │ ├── eventListeners.min.js │ │ │ │ ├── offset.min.js │ │ │ │ ├── popperOffsets.js │ │ │ │ ├── hide.min.js │ │ │ │ ├── applyStyles.min.js │ │ │ │ ├── eventListeners.js │ │ │ │ ├── arrow.min.js │ │ │ │ └── offset.js │ │ │ │ ├── popper-lite.min.js │ │ │ │ ├── popper-lite.js │ │ │ │ ├── popper.min.js │ │ │ │ ├── popper.js │ │ │ │ ├── enums.min.js │ │ │ │ └── enums.js │ │ ├── chosen │ │ │ ├── chosen-sprite.png │ │ │ └── chosen-sprite@2x.png │ │ ├── font-awesome │ │ │ ├── webfonts │ │ │ │ ├── fa-solid-900.eot │ │ │ │ ├── fa-solid-900.ttf │ │ │ │ ├── fa-brands-400.eot │ │ │ │ ├── fa-brands-400.ttf │ │ │ │ ├── fa-brands-400.woff │ │ │ │ ├── fa-regular-400.eot │ │ │ │ ├── fa-regular-400.ttf │ │ │ │ ├── fa-solid-900.woff │ │ │ │ ├── fa-solid-900.woff2 │ │ │ │ ├── fa-brands-400.woff2 │ │ │ │ ├── fa-regular-400.woff │ │ │ │ └── fa-regular-400.woff2 │ │ │ └── css │ │ │ │ ├── solid.min.css │ │ │ │ ├── brands.min.css │ │ │ │ ├── regular.min.css │ │ │ │ ├── solid.css │ │ │ │ ├── brands.css │ │ │ │ └── regular.css │ │ ├── jqueryui │ │ │ └── images │ │ │ │ └── ui-icons_444444_256x240.png │ │ ├── custom │ │ │ ├── css │ │ │ │ ├── admin │ │ │ │ │ ├── user.min.css │ │ │ │ │ └── user.css │ │ │ │ └── notification │ │ │ │ │ ├── notification.min.css │ │ │ │ │ └── notification.css │ │ │ └── js │ │ │ │ ├── admin │ │ │ │ ├── admin.min.js │ │ │ │ └── admin.js │ │ │ │ └── common │ │ │ │ ├── password-generator.js │ │ │ │ └── image.js │ │ ├── tabulator │ │ │ └── js │ │ │ │ └── modules │ │ │ │ ├── resize_table.min.js │ │ │ │ ├── resize_table.js │ │ │ │ └── resize_rows.min.js │ │ └── jquery-validate │ │ │ └── localization │ │ │ └── messages_ka.min.js │ ├── favicon.ico │ ├── images │ │ └── bg.jpeg │ ├── fonts │ │ ├── Poppins │ │ │ ├── Poppins-Black.ttf │ │ │ ├── Poppins-Bold.ttf │ │ │ ├── Poppins-Italic.ttf │ │ │ ├── Poppins-Light.ttf │ │ │ ├── Poppins-Medium.ttf │ │ │ ├── Poppins-Thin.ttf │ │ │ ├── Poppins-Regular.ttf │ │ │ ├── Poppins-SemiBold.ttf │ │ │ ├── Poppins-BlackItalic.ttf │ │ │ ├── Poppins-BoldItalic.ttf │ │ │ ├── Poppins-ExtraBold.ttf │ │ │ ├── Poppins-ExtraLight.ttf │ │ │ ├── Poppins-LightItalic.ttf │ │ │ ├── Poppins-ThinItalic.ttf │ │ │ ├── Poppins-MediumItalic.ttf │ │ │ ├── Poppins-ExtraBoldItalic.ttf │ │ │ ├── Poppins-ExtraLightItalic.ttf │ │ │ └── Poppins-SemiBoldItalic.ttf │ │ └── montserrat │ │ │ └── Montserrat-Regular.ttf │ └── uploads │ │ ├── roles │ │ └── icons │ │ │ ├── 204011531.png │ │ │ └── default │ │ │ └── role.png │ │ └── user │ │ └── profile │ │ ├── 201041353.png │ │ ├── 201747257.png │ │ ├── 202322438.png │ │ ├── 203622693.png │ │ ├── 204324421.png │ │ ├── 204822942.png │ │ ├── 200120582.jpeg │ │ ├── 200240427.jpeg │ │ ├── 200328880.jpeg │ │ ├── 201911127.jpeg │ │ ├── 201946897.jpeg │ │ ├── 202452712.jpeg │ │ ├── 202548559.jpeg │ │ ├── 203938322.jpeg │ │ ├── 203938804.jpeg │ │ ├── 204852867.jpeg │ │ ├── 204931417.jpeg │ │ ├── 205022390.jpeg │ │ ├── 205400412.jpeg │ │ ├── 205830248.jpeg │ │ ├── 205846071.jpeg │ │ └── default │ │ └── profile.jpeg ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Password │ │ └── ResetPasswordConfirmation.cshtml │ └── Shared │ │ ├── _ValidationScriptsPartial.cshtml │ │ └── _Layout.cshtml ├── Areas │ └── Admin │ │ └── Views │ │ ├── Home │ │ └── Index.cshtml │ │ ├── Profile │ │ └── _ViewStart.cshtml │ │ ├── User │ │ └── _ViewStart.cshtml │ │ ├── Account │ │ ├── _ViewStart.cshtml │ │ └── AccessDenied.cshtml │ │ ├── UserRole │ │ ├── _ViewStart.cshtml │ │ └── Index.cshtml │ │ ├── EmailSettings │ │ └── _ViewStart.cshtml │ │ ├── SiteSettings │ │ └── _ViewImports.cshtml │ │ ├── _ViewImports.cshtml │ │ ├── Shared │ │ ├── _FooterLayout.cshtml │ │ ├── _ApplicationHeaderStylesPartial.cshtml │ │ ├── _ValidationScriptsPartial.cshtml │ │ ├── _UIScriptsPartial.cshtml │ │ ├── _AdminLayout.cshtml │ │ ├── _GetUsersLayout.cshtml │ │ ├── _AdminSiteSettingsLayout.cshtml │ │ └── _ContentLayout.cshtml │ │ └── _ViewStart.cshtml ├── Pages │ ├── _ViewImports.cshtml │ ├── Error.cshtml.cs │ └── Error.cshtml ├── appsettings.Development.json ├── WeatherForecast.cs ├── Properties │ └── launchSettings.json ├── Extensions │ ├── ServiceCollectionExtensions.cs │ └── UrlHelperExtensions.cs ├── Controllers │ ├── Api │ │ └── v1 │ │ │ └── CountryController.cs │ ├── WeatherForecastController.cs │ └── PasswordController.cs ├── bundleconfig.json ├── Migrations │ └── DataProtectionKeys │ │ ├── 20200728013902_InitialCreate.cs │ │ ├── 20200907032438_InitialCreate.cs │ │ ├── DataProtectionKeysContextModelSnapshot.cs │ │ ├── 20200728013902_InitialCreate.Designer.cs │ │ └── 20200907032438_InitialCreate.Designer.cs └── libman.json ├── FiltersService ├── AdminAuthenticationOptions.cs └── UserAuthenticationOptions.cs ├── DashboardService ├── IDashboardSvc.cs └── DashboardSvc.cs ├── EmailService └── IEmailSvc.cs ├── ModelService ├── DataProtectionKeys.cs ├── ResponseObject.cs ├── PermissionType.cs ├── ResponseStatusInfoModel.cs ├── TwoFactorRequestModel.cs ├── DashboardModel.cs ├── ModelService.csproj ├── SendGridOptions.cs ├── AppUserOptions.cs ├── AdminUserOptions.cs ├── TokenRequestModel.cs ├── TwoFactorResponseModel.cs ├── UserModel.cs ├── ApplicationRole.cs ├── LoginViewModel.cs ├── RolePermission.cs ├── SmtpOptions.cs ├── RegisterViewModel.cs ├── AdminBaseViewModel.cs ├── ActivityModel.cs ├── SiteWideSettings.cs ├── AppSettings.cs ├── CountryModel.cs ├── AddressModel.cs ├── TokenResponseModel.cs ├── ApplicationUser.cs ├── ProfileModel.cs ├── TokenModel.cs ├── ResetPasswordViewModel.cs ├── TwoFactorCodeModel.cs └── IdentityDefaultOptions.cs ├── CountryService └── ICountrySvc.cs ├── WritableOptionsService └── IWritableSvc.cs ├── ActivityService └── IActivitySvc.cs ├── .gitignore ├── DataService ├── DataProtectionKeysContext.cs ├── DataService.csproj ├── DbContextInitializer.cs └── ApplicationDbContext.cs ├── AuthService └── IAuthSvc.cs ├── AttributeService └── AjaxOnlyAttribute.cs ├── LoggingService ├── LoggingService.csproj ├── CustomConsoleThemes.cs ├── CustomTextFormatter.cs └── CustomConsoleTheme.cs ├── CookieService ├── ICookieSvc.cs └── IpInfo.cs ├── FunctionalService ├── FunctionalService.csproj └── IFunctionalSvc.cs ├── BackendService └── IAdminSvc.cs ├── RolesService └── IRoleSvc.cs ├── UserService └── IUserSvc.cs └── README.md /CMS_CORE_NG/ClientApp/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/wwwroot/lib/popper.js/esm/types.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/user/user.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/wwwroot/lib/popper.js/esm/types.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/home/home.component.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/terms/terms.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/nav-menu/nav-menu.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/user/user-settings/user-settings.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/user/user.component.html: -------------------------------------------------------------------------------- 1 |
user works!
2 | -------------------------------------------------------------------------------- /CMS_CORE_NG/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /CMS_CORE_NG/Areas/Admin/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Admin Home"; 3 | } 4 | 5 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/user/user-activity/user-activity.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnInit } from '@angular/core'; 2 | import { AccountService } from 'src/app/services/account.service'; 3 | import { ToastrService } from 'ngx-toastr'; 4 | 5 | @Component({ 6 | selector: 'app-user-activity', 7 | templateUrl: './user-activity.component.html', 8 | styleUrls: ['./user-activity.component.css'] 9 | }) 10 | export class UserActivityComponent implements OnInit { 11 | userActivities: any = []; 12 | 13 | constructor(private acct: AccountService, private toastr: ToastrService) {} 14 | 15 | ngOnInit(): void { 16 | this.loadUserActivity(); 17 | } 18 | 19 | loadUserActivity() { 20 | this.acct 21 | .getUserActivity() 22 | .toPromise() 23 | .then((result) => { 24 | this.userActivities = result.data; 25 | this.toastr.success(result.message); 26 | }); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /CMS_CORE_NG/ClientApp/src/app/services/country.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from '@angular/core'; 2 | import { HttpClient } from '@angular/common/http'; 3 | import { Observable } from 'rxjs'; 4 | import { shareReplay, map } from 'rxjs/operators'; 5 | import { Country } from '../interfaces/country'; 6 | 7 | @Injectable({ 8 | providedIn: 'root' 9 | }) 10 | export class CountryService { 11 | private countryListUrl: string = '/api/v1/country/getcountries'; 12 | 13 | private country$: Observable