Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: mv renderingOptions => blockedResourceTypes
BREAKING CHANGE: renames “renderingOptions” to “blockedResourceTypes”. Default is now “None” fix for issue #113
- Loading branch information
1 parent
ae96ced
commit ffa1b74
Showing
13 changed files
with
97 additions
and
49 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { IRenderingOption } from '@secret-agent/core-interfaces/ITabOptions'; | ||
import { IBlockedResourceType } from '@secret-agent/core-interfaces/ITabOptions'; | ||
import IUserProfile from '@secret-agent/core-interfaces/IUserProfile'; | ||
|
||
export default interface IAgentDefaults { | ||
defaultRenderingOptions?: IRenderingOption[]; | ||
defaultBlockedResourceTypes?: IBlockedResourceType[]; | ||
defaultUserProfile?: IUserProfile; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
export default interface ITabOptions { | ||
renderingOptions?: IRenderingOption[]; | ||
blockedResourceTypes?: IBlockedResourceType[]; | ||
} | ||
|
||
export enum RenderingOption { | ||
AwaitedDOM = 'AwaitedDOM', | ||
export enum BlockedResourceType { | ||
JsRuntime = 'JsRuntime', | ||
LoadJsResources = 'LoadJsResources', | ||
LoadCssResources = 'LoadCssResources', | ||
LoadImages = 'LoadImages', | ||
LoadResources = 'LoadResources', | ||
BlockJsResources = 'BlockJsResources', | ||
BlockCssResources = 'BlockCssResources', | ||
BlockImages = 'BlockImages', | ||
BlockAssets = 'BlockAssets', | ||
All = 'All', | ||
None = 'None', | ||
} | ||
|
||
export type IRenderingOption = keyof typeof RenderingOption; | ||
export type IBlockedResourceType = keyof typeof BlockedResourceType; |
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