@sumaris-net/ngx-components 18.14.15 → 18.14.17
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/doc/changelog.md +462 -128
- package/doc/feed/feed-fr.json +8 -6
- package/esm2022/public_api.mjs +4 -4
- package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +14 -1
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +5 -2
- package/esm2022/src/app/social/feed/feed.component.mjs +3 -4
- package/esm2022/src/app/social/feed/feed.directive.mjs +4 -4
- package/esm2022/src/app/social/feed/feed.service.mjs +158 -2
- package/esm2022/src/app/social/message/message.form.mjs +4 -3
- package/esm2022/src/app/social/message/message.model.mjs +2 -2
- package/esm2022/src/environments/environment.mjs +4 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +156 -312
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +0 -3
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/pipes/arrays.pipe.d.ts +5 -0
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
- package/src/app/social/feed/feed.directive.d.ts +1 -1
- package/src/app/social/feed/feed.service.d.ts +57 -0
- package/src/assets/manifest.json +1 -1
- package/esm2022/src/app/social/feed/discourse/discourse-feed.service.mjs +0 -170
- package/esm2022/src/app/social/feed/discourse/discourse.model.mjs +0 -2
- package/esm2022/src/app/social/feed/discourse/discourse.utils.mjs +0 -168
- package/src/app/social/feed/discourse/discourse-feed.service.d.ts +0 -56
- package/src/app/social/feed/discourse/discourse.model.d.ts +0 -7
- package/src/app/social/feed/discourse/discourse.utils.d.ts +0 -44
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { operations } from 'discourse2/esm/schema';
|
|
2
|
-
export type DiscourseCategory = operations['listCategoryTopics']['responses']['200']['content']['application/json'];
|
|
3
|
-
export type DiscourseCategoryTopic = DiscourseCategory['topic_list']['topics'][0];
|
|
4
|
-
export type DiscourseTopic = operations['getTopic']['responses']['200']['content']['application/json'];
|
|
5
|
-
export type DiscoursePost = operations['getTopic']['responses']['200']['content']['application/json']['post_stream']['posts'][0] & {
|
|
6
|
-
post_url?: string;
|
|
7
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import DiscourseAPI from 'discourse2';
|
|
2
|
-
import { JsonFeed, JsonFeedItem, JsonFeedUtils } from '../feed.model';
|
|
3
|
-
import { DiscourseCategory, DiscoursePost, DiscourseTopic } from './discourse.model';
|
|
4
|
-
export declare abstract class DiscourseUtils {
|
|
5
|
-
static _logPrefix: string;
|
|
6
|
-
static removeJsonExtension: typeof JsonFeedUtils.removeJsonExtension;
|
|
7
|
-
static isDiscourseObject(json: any): json is DiscourseTopic | DiscourseCategory;
|
|
8
|
-
static isDiscourseTopic(json: any | Partial<DiscourseTopic>): json is DiscourseTopic;
|
|
9
|
-
static isDiscourseCategory(json: any | Partial<DiscourseCategory>): json is DiscourseCategory;
|
|
10
|
-
static getDiscourseBaseUrl(url: string): string;
|
|
11
|
-
static isDiscourseCategoryUrl(url: string): RegExpMatchArray;
|
|
12
|
-
static extractCategoryIdFromUrl(url: string): number;
|
|
13
|
-
static extractCategorySlugFromUrl(url: string): string;
|
|
14
|
-
static extractTopicIdFromUrl(url: string): number;
|
|
15
|
-
static getLanguageFromTitle(title: string): string;
|
|
16
|
-
static getFeedsByUrl(url: string, opts?: {
|
|
17
|
-
api?: DiscourseAPI;
|
|
18
|
-
locale?: string;
|
|
19
|
-
maxAgeInMonths?: number;
|
|
20
|
-
maxContentLength?: number;
|
|
21
|
-
}): Promise<JsonFeed[]>;
|
|
22
|
-
static getFeedsByCategoryUrl(url: string, opts?: {
|
|
23
|
-
api?: DiscourseAPI;
|
|
24
|
-
locale?: string;
|
|
25
|
-
maxAgeInMonths?: number;
|
|
26
|
-
maxContentLength?: number;
|
|
27
|
-
}): Promise<JsonFeed[]>;
|
|
28
|
-
static getFeedByTopicUrl(url: string, opts?: {
|
|
29
|
-
locale?: string;
|
|
30
|
-
maxAgeInMonths?: number;
|
|
31
|
-
maxContentLength?: number;
|
|
32
|
-
api?: DiscourseAPI;
|
|
33
|
-
}): Promise<JsonFeed>;
|
|
34
|
-
static filterRecentPosts(posts: DiscoursePost[], opts?: {
|
|
35
|
-
maxAgeInMonths?: number;
|
|
36
|
-
}): DiscoursePost[];
|
|
37
|
-
static toFeed(posts: DiscoursePost[], topic: DiscourseTopic, url: string, opts?: {
|
|
38
|
-
maxContentLength?: number;
|
|
39
|
-
}): JsonFeed;
|
|
40
|
-
static toFeedItem(post: DiscoursePost, topic: DiscourseTopic, url: string, opts?: {
|
|
41
|
-
maxContentLength?: number;
|
|
42
|
-
}): JsonFeedItem;
|
|
43
|
-
static cleanTitle(title: string): string;
|
|
44
|
-
}
|