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
4fd1f9a2
Commit
4fd1f9a2
authored
Apr 08, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portal can load data
parent
c5774ce5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
5 deletions
+30
-5
ItemDTO.java
...core/src/main/java/com/ctrip/apollo/core/dto/ItemDTO.java
+22
-0
ConfigService.java
...n/java/com/ctrip/apollo/portal/service/ConfigService.java
+4
-4
app.js
apollo-portal/src/main/resources/static/scripts/app.js
+1
-1
AppConfigController.js
...rces/static/scripts/controller/app/AppConfigController.js
+0
-0
common-style.css
...-portal/src/main/resources/static/styles/common-style.css
+3
-0
index.html
apollo-portal/src/main/resources/static/views/app/index.html
+0
-0
No files found.
apollo-core/src/main/java/com/ctrip/apollo/core/dto/ItemDTO.java
View file @
4fd1f9a2
package
com
.
ctrip
.
apollo
.
core
.
dto
;
import
java.util.Date
;
public
class
ItemDTO
{
private
long
id
;
...
...
@@ -12,6 +14,10 @@ public class ItemDTO {
private
String
comment
;
private
String
dataChangeLastModifiedBy
;
private
Date
dataChangeLastModifiedTime
;
public
ItemDTO
()
{
}
...
...
@@ -60,4 +66,20 @@ public class ItemDTO {
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
String
getDataChangeLastModifiedBy
()
{
return
dataChangeLastModifiedBy
;
}
public
void
setDataChangeLastModifiedBy
(
String
dataChangeLastModifiedBy
)
{
this
.
dataChangeLastModifiedBy
=
dataChangeLastModifiedBy
;
}
public
Date
getDataChangeLastModifiedTime
()
{
return
dataChangeLastModifiedTime
;
}
public
void
setDataChangeLastModifiedTime
(
Date
dataChangeLastModifiedTime
)
{
this
.
dataChangeLastModifiedTime
=
dataChangeLastModifiedTime
;
}
}
apollo-portal/src/main/java/com/ctrip/apollo/portal/service/ConfigService.java
View file @
4fd1f9a2
...
...
@@ -97,12 +97,12 @@ public class ConfigService {
NamespaceVO
.
ItemVO
itemVO
=
new
NamespaceVO
.
ItemVO
();
itemVO
.
setItem
(
itemDTO
);
String
key
=
itemDTO
.
getKey
();
String
v
alue
=
itemDTO
.
getValue
();
String
newV
alue
=
itemDTO
.
getValue
();
String
oldValue
=
releaseItems
.
get
(
key
);
if
(
v
alue
.
equals
(
oldValue
))
{
if
(
oldValue
==
null
||
!
newV
alue
.
equals
(
oldValue
))
{
itemVO
.
setModified
(
true
);
itemVO
.
setOldValue
(
oldValue
);
itemVO
.
setNewValue
(
v
alue
);
itemVO
.
setOldValue
(
oldValue
==
null
?
""
:
oldValue
);
itemVO
.
setNewValue
(
newV
alue
);
}
return
itemVO
;
}
...
...
apollo-portal/src/main/resources/static/scripts/app.js
View file @
4fd1f9a2
...
...
@@ -3,7 +3,7 @@ var appService = angular.module('app.service', ['ngResource']);
/** page module 定义*/
//项目主页
var
application_module
=
angular
.
module
(
'application'
,
[
'ngResource'
,
'ui.router'
,
'app.service'
,
'toastr'
,
'angular-loading-bar'
,
'ngTable'
]);
var
application_module
=
angular
.
module
(
'application'
,
[
'ngResource'
,
'ui.router'
,
'app.service'
,
'toastr'
,
'angular-loading-bar'
]);
//创建项目页面
var
create_app_module
=
angular
.
module
(
'create_app'
,
[
'ngResource'
,
'toastr'
,
'app.service'
,
'angular-loading-bar'
]);
...
...
apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js
View file @
4fd1f9a2
This diff is collapsed.
Click to expand it.
apollo-portal/src/main/resources/static/styles/common-style.css
View file @
4fd1f9a2
...
...
@@ -19,6 +19,9 @@ a{
}
/*panel*/
.panel
{
border
:
1px
solid
#ddd
;
}
.panel-heading
{
height
:
45px
;
font-size
:
14px
;
...
...
apollo-portal/src/main/resources/static/views/app/index.html
View file @
4fd1f9a2
This diff is collapsed.
Click to expand it.
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