mirror of https://github.com/Requarks/wiki.git
22 changed files with 158 additions and 89 deletions
Split View
Diff Options
-
7client/components/admin/admin-contribute.vue
-
2client/components/editor.vue
-
1client/components/editor/editor-code.vue
-
4client/graph/editor/create.gql
-
13client/store/editor.js
-
7server/app/data.yml
-
10server/core/queue.js
-
20server/db/models/pages.js
-
15server/db/models/storage.js
-
1server/db/models/users.js
-
11server/graph/resolvers/page.js
-
10server/graph/schemas/page.graphql
-
20server/jobs/sync-storage.js
-
14server/modules/storage/azure/storage.js
-
14server/modules/storage/digitalocean/storage.js
-
14server/modules/storage/disk/storage.js
-
14server/modules/storage/dropbox/storage.js
-
14server/modules/storage/gdrive/storage.js
-
14server/modules/storage/git/storage.js
-
14server/modules/storage/onedrive/storage.js
-
14server/modules/storage/s3/storage.js
-
14server/modules/storage/scp/storage.js
@ -0,0 +1,20 @@ |
|||
require('../core/worker') |
|||
|
|||
/* global WIKI */ |
|||
|
|||
module.exports = async (job) => { |
|||
WIKI.logger.info(`Syncing with storage provider ${job.data.target.title}...`) |
|||
|
|||
try { |
|||
const target = require(`../modules/storage/${job.data.target.key}/storage.js`) |
|||
target[job.data.event].call({ |
|||
config: job.data.target.config, |
|||
mode: job.data.target.mode, |
|||
page: job.data.page |
|||
}) |
|||
WIKI.logger.info(`Syncing with storage provider ${job.data.target.title}: [ COMPLETED ]`) |
|||
} catch (err) { |
|||
WIKI.logger.error(`Syncing with storage provider ${job.data.target.title}: [ FAILED ]`) |
|||
WIKI.logger.error(err.message) |
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
@ -1,23 +1,23 @@ |
|||
module.exports = { |
|||
async activated(opts) { |
|||
async activated() { |
|||
|
|||
}, |
|||
async deactivated(opts) { |
|||
async deactivated() { |
|||
|
|||
}, |
|||
async init(opts) { |
|||
async init() { |
|||
|
|||
}, |
|||
async created(opts) { |
|||
async created() { |
|||
|
|||
}, |
|||
async updated(opts) { |
|||
async updated() { |
|||
|
|||
}, |
|||
async deleted(opts) { |
|||
async deleted() { |
|||
|
|||
}, |
|||
async renamed(opts) { |
|||
async renamed() { |
|||
|
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save