added Welcome page

changed settings API and page to React + rest
changed structure of scripts - different folders for editor and admin scripts
This commit is contained in:
Nikita 2023-08-05 16:01:44 +03:00
parent 5f489c933e
commit f1c3c698dc
66 changed files with 978 additions and 1286 deletions

21
src/admin/pages/index.js Normal file
View file

@ -0,0 +1,21 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import PageWelcome from '../page-welcome';
import PageSettings from '../page-settings';
export default {
welcome: {
label: __('Welcome', 'mind'),
block: PageWelcome,
},
settings: {
label: __('Settings', 'mind'),
block: PageSettings,
},
};