Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
nobu-web-v2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ari_darmawan
nobu-web-v2
Commits
b82bf5f7
Commit
b82bf5f7
authored
Oct 25, 2021
by
ari_darmawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live chat
parent
60a6caf9
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
116 additions
and
7 deletions
+116
-7
app.component.css
src/app/app.component.css
+0
-0
app.component.ts
src/app/app.component.ts
+1
-1
auth-routing.module.ts
src/app/auth/auth-routing.module.ts
+5
-0
auth-signin.component.css
src/app/auth/auth-signin/auth-signin.component.css
+15
-0
auth-signin.component.html
src/app/auth/auth-signin/auth-signin.component.html
+2
-0
auth-signin.component.ts
src/app/auth/auth-signin/auth-signin.component.ts
+4
-1
auth.module.ts
src/app/auth/auth.module.ts
+5
-3
live-chat.component.css
src/app/auth/live-chat/live-chat.component.css
+0
-0
live-chat.component.html
src/app/auth/live-chat/live-chat.component.html
+16
-0
live-chat.component.spec.ts
src/app/auth/live-chat/live-chat.component.spec.ts
+25
-0
live-chat.component.ts
src/app/auth/live-chat/live-chat.component.ts
+37
-0
side-bar-menu.component.html
src/app/shared/side-bar-menu/side-bar-menu.component.html
+6
-1
8cd6e438-8095-4f87-bd10-e4104d8fc7cd.jfif
...ets/StoredImage/8cd6e438-8095-4f87-bd10-e4104d8fc7cd.jfif
+0
-0
styles.css
src/styles.css
+0
-1
No files found.
src/app/app.component.css
0 → 100644
View file @
b82bf5f7
src/app/app.component.ts
View file @
b82bf5f7
...
@@ -9,7 +9,7 @@ declare const AratakaConfig : any;
...
@@ -9,7 +9,7 @@ declare const AratakaConfig : any;
@
Component
({
@
Component
({
selector
:
'app-root'
,
selector
:
'app-root'
,
templateUrl
:
'./app.component.html'
,
templateUrl
:
'./app.component.html'
,
//
styleUrls: ['./app.component.css']
styleUrls
:
[
'./app.component.css'
]
})
})
export
class
AppComponent
implements
OnInit
{
export
class
AppComponent
implements
OnInit
{
...
...
src/app/auth/auth-routing.module.ts
View file @
b82bf5f7
...
@@ -4,6 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
...
@@ -4,6 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
import
{
AuthSigninComponent
}
from
'./auth-signin/auth-signin.component'
;
import
{
AuthSigninComponent
}
from
'./auth-signin/auth-signin.component'
;
import
{
AuthForgotPasswordComponent
}
from
'./auth-forgot-password/auth-forgot-password.component'
;
import
{
AuthForgotPasswordComponent
}
from
'./auth-forgot-password/auth-forgot-password.component'
;
import
{
AuthResetPasswordComponent
}
from
'./auth-reset-password/auth-reset-password.component'
;
import
{
AuthResetPasswordComponent
}
from
'./auth-reset-password/auth-reset-password.component'
;
import
{
LiveChatComponent
}
from
'./live-chat/live-chat.component'
;
const
routes
:
Routes
=
[
const
routes
:
Routes
=
[
{
{
...
@@ -17,6 +18,10 @@ const routes: Routes = [
...
@@ -17,6 +18,10 @@ const routes: Routes = [
{
{
path
:
'resetpassword'
,
path
:
'resetpassword'
,
component
:
AuthResetPasswordComponent
component
:
AuthResetPasswordComponent
},
{
path
:
'live-chat'
,
component
:
LiveChatComponent
}
}
];
];
...
...
src/app/auth/auth-signin/auth-signin.component.css
View file @
b82bf5f7
...
@@ -43,3 +43,17 @@ input{
...
@@ -43,3 +43,17 @@ input{
border
:
none
;
border
:
none
;
border-radius
:
5px
;
border-radius
:
5px
;
}
}
/* You can add global styles to this file, and also import other style files */
.far
{
padding
:
20px
;
font-size
:
30px
;
width
:
50px
;
text-align
:
center
;
text-decoration
:
none
;
margin
:
5px
2px
;
}
.fa-comment-dots
{
background
:
green
;
color
:
white
;
}
\ No newline at end of file
src/app/auth/auth-signin/auth-signin.component.html
View file @
b82bf5f7
...
@@ -26,3 +26,4 @@
...
@@ -26,3 +26,4 @@
</div>
</div>
</div>
</div>
</div>
</div>
<a
class=
"far fa-comment-dots"
target=
"popup"
onclick=
"window.open('https://innodev.vnetcloud.com/lhc_web/','name','width=900,height=1000')"
style=
"width: 70px;border-radius: 50px; height: 70px; position: fixed; bottom: 20px; right: 20px; z-index: 100;color: wheat;cursor: pointer;"
></a>
\ No newline at end of file
src/app/auth/auth-signin/auth-signin.component.ts
View file @
b82bf5f7
...
@@ -214,5 +214,8 @@ export class AuthSigninComponent implements OnInit {
...
@@ -214,5 +214,8 @@ export class AuthSigninComponent implements OnInit {
});
});
}
}
pageTo
(){
console
.
log
(
this
.
router
)
this
.
router
.
navigate
([
'auth/live-chat'
])
}
}
}
src/app/auth/auth.module.ts
View file @
b82bf5f7
...
@@ -7,13 +7,15 @@ import { AuthRoutingModule } from './auth-routing.module';
...
@@ -7,13 +7,15 @@ import { AuthRoutingModule } from './auth-routing.module';
import
{
AuthSigninComponent
}
from
'./auth-signin/auth-signin.component'
;
import
{
AuthSigninComponent
}
from
'./auth-signin/auth-signin.component'
;
import
{
AuthForgotPasswordComponent
}
from
'./auth-forgot-password/auth-forgot-password.component'
;
import
{
AuthForgotPasswordComponent
}
from
'./auth-forgot-password/auth-forgot-password.component'
;
import
{
AuthResetPasswordComponent
}
from
'./auth-reset-password/auth-reset-password.component'
;
import
{
AuthResetPasswordComponent
}
from
'./auth-reset-password/auth-reset-password.component'
;
import
{
LiveChatComponent
}
from
'./live-chat/live-chat.component'
import
{
PipeglobalModule
}
from
'../pipe/pipeglobal/pipeglobal.module'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
AuthSigninComponent
,
AuthForgotPasswordComponent
,
AuthResetPasswordComponent
],
declarations
:
[
AuthSigninComponent
,
AuthForgotPasswordComponent
,
AuthResetPasswordComponent
,
LiveChatComponent
],
imports
:
[
imports
:
[
CommonModule
,
CommonModule
,
AuthRoutingModule
,
AuthRoutingModule
,
FormsModule
FormsModule
,
PipeglobalModule
],
],
//providers: [AuthService],
//providers: [AuthService],
})
})
...
...
src/app/auth/live-chat/live-chat.component.css
0 → 100644
View file @
b82bf5f7
src/app/auth/live-chat/live-chat.component.html
0 → 100644
View file @
b82bf5f7
<iframe
[
src
]="
URLIFrame
|
SrcSafe
"
[
ngClass
]="{'
d-none
'
:
!
isIframeLoad
,
'
d-block
'
:
isIframeLoad
}"
frameborder=
"0"
style=
"border-radius: 10px;"
height=
"600px"
width=
"100%"
(
load
)="
Iframe_onLoad
()"
#
Iframe
class=
"scroller"
></iframe>
<p
*
ngIf=
"!isIframeLoad"
class=
"text-center"
>
PLEASE WAIT, FRAME IS LOADING
</p>
<!-- <iframe src="http://localhost:4200/extended"
style="border-radius: 10px;"
height="550px" width="100%" frameborder="0"></iframe> -->
\ No newline at end of file
src/app/auth/live-chat/live-chat.component.spec.ts
0 → 100644
View file @
b82bf5f7
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
LiveChatComponent
}
from
'./live-chat.component'
;
describe
(
'LiveChatComponent'
,
()
=>
{
let
component
:
LiveChatComponent
;
let
fixture
:
ComponentFixture
<
LiveChatComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
LiveChatComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
LiveChatComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/auth/live-chat/live-chat.component.ts
0 → 100644
View file @
b82bf5f7
import
{
Component
,
OnInit
,
Injector
,
ViewChildren
,
ViewChild
,
ElementRef
}
from
'@angular/core'
;
import
{
ServiceProxyWeb
}
from
'../../../shared/serviceproxy/service-proxy.service'
;
import
{
Router
}
from
'@angular/router'
;
import
{
ChangeDetectorRef
}
from
'@angular/core'
;
import
{
environment
}
from
'../../../environments/environment'
;
@
Component
({
selector
:
'app-live-chat'
,
templateUrl
:
'./live-chat.component.html'
,
styleUrls
:
[
'./live-chat.component.css'
]
})
export
class
LiveChatComponent
implements
OnInit
{
@
ViewChild
(
'Iframe'
)
iframe
:
ElementRef
;
public
Env
=
environment
;
public
URLIFrame
=
"https://innodev.vnetcloud.com/lhc_web/"
public
isIframeLoad
=
false
public
reloadCount
=
1
;
constructor
(
private
_cRef
:
ChangeDetectorRef
,)
{
}
ngOnInit
()
{
this
.
isIframeLoad
=
false
this
.
reloadCount
=
1
}
Iframe_onLoad
(){
this
.
isIframeLoad
=
true
}
}
src/app/shared/side-bar-menu/side-bar-menu.component.html
View file @
b82bf5f7
...
@@ -81,8 +81,13 @@
...
@@ -81,8 +81,13 @@
</ul>
</ul>
</li>
</li>
</ng-container>
</ng-container>
<li>
<a
target=
"popup"
onclick=
"window.open('https://innodev.vnetcloud.com/lhc_web/index.php/user/autologin/714ea7d864d0356927c14e96614d720320656ead/(r)/Y2hhdC9jaGF0dGFicw%3D%3D/(u)/1','name','width=900,height=1000')"
style=
"text-transform: uppercase;"
>
<i
class=
"far fa-file-alt"
></i>
Live Chat
</a>
</li>
</ul>
</ul>
<!-- <ul class="list-unstyled CTAs">
<!-- <ul class="list-unstyled CTAs">
<li>
<li>
<a href="https://bootstrapious.com/tutorial/files/sidebar.zip" class="download">Download source</a>
<a href="https://bootstrapious.com/tutorial/files/sidebar.zip" class="download">Download source</a>
...
...
src/assets/StoredImage/8cd6e438-8095-4f87-bd10-e4104d8fc7cd.jfif
0 → 100644
View file @
b82bf5f7
File added
src/styles.css
View file @
b82bf5f7
/* You can add global styles to this file, and also import other style files */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment