- app.refresh:
Refresh
- app.usermanagementtitle:
Manage System Users
- app.addusertitle:
Add new user
- app.disableuser:
Disable user
- app.deleteuser:
Delete user
- app.unlockuser:
Unlock user
- app.restoreuser:
Restore user
- app.resetlogins:
Reset logins
- app.confirmresetlogins:
Reset failed login attempts for <b>%{email}</b>?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bcrypt = require('bcrypt-nodejs'); | |
var usage = 'usage: node passwordgen.js <password>'; | |
if (process.argv.length != 3) { | |
console.log(usage); | |
process.exit(1); | |
} | |
var plaintext = process.argv[2]; | |
bcrypt.genSalt(10, function (err, salt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/output/adapt/import-transforms.js b/plugins/output/adapt/import-transforms.js | |
new file mode 100644 | |
index 00000000..a128cfb4 | |
--- /dev/null | |
+++ b/plugins/output/adapt/import-transforms.js | |
@@ -0,0 +1,85 @@ | |
+const async = require('async'); | |
+ | |
+let courseId, metadata; | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl PATCH_URL | git apply -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'app': { | |
local_modules_path: "/Users/tom/Projects/adapt_authoring_restructure" | |
}, | |
'adapt-authoring-logger': { | |
enabledLevels: ['error', 'warn', 'success', 'info', 'debug'] | |
}, | |
'adapt-authoring-mongodb': { | |
host: "localhost", | |
port: 27017, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"read:auth", | |
"read:builds", | |
"read:config", | |
"read:courses", | |
"read:helloworld", | |
"read:lang", | |
"read:course", | |
"write:course" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"documentation": { | |
"enable": true | |
}, | |
"api": { | |
"name": "courses", | |
"root": "/courses", | |
"middleware": "./lib/middleware.js", | |
"routeHandlers": "./lib/routes.js", | |
"routes": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* General notes: | |
* - find is the only action which returns a cursor, the rest return a Promise | |
* - With the AbstractAPIModule, we've added some restrictions. Should we map these | |
* to also restrict MongoDBModule to these: | |
* - POST: only ever create one => insertOne | |
* - GET: with _id param, returns one, otherwise array => findOne/findMany | |
* - UPDATE: must provide _id, only ever update one => insertOne | |
* - PATCH: NO SUPPORT | |
* - DELETE: must provide _id, only ever update one => deleteOne |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { AbstractModule } = require('adapt-authoring-core'); | |
const glob = require('util').promisify(require('glob')); | |
const JsonSchemaValidator = require('./jsonSchemaValidator'); | |
const path = require('path'); | |
/** | |
* Module which add support for the JSON Schema specification | |
* @extends {AbstractModule} | |
*/ | |
class JsonSchemaModule extends AbstractModule { | |
/** @override */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import path from 'path'; | |
import { pathToFileURL } from 'url'; | |
import { spawn } from 'child_process'; | |
/** | |
* Handles installing/removing the npm dependencies for this script | |
*/ | |
function deps(command) { | |
return new Promise((resolve, reject) => { | |
let error = ''; | |
const npm = spawn(`npm ${command} prompts`, { shell: true }) |
OlderNewer