dockered
This commit is contained in:
22
django/frontend/static/js/views/abstracts/AbstractView.js
Normal file
22
django/frontend/static/js/views/abstracts/AbstractView.js
Normal file
@ -0,0 +1,22 @@
|
||||
import {lang} from '../../index.js';
|
||||
|
||||
export default class {
|
||||
constructor(params, titleKey) {
|
||||
this.params = params;
|
||||
this.titleKey = titleKey;
|
||||
}
|
||||
|
||||
async postInit() {
|
||||
}
|
||||
|
||||
async leavePage() {
|
||||
}
|
||||
|
||||
setTitle() {
|
||||
document.title = lang.get(this.titleKey, this.titleKey);
|
||||
}
|
||||
|
||||
async getHtml() {
|
||||
return "";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user