@qlover/create-app 0.10.6 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,6 +78,7 @@ export class UserApi
78
78
  }
79
79
 
80
80
  /**
81
+ * @override
81
82
  * @param params
82
83
  * @returns
83
84
  */
@@ -101,6 +102,7 @@ export class UserApi
101
102
  }
102
103
 
103
104
  /**
105
+ * @override
104
106
  * @param params
105
107
  * @returns
106
108
  */
@@ -112,6 +114,7 @@ export class UserApi
112
114
  }
113
115
 
114
116
  /**
117
+ * @override
115
118
  * @returns
116
119
  */
117
120
  public async refreshUserInfo(): Promise<UserInfo> {
@@ -119,6 +122,7 @@ export class UserApi
119
122
  }
120
123
 
121
124
  /**
125
+ * @override
122
126
  * @returns
123
127
  */
124
128
  public logout(): Promise<any> {
@@ -126,6 +130,7 @@ export class UserApi
126
130
  }
127
131
 
128
132
  /**
133
+ * @override
129
134
  * @returns
130
135
  */
131
136
  public async getUserInfo(_credential?: UserCredential): Promise<UserInfo> {
@@ -64,6 +64,9 @@ export interface UserApiTransaction<
64
64
  export class UserApiBootstarp implements BootstrapExecutorPlugin {
65
65
  public readonly pluginName = 'UserApiBootstarp';
66
66
 
67
+ /**
68
+ * @override
69
+ */
67
70
  public onBefore({ parameters: { ioc } }: BootstrapContext): void {
68
71
  ioc
69
72
  .get<UserApi>(UserApi)
@@ -35,6 +35,9 @@ export class I18nService
35
35
  super(() => new I18nServiceState(i18n.language as LocaleType));
36
36
  }
37
37
 
38
+ /**
39
+ * @override
40
+ */
38
41
  public onBefore(): void {
39
42
  const debug = false;
40
43
 
@@ -62,6 +62,9 @@ export class IdentifierService<T> implements ResourceServiceInterface<
62
62
  }
63
63
  }
64
64
 
65
+ /**
66
+ * @override
67
+ */
65
68
  public async created(): Promise<unknown> {
66
69
  this.unsubscribe = this.i18nService.observe(
67
70
  (state) => state.language,
@@ -73,6 +76,9 @@ export class IdentifierService<T> implements ResourceServiceInterface<
73
76
  return this.init();
74
77
  }
75
78
 
79
+ /**
80
+ * @override
81
+ */
76
82
  public destroyed(): void {
77
83
  this.unsubscribe?.();
78
84
  this.unsubscribe = null;
@@ -80,8 +86,14 @@ export class IdentifierService<T> implements ResourceServiceInterface<
80
86
  this.store.reset();
81
87
  }
82
88
 
89
+ /**
90
+ * @override
91
+ */
83
92
  public updated(): void {}
84
93
 
94
+ /**
95
+ * @override
96
+ */
85
97
  public async search(
86
98
  params: Partial<ResourceQuery & { locale: LocaleType }>
87
99
  ): Promise<PaginationInterface<IdentifierRecord>> {
@@ -122,16 +134,28 @@ export class IdentifierService<T> implements ResourceServiceInterface<
122
134
  return this.search(this.store.state.searchParams);
123
135
  }
124
136
 
137
+ /**
138
+ * @override
139
+ */
125
140
  public async update(_data: Partial<T>): Promise<unknown> {
126
141
  return Promise.resolve(null);
127
142
  }
128
143
 
144
+ /**
145
+ * @override
146
+ */
129
147
  public create(_data: T): Promise<unknown> {
130
148
  return Promise.resolve(null);
131
149
  }
150
+ /**
151
+ * @override
152
+ */
132
153
  public remove(_data: T): Promise<unknown> {
133
154
  return Promise.resolve(null);
134
155
  }
156
+ /**
157
+ * @override
158
+ */
135
159
  public export(_data: T): Promise<unknown> {
136
160
  return Promise.resolve(null);
137
161
  }
@@ -14,6 +14,9 @@ export class UserBootstrap implements BootstrapExecutorPlugin {
14
14
  protected userService: UserServiceInterface
15
15
  ) {}
16
16
 
17
+ /**
18
+ * @override
19
+ */
17
20
  public async onBefore(): Promise<void> {
18
21
  const userService = this.userService;
19
22
 
@@ -71,6 +71,9 @@ export class UserService
71
71
  return isObject(value) && 'token' in value && isString(value.token);
72
72
  }
73
73
 
74
+ /**
75
+ * @override
76
+ */
74
77
  public override isAuthenticated(): boolean {
75
78
  if (!super.isAuthenticated()) {
76
79
  return false;
@@ -99,10 +99,16 @@ export class ChatMessageBridge<
99
99
  return this.messages.getFirstDraftMessage();
100
100
  }
101
101
 
102
+ /**
103
+ * @override
104
+ */
102
105
  public setRef(ref: unknown): void {
103
106
  this.ref = ref as TextAreaRef;
104
107
  }
105
108
 
109
+ /**
110
+ * @override
111
+ */
106
112
  public focus(): void {
107
113
  requestAnimationFrame(() => {
108
114
  this.ref?.focus();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlover/create-app",
3
- "version": "0.10.6",
3
+ "version": "0.12.0",
4
4
  "description": "Create a new app with a single command",
5
5
  "private": false,
6
6
  "type": "module",
@@ -33,16 +33,17 @@
33
33
  "ignore": "^7.0.3",
34
34
  "lodash": "^4.17.21",
35
35
  "ora": "^8.1.1",
36
- "@qlover/logger": "0.3.3"
36
+ "@qlover/logger": "0.4.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "commander": "^13.1.0",
40
40
  "inquirer": "^12.3.2",
41
- "@qlover/scripts-context": "1.2.3"
41
+ "@qlover/scripts-context": "1.3.0"
42
42
  },
43
43
  "scripts": {
44
44
  "lint": "eslint src --fix",
45
45
  "build": "tsup",
46
+ "type-check": "tsc --noEmit",
46
47
  "create:app": "node ./dist/index.js"
47
48
  }
48
49
  }