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
{ | |
a: [ 'target', 'href', 'title' ], | |
abbr: [ 'title' ], | |
address: [], | |
area: [ 'shape', 'coords', 'href', 'alt' ], | |
article: [], | |
aside: [ 'class' ], | |
audio: [ | |
'autoplay', | |
'controls', |
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
<!-- Text Content Elements --> | |
<div | |
aria-describedby="ariadescribedby" | |
aria-description="ariadescription" | |
aria-label="arialabel" | |
aria-hidden="false" | |
class="test" | |
role="region" | |
tabindex="0"> |
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
<h1>Text Content Elements</h1> | |
<!-- blockquote p --> | |
<blockquote cite="https://www.huxley.net/bnw/four.html"> | |
<p>Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced.</p> | |
<footer>—Aldous Huxley, <cite>Brave New World</cite></footer> | |
</blockquote> | |
<!-- dd dt dl --> | |
<p>Cryptids of Cornwall:</p> |
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 }) |
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
/** | |
* 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
{ | |
"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
[ | |
"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
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
curl PATCH_URL | git apply -v |
NewerOlder