2.0.0 • Published 9 months ago
@vesp/mmx-frontend v2.0.0
MMX Frontend
This is a part of MMX initiative - the Modern MODX approach.
The port of Vesp frontend designed for quick development of modern UI in MODX manager.
Install
npm i @vesp/mmx-frontend
How to use
First you need to import and use default config in your vite.config.ts
with mandatory namespace parameter:
import withMmx from '@vesp/mmx-frontend/config'
// Optional Vite parameters to merge with default config
const config = {}
export default withMmx('mmx-extra', config)
More advanced example with including your local directories to autoimport:
import withMmx, {aiConfig} from '@vesp/mmx-frontend/config'
const config = {
plugins: [
ai({
// Default autoimport config with mmx functions
...aiConfig,
// Your local autoimport
dirs: ['src/mgr/utils'],
}),
]
}
export default withMmx('mmx-extra', config)
Then you can import and use createMmx
function in you mgr.js
file:
import {createApp} from 'vue'
import {createRouter, createWebHashHistory} from 'vue-router'
import {createMmx} from '@vesp/mmx-frontend'
import App from './mgr/app.vue'
import routes from '~pages'
import './mgr/scss/index.scss'
const router = createRouter({
history: createWebHashHistory(),
routes,
})
document.addEventListener('DOMContentLoaded', () => {
createApp(App)
.use(router)
.use(createMmx({namespace: 'mmx-extra'}))
.mount('#mmx-extra-root')
})
2.0.0-rc3
9 months ago
2.0.0-rc2
9 months ago
2.0.0-rc1
9 months ago
2.0.0
9 months ago
1.8.0
10 months ago
1.7.1
1 year ago
1.7.0-beta.0
1 year ago
1.7.0-beta.1
1 year ago
1.7.0
1 year ago
1.6.2
1 year ago
1.6.1
1 year ago
1.6.0
1 year ago
1.5.0
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago