-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[frontend] Remove EndpointStore, AssetGroupStore & ArticleStore
- Loading branch information
1 parent
8b7f64d
commit 71172aa
Showing
27 changed files
with
82 additions
and
104 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
openbas-front/src/actions/asset_groups/assetgroup-helper.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { AssetGroupStore } from '../../admin/components/assets/asset_groups/AssetGroup'; | ||
import type { AssetGroup } from '../../utils/api-types'; | ||
|
||
export interface AssetGroupsHelper { | ||
getAssetGroups: () => AssetGroupStore[]; | ||
getAssetGroupMaps: () => Record<string, AssetGroupStore>; | ||
getAssetGroup: (assetGroupId: string) => AssetGroupStore | undefined; | ||
getAssetGroups: () => AssetGroup[]; | ||
getAssetGroupMaps: () => Record<string, AssetGroup>; | ||
getAssetGroup: (assetGroupId: string) => AssetGroup | undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
import type { Article, Channel } from '../../utils/api-types'; | ||
|
||
export type ArticleStore = Omit<Article, 'article_channel' | 'article_documents'> & { | ||
article_channel: string | undefined; | ||
article_documents: string[] | undefined; | ||
}; | ||
|
||
export type FullArticleStore = ArticleStore & { | ||
export type FullArticleStore = Article & { | ||
article_fullchannel: Channel; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import type { Article, Exercise } from '../../utils/api-types'; | ||
import type { ScenarioStore } from '../scenarios/Scenario'; | ||
import type { ArticleStore } from './Article'; | ||
|
||
export interface ArticlesHelper { | ||
getArticlesMap: () => Record<string, Article>; | ||
getExerciseArticles: (exerciseId: Exercise['exercise_id']) => ArticleStore[]; | ||
getScenarioArticles: (scenarioId: ScenarioStore['scenario_id']) => ArticleStore[]; | ||
getExerciseArticles: (exerciseId: Exercise['exercise_id']) => Article[]; | ||
getScenarioArticles: (scenarioId: ScenarioStore['scenario_id']) => Article[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.