Skip to content

Commit

Permalink
Merge branch 'feature/refactor' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jm2097 committed Apr 28, 2021
2 parents 1b196c3 + 17ecd3b commit 677e8e6
Show file tree
Hide file tree
Showing 134 changed files with 571 additions and 412 deletions.
60 changes: 30 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@
```
Types of pages
+ = main page
- = response page
= regular page
public: everybody can see them
private: only logged in users can see them
```

- General
Expand Down Expand Up @@ -235,7 +234,6 @@ yarn remove tailwindcss autoprefixer postcss
```console
├───app
│ ├───@core
│ │ ├───core
│ │ ├───directives
│ │ │ └───click-outside
│ │ ├───guards
Expand All @@ -251,34 +249,36 @@ yarn remove tailwindcss autoprefixer postcss
│ │ ├───footer
│ │ ├───header
│ │ └───layout
│ └───pages
│ ├───+auth
│ │ ├───forgot-password
│ │ ├───forgot-password-email-sent
│ │ ├───password-reset
│ │ ├───password-reset-failed
│ │ ├───password-reset-succeeded
│ │ ├───sign-in
│ │ ├───sign-up
│ │ └───_services
│ ├───+home
│ ├───+settings
│ │ ├───account
│ │ ├───appearance
│ │ ├───billing
│ │ ├───blocked-users
│ │ ├───notifications
│ │ ├───security
│ │ └───security-log
│ ├───+user
│ │ ├───my-profile
│ │ └───overview
│ ├───dashboard
│ └───_not-found
│ ├───pages
│ │ ├───private
│ │ │ ├───dashboard
│ │ │ ├───settings
│ │ │ │ ├───account
│ │ │ │ ├───appearance
│ │ │ │ ├───billing
│ │ │ │ ├───blocked-users
│ │ │ │ ├───notifications
│ │ │ │ ├───security
│ │ │ │ └───security-log
│ │ │ └───user
│ │ │ ├───my-profile
│ │ │ └───overview
│ │ └───public
│ │ ├───auth
│ │ │ ├───forgot-password
│ │ │ ├───forgot-password-email-sent
│ │ │ ├───password-reset
│ │ │ ├───password-reset-failed
│ │ │ ├───password-reset-succeeded
│ │ │ ├───sign-in
│ │ │ ├───sign-up
│ │ │ └───_services
│ │ ├───home
│ │ └───not-found
│ └───router
├───assets
├───environments
├───public
│ └───icons
├───environments
└───theme
├───01-base
├───02-components
Expand Down
12 changes: 10 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/favicon.ico", "src/assets", "src/public"],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
"styles": ["src/theme/styles.scss"],
"scripts": []
},
Expand Down Expand Up @@ -81,7 +85,11 @@
"options": {
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"assets": ["src/public/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets",
"src/manifest.webmanifest"
],
"styles": ["src/theme/styles.scss"],
"scripts": []
}
Expand Down
39 changes: 0 additions & 39 deletions locale/messages.es.xlf

This file was deleted.

36 changes: 0 additions & 36 deletions locale/messages.xlf

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/@core/guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
RouterStateSnapshot,
UrlTree,
} from '@angular/router';
import { AuthService } from '@app/pages/+auth/_services/auth.service';
import { AuthService } from '@app/pages/public/auth/_services/auth.service';
import { Path } from '@core/structs';
import { Observable } from 'rxjs';

Expand Down
4 changes: 2 additions & 2 deletions src/app/@core/guards/no-auth.guard.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { CanActivate, Router, UrlTree } from '@angular/router';
import { AuthService } from '@app/pages/+auth/_services/auth.service';
import { AuthService } from '@app/pages/public/auth/_services/auth.service';
import { Path } from '@core/structs';
import { Observable } from 'rxjs';

Expand All @@ -18,7 +18,7 @@ export class NoAuthGuard implements CanActivate {
const isLoggedIn = this.authService.isLoggedIn;

if (isLoggedIn) {
this.router.navigate([Path.App]);
this.router.navigate([Path.Dashboard]);
return false;
}

Expand Down
4 changes: 1 addition & 3 deletions src/app/@core/structs/path.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export enum Path {
NotFound = '404',

// Auth
Auth = '',
SignIn = 'sign-in',
SignUp = 'sign-up',
ForgotPassword = 'forgot-password',
Expand All @@ -14,8 +13,7 @@ export enum Path {
PasswordResetSucceeded = 'password-reset-succeeded',

// App base url
App = 'app',
Dashboard = '',
Dashboard = 'dashboard',

// Settings
Settings = 'settings',
Expand Down
Loading

0 comments on commit 677e8e6

Please sign in to comment.