-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(schematics): dasherize the state and store file name (#2090)
* fix(schematics): dasherize the state and store file name * chore: remove public access modifier
- Loading branch information
Showing
12 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/store/schematics/src/actions/files/__name__.actions.ts__template__
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export class <%= classify(name) %>Action { | ||
public static readonly type = '[<%= classify(name) %>] Add item'; | ||
constructor(public payload: any) { } | ||
static readonly type = '[<%= classify(name) %>] Add item'; | ||
constructor(readonly payload: any) { } | ||
} |
5 changes: 2 additions & 3 deletions
5
packages/store/schematics/src/starter-kit/files/store/auth/auth.actions.ts__template__
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { AuthenticationStateModel } from './auth.state'; | ||
|
||
export class SetAuthData { | ||
public static readonly type = '[Auth] Auth data'; | ||
|
||
constructor(public payload: AuthenticationStateModel) {} | ||
static readonly type = '[Auth] Auth data'; | ||
constructor(readonly payload: AuthenticationStateModel) {} | ||
} |
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
9 changes: 3 additions & 6 deletions
9
...src/starter-kit/files/store/dashboard/states/dictionary/dictionary.actions.ts__template__
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { DictionaryStateModel } from './dictionary.state'; | ||
|
||
export class SetDictionaryData { | ||
public static readonly type = '[Dictionary] Set dictionary data action'; | ||
|
||
constructor(public payload: DictionaryStateModel) {} | ||
static readonly type = '[Dictionary] Set dictionary data action'; | ||
constructor(readonly payload: DictionaryStateModel) {} | ||
} | ||
|
||
export class DictionaryReset { | ||
public static readonly type = '[Dictionary] Reset dictionary action'; | ||
|
||
constructor() {} | ||
static readonly type = '[Dictionary] Reset dictionary action'; | ||
} |
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
4 changes: 2 additions & 2 deletions
4
.../schematics/src/starter-kit/files/store/dashboard/states/user/user.actions.ts__template__
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { UserStateModel } from './user.state'; | ||
|
||
export class SetUser { | ||
public static readonly type = '[SetUser] action'; | ||
constructor(public payload: UserStateModel) {} | ||
static readonly type = '[SetUser] action'; | ||
constructor(readonly payload: UserStateModel) {} | ||
} |
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
6 changes: 3 additions & 3 deletions
6
packages/store/schematics/src/store/files/__name__.actions.ts__template__
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export class <%= classify(name) %>Action { | ||
public static readonly type = '[<%= classify(name) %>] Add item'; | ||
constructor(public payload: string) { } | ||
} | ||
static readonly type = '[<%= classify(name) %>] Add item'; | ||
constructor(readonly payload: string) { } | ||
} |
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