user il y a 6 ans
Parent
commit
118456ec1f

+ 2 - 0
lib/content-item.d.ts

@@ -9,6 +9,8 @@ export declare class ContentItem {
     readonly userLinks: ContentLink[];
     readonly userLinks: ContentLink[];
     readonly systemLinks: ContentLink[];
     readonly systemLinks: ContentLink[];
     readonly repliable: boolean;
     readonly repliable: boolean;
+    readonly title?: string;
+    readonly text?: string;
     readonly price?: number;
     readonly price?: number;
     readonly priceFormatted?: string;
     readonly priceFormatted?: string;
     readonly fromTarget?: string;
     readonly fromTarget?: string;

+ 2 - 0
lib/content-item.js

@@ -5,6 +5,8 @@ class ContentItem {
         this.data = props;
         this.data = props;
         this.hash = hash;
         this.hash = hash;
         this.type = props.type;
         this.type = props.type;
+        this.title = props.title;
+        this.text = props.text;
         if (props.myTags) {
         if (props.myTags) {
             this.myTagsWithoutAll = props.myTags.filter(x => x !== 'all');
             this.myTagsWithoutAll = props.myTags.filter(x => x !== 'all');
         }
         }

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
lib/content-item.js.map


+ 2 - 0
lib/content-params.d.ts

@@ -4,4 +4,6 @@ export interface ContentParams {
     links?: ContentLink[];
     links?: ContentLink[];
     myTags?: string[];
     myTags?: string[];
     price?: number;
     price?: number;
+    title?: string;
+    text?: string;
 }
 }

+ 4 - 0
src/content-item.ts

@@ -13,6 +13,8 @@ export class ContentItem {
   public readonly systemLinks: ContentLink[];
   public readonly systemLinks: ContentLink[];
   public readonly repliable: boolean;
   public readonly repliable: boolean;
 
 
+  public readonly title?: string;
+  public readonly text?: string;
   public readonly price?: number;
   public readonly price?: number;
   public readonly priceFormatted?: string;
   public readonly priceFormatted?: string;
   public readonly fromTarget?: string;
   public readonly fromTarget?: string;
@@ -25,6 +27,8 @@ export class ContentItem {
     this.data = props;
     this.data = props;
     this.hash = hash;
     this.hash = hash;
     this.type = props.type;
     this.type = props.type;
+    this.title = props.title;
+    this.text = props.text;
     
     
     if (props.myTags) {
     if (props.myTags) {
       this.myTagsWithoutAll = props.myTags.filter(x => x !== 'all');
       this.myTagsWithoutAll = props.myTags.filter(x => x !== 'all');

+ 2 - 0
src/content-params.ts

@@ -5,4 +5,6 @@ export interface ContentParams {
     links?: ContentLink[];
     links?: ContentLink[];
     myTags?: string[];
     myTags?: string[];
     price?: number;
     price?: number;
+    title?: string;
+    text?: string;
 }
 }