mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-21 12:02:56 -08:00
* remove blks first try * dprint.json seems to be OK, some forgotten functions * add some more space-after-keyword settings * server remove blks * add **/files to dprint exclude * dprint.js fixes a typo * add boot.js and bootprefix.js to dprint exclude * dprint change dprint.json * add dprint fmt as script * remove jslint comments * fix whitespace * fix whitespace * remove function-wrapper from geospatial plugin * fix whitespace * add function wrapper to dyannotate-startup * remove dpring.json
32 lines
904 B
JavaScript
32 lines
904 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/aws/init.js
|
|
type: application/javascript
|
|
module-type: startup
|
|
|
|
AWS initialisation
|
|
|
|
\*/
|
|
|
|
"use strict";
|
|
|
|
// Export name and synchronous status
|
|
exports.name = "aws-init";
|
|
exports.before = ["startup"];
|
|
exports.synchronous = true;
|
|
|
|
exports.startup = function() {
|
|
var logger = new $tw.utils.Logger("aws");
|
|
if($tw.node) {
|
|
try {
|
|
require("aws-sdk");
|
|
} catch(e) {
|
|
logger.alert("The plugin 'tiddlywiki/aws' requires the aws-sdk to be installed. Run 'npm install aws-sdk' in the root of the TiddlyWiki repository");
|
|
}
|
|
}
|
|
if(!$tw.modules.titles["$:/plugins/tiddlywiki/async/async.js"]) {
|
|
logger.alert("The plugin 'tiddlywiki/aws' requires the 'tiddlywiki/async' plugin to be installed");
|
|
}
|
|
if(!$tw.modules.titles["$:/plugins/tiddlywiki/jszip/jszip.js"]) {
|
|
logger.alert("The plugin 'tiddlywiki/aws' requires the 'tiddlywiki/jszip' plugin to be installed");
|
|
}
|
|
};
|