re-code the userscript
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Failing after 7s
Some checks failed
Deploy App / docker (ubuntu-latest) (push) Failing after 7s
This commit is contained in:
24
src/pages/page.ts
Normal file
24
src/pages/page.ts
Normal file
@ -0,0 +1,24 @@
|
||||
export default class Page {
|
||||
|
||||
/**
|
||||
* The route of the page
|
||||
* eg: /ranking
|
||||
*/
|
||||
private readonly _route: string;
|
||||
|
||||
constructor(route: string) {
|
||||
this._route = route;
|
||||
}
|
||||
|
||||
/*
|
||||
* This gets called when the page is loaded
|
||||
*/
|
||||
public onLoad() {}
|
||||
|
||||
/**
|
||||
* The route of the page
|
||||
*/
|
||||
get route(): string {
|
||||
return this._route;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user