Skip to content

Commit

Permalink
Remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
driver-deploy-2 committed Sep 16, 2024
1 parent 3dad5e3 commit f6034df
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 18 deletions.
4 changes: 2 additions & 2 deletions docs/909.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/909.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"><title>Crime Scripting</title><meta content="200" name="og:image:height"><meta content="Crime Scripting" name="og:site_name"><meta content="interest-cohort=(), user-id=()" http-equiv="Permissions-Policy" name="Content-Security-Policy"><meta content="width=device-width,initial-scale=1" name="viewport"><meta content="Crime Scripting" name="og:title"><meta content="Crime Scripting" name="og:image:alt"><meta content="./src/assets/logo.svg" name="og:image"><meta content="200" name="og:image:width"><meta content="image/svg" name="og:image:type"><meta content="" name="og:url"><meta content="GUI for creating and editing crime scripts" name="og:description"><link href="https://erikvullings.github.io/crime_scripts/favicon.ico" rel="icon"><script defer src="https://erikvullings.github.io/crime_scripts/909.bundle.js"></script><link href="https://erikvullings.github.io/crime_scripts/909.bundle.css" rel="stylesheet"></head><body></body></html>
<!doctype html><html><head><meta charset="utf-8"><title>Crime Scripting</title><meta content="./src/assets/logo.svg" name="og:image"><meta content="Crime Scripting" name="og:title"><meta content="image/svg" name="og:image:type"><meta content="" name="og:url"><meta content="Crime Scripting" name="og:site_name"><meta content="width=device-width,initial-scale=1" name="viewport"><meta content="Crime Scripting" name="og:image:alt"><meta content="GUI for creating and editing crime scripts" name="og:description"><meta content="200" name="og:image:width"><meta content="200" name="og:image:height"><meta content="interest-cohort=(), user-id=()" http-equiv="Permissions-Policy" name="Content-Security-Policy"><link href="https://erikvullings.github.io/crime_scripts/favicon.ico" rel="icon"><script defer src="https://erikvullings.github.io/crime_scripts/909.bundle.js"></script><link href="https://erikvullings.github.io/crime_scripts/909.bundle.css" rel="stylesheet"></head><body></body></html>
2 changes: 1 addition & 1 deletion packages/gui/src/components/home-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const CrimeScriptCard: FactoryComponent<{
.map((id) => cast.find((cast) => cast.id === id))
.filter((c) => c) as Cast[];

console.log(url);
// console.log(url);
return m(
'.col.s12.m6.l4',
m(
Expand Down
2 changes: 0 additions & 2 deletions packages/gui/src/components/settings-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ export const SettingsPage: MeiosisComponent = () => {
onclick: () => {
edit = !edit;
if (edit) {
console.log('STORE');
storedModel = deepCopy(model);
} else {
console.log('SAVE');
actions.saveModel(model);
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/gui/src/components/ui/crime-script-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ ${
${attrIds.map((id) => '- ' + attributes.find((attr) => attr.id === id)?.label).join('\n')}`
: ''
}`;
console.log(md);
return {
title: label,
md,
Expand Down
2 changes: 0 additions & 2 deletions packages/gui/src/components/ui/simple-list-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ export const SimpleListEditor: FactoryComponent<SimpleListEditorAttrs> = () => {
onchange(items);
},
onblur: () => {
console.log('On blur');
stopEditing();
},
onkeypress: (e: KeyboardEvent) => {
console.log(e.key);
if (e.key === 'Enter' || e.key === 'Escape' || e.key === 'Tab') {
stopEditing();
}
Expand Down
1 change: 0 additions & 1 deletion packages/gui/src/services/meiosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ export const setSearchResults: Service<State> = {
// If all compared fields are equal, return 0
return 0;
});
console.log('CALLED');
cell.update({ searchResults });
},
};
Expand Down
8 changes: 2 additions & 6 deletions packages/gui/src/utils/local-ldb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ const dbFact = () => {
throw new Error('indexedDB cannot get window');
}
const indexedDB =
win.indexedDB ||
(win as any).mozIndexedDB ||
(win as any).webkitIndexedDB ||
(win as any).msIndexedDB;
win.indexedDB || (win as any).mozIndexedDB || (win as any).webkitIndexedDB || (win as any).msIndexedDB;
if (typeof window !== 'undefined' && !indexedDB) {
throw new Error('indexDB not supported');
}
Expand Down Expand Up @@ -76,8 +73,7 @@ const dbFact = () => {
return;
}
db.transaction('s').objectStore('s').get(key).onsuccess = function (event) {
const result =
((event.target as any).result && (event.target as any).result['v']) || null;
const result = ((event.target as any).result && (event.target as any).result['v']) || null;
resolve(result);
};
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/utils/word.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ const convertMarkdownToDocxParagraphs = (markdown?: string): Paragraph[] => {
i++;
} else if (currentListItem && indentLevel > 0 && indentLevel > parentLevel) {
// This line belongs to the current list item
console.log(`Belongs to current list item: ${line}`);
// console.log(`Belongs to current list item: ${line}`);
currentListItem.content.push(line);
i++;
} else {
Expand Down

0 comments on commit f6034df

Please sign in to comment.