stars key

This commit is contained in:
FangfangZhao 2019-01-05 00:22:35 +08:00
parent 25e3ed6957
commit 9e3b70a4e6
2 changed files with 29 additions and 5 deletions

View file

@ -85,8 +85,17 @@ gulp.task('xjsp', () => {
})
gulp.task('clean', () => {
gulp.task('clear', () => {
del(['./_temp', './build'])
})
gulp.task('cp', () => {
gulp.src('./build/**')
.pipe(gulp.dest('/data/rebuild47070/webapps/ROOT'))
})
gulp.task('default', gulpSequence(['xjs', 'xcss'], 'xjsp'))
gulp.task('all', gulpSequence(['xjs', 'xcss'], 'xjsp', 'cp'))

View file

@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.rebuild.server.helper.SystemConfiguration;
import com.rebuild.utils.StringsUtils;
import com.rebuild.web.BaseControll;
/**
@ -43,22 +44,36 @@ public class SystemConfigurerContoll extends BaseControll {
@RequestMapping("plugins/storage")
public ModelAndView pagePluginsStorage() {
ModelAndView mv = createModelAndView("/admin/plugins/storage-qiniu.jsp");
mv.getModel().put("storageAccount", SystemConfiguration.getStorageAccount());
mv.getModel().put("storageAccount",
starsAccount(SystemConfiguration.getStorageAccount(), 0, 1));
return mv;
}
@RequestMapping("plugins/cache")
public ModelAndView pagePluginsCache() {
ModelAndView mv = createModelAndView("/admin/plugins/cache-redis.jsp");
mv.getModel().put("cacheAccount", SystemConfiguration.getCacheAccount());
mv.getModel().put("cacheAccount",
starsAccount(SystemConfiguration.getCacheAccount(), 2));
return mv;
}
@RequestMapping("plugins/submail")
public ModelAndView pagePluginsMailSms() {
ModelAndView mv = createModelAndView("/admin/plugins/submail.jsp");
mv.getModel().put("smsAccount", SystemConfiguration.getSmsAccount());
mv.getModel().put("mailAccount", SystemConfiguration.getMailAccount());
mv.getModel().put("smsAccount",
starsAccount(SystemConfiguration.getSmsAccount(), 1));
mv.getModel().put("mailAccount",
starsAccount(SystemConfiguration.getMailAccount(), 1));
return mv;
}
static String[] starsAccount(String account[], int ...index) {
if (account == null) {
return null;
}
for (int i : index) {
account[i] = StringsUtils.stars(account[i]);
}
return account;
}
}