Skip to content

Commit

Permalink
adjust ops flow & upgrade tower
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaolin committed Oct 10, 2016
1 parent b773d64 commit 54dd781
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 66 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

[English wiki](README_EN.md)

<a href="http://diablo.hao0.me" target="_blank">在线Demo</a>。

## 一些特性

+ **轻量级**: 没有复杂的技术和第三方依赖;
Expand All @@ -19,6 +21,7 @@

+ ...


## Quick start

### 安装
Expand Down
2 changes: 2 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ A Lightweight Persistent Configuration Service

[中文wiki](README.md).

<a href="http://diablo.hao0.me" target="_blank">Online Demo</a>。

## Features

+ **Lightweight**: these aren't complex techs and third dependencies;
Expand Down
4 changes: 2 additions & 2 deletions diablo-client-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>diablo</artifactId>
<groupId>me.hao0</groupId>
<version>1.0.1</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>me.hao0</groupId>
<artifactId>diablo-client</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions diablo-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>diablo</artifactId>
<groupId>me.hao0</groupId>
<version>1.0.1</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>me.hao0</groupId>
<artifactId>diablo-common</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>

<!-- use slf4j-api for logging -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DiabloAgent {
/**
* The client version
*/
private static final String CLIENT_VERSION = "1.0.0";
private static final String CLIENT_VERSION = "1.0.2";

private AbstractDiabloClient client;

Expand Down
2 changes: 1 addition & 1 deletion diablo-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>diablo</artifactId>
<groupId>me.hao0</groupId>
<version>1.0.1</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions diablo-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>diablo</artifactId>
<groupId>me.hao0</groupId>
<version>1.0.1</version>
<version>1.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>me.hao0</groupId>
<artifactId>diablo-common</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion diablo-server/src/assembly/assemble.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<id>${project.artifactId}-assembly-${project.version}</id>

<!-- basedir -->
<baseDirectory>diablo</baseDirectory>
<baseDirectory>diablo-server-${project.version}</baseDirectory>

<!-- don't need the file's base dirs -->
<!--<includeBaseDirectory>false</includeBaseDirectory>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public class AppManager {
*/
public void delete(App app){

// delete the app index
appDao.unIndex(app);

// delete the app
appDao.delete(app.getId());

// delete all configs of the app
configManager.deleteByAppId(app.getId());

Expand All @@ -36,12 +42,6 @@ public void delete(App app){

// unbind app's all config ids
configDao.deleteBindOfApp(app.getId());

// delete the app index
appDao.unIndex(app);

// delete the app
appDao.delete(app.getId());
}

public void save(App app) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public class ConfigManager {
*/
public void delete(Config config){

// delete the config index
configDao.unIndex(config);

// unbind app's config id
configDao.unBindApp(config);

// delete the config index
configDao.unIndex(config);

// delete the config
configDao.delete(config.getId());
}
Expand Down
2 changes: 1 addition & 1 deletion diablo-server/src/main/resources/public/app.css

Large diffs are not rendered by default.

68 changes: 23 additions & 45 deletions diablo-server/src/main/resources/public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion diablo-server/src/main/resources/public/common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>me.hao0</groupId>
<artifactId>diablo</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<modules>
<module>diablo-common</module>
<module>diablo-server</module>
Expand Down

0 comments on commit 54dd781

Please sign in to comment.