-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move InstallButton into core #930
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
File renamed without changes
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,84 @@ | ||
// Addon States. | ||
export const DISABLED = 'DISABLED'; | ||
export const DISABLING = 'DISABLING'; | ||
export const DOWNLOADING = 'DOWNLOADING'; | ||
export const ENABLED = 'ENABLED'; | ||
export const ENABLING = 'ENABLING'; | ||
export const ERROR = 'ERROR'; | ||
export const INSTALLED = 'INSTALLED'; | ||
export const INSTALLING = 'INSTALLING'; | ||
export const UNINSTALLED = 'UNINSTALLED'; | ||
export const UNINSTALLING = 'UNINSTALLING'; | ||
export const UNKNOWN = 'UNKNOWN'; | ||
export const validInstallStates = [ | ||
DISABLED, | ||
DISABLING, | ||
ENABLED, | ||
ENABLING, | ||
DOWNLOADING, | ||
ENABLED, | ||
ERROR, | ||
INSTALLED, | ||
INSTALLING, | ||
UNINSTALLED, | ||
UNINSTALLING, | ||
UNKNOWN, | ||
]; | ||
|
||
// Add-on error states. | ||
export const DOWNLOAD_FAILED = 'DOWNLOAD_FAILED'; | ||
export const INSTALL_FAILED = 'INSTALL_FAILED'; | ||
|
||
// Unrecoverable errors. | ||
export const FATAL_INSTALL_ERROR = 'FATAL_INSTALL_ERROR'; | ||
export const FATAL_UNINSTALL_ERROR = 'FATAL_UNINSTALL_ERROR'; | ||
export const FATAL_ERROR = 'FATAL_ERROR'; | ||
|
||
// Add-on types. | ||
export const API_THEME_TYPE = 'persona'; | ||
export const EXTENSION_TYPE = 'extension'; | ||
export const THEME_TYPE = 'theme'; | ||
export const validAddonTypes = [ | ||
EXTENSION_TYPE, | ||
THEME_TYPE, | ||
]; | ||
|
||
// Theme preview actions. | ||
export const THEME_INSTALL = 'InstallBrowserTheme'; | ||
export const THEME_PREVIEW = 'PreviewBrowserTheme'; | ||
export const THEME_RESET_PREVIEW = 'ResetBrowserThemePreview'; | ||
export const validThemeActions = [ | ||
THEME_INSTALL, | ||
THEME_PREVIEW, | ||
THEME_RESET_PREVIEW, | ||
]; | ||
|
||
export const installEventList = [ | ||
'onDownloadStarted', | ||
'onDownloadProgress', | ||
'onDownloadEnded', | ||
'onDownloadCancelled', | ||
'onDownloadFailed', | ||
'onInstallStarted', | ||
'onInstallProgress', | ||
'onInstallEnded', | ||
'onInstallCancelled', | ||
'onInstallFailed', | ||
]; | ||
|
||
// Install Types | ||
export const INSTALL_STATE = 'INSTALL_STATE'; | ||
export const START_DOWNLOAD = 'START_DOWNLOAD'; | ||
export const DOWNLOAD_PROGRESS = 'DOWNLOAD_PROGRESS'; | ||
export const INSTALL_COMPLETE = 'INSTALL_COMPLETE'; | ||
export const UNINSTALL_COMPLETE = 'UNINSTALL_COMPLETE'; | ||
export const INSTALL_ERROR = 'INSTALL_ERROR'; | ||
|
||
export const acceptedInstallTypes = [ | ||
INSTALL_STATE, | ||
START_DOWNLOAD, | ||
DOWNLOAD_PROGRESS, | ||
INSTALL_COMPLETE, | ||
UNINSTALL_COMPLETE, | ||
INSTALL_ERROR, | ||
]; |
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it's worth moving this image? This could possibly be re-used but maybe not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't appear to be used by any other component. If we need to use it later on, we could put it somewhere in a
core/img
folder or something.