Skip to content

Commit

Permalink
Remove React MUI #27.A
Browse files Browse the repository at this point in the history
  • Loading branch information
CookingWithCale committed Dec 31, 2023
1 parent af8dd8a commit ea06e0b
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 ea06e0b

Please sign in to comment.