Rework login page to be AJAX/Vue.js based
This commit is contained in:
19
app/services/Vue.service.js
Normal file
19
app/services/Vue.service.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const { Service } = require('flitter-di')
|
||||
|
||||
class VueService extends Service {
|
||||
static get services() {
|
||||
return [...super.services, 'configs']
|
||||
}
|
||||
|
||||
data(merge = {}) {
|
||||
return {
|
||||
vue_state: {
|
||||
app_name: this.configs.get('app.name'),
|
||||
app_url: this.configs.get('app.url'),
|
||||
...merge
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = exports = VueService
|
||||
Reference in New Issue
Block a user