X7ROOT File Manager
Current Path:
/home/notabjze/caribbeansee.com/wp-content/plugins/elementor/app/assets/js
home
/
notabjze
/
caribbeansee.com
/
wp-content
/
plugins
/
elementor
/
app
/
assets
/
js
/
ðŸ“
..
📄
_app-api.scss
(3.01 KB)
📄
app-context.js
(468 B)
📄
app-loader.js
(731 B)
📄
app-packages.js
(378 B)
📄
app.js
(1.28 KB)
📄
app.scss
(2.66 KB)
ðŸ“
event-track
ðŸ“
hooks
📄
index.js
(584 B)
ðŸ“
layout
ðŸ“
loader
ðŸ“
molecules
ðŸ“
organisms
📄
package.js
(2.19 KB)
ðŸ“
pages
📄
router.js
(692 B)
ðŸ“
ui
ðŸ“
url-actions
ðŸ“
utils
Editing: router.js
/** * App Router * * TODO: Temporary solution for routing extensibility. */ class Router { /** * @type {*[]} */ routes = []; history = null; /** * * @param {{path: string, component: Object, props: Object}} route */ addRoute( route ) { this.routes.push( route ); } getRoutes() { return this.routes.map( ( route ) => { const props = route.props || {}; // Use the path as a key, and add it as a prop. props.path = props.key = route.path; return React.createElement( route.component, props ); } ); } } const router = new Router(); // Make router available for use within packages. window.elementorAppPackages = { router, }; export default router;
Upload File
Create Folder