mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 14:57:46 +01:00
chore: Aggiunto type hinting alla proprietà page
This commit is contained in:
parent
ae496dab97
commit
4db4058d55
10
resources/js/Components/Page.js
vendored
10
resources/js/Components/Page.js
vendored
@ -6,7 +6,15 @@ import Component from './Component';
|
||||
* @abstract
|
||||
*/
|
||||
export default class Page extends Component {
|
||||
page = JSON.parse($('#app').attr('data-page'));
|
||||
page: {
|
||||
component: string,
|
||||
locale: string,
|
||||
props: Object,
|
||||
translations: Object,
|
||||
url: string,
|
||||
version: string,
|
||||
...
|
||||
} = JSON.parse($('#app').attr('data-page'));
|
||||
|
||||
__(key: string, replace: Object = {}) {
|
||||
let translation = this.page.translations[key]
|
||||
|
Loading…
x
Reference in New Issue
Block a user