Skip to content

Commit

Permalink
Merge pull request #92 from AStarStartup/Issue27
Browse files Browse the repository at this point in the history
 Remove React MUI #27.A
  • Loading branch information
CookingWithCale authored Dec 31, 2023
2 parents 4627b60 + ea06e0b commit b3f061f
Show file tree
Hide file tree
Showing 26 changed files with 968 additions and 1,912 deletions.
File renamed without changes
File renamed without changes.
50 changes: 50 additions & 0 deletions Extension/Ctlr/Background.ts
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."
})
})
63 changes: 0 additions & 63 deletions Extension/Ctlr/Background/Background.ts

This file was deleted.

File renamed without changes.
Loading

0 comments on commit b3f061f

Please sign in to comment.