loading file into text editor
This commit is contained in:
@@ -2,15 +2,21 @@ import filesModule from "./files";
|
||||
import helpersModule from "./helpers";
|
||||
|
||||
class Pterodactyl {
|
||||
server_id: string;
|
||||
api_key: string;
|
||||
server_id: string = "";
|
||||
api_key: string = "";
|
||||
files: any;
|
||||
helpers: any;
|
||||
workingDirectory: string = "/";
|
||||
|
||||
constructor(server_id: string, api_key: string) {
|
||||
this.server_id = server_id;
|
||||
setApiKey(api_key: string) {
|
||||
this.api_key = api_key;
|
||||
}
|
||||
|
||||
setServerId(server_id: string) {
|
||||
this.server_id = server_id;
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.files = filesModule(this);
|
||||
this.helpers = helpersModule(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user