Skip to content

Commit 933a4a0

Browse files
committed
♻️ modification du nom des composants
1 parent 25ba84f commit 933a4a0

27 files changed

+48
-105
lines changed

src/app/shared/components/alert/error.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4-
selector: 'cosna-errors',
4+
selector: 'alert-errors',
55
template: `
66
<div class="p-4 rounded-md bg-red-50" [ngClass]="class">
77
<div class="flex">

src/app/shared/components/alert/success.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4-
selector: 'cosna-success',
4+
selector: 'alert-success',
55
template: `
66
<div class="p-4 rounded-md bg-green-50" [ngClass]="class">
77
<div class="flex">

src/app/shared/components/buttons/default.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Component, EventEmitter, Input, Output } from '@angular/core';
1+
import { Component, Input } from '@angular/core';
22
import { Observable } from 'rxjs';
33

44
@Component({
5-
selector: 'cosna-button-default',
5+
selector: 'button-default',
66
template: `
77
<button
88
[type]="type"
99
[disabled]="loading$ | async"
1010
[ngClass]="class"
11-
class="inline-flex items-center px-4 py-2 text-sm font-mono font-medium uppercase tracking-[1.25px] bg-white border rounded-md shadow-sm border-slate-300 text-slate-600 hover:bg-slate-50 hover:text-slate-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2">
11+
class="inline-flex items-center px-4 py-2 text-sm font-medium bg-white border rounded-md shadow-sm border-slate-300 text-slate-600 hover:bg-slate-50 hover:text-slate-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2">
1212
<span *ngIf="loading$ | async">
1313
<svg
1414
class="w-5 h-5 mr-3 -ml-1 text-slate-500 animate-spin"

src/app/shared/components/buttons/link.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4-
selector: 'cosna-button-link',
4+
selector: 'button-link',
55
template: `
66
<a
77
[routerLink]="link"
88
[ngClass]="class"
9-
class="inline-flex items-center font-mono rounded-md border border-transparent bg-primary-600 px-4 py-2 text-sm font-medium uppercase tracking-[1.25px] text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2">
9+
class="inline-flex items-center rounded-md border border-transparent bg-primary-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2">
1010
<ng-content></ng-content>
1111
</a>
1212
`,

src/app/shared/components/buttons/primary.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { Component, EventEmitter, Input, Output } from '@angular/core';
1+
import { Component, Input } from '@angular/core';
22
import { Observable } from 'rxjs';
33

44
@Component({
5-
selector: 'cosna-button-primary',
5+
selector: 'button-primary',
66
template: `
77
<button
88
[type]="type"
99
[disabled]="loading$ | async"
10-
class="relative inline-flex items-center font-mono px-4 py-2 text-sm font-medium uppercase tracking-[1.25px] text-white bg-primary-600 border border-transparent rounded-md shadow-md hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed transition ease-in-out duration-150"
10+
class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-primary-600 border border-transparent rounded-md shadow-md hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed transition ease-in-out duration-150"
1111
[ngClass]="class"
1212
matRipple
1313
matRippleColor="primary">

src/app/shared/components/headings/page-heading-with-action.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4-
selector: 'cosna-page-heading-with-action',
4+
selector: 'admin-page-heading-with-action',
55
template: `
66
<div class="py-5 md:flex md:items-center md:justify-between">
77
<div class="flex-1 min-w-0">

src/app/shared/components/headings/page-heading.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4-
selector: 'cosna-page-heading',
4+
selector: 'admin-page-heading',
55
template: `
66
<div class="py-5 md:flex md:items-center md:justify-between">
77
<div class="flex-1 min-w-0">

src/app/shared/components/inputs/overlaping-label/overlaping-label.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component, forwardRef, Input } from '@angular/core';
22
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
33

44
@Component({
5-
selector: 'cosna-input-overlaping-label',
5+
selector: 'input-overlaping-label',
66
templateUrl: './overlaping-label.component.html',
77
providers: [
88
{

src/app/shared/components/skeletons/line.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component, Input } from '@angular/core';
22
import { NgxSkeletonLoaderConfigTheme } from 'ngx-skeleton-loader';
33

44
@Component({
5-
selector: 'cosna-line-skeleton',
5+
selector: 'loader-line-skeleton',
66
template: `
77
<div [class]="class">
88
<ngx-skeleton-loader

src/app/shared/components/skeletons/user-profile-with-name.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'cosna-user-profile-with-name-skeleton',
4+
selector: 'loader-user-profile-with-name-skeleton',
55
template: `
66
<div class="flex items-center">
77
<div class="w-10 h-10 shrink-0">

0 commit comments

Comments
 (0)