mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 23:45:55 +08:00
stars key
This commit is contained in:
parent
25e3ed6957
commit
9e3b70a4e6
|
@ -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'))
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue