Skip to content

Commit

Permalink
Ain nao mergeia na loucura
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Dec 21, 2022
1 parent 79d8f53 commit 32291ea
Show file tree
Hide file tree
Showing 25 changed files with 83 additions and 583 deletions.
Empty file.
3 changes: 0 additions & 3 deletions apps/meteor/app/ui-sidenav/client/index.js

This file was deleted.

126 changes: 0 additions & 126 deletions apps/meteor/app/ui-sidenav/client/sideNav.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/meteor/app/ui-sidenav/client/userPresence.html

This file was deleted.

59 changes: 0 additions & 59 deletions apps/meteor/app/ui-sidenav/client/userPresence.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/meteor/app/ui-sidenav/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions apps/meteor/app/ui-utils/client/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import './lib/messageActionDefault';

export { modal } from './lib/modal';
export { SideNav } from './lib/SideNav';
export { AccountBox } from './lib/AccountBox';
export { menu } from './lib/menu';
export { MessageAction } from './lib/MessageAction';
export { messageBox } from './lib/messageBox';
export { popover } from './lib/popover';
Expand Down
26 changes: 0 additions & 26 deletions apps/meteor/app/ui-utils/client/lib/AccountBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { TranslationKey } from '@rocket.chat/ui-contexts';
import type { Icon } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';

import { SideNav } from './SideNav';
import { applyDropdownActionButtonFilters } from '../../../ui-message/client/actionButtons/lib/applyButtonFilters';
import { APIClient } from '../../../utils/client';

Expand All @@ -33,35 +32,10 @@ export const isAppAccountBoxItem = (item: IAppAccountBoxItem | AccountBoxItem):
export class AccountBoxBase {
private items = new ReactiveVar<IAppAccountBoxItem[]>([]);

private status = 0;

public setStatus(status: UserStatus, statusText: string): any {
return APIClient.post('/v1/users.setStatus', { status, message: statusText });
}

public open(): void {
if (SideNav.flexStatus()) {
SideNav.closeFlex();
return;
}
this.status = 1;
}

public close(): void {
this.status = 0;
}

public toggle(): Window | null | void {
if (this.status) {
return this.close();
}
return this.open();
}

public openFlex(): void {
this.status = 0;
}

public async addItem(newItem: IAppAccountBoxItem): Promise<void> {
Tracker.nonreactive(() => {
const actual = this.items.get();
Expand Down
115 changes: 0 additions & 115 deletions apps/meteor/app/ui-utils/client/lib/SideNav.ts

This file was deleted.

Loading

0 comments on commit 32291ea

Please sign in to comment.