2010-11-16 16:39:59 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Sanity test.</h1>
|
2010-11-16 16:57:57 +03:00
|
|
|
<script>
|
|
|
|
require = {
|
|
|
|
urlArgs: "bust=" + (new Date()).getTime()
|
|
|
|
};
|
|
|
|
</script>
|
2010-11-16 16:39:59 +03:00
|
|
|
<script src="scripts/require.js"></script>
|
|
|
|
<script src="scripts/boot.js"></script>
|
2010-11-16 17:10:51 +03:00
|
|
|
<script>
|
2010-11-16 17:12:52 +03:00
|
|
|
require.ready(function() {
|
|
|
|
setupPlugins({}, function(catalog) {
|
|
|
|
var pluginsModule = require("plugins");
|
|
|
|
catalog.startupPlugins({}, pluginsModule.REASONS.APP_STARTUP).then(function() {
|
|
|
|
var console = require('util/console');
|
|
|
|
console.log('initialized!');
|
|
|
|
|
|
|
|
// try some stuff out. TODO delete this
|
|
|
|
var newSetting = {
|
|
|
|
name: "allGood",
|
|
|
|
defaultValue: false,
|
|
|
|
type: "boolean"
|
|
|
|
};
|
|
|
|
|
|
|
|
var settings = require("settings");
|
|
|
|
settings.addSetting(newSetting);
|
|
|
|
settings.settings.set("allGood", true);
|
|
|
|
if (!settings.settings.get("allGood")) {
|
|
|
|
alert("it's not all good :(");
|
|
|
|
} else {
|
|
|
|
console.log("all good!");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2010-11-16 17:10:51 +03:00
|
|
|
</script>
|
2010-11-16 16:39:59 +03:00
|
|
|
</body>
|
|
|
|
</html>
|