-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🔥 [EXL-71] support policy creation onboarding page
support policy creation onboarding page
- Loading branch information
tal-rofe
committed
Oct 6, 2022
1 parent
a795712
commit 7dbe33e
Showing
134 changed files
with
2,025 additions
and
875 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
"@commitlint/cli", | ||
"@types/node", | ||
"stylelint", | ||
"@prisma/client", | ||
"is-docker" | ||
] | ||
} |
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,3 +1,5 @@ | ||
save-exact=true | ||
stream=true | ||
strict-peer-dependencies=false | ||
strict-peer-dependencies=false | ||
public-hoist-pattern[]=prisma | ||
public-hoist-pattern[]=@prisma/client |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { ILibraryData } from '../interfaces/libraries-data'; | ||
|
||
export const depcheckData: ILibraryData = { | ||
name: 'Depcheck', | ||
author: 'Djordje Lukic, Junle Li', | ||
description: 'Check your npm module for unused dependencies.', | ||
types: ['Linters'], | ||
categories: ['Dependencies'], | ||
language: 'JavaScript', | ||
}; |
10 changes: 5 additions & 5 deletions
10
apps/frontend/src/data/eslint-data.ts → apps/backend/src/data/eslint-data.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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { ILibraryData } from '../interfaces/libraries-data'; | ||
|
||
export const inflintData: ILibraryData = { | ||
name: 'Inflint', | ||
author: 'Tal Rofe', | ||
description: 'Inflint is a tool which scans and verifies file name conventions.', | ||
types: ['Linters'], | ||
categories: ['File System'], | ||
language: 'Agnostic', | ||
}; |
16 changes: 8 additions & 8 deletions
16
apps/frontend/src/data/libraries-data.ts → apps/backend/src/data/libraries-data.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,14 +1,14 @@ | ||
import type { ILbirariesData } from '../interfaces/libraries'; | ||
import type { ILibraryData } from '../interfaces/libraries-data'; | ||
import { depcheckData } from './depcheck-data'; | ||
import { eslintData } from './eslint-data'; | ||
import { inflintData } from './inflint-data'; | ||
import { prettierData } from './prettier-data'; | ||
import { stylelintData } from './stylelint-data'; | ||
|
||
export const librariesData: ILbirariesData = { | ||
eslint: eslintData, | ||
stylelint: stylelintData, | ||
depcheck: depcheckData, | ||
prettier: prettierData, | ||
inflint: inflintData, | ||
}; | ||
export const librariesData: ILibraryData[] = [ | ||
depcheckData, | ||
eslintData, | ||
inflintData, | ||
prettierData, | ||
stylelintData, | ||
]; |
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
10 changes: 5 additions & 5 deletions
10
apps/frontend/src/data/stylelint-data.ts → apps/backend/src/data/stylelint-data.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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type { PolicyLibrary } from '@prisma/client'; | ||
|
||
interface ILibraryRule { | ||
readonly description: string; | ||
readonly configApi: string; | ||
readonly hasAutoFix?: boolean; | ||
readonly category?: string; | ||
} | ||
|
||
export type IType = 'Linters' | 'Formatters'; | ||
|
||
export type ICategory = 'Code' | 'File System' | 'Styles' | 'Dependencies'; | ||
|
||
export type ILanguage = 'JavaScript' | 'CSSHTML' | 'Agnostic'; | ||
|
||
export interface ILibraryData { | ||
readonly name: PolicyLibrary; | ||
readonly author: string; | ||
readonly description: string; | ||
readonly types: IType[]; | ||
readonly categories: ICategory[]; | ||
readonly language: ILanguage; | ||
readonly rules?: Record<string, ILibraryRule>; | ||
} |
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
9 changes: 0 additions & 9 deletions
9
apps/backend/src/modules/user/modules/groups/data/libraries.ts
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
apps/backend/src/modules/user/modules/groups/interfaces/group-policies.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
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.