Skip to content

Commit

Permalink
chore(dfx-helper): remove multiple things
Browse files Browse the repository at this point in the history
directives: count-up, ng-sub, ping

entities-service: HasGetAll, HastGetParent, HasGetSingle, HasGetSelected, HasDelete

pipes: StringPipesModule

styles: dfx-helper.scss, a styling, btnSpinner
  • Loading branch information
Dafnik committed Nov 22, 2024
1 parent e47b999 commit ad4df99
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 336 deletions.
90 changes: 0 additions & 90 deletions libs/dfx-helper/src/lib/directives/count-up.ts

This file was deleted.

3 changes: 0 additions & 3 deletions libs/dfx-helper/src/lib/directives/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export * from './autofocus';
export * from './back';
export * from './count-up';
export * from './ng-sub';
export * from './online-offline';
export * from './ping';
export * from './stop-propagation';
87 changes: 0 additions & 87 deletions libs/dfx-helper/src/lib/directives/ng-sub.ts

This file was deleted.

81 changes: 0 additions & 81 deletions libs/dfx-helper/src/lib/directives/ping.ts

This file was deleted.

22 changes: 0 additions & 22 deletions libs/dfx-helper/src/lib/entities/entities-service.interface.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
import { Observable } from 'rxjs';
import { IHasID } from 'dfts-helper';

export interface HasGetAll<T> {
getAll$(): Observable<T[]>;
}

export interface HasGetByParent<EntityType, ParentType extends IHasID<ParentType['id']>> {
getByParent$(id: ParentType['id']): Observable<EntityType[]>;
}

export interface HasGetSingle<T extends IHasID<T['id']>> {
getSingle$(id: T['id']): Observable<T>;
}

export interface HasGetSelected<SelectedDTOType extends IHasID<SelectedDTOType['id']>> {
setSelected(it: SelectedDTOType | undefined): void;

getSelected$: Observable<SelectedDTOType | undefined>;
}

export interface HasDelete<T extends IHasID<T['id']>> {
delete$(id: T['id']): Observable<unknown>;
}

export type HasCreate<CreateDTOType, ResponseType extends IHasID<ResponseType['id']>> = {
create$(dto: CreateDTOType): Observable<ResponseType>;
};
Expand Down
1 change: 0 additions & 1 deletion libs/dfx-helper/src/lib/pipes/string/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from './cut';
export * from './is-email';
export * from './is-url';
export * from './lower-case-except-first-letters';
export * from './string-pipes.module';
export * from './strip-whitespace';
export * from './truncate';
export * from './upper-case-first-letter';
24 changes: 0 additions & 24 deletions libs/dfx-helper/src/lib/pipes/string/string-pipes.module.ts

This file was deleted.

1 change: 0 additions & 1 deletion libs/dfx-helper/styles/dfx-helper.scss

This file was deleted.

27 changes: 0 additions & 27 deletions libs/dfx-helper/styles/helper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ body {
padding: 0;
}

a {
text-decoration: none;
color: #2196f3;
}

a:hover {
cursor: pointer;
}
Expand All @@ -31,25 +26,3 @@ a:hover {
.ws-nowrap {
white-space: nowrap;
}

@keyframes btnSpinner {
to {
transform: rotate(360deg);
}
}

.btnSpinner:before {
content: '';
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin-top: -9px;
margin-left: -10px;
border-radius: 50%;
border: 2px solid #ffffff;
border-top-color: #000000;
animation: btnSpinner 0.8s linear infinite;
}

0 comments on commit ad4df99

Please sign in to comment.