Skip to content

Commit bbcb381

Browse files
committed
remove console logs
1 parent bbfdc6b commit bbcb381

File tree

12 files changed

+18
-19
lines changed

12 files changed

+18
-19
lines changed

src/fields/inputFields/fields/Toggle/ToggleComponent.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
function toggleValue() {
1010
value = !value;
11-
console.log('toggle');
1211
onValueChange(value);
1312
}
1413

src/fields/metaBindTable/MetaBindTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class MetaBindTable extends AbstractMDRC {
117117

118118
const cells = this.columns.map(x => {
119119
if ('inputFieldType' in x) {
120-
console.log('validate', x, this.filePath, scope);
120+
// console.log('validate', x, this.filePath, scope);
121121
return this.plugin.api.inputFieldParser.validateDeclaration(x, this.filePath, scope);
122122
} else {
123123
return this.plugin.api.viewFieldParser.validateDeclaration(x, this.filePath, scope);

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type MarkdownPostProcessorContext, Plugin, stringifyYaml, type WorkspaceLeaf } from 'obsidian';
1+
import { type MarkdownPostProcessorContext, Plugin, stringifyYaml, TFile, type WorkspaceLeaf } from 'obsidian';
22
import { MetaBindSettingTab } from './settings/SettingsTab';
33
import { DateParser } from './parsers/DateParser';
44
import { MetadataManager } from './metadata/MetadataManager';

src/publish/PublishViewFieldMDRC.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class PublishViewFieldMDRC extends MarkdownRenderChild {
131131
// }
132132

133133
async onload(): Promise<void> {
134-
console.log('meta-bind | InputFieldMarkdownRenderChild >> load', this);
134+
console.debug('meta-bind | InputFieldMarkdownRenderChild >> load', this);
135135

136136
this.containerEl.addClass('meta-bind-plugin-view');
137137
this.containerEl.empty();

src/renderChildren/ButtonMDRC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class ButtonMDRC extends AbstractMDRC {
2525
}
2626

2727
public onload(): void {
28-
console.log('meta-bind | ButtonMDRC >> onload');
28+
console.debug('meta-bind | ButtonMDRC >> onload');
2929
this.plugin.mdrcManager.registerMDRC(this);
3030
this.containerEl.className = '';
3131

@@ -49,7 +49,7 @@ export class ButtonMDRC extends AbstractMDRC {
4949
}
5050

5151
public onunload(): void {
52-
console.log('meta-bind | ButtonMDRC >> onunload');
52+
console.debug('meta-bind | ButtonMDRC >> onunload');
5353
this.buttonField?.unmount();
5454
this.plugin.mdrcManager.unregisterMDRC(this);
5555

src/renderChildren/EmbedMDRC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class EmbedMDRC extends AbstractMDRC {
6464
}
6565

6666
public async onload(): Promise<void> {
67-
console.log('meta-bind | EmbedMDRC >> unload', this);
67+
console.debug('meta-bind | EmbedMDRC >> unload', this);
6868

6969
this.plugin.mdrcManager.registerMDRC(this);
7070

@@ -80,7 +80,7 @@ export class EmbedMDRC extends AbstractMDRC {
8080
}
8181

8282
public onunload(): void {
83-
console.log('meta-bind | EmbedMDRC >> unload', this);
83+
console.debug('meta-bind | EmbedMDRC >> unload', this);
8484

8585
this.plugin.mdrcManager.unregisterMDRC(this);
8686

src/renderChildren/ExcludedMDRC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AbstractMDRC } from './AbstractMDRC';
22

33
export class ExcludedMDRC extends AbstractMDRC {
44
public onload(): void {
5-
console.log('meta-bind | ExcludedMDRC >> load', this);
5+
console.debug('meta-bind | ExcludedMDRC >> load', this);
66
this.plugin.mdrcManager.registerMDRC(this);
77

88
this.containerEl.empty();
@@ -14,7 +14,7 @@ export class ExcludedMDRC extends AbstractMDRC {
1414
}
1515

1616
public onunload(): void {
17-
console.log('meta-bind | ExcludedMDRC >> unload', this);
17+
console.debug('meta-bind | ExcludedMDRC >> unload', this);
1818

1919
this.plugin.mdrcManager.unregisterMDRC(this);
2020

src/renderChildren/InlineButtonMDRC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class InlineButtonMDRC extends AbstractMDRC {
1515
}
1616

1717
public onload(): void {
18-
console.log('meta-bind | InlineButtonMDRC >> onload');
18+
console.debug('meta-bind | InlineButtonMDRC >> onload');
1919
this.plugin.mdrcManager.registerMDRC(this);
2020
this.containerEl.className = '';
2121

@@ -37,7 +37,7 @@ export class InlineButtonMDRC extends AbstractMDRC {
3737
}
3838

3939
public onunload(): void {
40-
console.log('meta-bind | InlineButtonMDRC >> onunload');
40+
console.debug('meta-bind | InlineButtonMDRC >> onunload');
4141

4242
this.buttonField?.unmount();
4343
this.plugin.mdrcManager.unregisterMDRC(this);

src/renderChildren/InputFieldMDRC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class InputFieldMDRC extends AbstractMDRC implements IInputFieldBase {
143143
}
144144

145145
onload(): void {
146-
console.log('meta-bind | InputFieldMDRC >> load', this);
146+
console.debug('meta-bind | InputFieldMDRC >> load', this);
147147

148148
this.containerEl.addClass('mb-input');
149149
this.containerEl.empty();
@@ -188,7 +188,7 @@ export class InputFieldMDRC extends AbstractMDRC implements IInputFieldBase {
188188
}
189189

190190
onunload(): void {
191-
console.log('meta-bind | InputFieldMDRC >> unload', this);
191+
console.debug('meta-bind | InputFieldMDRC >> unload', this);
192192

193193
this.inputField?.destroy();
194194
this.plugin.mdrcManager.unregisterMDRC(this);

src/renderChildren/JsViewFieldMDRC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class JsViewFieldMDRC extends AbstractViewFieldMDRC {
133133
}
134134

135135
async onload(): Promise<void> {
136-
console.log('meta-bind | ViewFieldMarkdownRenderChild >> load', this);
136+
console.debug('meta-bind | ViewFieldMarkdownRenderChild >> load', this);
137137

138138
this.containerEl.addClass('mb-view');
139139
this.containerEl.empty();
@@ -180,7 +180,7 @@ export class JsViewFieldMDRC extends AbstractViewFieldMDRC {
180180
}
181181

182182
onunload(): void {
183-
console.log('meta-bind | ViewFieldMarkdownRenderChild >> unload', this);
183+
console.debug('meta-bind | ViewFieldMarkdownRenderChild >> unload', this);
184184

185185
this.plugin.mdrcManager.unregisterMDRC(this);
186186
this.unregisterSelfFromMetadataManager();

0 commit comments

Comments
 (0)