5htp-core 0.6.0-6 → 0.6.0-7

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.
@@ -177,10 +177,10 @@
177
177
 
178
178
  .apply-theme({
179
179
  alpha: false;
180
- background: #D7FEEE;
181
- foreground: darken( #D7FEEE, 80% );
182
- accent1: #111;
183
- accent2: #111;
180
+ background: #179e50;
181
+ foreground: #fff;
182
+ accent1: #fff;
183
+ accent2: #fff;
184
184
  });
185
185
 
186
186
  &.light {
@@ -236,10 +236,10 @@
236
236
 
237
237
  .apply-theme({
238
238
  alpha: false;
239
- background: lighten( @cInfo, 50% );
240
- foreground: darken( @cInfo, 50% );
241
- accent1: #111;
242
- accent2: #111;
239
+ background: #6C5DD3;
240
+ foreground: #fff;
241
+ accent1: #fff;
242
+ accent2: #fff;
243
243
  });
244
244
 
245
245
  &.light {
@@ -26,7 +26,11 @@ export default (initProps: Props) => {
26
26
  - INIT
27
27
  ----------------------------------*/
28
28
 
29
- const [{ title, onChange }, { errors, required, ...props }] = useMantineInput<Props>(initProps);
29
+ const [{ title, onChange, value }, { errors, required, ...props }] = useMantineInput<Props>(initProps);
30
+
31
+ if (initProps.title === 'Exact match')
32
+ console.log("Checkbox", initProps, props);
33
+
30
34
 
31
35
  /*----------------------------------
32
36
  - RENDER
@@ -36,6 +40,7 @@ export default (initProps: Props) => {
36
40
  label={title}
37
41
  error={errors?.join(', ')}
38
42
  required={required}
43
+ checked={value}
39
44
  {...props}
40
45
  onChange={e => onChange?.(e.target.checked)}
41
46
  />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "5htp-core",
3
3
  "description": "Convenient TypeScript framework designed for Performance and Productivity.",
4
- "version": "0.6.0-6",
4
+ "version": "0.6.0-7",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -286,7 +286,8 @@ export default class Console {
286
286
  public async createBugReport( error: Error | CoreError | Anomaly, request?: ServerRequest ) {
287
287
 
288
288
  // Print error
289
- this.logger.error(LogPrefix, `Sending bug report for the following error:`, error);
289
+ const originalError = ('originalError' in error && error.originalError) ? error.originalError : error;
290
+ this.logger.error(LogPrefix, `Sending bug report for the following error:`, error, originalError);
290
291
  /*const youchRes = new Youch(error, {});
291
292
  const jsonResponse = await youchRes.toJSON()
292
293
  console.log( forTerminal(jsonResponse, {
@@ -371,8 +372,8 @@ export default class Console {
371
372
  } : {}),
372
373
 
373
374
  // Error
374
- error,
375
- stacktrace: error.stack || error.message,
375
+ error: originalError,
376
+ stacktrace: (originalError.stack || originalError.message || error.stack || error.message) as string,
376
377
  logs
377
378
  }
378
379
 
@@ -0,0 +1,42 @@
1
+
2
+ import type { Prisma } from '@models/types';
3
+ import * as runtime from '@/var/prisma/runtime/library.js';
4
+
5
+ export default class Facet<
6
+ D extends {
7
+ findMany(args?: any): Promise<any>
8
+ findFirst(args?: any): Promise<any>
9
+ },
10
+ S extends (...a: any[]) => Prisma.ProspectContactLeadFindFirstArgs,
11
+ R
12
+ > {
13
+ constructor(
14
+ private readonly delegate: D,
15
+ private readonly subset: S,
16
+
17
+ /* the **ONLY** line that changed ↓↓↓ */
18
+ private readonly transform: (
19
+ row: runtime.Types.Result.GetResult<
20
+ Prisma.$ProspectContactLeadPayload,
21
+ ReturnType<S>,
22
+ 'findMany'
23
+ >[number]
24
+ ) => R,
25
+ ) { }
26
+
27
+ public findMany(
28
+ ...args: Parameters<S>
29
+ ): Promise<R[]> {
30
+ return this.delegate
31
+ .findMany(this.subset(...args))
32
+ .then(rows => rows.map(this.transform))
33
+ }
34
+
35
+ public findFirst(
36
+ ...args: Parameters<S>
37
+ ): Promise<R> {
38
+ return this.delegate
39
+ .findFirst(this.subset(...args))
40
+ .then(this.transform)
41
+ }
42
+ }
package/types/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export type TIcones = "solid/spinner-third"|"long-arrow-right"|"search"|"paper-plane"|"bookmark"|"solid/download"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"times"|"angle-down"|"th-large"|"table"|"traffic-light-stop"|"times-circle"|"info-circle"|"check-circle"|"exclamation-circle"|"heart"|"bell"|"chart-bar"|"power-off"|"seedling"|"palette"|"car"|"plane"|"university"|"briefcase"|"hard-hat"|"graduation-cap"|"bolt"|"cogs"|"film"|"leaf"|"tshirt"|"utensils"|"globe"|"map-marked-alt"|"dumbbell"|"stethoscope"|"concierge-bell"|"book"|"shield-alt"|"gavel"|"industry"|"square-root-alt"|"newspaper"|"pills"|"medal"|"capsules"|"balance-scale"|"home"|"praying-hands"|"shopping-cart"|"flask"|"futbol"|"microchip"|"satellite-dish"|"shipping-fast"|"passport"|"tools"|"chart-line"|"lock"|"eye"|"credit-card"|"at"|"brands/linkedin"|"image"|"key"|"brands/google"|"check"|"bars"|"books"|"box-full"|"planet-ringed"|"brands/twitter"|"brands/facebook"|"database"|"brain"|"download"|"code"|"money-bill"|"rocket"|"user-circle"|"plus-circle"|"solid/heart"|"regular/heart"|"trash"|"arrow-left"|"arrow-right"|"meh-rolling-eyes"|"unlink"|"pen"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"link"|"file"|"plus"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"poll"|"columns"|"sticky-note"|"caret-right"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"
1
+ export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"rocket"|"chart-bar"|"planet-ringed"|"brands/linkedin"|"user-circle"|"plus-circle"|"comments-alt"|"crosshairs"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"key"|"user"|"at"|"magnet"|"paper-plane"|"plus"|"binoculars"|"calendar-alt"|"search"|"lightbulb"|"envelope"|"solid/crown"|"brands/discord"|"pen"|"file"|"angle-up"|"angle-down"|"times-circle"|"info-circle"|"check-circle"|"exclamation-circle"|"check"|"usd-circle"|"users"|"arrow-left"|"meh-rolling-eyes"|"trash"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"bars"|"play"|"minus-circle"|"question-circle"|"external-link"|"plane-departure"|"brands/whatsapp"|"wind"|"broom"|"exclamation-triangle"|"arrow-to-bottom"|"map-marker-alt"|"clock"|"ellipsis-h"|"solid/magic"|"industry"|"map-marker"|"calendar"|"briefcase"|"fire"|"globe"|"magic"|"building"|"graduation-cap"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"