cc-core-cli 1.0.120 → 1.0.122

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -0,0 +1,13 @@
1
+ import React from 'react'
2
+ import RegisterForm from '../components/Register'
3
+
4
+ class Register extends React.Component {
5
+
6
+ render() {
7
+ return (
8
+ <RegisterForm {...this.props} />
9
+ )
10
+ }
11
+ }
12
+
13
+ export default Register
@@ -25,17 +25,36 @@
25
25
  .logo-layout {
26
26
  padding: 0rem 1rem;
27
27
  width: 100%;
28
+ height: 100vh;
28
29
  }
30
+
31
+ .logo-layout-v3 {
32
+ padding: 0rem 1rem;
33
+ width: 100%;
34
+ height: 100vh;
35
+ }
36
+ }
37
+
38
+ @media only screen and (max-width: 768px) {
39
+ .logo-layout {
40
+ padding: 0rem 1rem;
41
+ width: 100%;
42
+ height: 100vh;
43
+ }
44
+
29
45
  .logo-layout-v3 {
30
46
  padding: 0rem 1rem;
31
47
  width: 100%;
48
+ height: 100vh;
32
49
  }
33
50
  }
51
+
34
52
  @media only screen and (min-width: 768px) and (max-width: 992px) {
35
53
  .logo-layout {
36
54
  padding: 0rem 4rem;
37
55
  width: 100%;
38
56
  }
57
+
39
58
  .logo-layout-v3 {
40
59
  padding: 0rem 4rem;
41
60
  width: 100%;
@@ -58,6 +77,7 @@
58
77
  overflow-y: hidden;
59
78
  padding: 1.5rem;
60
79
  border-radius: @border-radius-base;
80
+ width: 100%;
61
81
 
62
82
  .form-login-authentication {
63
83
  margin-bottom: 15px;
@@ -87,6 +107,8 @@
87
107
  .ant-btn-social {
88
108
  display: flex;
89
109
  justify-content: center;
110
+ align-items: center;
111
+ height: 44px;
90
112
 
91
113
  img {
92
114
  height: 20px;
@@ -216,26 +238,26 @@
216
238
  }
217
239
 
218
240
  .forgot-password-title {
219
- margin-top : 0;
220
- padding-top: 0;
221
- text-align : center;
241
+ margin-top: 0;
242
+ padding-top: 0;
243
+ text-align: center;
222
244
  }
223
245
 
224
246
  .login-input {
225
- .ant-input {
226
- height: 44px;
227
- font-size: 16px;
228
- }
247
+ .ant-input {
248
+ height: 44px;
249
+ font-size: 16px;
250
+ }
229
251
  }
230
252
 
231
253
  .login-input-password {
232
- .ant-input-password {
233
- height: 44px;
234
- font-size: 16px;
235
- }
254
+ .ant-input-password {
255
+ height: 44px;
256
+ font-size: 16px;
257
+ }
236
258
  }
237
259
 
238
260
  .button_login {
239
- height: 44px;
240
- font-size: 16px;
241
- }
261
+ height: 44px;
262
+ font-size: 16px;
263
+ }
@@ -154,20 +154,26 @@ export class CoreController {
154
154
  @Param() params: any,
155
155
  @Query() query: any
156
156
  ): Promise<any> {
157
+ const { keywords, filters, page, page_size, sort, grouping } = query;
158
+ const searchKey = `${keywords || ""}${
159
+ _.isEmpty(filters) ? "" : JSON.stringify(filters)
160
+ }${page || ""}${page_size || ""}${sort || ""}${grouping || ""}`;
157
161
  if (
158
162
  !["mail_setting"].includes(params.entity) &&
159
163
  params.entity.indexOf("_setting") !== -1
160
164
  ) {
161
165
  return this.serviceSetting.getSetting(params.entity, params.key);
162
166
  } else {
163
- if (/^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(params.key)) {
167
+ if (
168
+ /^(?=[a-f\d]{24}$)(\d+[a-f]|[a-f]+\d)/i.test(params.key) ||
169
+ _.isEmpty(searchKey)
170
+ ) {
164
171
  return this.service.findOne(
165
172
  params.entity,
166
173
  params.key,
167
174
  this._convertFields(query.fields)
168
175
  );
169
176
  }
170
- const { keywords, filters, page, page_size, sort, grouping } = query;
171
177
  return this.service.searchWithLayout(
172
178
  params.entity,
173
179
  params.key,
@@ -255,7 +255,6 @@ async function bootstrap() {
255
255
 
256
256
  // Serve specific file for "/"
257
257
  fastify.get("/", (request, reply) => {
258
- console.log("Serving / from custom route");
259
258
  reply
260
259
  .type("text/html")
261
260
  .sendFile("index.html", path.join(process.cwd(), "storage/documents"));