73 lines
979 B
JavaScript
73 lines
979 B
JavaScript
|
const _ = require('lodash')
|
||
|
|
||
|
module.exports = {
|
||
|
activate() {
|
||
|
// not used
|
||
|
},
|
||
|
deactivate() {
|
||
|
// not used
|
||
|
},
|
||
|
/**
|
||
|
* INIT
|
||
|
*/
|
||
|
init() {
|
||
|
// not used
|
||
|
},
|
||
|
/**
|
||
|
* SUGGEST
|
||
|
*
|
||
|
* @param {String} q Query
|
||
|
* @param {Object} opts Additional options
|
||
|
*/
|
||
|
async suggest(q, opts) {
|
||
|
|
||
|
},
|
||
|
/**
|
||
|
* QUERY
|
||
|
*
|
||
|
* @param {String} q Query
|
||
|
* @param {Object} opts Additional options
|
||
|
*/
|
||
|
async query(q, opts) {
|
||
|
|
||
|
},
|
||
|
/**
|
||
|
* CREATE
|
||
|
*
|
||
|
* @param {Object} page Page to create
|
||
|
*/
|
||
|
async created(page) {
|
||
|
// not used
|
||
|
},
|
||
|
/**
|
||
|
* UPDATE
|
||
|
*
|
||
|
* @param {Object} page Page to update
|
||
|
*/
|
||
|
async updated(page) {
|
||
|
// not used
|
||
|
},
|
||
|
/**
|
||
|
* DELETE
|
||
|
*
|
||
|
* @param {Object} page Page to delete
|
||
|
*/
|
||
|
async deleted(page) {
|
||
|
// not used
|
||
|
},
|
||
|
/**
|
||
|
* RENAME
|
||
|
*
|
||
|
* @param {Object} page Page to rename
|
||
|
*/
|
||
|
async renamed(page) {
|
||
|
// not used
|
||
|
},
|
||
|
/**
|
||
|
* REBUILD INDEX
|
||
|
*/
|
||
|
async rebuild() {
|
||
|
// not used
|
||
|
}
|
||
|
}
|