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.
Merge pull request kas-elvirov#46 from artem-solovev/gloc-45
kas-elvirov#45 Moving to TypeScript
- Loading branch information
Showing
19 changed files
with
4,864 additions
and
3,173 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 |
---|---|---|
|
@@ -109,3 +109,6 @@ jspm_packages | |
# Builds | ||
/dist/ | ||
*.zip | ||
|
||
# Token | ||
.token |
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,3 @@ | ||
{ | ||
"tslint.configFile": "./tslint.json" | ||
} |
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
Large diffs are not rendered by default.
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
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.