5htp-core 0.6.2-95 → 0.6.2-97

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.
@@ -22,7 +22,7 @@ export { default as Service } from './service';
22
22
 
23
23
  // Resources
24
24
  //import '@client/assets/css/core.less';
25
- import '@mantine/core/styles.css';
25
+ //import '@mantine/core/styles.css';
26
26
 
27
27
  /*----------------------------------
28
28
  - TYPES
@@ -1,4 +1,5 @@
1
1
  @import (reference) '@/client/assets/vars.less';
2
+ @import '@mantine/core/styles.css';
2
3
 
3
4
  // Utils
4
5
  @import './colors.less';
@@ -50,18 +50,9 @@ export default class ApiClient implements ApiClientService {
50
50
  throw new Error("api.fetch shouldn't be called here.");
51
51
  }
52
52
 
53
- public get = <TData extends unknown = unknown>(path: string, data?: TPostData, opts?: TApiFetchOptions) =>
54
- this.createFetcher<TData>('GET', path, data, opts);
55
-
56
53
  public post = <TData extends unknown = unknown>(path: string, data?: TPostData, opts?: TApiFetchOptions) =>
57
54
  this.createFetcher<TData>('POST', path, data, opts);
58
55
 
59
- public put = <TData extends unknown = unknown>(path: string, data?: TPostData, opts?: TApiFetchOptions) =>
60
- this.createFetcher<TData>('PUT', path, data, opts);
61
-
62
- public delete = <TData extends unknown = unknown>(path: string, data?: TPostData, opts?: TApiFetchOptions) =>
63
- this.createFetcher<TData>('DELETE', path, data, opts);
64
-
65
56
  public set( newData: TObjetDonnees ) {
66
57
 
67
58
  if (!('context' in this.router))
@@ -63,14 +63,6 @@ export default abstract class ApiClient {
63
63
  - TOP LEVEL
64
64
  ----------------------------------*/
65
65
 
66
- public abstract get<TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions): TFetcher<TData>;
67
-
68
- public abstract post<TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions): TFetcher<TData>;
69
-
70
- public abstract put<TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions): TFetcher<TData>;
71
-
72
- public abstract delete<TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions): TFetcher<TData>;
73
-
74
66
  public abstract set( newData: TObjetDonnees );
75
67
 
76
68
  public abstract reload( ids?: string | string[], params?: TObjetDonnees );
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.2-95",
4
+ "version": "0.6.2-97",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -56,7 +56,7 @@ export type TReadFileOptions = {
56
56
  export default abstract class FsDriver<
57
57
  Config extends TDrivercnfig = TDrivercnfig,
58
58
  TBucketName = keyof Config["buckets"]
59
- > extends Service<Config, {}, Application> {
59
+ > extends Service<Config, {}, Application, Application> {
60
60
 
61
61
  public constructor( config: Config, app: Application ) {
62
62
  super(app, config, app);
@@ -52,7 +52,7 @@ export default class S3Driver<
52
52
 
53
53
  public constructor( config: TConfig, app: Application ) {
54
54
 
55
- super(app, config, app);
55
+ super(config, app);
56
56
 
57
57
  AWS.config.update({
58
58
  accessKeyId: this.config.accessKeyId,
@@ -31,18 +31,6 @@ export default class ApiClientRequest extends RequestService implements ApiClien
31
31
  throw new Error("api.fetch shouldn't be called here.");
32
32
  }
33
33
 
34
- public get = <TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions) =>
35
- this.createFetcher<TData>('GET', path, data, opts);
36
-
37
- public post = <TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions) =>
38
- this.createFetcher<TData>('POST', path, data, opts);
39
-
40
- public put = <TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions) =>
41
- this.createFetcher<TData>('PUT', path, data, opts);
42
-
43
- public delete = <TData extends unknown = unknown>(path: string, data?: TObjetDonnees, opts?: TApiFetchOptions) =>
44
- this.createFetcher<TData>('DELETE', path, data, opts);
45
-
46
34
  /*----------------------------------
47
35
  - PLACEHOLDERS
48
36
  ----------------------------------*/
package/types/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export type TIcones = "solid/spinner-third"|"rocket"|"user-circle"|"plane-departure"|"long-arrow-right"|"plus-circle"|"comments-alt"|"crosshairs"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"magnet"|"search"|"times"|"at"|"plus"|"minus"|"trash"|"brands/linkedin"|"play"|"stop"|"paper-plane"|"regular/shield-check"|"angle-down"|"check"|"clock"|"cog"|"ellipsis-h"|"lightbulb"|"phone"|"angle-up"|"envelope"|"solid/crown"|"eye"|"pen"|"file"|"user-plus"|"sack-dollar"|"info-circle"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"download"|"brands/google"|"brands/whatsapp"|"crown"|"check-circle"|"exclamation-circle"|"times-circle"|"key"|"arrow-left"|"minus-circle"|"external-link"|"wind"|"broom"|"solid/check-circle"|"solid/exclamation-triangle"|"solid/times-circle"|"hourglass"|"building"|"briefcase"|"map-marker-alt"|"graduation-cap"|"angle-left"|"angle-right"|"coins"|"plug"|"coin"|"question-circle"|"arrow-to-bottom"|"magic"|"user"|"meh-rolling-eyes"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"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 = "solid/spinner-third"|"rocket"|"user-circle"|"times"|"at"|"star"|"plus"|"minus"|"trash"|"magnet"|"search"|"paper-plane"|"brands/linkedin"|"play"|"stop"|"check"|"plus-circle"|"clock"|"cog"|"ellipsis-h"|"long-arrow-right"|"lightbulb"|"long-arrow-left"|"phone"|"arrow-right"|"regular/shield-check"|"angle-down"|"plane-departure"|"comments-alt"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"link"|"file-alt"|"envelope"|"solid/crown"|"eye"|"pen"|"file"|"angle-up"|"user-plus"|"sack-dollar"|"info-circle"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"download"|"brands/google"|"brands/whatsapp"|"crown"|"check-circle"|"exclamation-circle"|"times-circle"|"arrow-left"|"broom"|"solid/check-circle"|"solid/exclamation-triangle"|"solid/times-circle"|"hourglass"|"key"|"building"|"briefcase"|"map-marker-alt"|"graduation-cap"|"angle-left"|"angle-right"|"plug"|"coin"|"coins"|"minus-circle"|"external-link"|"question-circle"|"arrow-to-bottom"|"magic"|"user"|"meh-rolling-eyes"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"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"