From e03e6826a8aeca4919e394d13f3936cc86fb38af Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 13 May 2018 12:56:55 -0400 Subject: [PATCH] feat: storage + search modules skeleton --- server/modules/search/algolia.js | 26 ++++++++++++++++++++++++++ server/modules/search/azure.js | 26 ++++++++++++++++++++++++++ server/modules/search/db.js | 26 ++++++++++++++++++++++++++ server/modules/search/elasticsearch.js | 26 ++++++++++++++++++++++++++ server/modules/search/solr.js | 26 ++++++++++++++++++++++++++ server/modules/storage/azure.js | 23 +++++++++++++++++++++++ server/modules/storage/digitalocean.js | 23 +++++++++++++++++++++++ server/modules/storage/disk.js | 15 +++++++++++++++ server/modules/storage/dropbox.js | 23 +++++++++++++++++++++++ server/modules/storage/gdrive.js | 23 +++++++++++++++++++++++ server/modules/storage/git.js | 15 +++++++++++++++ server/modules/storage/onedrive.js | 23 +++++++++++++++++++++++ server/modules/storage/s3.js | 23 +++++++++++++++++++++++ server/modules/storage/scp.js | 23 +++++++++++++++++++++++ 14 files changed, 321 insertions(+) create mode 100644 server/modules/search/azure.js create mode 100644 server/modules/storage/azure.js create mode 100644 server/modules/storage/digitalocean.js create mode 100644 server/modules/storage/dropbox.js create mode 100644 server/modules/storage/gdrive.js create mode 100644 server/modules/storage/onedrive.js create mode 100644 server/modules/storage/s3.js create mode 100644 server/modules/storage/scp.js diff --git a/server/modules/search/algolia.js b/server/modules/search/algolia.js index e69de29b..f22124f6 100644 --- a/server/modules/search/algolia.js +++ b/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) { + + } +} diff --git a/server/modules/search/azure.js b/server/modules/search/azure.js new file mode 100644 index 00000000..d0354c9a --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/search/db.js b/server/modules/search/db.js index e69de29b..93ecef2c 100644 --- a/server/modules/search/db.js +++ b/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) { + + } +} diff --git a/server/modules/search/elasticsearch.js b/server/modules/search/elasticsearch.js index e69de29b..2fdffb2c 100644 --- a/server/modules/search/elasticsearch.js +++ b/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) { + + } +} diff --git a/server/modules/search/solr.js b/server/modules/search/solr.js index e69de29b..b7e5d5e7 100644 --- a/server/modules/search/solr.js +++ b/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) { + + } +} diff --git a/server/modules/storage/azure.js b/server/modules/storage/azure.js new file mode 100644 index 00000000..d4992a88 --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/storage/digitalocean.js b/server/modules/storage/digitalocean.js new file mode 100644 index 00000000..c1878cfe --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/storage/disk.js b/server/modules/storage/disk.js index 7153933a..88920d4f 100644 --- a/server/modules/storage/disk.js +++ b/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) { + } } diff --git a/server/modules/storage/dropbox.js b/server/modules/storage/dropbox.js new file mode 100644 index 00000000..3fc5b9fb --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/storage/gdrive.js b/server/modules/storage/gdrive.js new file mode 100644 index 00000000..7d03828a --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/storage/git.js b/server/modules/storage/git.js index 7153933a..0735104b 100644 --- a/server/modules/storage/git.js +++ b/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) { + } } diff --git a/server/modules/storage/onedrive.js b/server/modules/storage/onedrive.js new file mode 100644 index 00000000..38dd9f0c --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/storage/s3.js b/server/modules/storage/s3.js new file mode 100644 index 00000000..a5c0cd64 --- /dev/null +++ b/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) { + + } +} diff --git a/server/modules/storage/scp.js b/server/modules/storage/scp.js new file mode 100644 index 00000000..476a5f06 --- /dev/null +++ b/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) { + + } +}