Browse Source

feat: storage + search modules skeleton

pull/621/head
NGPixel 6 years ago
parent
commit
e03e6826a8
14 changed files with 321 additions and 0 deletions
  1. 26
      server/modules/search/algolia.js
  2. 26
      server/modules/search/azure.js
  3. 26
      server/modules/search/db.js
  4. 26
      server/modules/search/elasticsearch.js
  5. 26
      server/modules/search/solr.js
  6. 23
      server/modules/storage/azure.js
  7. 23
      server/modules/storage/digitalocean.js
  8. 15
      server/modules/storage/disk.js
  9. 23
      server/modules/storage/dropbox.js
  10. 23
      server/modules/storage/gdrive.js
  11. 15
      server/modules/storage/git.js
  12. 23
      server/modules/storage/onedrive.js
  13. 23
      server/modules/storage/s3.js
  14. 23
      server/modules/storage/scp.js

26
server/modules/search/algolia.js

@ -0,0 +1,26 @@
module.exports = {
key: 'algolia',
title: 'Algolia',
props: ['applicationID', 'adminAPIKey'],
activate(opts) {
},
deactivate(opts) {
},
query(opts) {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

26
server/modules/search/azure.js

@ -0,0 +1,26 @@
module.exports = {
key: 'azure',
title: 'Azure Search',
props: ['apiKey', 'applicationID'],
activate(opts) {
},
deactivate(opts) {
},
query(opts) {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

26
server/modules/search/db.js

@ -0,0 +1,26 @@
module.exports = {
key: 'db',
title: 'Database (built-in)',
props: [],
activate(opts) {
},
deactivate(opts) {
},
query(opts) {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

26
server/modules/search/elasticsearch.js

@ -0,0 +1,26 @@
module.exports = {
key: 'elasticsearch',
title: 'Elasticsearch',
props: [],
activate(opts) {
},
deactivate(opts) {
},
query(opts) {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

26
server/modules/search/solr.js

@ -0,0 +1,26 @@
module.exports = {
key: 'solr',
title: 'Solr',
props: [],
activate(opts) {
},
deactivate(opts) {
},
query(opts) {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/azure.js

@ -0,0 +1,23 @@
module.exports = {
key: 'azure',
title: 'Azure Blob Storage',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/digitalocean.js

@ -0,0 +1,23 @@
module.exports = {
key: 'digitalocean',
title: 'DigialOcean Spaces',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

15
server/modules/storage/disk.js

@ -1,8 +1,23 @@
module.exports = {
key: 'disk',
title: 'Local FS',
props: ['path'],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/dropbox.js

@ -0,0 +1,23 @@
module.exports = {
key: 'dropbox',
title: 'Dropbox',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/gdrive.js

@ -0,0 +1,23 @@
module.exports = {
key: 'gdrive',
title: 'Google Drive',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

15
server/modules/storage/git.js

@ -1,8 +1,23 @@
module.exports = {
key: 'git',
title: 'Git',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/onedrive.js

@ -0,0 +1,23 @@
module.exports = {
key: 'onedrive',
title: 'OneDrive',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/s3.js

@ -0,0 +1,23 @@
module.exports = {
key: 's3',
title: 'Amazon S3',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}

23
server/modules/storage/scp.js

@ -0,0 +1,23 @@
module.exports = {
key: 'scp',
title: 'SCP (SSH)',
props: [],
activate() {
},
deactivate() {
},
created(opts) {
},
updated(opts) {
},
deleted(opts) {
},
renamed(opts) {
}
}
Loading…
Cancel
Save