mirror of
https://github.com/NicolasConstant/sengi
synced 2025-01-29 17:59:30 +01:00
clean up
This commit is contained in:
parent
0209b76886
commit
eee6dd8329
@ -32,9 +32,6 @@ export class AddNewStatusComponent implements OnInit {
|
||||
const accounts = this.getRegisteredAccounts();
|
||||
const selectedAccounts = accounts.filter(x => x.isSelected);
|
||||
|
||||
console.warn(`selectedAccounts ${selectedAccounts.length}`);
|
||||
console.warn(`statusHandle ${this.status}`);
|
||||
|
||||
let visibility: VisibilityEnum = VisibilityEnum.Unknown;
|
||||
switch (this.selectedPrivacy) {
|
||||
case 'Public':
|
||||
|
@ -64,7 +64,7 @@ export class FloatingColumnComponent implements OnInit {
|
||||
}
|
||||
|
||||
browseThread(thread: string): void {
|
||||
console.warn('browseThread');
|
||||
console.warn('browseThread'); //TODO
|
||||
console.warn(thread);
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,6 @@ export class SearchComponent implements OnInit {
|
||||
// }
|
||||
|
||||
browseAccount(accountName: string): boolean {
|
||||
console.warn(accountName);
|
||||
if (accountName) {
|
||||
this.browseAccountEvent.next(accountName);
|
||||
}
|
||||
@ -71,8 +70,6 @@ export class SearchComponent implements OnInit {
|
||||
this.hashtags.length = 0;
|
||||
this.isLoading = true;
|
||||
|
||||
console.warn(`search: ${data}`);
|
||||
|
||||
const enabledAccounts = this.toolsService.getSelectedAccounts();
|
||||
//First candid implementation
|
||||
if (enabledAccounts.length > 0) {
|
||||
@ -80,7 +77,6 @@ export class SearchComponent implements OnInit {
|
||||
this.mastodonService.search(this.lastAccountUsed, data, true)
|
||||
.then((results: Results) => {
|
||||
if (results) {
|
||||
console.warn(results);
|
||||
this.accounts = results.accounts.slice(0, 5);
|
||||
this.hashtags = results.hashtags;
|
||||
|
||||
|
@ -64,12 +64,10 @@ export class LeftSideBarComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onToogleAccountNotify(acc: AccountWrapper) {
|
||||
console.warn(`onToogleAccountNotify username ${acc.info.username}`);
|
||||
this.store.dispatch([new SelectAccount(acc.info)]);
|
||||
}
|
||||
|
||||
onOpenMenuNotify(acc: AccountWrapper) {
|
||||
console.warn(`onOpenMenuNotify username ${acc.info.username}`);
|
||||
this.navigationService.openColumnEditor(acc);
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ export class ActionBarComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
more(): boolean {
|
||||
console.warn('more');
|
||||
console.warn('more'); //TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -151,8 +151,6 @@ class OverlayBrowsing {
|
||||
public readonly account: string,
|
||||
public readonly thread: string) {
|
||||
|
||||
console.warn(`OverlayBrowsing: ${hashtag} ${account} ${thread}`);
|
||||
|
||||
if (hashtag) {
|
||||
this.type = OverlayEnum.hashtag;
|
||||
} else if (account) {
|
||||
|
@ -32,7 +32,6 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
|
||||
|
||||
@Input()
|
||||
set streamElement(streamElement: StreamElement) {
|
||||
console.warn('new stream');
|
||||
this.resetStream();
|
||||
|
||||
this._streamElement = streamElement;
|
||||
@ -139,7 +138,7 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
textSelected(): void {
|
||||
console.warn(`status comp: textSelected`);
|
||||
console.warn(`status comp: textSelected`); //TODO
|
||||
}
|
||||
|
||||
private scrolledToTop() {
|
||||
|
@ -24,10 +24,6 @@ export class ToolsService {
|
||||
findAccount(account: AccountInfo, accountName: string): Promise<Account> {
|
||||
return this.mastodonService.search(account, accountName, true)
|
||||
.then((result: Results) => {
|
||||
console.warn('findAccount');
|
||||
console.warn(`accountName ${accountName}`);
|
||||
console.warn(result);
|
||||
|
||||
if(accountName[0] === '@') accountName = accountName.substr(1);
|
||||
|
||||
const foundAccount = result.accounts.filter(
|
||||
|
Loading…
x
Reference in New Issue
Block a user