Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
8a3ae051
Commit
8a3ae051
authored
Sep 28, 2017
by
i317280
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c912848f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
38 deletions
+42
-38
nav.html
src/app/BasicPage/nav.html
+33
-30
main.css
src/app/TerminalPage/main.css
+4
-0
terminal.ts
src/app/TerminalPage/terminal.ts
+1
-0
app.service.ts
src/app/app.service.ts
+4
-4
styles.css
src/styles.css
+0
-4
No files found.
src/app/BasicPage/nav.html
View file @
8a3ae051
<nav
class=
"navbar navbar-toggleable-md fixed-top navbar-inverse bg-inverse"
*
ngIf=
"User.logined"
>
<button
class=
"navbar-toggler navbar-toggler-right"
type=
"button"
data-toggle=
"collapse"
data-target=
"#navbarsExampleDefault"
aria-controls=
"navbarsExampleDefault"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"navbar-toggler-icon"
></span>
</button>
<a
class=
"navbar-brand"
href=
"#"
>
Navbar
</a>
<button
class=
"navbar-toggler navbar-toggler-right"
type=
"button"
data-toggle=
"collapse"
data-target=
"#navbarsExampleDefault"
aria-controls=
"navbarsExampleDefault"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
<span
class=
"navbar-toggler-icon"
></span>
</button>
<a
class=
"navbar-brand"
routerLink=
""
>
Navbar
</a>
<div
class=
"collapse navbar-collapse"
id=
"navbarsExampleDefault"
>
<ul
class=
"navbar-nav mr-auto"
>
<li
class=
"nav-item active"
>
<a
class=
"nav-link"
href=
"#"
>
Home
<span
class=
"sr-only"
>
(current)
</span></a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
href=
"#"
>
Link
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link disabled"
href=
"#"
>
Disabled
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
href=
"http://example.com"
id=
"dropdown01"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Dropdown
</a>
<div
class=
"dropdown-menu"
aria-labelledby=
"dropdown01"
>
<a
class=
"dropdown-item"
href=
"#"
>
Action
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Another action
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Something else here
</a>
</div>
</li>
</ul>
<form
class=
"form-inline my-2 my-lg-0"
>
<input
class=
"form-control mr-sm-2"
type=
"text"
placeholder=
"Search"
>
<button
class=
"btn btn-outline-success my-2 my-sm-0"
type=
"submit"
>
Search
</button>
</form>
</div>
</nav>
<div
class=
"collapse navbar-collapse"
id=
"navbarsExampleDefault"
>
<ul
class=
"navbar-nav mr-auto"
>
<li
class=
"nav-item active"
>
<a
class=
"nav-link"
routerLink=
""
>
Home
<span
class=
"sr-only"
>
(current)
</span></a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
routerLink=
"term"
>
Term
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link disabled"
href=
"#"
>
Disabled
</a>
</li>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
href=
"http://example.com"
id=
"dropdown01"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Dropdown
</a>
<div
class=
"dropdown-menu"
aria-labelledby=
"dropdown01"
>
<a
class=
"dropdown-item"
href=
"#"
>
Action
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Another action
</a>
<a
class=
"dropdown-item"
href=
"#"
>
Something else here
</a>
</div>
</li>
</ul>
<form
class=
"form-inline my-2 my-lg-0"
>
<input
class=
"form-control mr-sm-2"
type=
"text"
placeholder=
"Search"
>
<button
class=
"btn btn-outline-success my-2 my-sm-0"
type=
"submit"
>
Search
</button>
</form>
</div>
</nav>
src/app/TerminalPage/main.css
View file @
8a3ae051
...
...
@@ -3,3 +3,7 @@ div, term-leftbar, term-body {
width
:
100%
;
padding
:
0
;
}
div
{
top
:
55px
;
}
src/app/TerminalPage/terminal.ts
View file @
8a3ae051
...
...
@@ -7,6 +7,7 @@ declare let jQuery: any;
declare
let
Terminal
:
any
;
import
{
AppService
,
DataStore
}
from
'../app.service'
;
import
{
logger
}
from
"codelyzer/util/logger"
;
export
class
Term
{
nick
:
string
;
...
...
src/app/app.service.ts
View file @
8a3ae051
/**
* Created by liuzheng on 2017/8/30.
*/
import
{
Injectable
,
NgModule
}
from
'@angular/core'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
Http
,
RequestOptionsArgs
,
Headers
}
from
'@angular/http'
;
import
{
Cookie
}
from
'ng2-cookies/ng2-cookies'
;
import
{
Logger
}
from
'angular2-logger/core'
;
...
...
@@ -113,6 +113,7 @@ export class HttpService {
options
=
{};
}
options
.
headers
=
this
.
headers
;
this
.
_http
.
get
(
"/api/hello"
);
return
this
.
_http
.
get
(
url
,
options
)
}
...
...
@@ -206,7 +207,6 @@ export class AppService {
// DataStore.socket.emit('api', 'all');
});
this
.
checklogin
();
this
.
browser
()
}
...
...
@@ -223,6 +223,7 @@ export class AppService {
}
// jQuery('angular2').show();
}
else
{
this
.
browser
();
this
.
_http
.
get
(
'/api/checklogin'
)
.
map
(
res
=>
res
.
json
())
.
subscribe
(
...
...
@@ -300,8 +301,7 @@ export class AppService {
}
browser
()
{
this
.
_http
.
headers
.
append
(
"aa"
,
"vvv"
);
this
.
_http
.
post
(
'/api/browser'
,
JSON
.
stringify
(
Browser
)).
map
(
res
=>
res
.
json
())
this
.
_http
.
post
(
'/api/browser'
,
JSON
.
stringify
(
Browser
)).
map
(
res
=>
res
.
json
()).
subscribe
()
}
//
...
...
src/styles.css
View file @
8a3ae051
...
...
@@ -16,10 +16,6 @@ body {
width
:
100%
;
}
body
{
padding-top
:
56px
;
}
footer
{
padding
:
30px
0
;
}
...
...
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