fix: allow user not to write .md or .markdown when creating file based on archetype #288

pull/329/head
Henrique Dias 2017-12-27 16:02:36 +00:00 committed by GitHub
parent 68c4072bd1
commit 390fe1d797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 401 additions and 9805 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@ yarn-debug.log*
yarn-error.log*
.idea
.vscode
package-lock.json
yarn.lock

View File

@ -48,6 +48,10 @@ export default {
new (url, type) {
url = removePrefix(url)
if (!url.endsWith('.md') && !url.endsWith('.markdown')) {
url += '.markdown'
}
return new Promise((resolve, reject) => {
let request = new window.XMLHttpRequest()
request.open('POST', `${this.$store.state.baseURL}/api/resource${url}`, true)

9410
package-lock.json generated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long