diff --git a/README.md b/README.md index b0c0c729b..2fbba6e10 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Select the appropriate boilerplate Vue file for your lesson from the `tutorials/ - `boilerplate-file-upload.vue` for a lesson with a coding exercise that requires a file upload - `boilerplate-no-exercise.vue` for a text-only lesson -Copy that boilerplate into your tutorial folder and rename it to the 2-digit number of the lesson. +Copy that boilerplate into your tutorial directory and rename it to the 2-digit number of the lesson. Example (while in `src/tutorials`): @@ -254,7 +254,7 @@ you need to override, as in this example: ```js } else if (result.error && result.error.message === 'No child name passed to addLink') { // Forgot the file name and just used a directory as the path - return { fail: 'Uh oh. It looks like you created a folder instead of a file. Did you forget to include a filename in your path?' } + return { fail: 'Uh oh. It looks like you created a directory instead of a file. Did you forget to include a filename in your path?' } } ``` Be sure to adapt your test case so that it works within the context of your other conditionals to meet your validation needs. What is required is that you return an object with the `fail` key and a string as its value; that string is what will be shown to the user. diff --git a/src/components/File-Lesson.vue b/src/components/File-Lesson.vue index ace4dcdc5..5adbb8952 100644 --- a/src/components/File-Lesson.vue +++ b/src/components/File-Lesson.vue @@ -25,7 +25,7 @@ export default { for (let f of Array.from(event.dataTransfer.items)) { let isFile = f.getAsEntry ? f.getAsEntry().isFile : (f.webkitGetAsEntry ? f.webkitGetAsEntry().isFile : true) if (!isFile) { - return alert("Folder upload is not supported. Please select a file or multiple files.") + return alert('Directory upload is not supported. Please select one or more files.') } } this.onFiles(files) @@ -35,7 +35,7 @@ export default { event.preventDefault() event.stopPropagation() let elem = document.createElement('input') - elem.setAttribute("type", "file") + elem.setAttribute('type', 'file') elem.setAttribute('multiple', true) elem.onchange = () => { this.onFiles(Array.from(elem.files)) diff --git a/src/components/Lesson.vue b/src/components/Lesson.vue index ff0471141..32e8d0979 100644 --- a/src/components/Lesson.vue +++ b/src/components/Lesson.vue @@ -62,14 +62,14 @@