-
-
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 #92 from AStarStartup/Issue27
Remove React MUI #27.A
- Loading branch information
Showing
26 changed files
with
968 additions
and
1,912 deletions.
There are no files selected for viewing
File renamed without changes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ModelCommandStructureDefault, ModelCommandStructureSet, | ||
ModelSessionDefault, ModelSessionSet, | ||
ModelIssuesClosedSet, | ||
ModelIssuesOpenSet, | ||
ModelMissionDefault, ModelMissionSet, | ||
ModelOptionsDefault, ModelOptionsSet, | ||
ModelReposSet, } | ||
from '../Model' | ||
console.log("[Background.ts]") | ||
|
||
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { | ||
console.log(message) | ||
console.log(sender) | ||
sendResponse("Received message from [Content.ts]") | ||
}) | ||
|
||
chrome.alarms.onAlarm.addListener((alarm) => { | ||
if (alarm.name === "FeedUpdate") { | ||
console.log('tick') | ||
//chrome.storage.local.get(["feeds", "segments"], (res) => { | ||
// FeedEstuarySorterProcess(res.feeds, res.segments) | ||
//}) | ||
} | ||
}) | ||
|
||
// @todo Inspect video timestamp 3:38:30 for spooky shit. | ||
|
||
chrome.runtime.onInstalled.addListener(() => { | ||
ModelOptionsSet(ModelOptionsDefault) | ||
ModelCommandStructureSet(ModelCommandStructureDefault) | ||
ModelIssuesClosedSet({}) | ||
ModelIssuesOpenSet({}) | ||
ModelMissionSet(ModelMissionDefault) | ||
ModelReposSet({}) | ||
|
||
chrome.alarms.create("FeedUpdate", { | ||
periodInMinutes: 15/60, | ||
}) | ||
|
||
chrome.contextMenus.create({ | ||
"id": "FeedAddSelectionContextMenu", | ||
"title": "Add selection to feed.", | ||
"contexts": ["selection"] | ||
}) | ||
|
||
chrome.contextMenus.create({ | ||
"id": "FeedAddPageContextMenu", | ||
"title": "Add current page to feed." | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.