Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Jul 23, 2024
1 parent bf22998 commit 4f6a4bc
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/main.61eafc7f6c9684ca8c80.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/main.cd59963b1ec8403d0387.js

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/mode-ink.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ define('ace/mode/ink', [
/// set context menu
$.contextMenu(app.utils.getEditorContextMenu(/->/g));

console.log('ink', InkMode);
app.log('ink', InkMode);
app.editor.setOptions({
enableBasicAutocompletion: app.settings.autocompleteSuggestionsEnabled(),
enableLiveAutocompletion: app.settings.autocompleteSuggestionsEnabled(),
Expand Down
12 changes: 6 additions & 6 deletions public/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export var Plugins = function(app) {
const self = this;
const registerPlugin = plugin => {
app.plugins[plugin.name] = plugin;
// console.log('attaching plugin', plugin, app.plugins);
// app.log('attaching plugin', plugin, app.plugins);
};

const getPluginStore = pluginName => {
Expand Down Expand Up @@ -267,10 +267,10 @@ export var Plugins = function(app) {
// register plugins stored on a gist - todo cache all this
if (app.settings.gistPluginsFile() !== null) {
app.data.storage.getGist(app.settings.gistPluginsFile()).then(({fileList}) => {
console.log({ fileList });
app.log({ fileList });
fileList.forEach(gistFile => {
if (gistFile.language === 'JavaScript') {
console.log({ gistFile });
app.log({ gistFile });
try {
app.storage
.getContentOrRaw(gistFile.content, gistFile.raw_url)
Expand All @@ -279,7 +279,7 @@ export var Plugins = function(app) {
importedPlugin => {
const newPlugin = importedPlugin(pluginApiMethods);
newPlugin.name = newPlugin.name || gistFile.filename;
console.log(
app.log(
{ newPlugin },
'loaded from ',
gistFile.raw_url
Expand All @@ -290,11 +290,11 @@ export var Plugins = function(app) {
scriptEle.setAttribute('src', dependency);
document.body.appendChild(scriptEle);
scriptEle.addEventListener('load', () => {
console.log('File loaded', dependency);
app.log('File loaded', dependency);
});

scriptEle.addEventListener('error', ev => {
console.log('Error on loading file', ev);
app.log('Error on loading file', ev);
});
});
}
Expand Down
6 changes: 3 additions & 3 deletions public/plugins/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export var Runner = function({
require('./jsoneditor/size-overrides.css');
editor = new JSONEditor({ id: 'jsoneditor' });
const localVariables = getPluginStore(self.name);
console.log({ editor });
app.log({ editor });
// set json
editor.setValue(
typeof localVariables.variables !== 'object'
Expand Down Expand Up @@ -131,7 +131,7 @@ export var Runner = function({
}
});
const localVariables = getPluginStore(self.name);
console.log('variables', localVariables);
app.log('variables', localVariables);
app.data.getSaveData('json').then(saveData => {
self.previewStory.initYarn(
JSON.parse(saveData),
Expand Down Expand Up @@ -246,7 +246,7 @@ export var Runner = function({
}
});
const localVariables = getPluginStore(self.name);
console.log('VARIABLES::::', localVariables);
app.log('VARIABLES::::', localVariables);

app.data.getSaveData('ink', null, true).then(saveData => {
const onRecompile = () => {
Expand Down
2 changes: 1 addition & 1 deletion public/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.4.280"
"version": "0.4.281"
}
2 changes: 1 addition & 1 deletion sw.js

Large diffs are not rendered by default.

0 comments on commit 4f6a4bc

Please sign in to comment.