forked from kas-elvirov/gloc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kas-elvirov#45 Moved into TypeScript
- Loading branch information
1 parent
63f5b89
commit 97dd2fa
Showing
13 changed files
with
489 additions
and
391 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
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 was deleted.
Oops, something went wrong.
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,12 @@ | ||
chrome.runtime.onInstalled.addListener((details) => { | ||
if (details.reason === 'install') { | ||
chrome.runtime.openOptionsPage(); | ||
} else if (details.reason === 'update') { | ||
const thisVersion = chrome.runtime.getManifest().version; | ||
const newFeatures = '\n - small fixes \n - moved into TypeScript'; | ||
const statusMsg = `GitHub Gloc updated from ${details.previousVersion} to ${thisVersion}. | ||
${newFeatures}`; | ||
|
||
console.info(statusMsg); | ||
} | ||
}); |
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,30 @@ | ||
export const APP_NAME = 'GitHub Gloc'; | ||
export const APP_CLASSNAME = 'github-gloc'; | ||
export const TRIES_DEFAULT = 5; | ||
export const REPO_CLASS = 'repository-meta-content'; | ||
|
||
export const MESSAGE_IDS = { | ||
POPUP: [ | ||
'addToken', | ||
'github', | ||
'shortName', | ||
'indexWorksOnly', | ||
'indexCountsFrom', | ||
'indexProjectPage', | ||
'indexUserPage', | ||
'indexSearchPage', | ||
'indexTrandingPage', | ||
'indexEtc', | ||
'attentionPlease', | ||
'translateOurApp', | ||
], | ||
OPTIONS: [ | ||
'optionsTitle', | ||
'github', | ||
'shortName', | ||
'optionsUlDescription', | ||
'optionsAccess', | ||
'optionsLimits', | ||
'optionsCreateToken', | ||
], | ||
}; |
Oops, something went wrong.