1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-20 00:17:04 +00:00

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
View File
File diff suppressed because it is too large Load Diff
+2 -2
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');
+3 -3
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 }
}