Skip to content

Commit 6114fd4

Browse files
committed
less logs
1 parent cb58ac8 commit 6114fd4

File tree

10 files changed

+3
-24
lines changed

10 files changed

+3
-24
lines changed

projects/budgetkey/src/app/charts/chart-plotly/chart-plotly.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export class ChartPlotlyComponent implements OnChanges, AfterViewInit {
6060
}
6161

6262
el.innerHTML = '';
63-
console.log('plotly new plot', this.data, layout, this.config);
6463
this.plotly.newPlot(el, this.data, layout, Object.assign({responsive: true}, this.config));
6564
el.querySelectorAll('svg').forEach((svg) => {
6665
svg.setAttribute('alt', this.data.title || 'diagram');

projects/budgetkey/src/app/common-components/services/lists.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ export class ListsService {
209209
filter((token) => token !== null),
210210
first(),
211211
switchMap((token) => {
212-
console.log('PUTTING ITEM', item);
213212
const params = {list};
214213
return this.http.put<ListItem>('https://next.obudget.org/lists/', item, {params, headers: this.headers(token)});
215214
}),
@@ -237,7 +236,6 @@ export class ListsService {
237236
filter((token) => token !== null),
238237
first(),
239238
switchMap((token) => {
240-
console.log('PUTTING LIST', listName, list);
241239
const params: any = {self: true};
242240
if (listName) {
243241
params['list'] = listName;

projects/budgetkey/src/app/item/items/item-soproc/item-social-service/item-social-service.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export class ItemSocialServiceComponent implements OnInit {
3434
];
3535
this.item.breadcrumbs = [this.item.office, this.item.unit, this.item.subunit, this.item.subsubunit].filter(x => !!x).join(' / ');
3636
this.item.catalog_number = parseInt(this.item.catalog_number, 10) || null;
37-
// console.log('ITEM=', this.item);
3837
const budget = this.item.manualBudget.sort((a: any, b: any) => a.year - b.year).filter((x: any) => x.year <= 2021);
3938
const beneficiaries = this.item.beneficiaries.sort((a: any, b: any) => a.year - b.year);
4039
this.budget_chart = {

projects/budgetkey/src/app/item/questions/item-data-table/item-data-table.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export class ItemDataTableComponent implements OnInit {
4949

5050
private onDataReady(ev: any) {
5151
const {headers, data, err, total, graphData, graphLayout} = ev;
52-
// console.log('DATA READY', ev);
5352
this.headers = headers;
5453
this.data = data;
5554
this.err = err;

projects/budgetkey/src/app/item/questions/questions-manager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ export class QuestionsManager {
201201
getGraphFormatter(formatter: any) {
202202
if (formatter.type === 'bars') {
203203
return (items: any[]) => {
204-
// console.log('DATA', items);
205204
const graphLayout = {barmode: 'stack'};
206205
const graphData = formatter.series.map((s: any) => {
207206
return {

projects/budgetkey/src/app/list-components/add-to-list-icon/add-to-list-icon.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ export class AddToListIconComponent implements OnChanges {
8787
switchMap((list: ListContents) => {
8888
return this.lists.addDocToList(list.name, this.doc).pipe(
8989
map(() => list),
90-
tap((list) => {
91-
console.log('NEW-LIST', list);
92-
})
9390
);
9491
}),
9592
);

projects/budgetkey/src/app/list-components/app-container/app-container.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class AppContainerComponent {
2626

2727
maxWidth = signal<number>(0);
2828
hasListView = computed(() => {
29-
console.log('SHOW LIST VIEW', this.layout.desktop, this.listSideView, this.lists.currentList(), this.listKey());
3029
const list = this.lists.currentList();
3130
if (!list) {
3231
return false;
@@ -49,13 +48,11 @@ export class AppContainerComponent {
4948
this.configured = true;
5049
});
5150
this.globalSettings.init(this, this.route);
52-
// console.log('CCC', this.route.);
5351
this.route.queryParams.pipe(
5452
untilDestroyed(this),
5553
map((params) => params['list']),
5654
distinctUntilChanged(),
5755
).subscribe((list) => {
58-
console.log('SET LIST', list);
5956
this.listKey.set(list);
6057
this.lists.currentListId.set(this.listKey());
6158
});
@@ -74,7 +71,7 @@ export class AppContainerComponent {
7471
showListView() {
7572
return this.layout.desktop && this.listSideView && this.hasListView();
7673
}
77-
74+
7875
onDeleted() {
7976
this.router.navigate(['.'], { relativeTo: this.route, queryParams: { list: null }, queryParamsHandling: 'merge', replaceUrl: true});
8077
}

projects/budgetkey/src/app/list-components/edited-content.directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export class EditedContentDirective implements AfterViewInit {
2222
el.style.display = 'inline';
2323
el.style.whiteSpace = 'pre-wrap';
2424

25-
console.log('LIST CONTENT DIRECTIVE', el);
2625
fromEvent(el, 'click').pipe(
2726
untilDestroyed(this),
2827
).subscribe(() => {

projects/budgetkey/src/app/list-components/list-view/list-view.component.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,12 @@ export class ListViewComponent implements OnChanges {
5555

5656
save() {
5757
if (this.editable()) {
58-
console.log('SAVING LIST', this.list);
5958
this.lists.updateList(this.list.name, this.list).subscribe((list) => {
60-
console.log('SAVED LIST', list);
6159
});
6260
}
6361
}
6462

6563
set title(title: string) {
66-
console.log('TITLE', title);
6764
this.list.title = title.trim();
6865
this.save();
6966
(this.titleEl.nativeElement as HTMLElement).innerHTML = this.title;
@@ -73,12 +70,11 @@ export class ListViewComponent implements OnChanges {
7370
if (this.list?.title?.trim().length) {
7471
return this.list?.title.trim();
7572
} else {
76-
return 'רשימה ללא שם';
73+
return this.lists.emptyList.title || '';
7774
}
7875
}
7976

8077
set description(description: string) {
81-
console.log('DESCRIPTION', description);
8278
this.list.properties.description = description;
8379
this.save();
8480
(this.descriptionEl.nativeElement as HTMLElement).innerHTML = this.description;
@@ -90,9 +86,7 @@ export class ListViewComponent implements OnChanges {
9086

9187
updateNotes(item: any, notes: string) {
9288
item.properties.__notes = notes;
93-
this.lists.addDocToList(this.list.name, item.properties).subscribe((item) => {
94-
console.log('UPDATED ITEM', item);
95-
});
89+
this.lists.addDocToList(this.list.name, item.properties).subscribe((item) => {});
9690
}
9791

9892
share() {
@@ -111,7 +105,6 @@ export class ListViewComponent implements OnChanges {
111105

112106
deleteSelf() {
113107
this.lists.delete(this.list.name, null).subscribe((success) => {
114-
console.log('DELETED LIST', success);
115108
this.deleted.emit();
116109
this.deleteDialog.set(false);
117110
});

projects/budgetkey/src/app/page-not-found/page-not-found.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export class PageNotFoundComponent {
1919
@Optional() @Inject(REQUEST) private request: Request
2020
) {
2121
this.globalSettings.ready.subscribe(() => {
22-
// console.log('NOT FOUND', this.route.snapshot.url);
2322
if (this.ps.server()) {
2423
this.request?.res?.status(404);
2524
}

0 commit comments

Comments
 (0)