github: added octokat.js back in

This commit is contained in:
Steven Hugg 2021-09-15 21:53:38 -05:00
parent 9a2e411587
commit 9f171bcf75
3 changed files with 2270 additions and 5 deletions

2265
lib/octokat.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@ import { CallStackView, DebugBrowserView } from "./views/treeviews";
import { saveAs } from "file-saver";
// external libs (TODO)
declare var Tour, GIF;
declare var Tour, GIF, Octokat;
declare var ga;
declare var $ : JQueryStatic; // use browser jquery
@ -638,7 +638,7 @@ function getCookie(name) : string {
async function getGithubService() {
if (!githubService) {
// load github API client
var Octokat = (await import('octokat')).default;
await loadScript('lib/octokat.js');
// load firebase
await loadScript('https://www.gstatic.com/firebasejs/8.8.1/firebase-app.js');
await loadScript('https://www.gstatic.com/firebasejs/8.8.1/firebase-auth.js');

View File

@ -286,7 +286,7 @@ class VCSPlatform extends BasePlatform {
return "\n" + dumpRAM(ram, 0x80, 0x80);
}
getToolForFilename = getToolForFilename_vcs;
getDefaultExtension() { return ".a"; }
getDefaultExtension() { return ".dasm"; }
getROMExtension() { return ".a26"; }
getDebugCategories() {
@ -452,7 +452,7 @@ class VCSMAMEPlatform extends BaseMAME6502Platform implements Platform {
getPresets = function() { return VCS_PRESETS; }
getToolForFilename = getToolForFilename_vcs;
getDefaultExtension() { return ".a"; }
getDefaultExtension() { return ".dasm"; }
getROMExtension() { return ".a26"; }
getOriginPC = function() {
@ -509,7 +509,7 @@ class VCSStellaPlatform implements Platform {
return this.running;
}
getToolForFilename = getToolForFilename_vcs;
getDefaultExtension() { return ".a"; }
getDefaultExtension() { return ".dasm"; }
getROMExtension() { return ".a26"; }
getPresets() { return VCS_PRESETS }
}