feature (admin): admin console

This commit is contained in:
Mickael KERJEAN
2018-12-07 12:54:28 +11:00
parent 1b591af5b3
commit ce6a228968
78 changed files with 2699 additions and 386 deletions

19
client/model/log.js Normal file
View File

@ -0,0 +1,19 @@
import { http_get } from '../helpers/';
class LogManager{
constructor(){}
get(maxSize = -1){
let url = this.url();
if(maxSize > 0){
url += "?maxSize="+maxSize
}
return http_get(url, 'text');
}
url(){
return "/admin/api/log"
}
}
export const Log = new LogManager();