Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-common-consumption
Commits
94c41f58
Commit
94c41f58
authored
2 years ago
by
Sharath Prasad
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-0000 feat:cQube Card Addition
parent
3e2f119e
master
release-5.1.0
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
projects/common-consumption/src/lib/card/card.module.ts
+5
-2
projects/common-consumption/src/lib/card/card.module.ts
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.html
+9
-0
...umption/src/lib/card/cqube-card/cqube-card.component.html
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.scss
+0
-0
...umption/src/lib/card/cqube-card/cqube-card.component.scss
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.spec.ts
+25
-0
...tion/src/lib/card/cqube-card/cqube-card.component.spec.ts
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.ts
+22
-0
...nsumption/src/lib/card/cqube-card/cqube-card.component.ts
with
61 additions
and
2 deletions
+61
-2
projects/common-consumption/src/lib/card/card.module.ts
+
5
−
2
View file @
94c41f58
...
...
@@ -14,6 +14,7 @@ import { LibraryCardV4Component } from './library-card-v4/library-card-v4.compon
import
{
NotificationCardComponent
}
from
'
./notification-card/notification-card.component
'
;
import
{
BannerCardComponent
}
from
'
./banner-card/banner-card.component
'
;
import
{
TruncatedEllipsisComponent
}
from
'
./truncated-ellipsis/truncated-ellipsis.component
'
;
import
{
CqubeCardComponent
}
from
'
./cqube-card/cqube-card.component
'
;
@
NgModule
({
declarations
:
[
...
...
@@ -30,7 +31,8 @@ import { TruncatedEllipsisComponent } from './truncated-ellipsis/truncated-ellip
LibraryCardV4Component
,
NotificationCardComponent
,
BannerCardComponent
,
TruncatedEllipsisComponent
TruncatedEllipsisComponent
,
CqubeCardComponent
],
imports
:
[
CommonModule
...
...
@@ -49,7 +51,8 @@ import { TruncatedEllipsisComponent } from './truncated-ellipsis/truncated-ellip
LibraryCardV4Component
,
NotificationCardComponent
,
BannerCardComponent
,
TruncatedEllipsisComponent
TruncatedEllipsisComponent
,
CqubeCardComponent
]
})
export
class
CardModule
{
}
This diff is collapsed.
Click to expand it.
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.html
0 → 100644
+
9
−
0
View file @
94c41f58
<div
class=
"sb--card"
(click)=
"onClick($event)"
>
<div
class=
'sb--card__main-area'
>
<div
class=
"sb--card__img"
>
<div
class=
"img-container"
>
<img
[src]=
"cardImg"
alt=
""
>
</div>
</div>
</div>
</div>
This diff is collapsed.
Click to expand it.
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.scss
0 → 100644
+
0
−
0
View file @
94c41f58
This diff is collapsed.
Click to expand it.
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.spec.ts
0 → 100644
+
25
−
0
View file @
94c41f58
import
{
async
,
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
CqubeCardComponent
}
from
'
./cqube-card.component
'
;
describe
(
'
CqubeCardComponent
'
,
()
=>
{
let
component
:
CqubeCardComponent
;
let
fixture
:
ComponentFixture
<
CqubeCardComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
CqubeCardComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
CqubeCardComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
This diff is collapsed.
Click to expand it.
projects/common-consumption/src/lib/card/cqube-card/cqube-card.component.ts
0 → 100644
+
22
−
0
View file @
94c41f58
import
{
Component
,
Input
,
OnInit
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
sb-cqube-card
'
,
templateUrl
:
'
./cqube-card.component.html
'
,
styleUrls
:
[
'
./cqube-card.component.scss
'
]
})
export
class
CqubeCardComponent
implements
OnInit
{
@
Input
()
cardImg
:
string
;
constructor
()
{
}
ngOnInit
():
void
{
}
onClick
(
event
:
any
)
{
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets