Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
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
openSource
apollo
Commits
b472d1b7
Commit
b472d1b7
authored
Apr 19, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style
parent
2fb37008
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
41 deletions
+8
-41
index.html
apollo-portal/src/main/resources/static/index.html
+7
-33
CreateAppController.js
...esources/static/scripts/controller/CreateAppController.js
+0
-8
IndexController.js
...in/resources/static/scripts/controller/IndexController.js
+1
-0
No files found.
apollo-portal/src/main/resources/static/index.html
View file @
b472d1b7
...
...
@@ -19,7 +19,11 @@
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
><h1>
Apollo
</h1>
<p>
携程统一配置中心
<br><span
class=
"package-amount"
>
共收录了
<strong>
8888
</strong>
个项目
</span></p>
<p>
携程统一配置中心
<br>
<span
class=
"package-amount"
>
共收录了
<strong>
{{appsCount}}
</strong>
个项目
</span>
<a
class=
"btn btn-success btn-lg"
href=
"views/create-app.html"
>
创建项目
</a>
</p>
<form
class=
""
role=
"search"
>
<div
class=
"form-group"
><input
type=
"text"
class=
"form-control search clearable"
placeholder=
"搜索App, 例如:900088"
ng-model=
"searchKey"
ng-change=
"search()"
></div>
...
...
@@ -45,41 +49,11 @@
</p>
</div>
<div
class=
"package-extra-info col-md-9 col-md-offset-3 col-xs-12"
><span><i
class=
"glyphicon glyphicon-fire"
></i>
92793
</span>
</div>
</div>
</a>
<!--<a href="/bootstrap/" class="package list-group-item" data-library-name="bootstrap" target="_blank"-->
<!--onclick="_hmt.push(['_trackEvent', 'packages', 'click', 'bootstrap'])" style="display: block;">-->
<!--<div class="row">-->
<!--<div class="col-md-3"><h4 class="apps-name">{{app.appId}}</h4></div>-->
<!--<div class="col-md-7 hidden-xs">-->
<!--<p class="apps-description">{{app.name}}</p>-->
<!--</div>-->
<!--<div class="col-md-2">-->
<!--<p class="apps-description">-->
<!--{{app.ownerName}}-->
<!--<br>-->
<!--{{app.ownerEmail}}-->
<!--</p>-->
<!--</div>-->
<!--<div class="package-extra-info col-md-9 col-md-offset-3 col-xs-12"><span><i-->
<!--class="glyphicon glyphicon-fire"></i> 92793</span>-->
<!--</div>-->
<!--</div>-->
<!--</a>-->
<!--<a href="/bootstrap/" class="package list-group-item" data-library-name="bootstrap" target="_blank"-->
<!--onclick="_hmt.push(['_trackEvent', 'packages', 'click', 'bootstrap'])" style="display: block;">-->
<!--<div class="row">-->
<!--<div class="col-md-3"><h4 class="package-name">2222</h4></div>-->
<!--<div class="col-md-9 hidden-xs"><p class="package-description">The most popular front-end framework for-->
<!--developing responsive, mobile first projects on the web.</p></div>-->
<!--<div class="package-extra-info col-md-9 col-md-offset-3 col-xs-12"><span><i class="fa fa-star"></i> 92793</span>-->
<!--</div>-->
<!--</div>-->
<!--</a>-->
</div>
</a>
</div>
</div>
...
...
apollo-portal/src/main/resources/static/scripts/controller/CreateAppController.js
View file @
b472d1b7
create_app_module
.
controller
(
'CreateAppController'
,
[
'$scope'
,
'$window'
,
'toastr'
,
'AppService'
,
function
(
$scope
,
$window
,
toastr
,
AppService
)
{
//todo 便于测试,后续删掉
$scope
.
app
=
{
appId
:
1001
,
name
:
'lepdou'
,
ownerEmail
:
'qqq@qq.com'
,
ownerName
:
'le'
};
$scope
.
save
=
function
()
{
AppService
.
add
(
$scope
.
app
).
then
(
function
(
result
)
{
toastr
.
success
(
'添加成功!'
);
...
...
apollo-portal/src/main/resources/static/scripts/controller/IndexController.js
View file @
b472d1b7
...
...
@@ -7,6 +7,7 @@ index_module.controller('IndexController', ['$scope', '$window', 'toastr', 'AppS
AppService
.
find_all_app
(
$scope
.
env
).
then
(
function
(
result
)
{
apps
=
result
;
$scope
.
apps
=
apps
;
$scope
.
appsCount
=
apps
.
length
;
});
$scope
.
search
=
function
()
{
...
...
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