mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
- Rimossi Babel e Flow, sostituito con Typescript - Qualche piccolo fix qua e là - Aggiornate dipendenze
20 lines
376 B
TypeScript
20 lines
376 B
TypeScript
import Component from './Component';
|
|
/**
|
|
* The `Page` component
|
|
*
|
|
* @abstract
|
|
*/
|
|
|
|
type PageAttributes = {
|
|
component: string
|
|
locale: string
|
|
props: Record<string, any>
|
|
url: string
|
|
version: string
|
|
};
|
|
|
|
export default class Page extends Component<{}> {
|
|
page: PageAttributes = JSON.parse($('#app').attr('data-page') as string) as PageAttributes;
|
|
title?: string;
|
|
}
|