mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
feat: ✨ 💥 Conversione a Typescript
- Rimossi Babel e Flow, sostituito con Typescript - Qualche piccolo fix qua e là - Aggiornate dipendenze
This commit is contained in:
19
resources/js/Components/Page.ts
Normal file
19
resources/js/Components/Page.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user