functional editing of old articles

This commit is contained in:
theo1 2020-07-17 16:26:31 +02:00
parent 576a014df8
commit 5f65262a9d
49 changed files with 585 additions and 97 deletions

7
.gitignore vendored
View File

@ -1,2 +1,5 @@
./md-parser/src/node_modules/
./md-parser/node_modules/
md-parser/src/node_modules/
md-parser/src/node_modules/
md-parser/src/node_modules/.cache/
md-parser/node_modules/
md-parser/src/assets/

View File

@ -0,0 +1,28 @@
<template>
<div>
<p>Edit an existing page</p>
<ul>
<li>List all exisiting articles (fetch with AJAX request) </li>
</ul>
</div>
</template>
<script>
import Vue from '../../node_modules/vue'
import VueResource from '../../node_modules/vue-resource'
Vue.use(VueResource)
export default {
name: 'EditPage',
props: {
},
data: function(){
return {
}
},
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>

View File

@ -1091,6 +1091,11 @@
"node-fetch": "^2.6.0"
}
},
"@sindresorhus/is": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz",
"integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow=="
},
"@soda/friendly-errors-webpack-plugin": {
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.7.1.tgz",
@ -3049,6 +3054,65 @@
}
}
},
"cacheable-request": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz",
"integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=",
"requires": {
"clone-response": "1.0.2",
"get-stream": "3.0.0",
"http-cache-semantics": "3.8.1",
"keyv": "3.0.0",
"lowercase-keys": "1.0.0",
"normalize-url": "2.0.1",
"responselike": "1.0.2"
},
"dependencies": {
"get-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="
},
"lowercase-keys": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz",
"integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY="
},
"normalize-url": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz",
"integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==",
"requires": {
"prepend-http": "^2.0.0",
"query-string": "^5.0.1",
"sort-keys": "^2.0.0"
}
},
"prepend-http": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc="
},
"query-string": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz",
"integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==",
"requires": {
"decode-uri-component": "^0.2.0",
"object-assign": "^4.1.0",
"strict-uri-encode": "^1.0.0"
}
},
"sort-keys": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz",
"integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=",
"requires": {
"is-plain-obj": "^1.0.0"
}
}
}
},
"call-me-maybe": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz",
@ -3406,6 +3470,14 @@
"integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=",
"dev": true
},
"clone-response": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
"integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=",
"requires": {
"mimic-response": "^1.0.0"
}
},
"coa": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz",
@ -3770,8 +3842,7 @@
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
"dev": true
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"cosmiconfig": {
"version": "5.2.1",
@ -4119,8 +4190,15 @@
"decode-uri-component": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
"dev": true
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU="
},
"decompress-response": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
"integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=",
"requires": {
"mimic-response": "^1.0.0"
}
},
"deep-equal": {
"version": "1.1.1",
@ -4556,6 +4634,11 @@
"integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=",
"dev": true
},
"duplexer3": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
"integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI="
},
"duplexify": {
"version": "3.7.1",
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz",
@ -5519,7 +5602,6 @@
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz",
"integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=",
"dev": true,
"requires": {
"inherits": "^2.0.1",
"readable-stream": "^2.0.0"
@ -5669,6 +5751,42 @@
"slash": "^2.0.0"
}
},
"got": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz",
"integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==",
"requires": {
"@sindresorhus/is": "^0.7.0",
"cacheable-request": "^2.1.1",
"decompress-response": "^3.3.0",
"duplexer3": "^0.1.4",
"get-stream": "^3.0.0",
"into-stream": "^3.1.0",
"is-retry-allowed": "^1.1.0",
"isurl": "^1.0.0-alpha5",
"lowercase-keys": "^1.0.0",
"mimic-response": "^1.0.0",
"p-cancelable": "^0.4.0",
"p-timeout": "^2.0.1",
"pify": "^3.0.0",
"safe-buffer": "^5.1.1",
"timed-out": "^4.0.1",
"url-parse-lax": "^3.0.0",
"url-to-options": "^1.0.1"
},
"dependencies": {
"get-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="
},
"pify": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
"integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY="
}
}
},
"graceful-fs": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
@ -5738,12 +5856,25 @@
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
},
"has-symbol-support-x": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz",
"integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw=="
},
"has-symbols": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
"integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
"dev": true
},
"has-to-string-tag-x": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz",
"integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==",
"requires": {
"has-symbol-support-x": "^1.4.1"
}
},
"has-value": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz",
@ -6027,6 +6158,11 @@
}
}
},
"http-cache-semantics": {
"version": "3.8.1",
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz",
"integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w=="
},
"http-deceiver": {
"version": "1.2.7",
"resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",
@ -6211,8 +6347,7 @@
"inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"dev": true
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"inquirer": {
"version": "7.3.0",
@ -6343,6 +6478,15 @@
}
}
},
"into-stream": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz",
"integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=",
"requires": {
"from2": "^2.1.1",
"p-is-promise": "^1.1.0"
}
},
"invariant": {
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
@ -6569,6 +6713,11 @@
"integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
"dev": true
},
"is-object": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz",
"integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA="
},
"is-path-cwd": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz",
@ -6596,8 +6745,7 @@
"is-plain-obj": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz",
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=",
"dev": true
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4="
},
"is-plain-object": {
"version": "2.0.4",
@ -6623,6 +6771,11 @@
"integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==",
"dev": true
},
"is-retry-allowed": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz",
"integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg=="
},
"is-stream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
@ -6668,8 +6821,7 @@
"isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
"dev": true
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"isexe": {
"version": "2.0.0",
@ -6689,6 +6841,15 @@
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
"dev": true
},
"isurl": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz",
"integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==",
"requires": {
"has-to-string-tag-x": "^1.2.0",
"is-object": "^1.0.1"
}
},
"javascript-stringify": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/javascript-stringify/-/javascript-stringify-2.0.1.tgz",
@ -6765,6 +6926,11 @@
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
"dev": true
},
"json-buffer": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
"integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg="
},
"json-parse-better-errors": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
@ -6839,6 +7005,14 @@
"match-at": "^0.1.0"
}
},
"keyv": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz",
"integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==",
"requires": {
"json-buffer": "3.0.0"
}
},
"killable": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz",
@ -7070,6 +7244,11 @@
"integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=",
"dev": true
},
"lowercase-keys": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
"integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA=="
},
"lru-cache": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
@ -7342,6 +7521,11 @@
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
"dev": true
},
"mimic-response": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ=="
},
"mini-css-extract-plugin": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.0.tgz",
@ -7733,8 +7917,7 @@
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
"object-copy": {
"version": "0.1.0",
@ -7976,11 +8159,20 @@
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
"dev": true
},
"p-cancelable": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz",
"integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ=="
},
"p-finally": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
"dev": true
"integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4="
},
"p-is-promise": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz",
"integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4="
},
"p-limit": {
"version": "2.3.0",
@ -8018,6 +8210,14 @@
"retry": "^0.12.0"
}
},
"p-timeout": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz",
"integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==",
"requires": {
"p-finally": "^1.0.0"
}
},
"p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
@ -8916,8 +9116,7 @@
"process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
"dev": true
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
},
"progress": {
"version": "2.0.3",
@ -9113,7 +9312,6 @@
"version": "2.3.7",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
"dev": true,
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@ -9394,6 +9592,14 @@
"integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
"dev": true
},
"responselike": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
"integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=",
"requires": {
"lowercase-keys": "^1.0.0"
}
},
"restore-cursor": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
@ -9474,8 +9680,7 @@
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"dev": true
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
},
"safe-regex": {
"version": "1.1.0",
@ -10197,8 +10402,7 @@
"strict-uri-encode": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz",
"integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=",
"dev": true
"integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM="
},
"string-width": {
"version": "4.2.0",
@ -10235,7 +10439,6 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"dev": true,
"requires": {
"safe-buffer": "~5.1.0"
}
@ -10504,6 +10707,11 @@
"integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
"dev": true
},
"timed-out": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
"integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8="
},
"timers-browserify": {
"version": "2.0.11",
"resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz",
@ -10908,6 +11116,26 @@
"requires-port": "^1.0.0"
}
},
"url-parse-lax": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
"integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
"requires": {
"prepend-http": "^2.0.0"
},
"dependencies": {
"prepend-http": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc="
}
}
},
"url-to-options": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz",
"integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k="
},
"use": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
@ -10942,8 +11170,7 @@
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
"util.promisify": {
"version": "1.0.1",
@ -11103,6 +11330,14 @@
"markdown-it-toc-and-anchor": "^4.1.2"
}
},
"vue-resource": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/vue-resource/-/vue-resource-1.5.1.tgz",
"integrity": "sha512-o6V4wNgeqP+9v9b2bPXrr20CGNQPEXjpbUWdZWq9GJhqVeAGcYoeTtn/D4q059ZiyN0DIrDv/ADrQUmlUQcsmg==",
"requires": {
"got": "^8.0.3"
}
},
"vue-router": {
"version": "3.3.4",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz",
@ -11142,6 +11377,11 @@
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
"dev": true
},
"vuex": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.5.1.tgz",
"integrity": "sha512-w7oJzmHQs0FM9LXodfskhw9wgKBiaB+totOdb8sNzbTB2KDCEEwEs29NzBZFh/lmEK1t5tDmM1vtsO7ubG1DFw=="
},
"watchpack": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.2.tgz",

View File

@ -14,7 +14,9 @@
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-markdown": "^2.2.4",
"vue-router": "^3.3.4"
"vue-resource": "^1.5.1",
"vue-router": "^3.3.4",
"vuex": "^3.5.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.4.0",

View File

@ -6,18 +6,13 @@
<router-link to='/edit' class='nav-link'>Edit an article</router-link>
</li>
<li class='nav-item'>
<router-link to='/write' class='nav-link'>New article</router-link>
<a href='#' @click='resetInfos' class='nav-link'>New article</a>
</li>
</ul>
<br>
<ul> TODO :
<li>fetch articles</li>
</ul>
<br>
<transition name="fade">
<router-view @article-save='saveText' id='sub-content'></router-view>
<router-view id='sub-content'></router-view>
</transition>
</div>
</template>s
@ -30,12 +25,13 @@ export default {
},
data: function() {
return{
usertext: '',
}
},
methods: {
saveText : function (content){
this.usertext = content['article-content']
resetInfos: function() {
// reset all current content and metadata
this.$store.commit('resetAll')
this.$router.push('/write')
}
}
}

View File

@ -2,34 +2,52 @@
<form>
<div class='form-group'>
<label for='author'>Author</label>
<input type='text' name='author' id='author' placeholder="John Doe" class='form-control form-control-lg'>
<input v-model='author' type='text' name='author' id='author' placeholder="John Doe" class='form-control form-control-lg'>
</div>
<div class='form-group'>
<label for='date-published'>Publication date</label>
<input type='date' name='date-published' id='date-published' class='form-control form-control-sm'><br>
<input v-model='date_created' type='date' name='date-published' id='date-published' class='form-control form-control-sm'>
<input type='button' class='btn btn-default today-button' @click.prevent="setToday(1)" value='today'><br>
</div>
<div class='form-group'>
<label for='date-modified'>Modification date</label>
<input type='date' name='date-modified' id='date-modified' class='form-control form-control-sm'><br>
<input v-model='date_modified' type='date' name='date-modified' id='date-modified' class='form-control form-control-sm'>
<input type='button' class='btn btn-default today-button' @click.prevent="setToday(2)" value='today'><br>
</div>
<div class='form-group'>
<label for='article-title'>Article title</label>
<input type='text' name='article-title' id='article-title' placeholder="What's up ?" class='form-control form-control-lg'>
<label for='meta-title'>meta title</label>
<input v-model='title' type='text' name='meta-title' id='meta-title' placeholder="What's up ?" class='form-control form-control-lg'>
</div>
</form>
</template>
<script>
export default {
name: 'ArticleForm',
name: 'metaForm',
props: {
},
data: function(){
return {
}
computed: {
author (){
return this.$store.state.article.meta.author
},
date_modified (){
return this.$store.state.article.meta.date_modified
},
date_created (){
return this.$store.state.article.meta.date_created
},
title (){
return this.$store.state.article.meta.title
},
},
methods : {
setToday : function(date) {
console.log(this.$store.state.article.meta)
this.$store.commit('today', date)
}
}
}
</script>
@ -44,4 +62,10 @@ form {
form > div > input {
max-width: 50%;
}
.today-button {
border: solid;
border-width: 1px;
display: inline-block;
}
</style>

View File

@ -1,13 +1,20 @@
<template>
<div>
<p>Edit an existing page</p>
<ul>
<li>List all exisiting articles (fetch with AJAX request) </li>
</ul>
<div class="card" v-for="article in articles" :key='article.id'>
<img class='card-img-top' src='../assets/question.png'>
<div class='card-body'>
<h5 class='card-title'>{{ article.title }}</h5>
<p class='card-text'> by {{ article.author }}</p>
<a class='btn btn-primary' href="#" @click.prevent="loadContent(article.id)"> Edit </a>
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue'
import VueResource from '../../node_modules/vue-resource'
Vue.use(VueResource)
export default {
name: 'EditPage',
@ -15,11 +22,59 @@ export default {
},
data: function(){
return {
articles: [],
}
},
http: {
root: 'http://localhost:3000',
},
mounted (){
this.$resource('articles')
.get()
.then(
response => {
this.articles = response.data
},
response => {
console.log('Error: ', response)
}
)
},
methods: {
loadContent: function(key){
this.$resource('articles')
.get({
"id": key
})
.then(
response => {
let data = response.data[0]
// update article meta
this.$store.commit('updateMeta', {
"author" : data.author,
"title": data.title,
"date_created": data.date_created,
"date_modified": data.date_modified,
})
// update content
this.$store.commit('updateText', data.content)
},
response => {
console.log('Error: ', response)
}
)
this.$router.push('/write')
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.card {
width: 15rem;
display: inline-block;
margin: 10px;
}
</style>

View File

@ -14,6 +14,7 @@ export default {
methods: {
updateText : function() {
this.$emit('update')
// TODO : POST to API
}
}
}

View File

@ -2,7 +2,15 @@
<div>
<p class='alert alert-primary' id='published-message'>Your article was published !</p>
<a @click.prevent.once='generateMDFile' value='Download .md file' class='btn btn-secondary' id='download-button'>Download !</a>
<vue-markdown :source='this.$parent.usertext'></vue-markdown>
<br>
<hr>
<br>
<span>{{ author }} wrote </span>
<span v-if="date_created">on {{ date_created }}</span>
<span>: </span>
<hr>
<h1 id='article-title'>{{ title}}</h1>
<vue-markdown :source='articleText'></vue-markdown>
</div>
</template>
@ -22,13 +30,27 @@ export default {
ready: false,
}
},
computed: {
articleText () {
return this.$store.state.article.content
},
author () {
return this.$store.state.article.meta.author
},
date_created () {
return this.$store.state.article.meta.date_created
},
title () {
return this.$store.state.article.meta.title
}
},
methods : {
generateMDFile : function(){
if(this.ready){
return
}
let file = new Blob(
[this.$parent.usertext],
[this.articleText],
{type: 'text/text'}
)
let fileURL = URL.createObjectURL(file)
@ -52,4 +74,17 @@ export default {
display: block;
text-align: center;
}
hr {
max-width: 80%;
margin: 50px;
}
#article-title:before {
content: "« "
}
#article-title:after {
content: " »"
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<div>
<textarea v-model="sometext" placeholder="edit me" id='textbox'></textarea>
<textarea v-model='userInput' placeholder="edit me" id='textbox'></textarea>
</div>
</template>
@ -11,14 +11,17 @@ export default {
},
data: function(){
return {
sometext: '',
userInput: this.articleText
}
},
computed :{
articleText () {
return this.$store.state.article.content
}
},
watch: {
sometext: function(){
this.$emit('user-update', {
'usertext': this.sometext
});
userInput: function(){
this.$store.commit('updateText', this.userInput)
}
}
}
@ -30,8 +33,8 @@ textarea{
width: 80%;
height: 800px;
resize : none;
background-color: #f2f2f2;
padding: 12px 20px;
margin-bottom: 50px;
border: 2px solid red;
border-radius: 4px;
}

View File

@ -1,8 +1,8 @@
<template>
<div>
<article-form></article-form>
<UserInput @user-update='userUpdate' class="input-area column"></UserInput>
<vue-markdown :source='usertext' class="column" id='render-area'>{{ usertext }}</vue-markdown>
<UserInput class="input-area column"></UserInput>
<vue-markdown :source='articleText' class="column" id='render-area'></vue-markdown>
<publish-button @update='articleUpate'></publish-button>
</div>
</template>
@ -28,6 +28,11 @@ export default {
usertext: '',
}
},
computed: {
articleText() {
return this.$store.state.article.content
}
},
methods: {
// live-updates user text
userUpdate : function(text){
@ -39,7 +44,7 @@ export default {
'article-content': this.usertext
});
this.$router.push('/published')
}
},
}
}
</script>

View File

@ -4,12 +4,17 @@ import VueRouter from 'vue-router'
import EditPage from './components/EditPage.vue'
import UserInputPage from './components/UserInputPage.vue'
import PublishedPage from './components/PublishedPage.vue'
import Vuex from 'vuex'
import BootstrapVue from 'bootstrap-vue'
import VueResource from 'vue-resource'
import { store } from './store/store'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
Vue.use(VueRouter)
Vue.use(BootstrapVue)
Vue.use(VueResource)
Vue.use(Vuex)
Vue.config.productionTip = false
@ -26,5 +31,6 @@ const router = new VueRouter({
new Vue({
router,
render: h => h(App),
store: store,
}).$mount('#app')

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue?vue&type=template&id=6abff9d2&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue","mtime":1594823430757},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxkaXY+CiAgPHAgY2xhc3M9J2FsZXJ0IGFsZXJ0LXByaW1hcnknIGlkPSdwdWJsaXNoZWQtbWVzc2FnZSc+WW91ciBhcnRpY2xlIHdhcyBwdWJsaXNoZWQgITwvcD4KICA8YSBAY2xpY2s9J2dlbmVyYXRlTURGaWxlJyB2YWx1ZT0nRG93bmxvYWQgLm1kIGZpbGUnIGNsYXNzPSdidG4gYnRuLXNlY29uZGFyeScgaWQ9J2Rvd25sb2FkLWJ1dHRvbic+RG93bmxvYWQgITwvYT4KICA8dnVlLW1hcmtkb3duIDpzb3VyY2U9J3RoaXMuJHBhcmVudC51c2VydGV4dCc+PC92dWUtbWFya2Rvd24+Cgo8L2Rpdj4K"},null]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue?vue&type=template&id=6abff9d2&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue","mtime":1594991999773},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxkaXY+CiAgPHAgY2xhc3M9J2FsZXJ0IGFsZXJ0LXByaW1hcnknIGlkPSdwdWJsaXNoZWQtbWVzc2FnZSc+WW91ciBhcnRpY2xlIHdhcyBwdWJsaXNoZWQgITwvcD4KICA8YSBAY2xpY2sucHJldmVudC5vbmNlPSdnZW5lcmF0ZU1ERmlsZScgdmFsdWU9J0Rvd25sb2FkIC5tZCBmaWxlJyBjbGFzcz0nYnRuIGJ0bi1zZWNvbmRhcnknIGlkPSdkb3dubG9hZC1idXR0b24nPkRvd25sb2FkICE8L2E+CiAgPGJyPgogIDxocj4KICA8YnI+CiAgPHNwYW4+e3sgYXV0aG9yIH19IHdyb3RlIDwvc3Bhbj5vbiB7eyBkYXRlX2NyZWF0ZWQgfX06PC9zcGFuPgogIDxocj4KICA8aDEgaWQ9J2FydGljbGUtdGl0bGUnPnt7IHRpdGxlfX08L2gxPgogIDx2dWUtbWFya2Rvd24gOnNvdXJjZT0nYXJ0aWNsZVRleHQnPjwvdnVlLW1hcmtkb3duPgoKPC9kaXY+Cg=="},null]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue?vue&type=template&id=74272f56&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue","mtime":1594817674443},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxpbnB1dCB0eXBlPSdidXR0b24nIEBjbGljay5wcmV2ZW50PSd1cGRhdGVUZXh0JyB2YWx1ZT0nUHVibGlzaCEnPgo="},null]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue?vue&type=template&id=74272f56&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue","mtime":1594992094914},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxpbnB1dCB0eXBlPSdidXR0b24nIEBjbGljay5wcmV2ZW50PSd1cGRhdGVUZXh0JyB2YWx1ZT0nUHVibGlzaCEnIGNsYXNzPSJidG4gYnRuLXByaW1hcnkiPgo="},null]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue?vue&type=template&id=6e828074&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","mtime":1594817544156},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkgewogIHZhciBfdm0gPSB0aGlzCiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oCiAgcmV0dXJuIF9jKCJkaXYiLCBbCiAgICBfYygidGV4dGFyZWEiLCB7CiAgICAgIGRpcmVjdGl2ZXM6IFsKICAgICAgICB7CiAgICAgICAgICBuYW1lOiAibW9kZWwiLAogICAgICAgICAgcmF3TmFtZTogInYtbW9kZWwiLAogICAgICAgICAgdmFsdWU6IF92bS5zb21ldGV4dCwKICAgICAgICAgIGV4cHJlc3Npb246ICJzb21ldGV4dCIKICAgICAgICB9CiAgICAgIF0sCiAgICAgIGF0dHJzOiB7IHBsYWNlaG9sZGVyOiAiZWRpdCBtZSIsIGlkOiAidGV4dGJveCIgfSwKICAgICAgZG9tUHJvcHM6IHsgdmFsdWU6IF92bS5zb21ldGV4dCB9LAogICAgICBvbjogewogICAgICAgIGlucHV0OiBmdW5jdGlvbigkZXZlbnQpIHsKICAgICAgICAgIGlmICgkZXZlbnQudGFyZ2V0LmNvbXBvc2luZykgewogICAgICAgICAgICByZXR1cm4KICAgICAgICAgIH0KICAgICAgICAgIF92bS5zb21ldGV4dCA9ICRldmVudC50YXJnZXQudmFsdWUKICAgICAgICB9CiAgICAgIH0KICAgIH0pCiAgXSkKfQp2YXIgc3RhdGljUmVuZGVyRm5zID0gW10KcmVuZGVyLl93aXRoU3RyaXBwZWQgPSB0cnVlCgpleHBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9"}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue?vue&type=template&id=6e828074&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","mtime":1594995743735},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkgewogIHZhciBfdm0gPSB0aGlzCiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oCiAgcmV0dXJuIF9jKCJkaXYiLCBbCiAgICBfYygidGV4dGFyZWEiLCB7CiAgICAgIGRpcmVjdGl2ZXM6IFsKICAgICAgICB7CiAgICAgICAgICBuYW1lOiAibW9kZWwiLAogICAgICAgICAgcmF3TmFtZTogInYtbW9kZWwiLAogICAgICAgICAgdmFsdWU6IF92bS51c2VySW5wdXQsCiAgICAgICAgICBleHByZXNzaW9uOiAidXNlcklucHV0IgogICAgICAgIH0KICAgICAgXSwKICAgICAgYXR0cnM6IHsgcGxhY2Vob2xkZXI6ICJlZGl0IG1lIiwgaWQ6ICJ0ZXh0Ym94IiB9LAogICAgICBkb21Qcm9wczogeyB2YWx1ZTogX3ZtLnVzZXJJbnB1dCB9LAogICAgICBvbjogewogICAgICAgIGlucHV0OiBmdW5jdGlvbigkZXZlbnQpIHsKICAgICAgICAgIGlmICgkZXZlbnQudGFyZ2V0LmNvbXBvc2luZykgewogICAgICAgICAgICByZXR1cm4KICAgICAgICAgIH0KICAgICAgICAgIF92bS51c2VySW5wdXQgPSAkZXZlbnQudGFyZ2V0LnZhbHVlCiAgICAgICAgfQogICAgICB9CiAgICB9KQogIF0pCn0KdmFyIHN0YXRpY1JlbmRlckZucyA9IFtdCnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZQoKZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfQ=="}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","mtime":1594817544156},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnVXNlcklucHV0JywKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKXsKICAgIHJldHVybiB7CiAgICAgICAgc29tZXRleHQ6ICcnLAogICAgfQogIH0sCiAgd2F0Y2g6IHsKICAgIHNvbWV0ZXh0OiBmdW5jdGlvbigpewogICAgICAgIHRoaXMuJGVtaXQoJ3VzZXItdXBkYXRlJywgewogICAgICAgICAgICAndXNlcnRleHQnOiB0aGlzLnNvbWV0ZXh0CiAgICAgICAgfSk7CiAgICB9CiAgfQp9Cg=="},{"version":3,"sources":["UserInput.vue"],"names":[],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"UserInput.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <textarea v-model=\"sometext\" placeholder=\"edit me\" id='textbox'></textarea>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'UserInput',\n props: {\n },\n data: function(){\n return {\n sometext: '',\n }\n },\n watch: {\n sometext: function(){\n this.$emit('user-update', {\n 'usertext': this.sometext\n });\n }\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\ntextarea{\n width: 80%;\n height: 800px;\n resize : none;\n background-color: #f2f2f2;\n padding: 12px 20px;\n border: 2px solid red;\n border-radius: 4px;\n}\n</style>\n"]}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","mtime":1594995743735},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnVXNlcklucHV0JywKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKXsKICAgIHJldHVybiB7CiAgICAgIHVzZXJJbnB1dDogYXJ0aWNsZVRleHQKICAgIH0KICB9LAogIGNvbXB1dGVkIDp7CiAgICBhcnRpY2xlVGV4dCAoKSB7CiAgICAgIHJldHVybiB0aGlzLiRzdG9yZS5zdGF0ZS5hcnRpY2xlLmNvbnRlbnQKICAgIH0KICB9LAogIHdhdGNoOiB7CiAgICBhcnRpY2xlVGV4dDogZnVuY3Rpb24oKXsKICAgICAgICB0aGlzLiRzdG9yZS5jb21taXQoJ3VwZGF0ZVRleHQnLCB0aGlzLmFydGljbGVUZXh0KQogICAgfQogIH0KfQo="},{"version":3,"sources":["UserInput.vue"],"names":[],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"UserInput.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <textarea v-model='userInput' placeholder=\"edit me\" id='textbox'></textarea>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'UserInput',\n props: {\n },\n data: function(){\n return {\n userInput: articleText\n }\n },\n computed :{\n articleText () {\n return this.$store.state.article.content\n }\n },\n watch: {\n articleText: function(){\n this.$store.commit('updateText', this.articleText)\n }\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\ntextarea{\n width: 80%;\n height: 800px;\n resize : none;\n padding: 12px 20px;\n margin-bottom: 50px;\n border: 2px solid red;\n border-radius: 4px;\n}\n</style>\n"]}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue?vue&type=template&id=6645ccba&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","mtime":1594818899331},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxkaXY+CiAgICA8YXJ0aWNsZS1mb3JtPjwvYXJ0aWNsZS1mb3JtPgogICAgPFVzZXJJbnB1dCBAdXNlci11cGRhdGU9J3VzZXJVcGRhdGUnIGNsYXNzPSJpbnB1dC1hcmVhIGNvbHVtbiI+PC9Vc2VySW5wdXQ+CiAgICA8dnVlLW1hcmtkb3duIDpzb3VyY2U9J3VzZXJ0ZXh0JyBjbGFzcz0iY29sdW1uIiBpZD0ncmVuZGVyLWFyZWEnPnt7IHVzZXJ0ZXh0IH19PC92dWUtbWFya2Rvd24+CiAgICA8cHVibGlzaC1idXR0b24gQHVwZGF0ZT0nYXJ0aWNsZVVwYXRlJz48L3B1Ymxpc2gtYnV0dG9uPgo8L2Rpdj4K"},null]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue?vue&type=template&id=6645ccba&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","mtime":1594995585908},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxkaXY+CiAgICA8YXJ0aWNsZS1mb3JtPjwvYXJ0aWNsZS1mb3JtPgogICAgPFVzZXJJbnB1dCBjbGFzcz0iaW5wdXQtYXJlYSBjb2x1bW4iPjwvVXNlcklucHV0PgogICAgPHZ1ZS1tYXJrZG93biA6c291cmNlPSdhcnRpY2xlVGV4dCcgY2xhc3M9ImNvbHVtbiIgaWQ9J3JlbmRlci1hcmVhJz48L3Z1ZS1tYXJrZG93bj4KICAgIDxwdWJsaXNoLWJ1dHRvbiBAdXBkYXRlPSdhcnRpY2xlVXBhdGUnPjwvcHVibGlzaC1idXR0b24+CjwvZGl2Pgo="},null]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/ArticleForm.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/ArticleForm.vue","mtime":1594821529736},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCgpleHBvcnQgZGVmYXVsdCB7CiAgbmFtZTogJ0FydGljbGVGb3JtJywKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKXsKICAgIHJldHVybiB7CiAgICB9CiAgfSwKfQo="},{"version":3,"sources":["ArticleForm.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"ArticleForm.vue","sourceRoot":"components","sourcesContent":["<template>\n <form>\n <div class='form-group'>\n <label for='author' value='Author'></label>\n <input type='text' name='author' placeholder=\"John Doe\" class='form-control form-control-lg'>\n </div>\n <div class='form-group'>\n <label for='date-published' value='Publication date'></label>\n <input type='date' name='date-published' class='form-control form-control-sm'><br>\n </div>\n\n <div class='form-group'>\n <label for='date-modified' value='Modification date'></label>\n <input type='date' name='date-modified' class='form-control form-control-sm'><br>\n </div>\n <div class='form-grou form-control-lg'>\n <label for='article-title' value='Article title'></label>\n <input type='text' name='article-title' class='form-control form-control-lg'>\n </div>\n </form>\n</template>\n\n<script>\n\nexport default {\n name: 'ArticleForm',\n props: {\n },\n data: function(){\n return {\n }\n },\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\nform {\n display: block;\n margin-bottom: 50px;\n width: 50%;\n}\n\nform > div > input {\n max-width: 50%;\n}\n</style>\n"]}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/ArticleForm.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/ArticleForm.vue","mtime":1594994856853},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnbWV0YUZvcm0nLAogIHByb3BzOiB7CiAgfSwKICBjb21wdXRlZDogewogICAgYXV0aG9yICgpewogICAgICAgIGdldCgpCiAgICAgICAgewogICAgICAgICAgICByZXR1cm4gdGhpcy4kc3RvcmUuc3RhdGUuYXJ0aWNsZS5tZXRhLmF1dGhvcgogICAgICAgIH0sCiAgICAgICAgc2V0KHZhbHVlKQogICAgICAgIHsKICAgICAgICAgICAgdGhpcy52YWx1ZSA9IHZhbHVlCiAgICAgICAgfQogICAgfSwKICAgIGRhdGVfbW9kaWZpZWQgKCl7CiAgICAgIHJldHVybiB0aGlzLiRzdG9yZS5zdGF0ZS5hcnRpY2xlLm1ldGEuZGF0ZV9tb2RpZmllZAogICAgfSwKICAgIGRhdGVfY3JlYXRlZCAoKXsKICAgICAgcmV0dXJuIHRoaXMuJHN0b3JlLnN0YXRlLmFydGljbGUubWV0YS5kYXRlX2NyZWF0ZWQKICAgIH0sCiAgICB0aXRsZSAoKXsKICAgICAgcmV0dXJuIHRoaXMuJHN0b3JlLnN0YXRlLmFydGljbGUubWV0YS50aXRsZQogICAgfSwKICB9LAogIG1ldGhvZHMgOiB7CiAgICBzZXRUb2RheSA6IGZ1bmN0aW9uKGRhdGUpIHsKICAgICAgY29uc29sZS5sb2codGhpcy4kc3RvcmUuc3RhdGUuYXJ0aWNsZS5tZXRhKQogICAgICB0aGlzLiRzdG9yZS5jb21taXQoJ3RvZGF5JywgZGF0ZSkKICAgIH0KICB9Cgp9Cg=="},{"version":3,"sources":["ArticleForm.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA","file":"ArticleForm.vue","sourceRoot":"components","sourcesContent":["<template>\n <form>\n <div class='form-group'>\n <label for='author'>Author</label>\n <input v-model='author' type='text' name='author' id='author' placeholder=\"John Doe\" class='form-control form-control-lg'>\n </div>\n <div class='form-group'>\n <label for='date-published'>Publication date</label>\n <input v-model='date_created' type='date' name='date-published' id='date-published' class='form-control form-control-sm'>\n <input type='button' class='btn btn-default today-button' @click.prevent=\"setToday(1)\" value='today'><br>\n </div>\n\n <div class='form-group'>\n <label for='date-modified'>Modification date</label>\n <input v-model='date_modified' type='date' name='date-modified' id='date-modified' class='form-control form-control-sm'>\n <input type='button' class='btn btn-default today-button' @click.prevent=\"setToday(2)\" value='today'><br>\n </div>\n <div class='form-group'>\n <label for='meta-title'>meta title</label>\n <input v-model='title' type='text' name='meta-title' id='meta-title' placeholder=\"What's up ?\" class='form-control form-control-lg'>\n </div>\n </form>\n</template>\n\n<script>\nexport default {\n name: 'metaForm',\n props: {\n },\n computed: {\n author (){\n get()\n {\n return this.$store.state.article.meta.author\n },\n set(value)\n {\n this.value = value\n }\n },\n date_modified (){\n return this.$store.state.article.meta.date_modified\n },\n date_created (){\n return this.$store.state.article.meta.date_created\n },\n title (){\n return this.$store.state.article.meta.title\n },\n },\n methods : {\n setToday : function(date) {\n console.log(this.$store.state.article.meta)\n this.$store.commit('today', date)\n }\n }\n\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\nform {\n display: block;\n margin-bottom: 50px;\n width: 50%;\n}\n\nform > div > input {\n max-width: 50%;\n}\n\n.today-button {\n border: solid;\n border-width: 1px;\n display: inline-block;\n}\n</style>\n"]}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js??ref--13-0!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","mtime":1594818899331},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tICIuL1VzZXJJbnB1dFBhZ2UudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY2NDVjY2JhJnNjb3BlZD10cnVlJiIKaW1wb3J0IHNjcmlwdCBmcm9tICIuL1VzZXJJbnB1dFBhZ2UudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJiIKZXhwb3J0ICogZnJvbSAiLi9Vc2VySW5wdXRQYWdlLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmltcG9ydCBzdHlsZTAgZnJvbSAiLi9Vc2VySW5wdXRQYWdlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPTY2NDVjY2JhJnNjb3BlZD10cnVlJmxhbmc9Y3NzJiIKCgovKiBub3JtYWxpemUgY29tcG9uZW50ICovCmltcG9ydCBub3JtYWxpemVyIGZyb20gIiEuLi8uLi8uLi8uLi8uLi8uLi8uLi91c3IvbG9jYWwvbGliL25vZGVfbW9kdWxlcy9AdnVlL2NsaS1zZXJ2aWNlLWdsb2JhbC9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvcnVudGltZS9jb21wb25lbnROb3JtYWxpemVyLmpzIgp2YXIgY29tcG9uZW50ID0gbm9ybWFsaXplcigKICBzY3JpcHQsCiAgcmVuZGVyLAogIHN0YXRpY1JlbmRlckZucywKICBmYWxzZSwKICBudWxsLAogICI2NjQ1Y2NiYSIsCiAgbnVsbAogIAopCgovKiBob3QgcmVsb2FkICovCmlmIChtb2R1bGUuaG90KSB7CiAgdmFyIGFwaSA9IHJlcXVpcmUoIi91c3IvbG9jYWwvbGliL25vZGVfbW9kdWxlcy9AdnVlL2NsaS1zZXJ2aWNlLWdsb2JhbC9ub2RlX21vZHVsZXMvdnVlLWhvdC1yZWxvYWQtYXBpL2Rpc3QvaW5kZXguanMiKQogIGFwaS5pbnN0YWxsKHJlcXVpcmUoJ3Z1ZScpKQogIGlmIChhcGkuY29tcGF0aWJsZSkgewogICAgbW9kdWxlLmhvdC5hY2NlcHQoKQogICAgaWYgKCFhcGkuaXNSZWNvcmRlZCgnNjY0NWNjYmEnKSkgewogICAgICBhcGkuY3JlYXRlUmVjb3JkKCc2NjQ1Y2NiYScsIGNvbXBvbmVudC5vcHRpb25zKQogICAgfSBlbHNlIHsKICAgICAgYXBpLnJlbG9hZCgnNjY0NWNjYmEnLCBjb21wb25lbnQub3B0aW9ucykKICAgIH0KICAgIG1vZHVsZS5ob3QuYWNjZXB0KCIuL1VzZXJJbnB1dFBhZ2UudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY2NDVjY2JhJnNjb3BlZD10cnVlJiIsIGZ1bmN0aW9uICgpIHsKICAgICAgYXBpLnJlcmVuZGVyKCc2NjQ1Y2NiYScsIHsKICAgICAgICByZW5kZXI6IHJlbmRlciwKICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZucwogICAgICB9KQogICAgfSkKICB9Cn0KY29tcG9uZW50Lm9wdGlvbnMuX19maWxlID0gImNvbXBvbmVudHMvVXNlcklucHV0UGFnZS52dWUiCmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRz"}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js??ref--13-0!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","mtime":1594995585908},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tICIuL1VzZXJJbnB1dFBhZ2UudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY2NDVjY2JhJnNjb3BlZD10cnVlJiIKaW1wb3J0IHNjcmlwdCBmcm9tICIuL1VzZXJJbnB1dFBhZ2UudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJiIKZXhwb3J0ICogZnJvbSAiLi9Vc2VySW5wdXRQYWdlLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmltcG9ydCBzdHlsZTAgZnJvbSAiLi9Vc2VySW5wdXRQYWdlLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPTY2NDVjY2JhJnNjb3BlZD10cnVlJmxhbmc9Y3NzJiIKCgovKiBub3JtYWxpemUgY29tcG9uZW50ICovCmltcG9ydCBub3JtYWxpemVyIGZyb20gIiEuLi8uLi8uLi8uLi8uLi8uLi8uLi91c3IvbG9jYWwvbGliL25vZGVfbW9kdWxlcy9AdnVlL2NsaS1zZXJ2aWNlLWdsb2JhbC9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvcnVudGltZS9jb21wb25lbnROb3JtYWxpemVyLmpzIgp2YXIgY29tcG9uZW50ID0gbm9ybWFsaXplcigKICBzY3JpcHQsCiAgcmVuZGVyLAogIHN0YXRpY1JlbmRlckZucywKICBmYWxzZSwKICBudWxsLAogICI2NjQ1Y2NiYSIsCiAgbnVsbAogIAopCgovKiBob3QgcmVsb2FkICovCmlmIChtb2R1bGUuaG90KSB7CiAgdmFyIGFwaSA9IHJlcXVpcmUoIi91c3IvbG9jYWwvbGliL25vZGVfbW9kdWxlcy9AdnVlL2NsaS1zZXJ2aWNlLWdsb2JhbC9ub2RlX21vZHVsZXMvdnVlLWhvdC1yZWxvYWQtYXBpL2Rpc3QvaW5kZXguanMiKQogIGFwaS5pbnN0YWxsKHJlcXVpcmUoJ3Z1ZScpKQogIGlmIChhcGkuY29tcGF0aWJsZSkgewogICAgbW9kdWxlLmhvdC5hY2NlcHQoKQogICAgaWYgKCFhcGkuaXNSZWNvcmRlZCgnNjY0NWNjYmEnKSkgewogICAgICBhcGkuY3JlYXRlUmVjb3JkKCc2NjQ1Y2NiYScsIGNvbXBvbmVudC5vcHRpb25zKQogICAgfSBlbHNlIHsKICAgICAgYXBpLnJlbG9hZCgnNjY0NWNjYmEnLCBjb21wb25lbnQub3B0aW9ucykKICAgIH0KICAgIG1vZHVsZS5ob3QuYWNjZXB0KCIuL1VzZXJJbnB1dFBhZ2UudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTY2NDVjY2JhJnNjb3BlZD10cnVlJiIsIGZ1bmN0aW9uICgpIHsKICAgICAgYXBpLnJlcmVuZGVyKCc2NjQ1Y2NiYScsIHsKICAgICAgICByZW5kZXI6IHJlbmRlciwKICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZucwogICAgICB9KQogICAgfSkKICB9Cn0KY29tcG9uZW50Lm9wdGlvbnMuX19maWxlID0gImNvbXBvbmVudHMvVXNlcklucHV0UGFnZS52dWUiCmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRz"}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/App.vue?vue&type=style&index=0&lang=css&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/App.vue","mtime":1594821849937},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCiogewogIGZvbnQtZmFtaWx5OiAiR2lsbCBTYW5zIEV4dHJhYm9sZCIsIHNhbnMtc2VyaWY7Cn0KCi5jb2x1bW4gewogICAgd2lkdGg6IDUwJTsKICAgIGZsb2F0OiBsZWZ0Owp9CgojbWFpbi1jb250ZW50IHsKICBoZWlnaHQ6IDEwMCU7Cn0KCiNzdWItY29udGVudCB7CiAgbWFyZ2luLWxlZnQ6IDUwcHgKfQoKI3JlbmRlci1hcmVhIHsKICBwYWRkaW5nLWJvdHRvbSA6IDUwcHg7Cn0KCiN0b3AtYmFuZCB7CiAgd2lkdGg6MTAwJTsKICBoZWlnaHQ6NDBweDsKICBiYWNrZ3JvdW5kIDogbGluZWFyLWdyYWRpZW50KCNlNmU2ZmYsICNmZmZmZmYpOwp9CgouZmFkZS1lbnRlci1hY3RpdmUsIC5mYWRlLWxlYXZlLWFjdGl2ZSB7CiAgdHJhbnNpdGlvbjogb3BhY2l0eSAuNXM7Cn0KLmZhZGUtZW50ZXIsIC5mYWRlLWxlYXZlLXRvIC8qIC5mYWRlLWxlYXZlLWFjdGl2ZSBiZWxvdyB2ZXJzaW9uIDIuMS44ICovIHsKICBvcGFjaXR5OiAwOwp9CgoubmF2IHsKICB0ZXh0LWFsaWduOiBjZW50ZXI7Cn0KCg=="},{"version":3,"sources":["App.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","file":"App.vue","sourceRoot":".","sourcesContent":["<template>\n <div id='main-content'>\n <div id='top-band'></div>\n <ul class='nav'>\n <li class='nav-item'>\n <router-link to='/edit' class='nav-link'>Edit an article</router-link>\n </li>\n <li class='nav-item'>\n <router-link to='/write' class='nav-link'>New article</router-link>\n </li>\n </ul>\n <br>\n <ul>\n <li>Form : add choice for author, etc.</li>\n <li>fetch articles</li>\n </ul>\n <br>\n <transition name=\"fade\">\n <router-view @article-save='saveText' id='sub-content'></router-view>\n </transition>\n </div>\n</template>s\n\n<script>\n\nexport default {\n name: 'App',\n components: {\n },\n data: function() {\n return{\n usertext: '',\n }\n },\n methods: {\n saveText : function (content){\n this.usertext = content['article-content']\n }\n }\n}\n</script>\n\n<style>\n* {\n font-family: \"Gill Sans Extrabold\", sans-serif;\n}\n\n.column {\n width: 50%;\n float: left;\n}\n\n#main-content {\n height: 100%;\n}\n\n#sub-content {\n margin-left: 50px\n}\n\n#render-area {\n padding-bottom : 50px;\n}\n\n#top-band {\n width:100%;\n height:40px;\n background : linear-gradient(#e6e6ff, #ffffff);\n}\n\n.fade-enter-active, .fade-leave-active {\n transition: opacity .5s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n opacity: 0;\n}\n\n.nav {\n text-align: center;\n}\n\n</style>"]}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/App.vue?vue&type=style&index=0&lang=css&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/App.vue","mtime":1594989734695},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKKiB7CiAgZm9udC1mYW1pbHk6ICJHaWxsIFNhbnMgRXh0cmFib2xkIiwgc2Fucy1zZXJpZjsKfQoKLmNvbHVtbiB7CiAgICB3aWR0aDogNTAlOwogICAgZmxvYXQ6IGxlZnQ7Cn0KCiNtYWluLWNvbnRlbnQgewogIGhlaWdodDogMTAwJTsKfQoKI3N1Yi1jb250ZW50IHsKICBtYXJnaW4tbGVmdDogNTBweAp9CgojcmVuZGVyLWFyZWEgewogIHBhZGRpbmctYm90dG9tIDogNTBweDsKfQoKI3RvcC1iYW5kIHsKICB3aWR0aDoxMDAlOwogIGhlaWdodDo0MHB4OwogIGJhY2tncm91bmQgOiBsaW5lYXItZ3JhZGllbnQoI2U2ZTZmZiwgI2ZmZmZmZik7Cn0KCi5mYWRlLWVudGVyLWFjdGl2ZSwgLmZhZGUtbGVhdmUtYWN0aXZlIHsKICB0cmFuc2l0aW9uOiBvcGFjaXR5IC41czsKfQouZmFkZS1lbnRlciwgLmZhZGUtbGVhdmUtdG8gLyogLmZhZGUtbGVhdmUtYWN0aXZlIGJlbG93IHZlcnNpb24gMi4xLjggKi8gewogIG9wYWNpdHk6IDA7Cn0KCg=="},{"version":3,"sources":["App.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA","file":"App.vue","sourceRoot":".","sourcesContent":["<template>\n <div id='main-content'>\n <div id='top-band'></div>\n <ul class='nav'>\n <li class='nav-item'>\n <router-link to='/edit' class='nav-link'>Edit an article</router-link>\n </li>\n <li class='nav-item'>\n <a href='#' @click='resetInfos' class='nav-link'>New article</router-link>\n </li>\n </ul>\n <br>\n <br>\n <transition name=\"fade\">\n <router-view id='sub-content'></router-view>\n </transition>\n </div>\n</template>s\n\n<script>\n\nexport default {\n name: 'App',\n components: {\n },\n data: function() {\n return{\n }\n },\n methods: {\n resetInfos: function() {\n this.$store.commit('resetAll')\n this.$router.push('/write')\n }\n }\n}\n</script>\n\n<style>\n* {\n font-family: \"Gill Sans Extrabold\", sans-serif;\n}\n\n.column {\n width: 50%;\n float: left;\n}\n\n#main-content {\n height: 100%;\n}\n\n#sub-content {\n margin-left: 50px\n}\n\n#render-area {\n padding-bottom : 50px;\n}\n\n#top-band {\n width:100%;\n height:40px;\n background : linear-gradient(#e6e6ff, #ffffff);\n}\n\n.fade-enter-active, .fade-leave-active {\n transition: opacity .5s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n opacity: 0;\n}\n\n</style>"]}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue?vue&type=template&id=747ef394&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue","mtime":1594818481774},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxkaXY+CiAgPHA+RWRpdCBhbiBleGlzdGluZyBwYWdlPC9wPgogIDx1bD4KICAgIDxsaT5MaXN0IGFsbCBleGlzaXRpbmcgYXJ0aWNsZXMgKGZldGNoIHdpdGggQUpBWCByZXF1ZXN0KSA8L2xpPgogIDwvdWw+CjwvZGl2Pgo="},null]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue?vue&type=template&id=747ef394&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue","mtime":1594989886747},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CjxkaXY+CiAgICAgIDxkaXYgY2xhc3M9ImNhcmQiIHYtZm9yPSJhcnRpY2xlIGluIGFydGljbGVzIiA6a2V5PSdhcnRpY2xlLmlkJz4KICAgICAgICA8aW1nIGNsYXNzPSdjYXJkLWltZy10b3AnIHNyYz0nLi4vYXNzZXRzL3F1ZXN0aW9uJz4KICAgICAgICA8ZGl2IGNsYXNzPSdjYXJkLWJvZHknPgogICAgICAgICAgPGg1IGNsYXNzPSdjYXJkLXRpdGxlJz57eyBhcnRpY2xlLnRpdGxlIH19PC9oNT4KICAgICAgICAgIDxwIGNsYXNzPSdjYXJkLXRleHQnPiBieSB7eyBhcnRpY2xlLmF1dGhvciB9fTwvcD4KICAgICAgICAgIDxhIGNsYXNzPSdidG4gYnRuLXByaW1hcnknIGhyZWY9IiMiIEBjbGljay5wcmV2ZW50PSJsb2FkQ29udGVudChhcnRpY2xlLmlkKSI+IEVkaXQgPC9hPgogICAgICAgIDwvZGl2PgogICAgICA8L2Rpdj4KPC9kaXY+Cg=="},null]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue?vue&type=style&index=0&id=6abff9d2&scoped=true&lang=css&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue","mtime":1594823430757},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCiNwdWJsaXNoZWQtbWVzc2FnZSB7CiAgbWF4LXdpZHRoOiA4MCU7CiAgZGlzcGxheTogYmxvY2s7CiAgdGV4dC1hbGlnbjogY2VudGVyOwp9Cg=="},{"version":3,"sources":["PublishedPage.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA;AACA;AACA;AACA;AACA","file":"PublishedPage.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <p class='alert alert-primary' id='published-message'>Your article was published !</p>\n <a @click='generateMDFile' value='Download .md file' class='btn btn-secondary' id='download-button'>Download !</a>\n <vue-markdown :source='this.$parent.usertext'></vue-markdown>\n\n </div>\n</template>\n\n<script>\nimport VueMarkdown from '../../node_modules/vue-markdown/src/VueMarkdown.js'\n\nexport default {\n components: {\n VueMarkdown,\n },\n name: 'PublishedPage',\n props: {\n },\n data: function(){\n return {\n ready: false,\n }\n },\n methods : {\n if(this.ready){\n return\n }\n generateMDFile : function(){\n let file = new Blob(\n [this.$parent.usertext],\n {type: 'text/text'}\n )\n let fileURL = URL.createObjectURL(file)\n // create the link\n const linkElement = document.getElementById('download-button')\n\n // add the file url\n linkElement.setAttribute('href', fileURL)\n linkElement.innerHTML = 'Ready !'\n linkElement.setAttribute('download', 'article.md')\n this.ready = true\n },\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\n#published-message {\n max-width: 80%;\n display: block;\n text-align: center;\n}\n</style>\n"]}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue?vue&type=style&index=0&id=6abff9d2&scoped=true&lang=css&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue","mtime":1594991999773},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKI3B1Ymxpc2hlZC1tZXNzYWdlIHsKICBtYXgtd2lkdGg6IDgwJTsKICBkaXNwbGF5OiBibG9jazsKICB0ZXh0LWFsaWduOiBjZW50ZXI7Cn0KCmhyIHsKICBtYXgtd2lkdGg6IDgwJTsKICBtYXJnaW46IDUwcHg7Cn0KCiNhcnRpY2xlLXRpdGxlOmJlZm9yZSB7CiAgY29udGVudDogIsKrICIKfQoKI2FydGljbGUtdGl0bGU6YWZ0ZXIgewogIGNvbnRlbnQ6ICIgwrsiCn0K"},{"version":3,"sources":["PublishedPage.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA","file":"PublishedPage.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <p class='alert alert-primary' id='published-message'>Your article was published !</p>\n <a @click.prevent.once='generateMDFile' value='Download .md file' class='btn btn-secondary' id='download-button'>Download !</a>\n <br>\n <hr>\n <br>\n <span>{{ author }} wrote </span>on {{ date_created }}:</span>\n <hr>\n <h1 id='article-title'>{{ title}}</h1>\n <vue-markdown :source='articleText'></vue-markdown>\n\n </div>\n</template>\n\n<script>\nimport VueMarkdown from '../../node_modules/vue-markdown/src/VueMarkdown.js'\n\nexport default {\n components: {\n VueMarkdown,\n },\n name: 'PublishedPage',\n props: {\n },\n data: function(){\n return {\n ready: false,\n }\n },\n computed: {\n articleText () {\n return this.$store.state.article.content\n },\n author () {\n return this.$store.state.article.meta.author\n },\n date_created () {\n return this.$store.state.article.meta.date_created\n },\n title () {\n return this.$store.state.article.meta.title\n }\n },\n methods : {\n generateMDFile : function(){\n if(this.ready){\n return\n }\n let file = new Blob(\n [this.articleText],\n {type: 'text/text'}\n )\n let fileURL = URL.createObjectURL(file)\n // create the link\n const linkElement = document.getElementById('download-button')\n\n // add the file url\n linkElement.setAttribute('href', fileURL)\n linkElement.innerHTML = 'Ready !'\n linkElement.setAttribute('download', 'article.md')\n this.ready = true\n },\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\n#published-message {\n max-width: 80%;\n display: block;\n text-align: center;\n}\n\nhr {\n max-width: 80%;\n margin: 50px;\n}\n\n#article-title:before {\n content: \"« \"\n}\n\n#article-title:after {\n content: \" »\"\n}\n</style>\n"]}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue?vue&type=template&id=747ef394&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue","mtime":1594818481774},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkgewogIHZhciBfdm0gPSB0aGlzCiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oCiAgcmV0dXJuIF92bS5fbSgwKQp9CnZhciBzdGF0aWNSZW5kZXJGbnMgPSBbCiAgZnVuY3Rpb24oKSB7CiAgICB2YXIgX3ZtID0gdGhpcwogICAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgICB2YXIgX2MgPSBfdm0uX3NlbGYuX2MgfHwgX2gKICAgIHJldHVybiBfYygiZGl2IiwgWwogICAgICBfYygicCIsIFtfdm0uX3YoIkVkaXQgYW4gZXhpc3RpbmcgcGFnZSIpXSksCiAgICAgIF9jKCJ1bCIsIFsKICAgICAgICBfYygibGkiLCBbCiAgICAgICAgICBfdm0uX3YoIkxpc3QgYWxsIGV4aXNpdGluZyBhcnRpY2xlcyAoZmV0Y2ggd2l0aCBBSkFYIHJlcXVlc3QpICIpCiAgICAgICAgXSkKICAgICAgXSkKICAgIF0pCiAgfQpdCnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZQoKZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfQ=="}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue?vue&type=template&id=747ef394&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/EditPage.vue","mtime":1594989886747},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkgewogIHZhciBfdm0gPSB0aGlzCiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oCiAgcmV0dXJuIF9jKAogICAgImRpdiIsCiAgICBfdm0uX2woX3ZtLmFydGljbGVzLCBmdW5jdGlvbihhcnRpY2xlKSB7CiAgICAgIHJldHVybiBfYygiZGl2IiwgeyBrZXk6IGFydGljbGUuaWQsIHN0YXRpY0NsYXNzOiAiY2FyZCIgfSwgWwogICAgICAgIF9jKCJpbWciLCB7CiAgICAgICAgICBzdGF0aWNDbGFzczogImNhcmQtaW1nLXRvcCIsCiAgICAgICAgICBhdHRyczogeyBzcmM6IHJlcXVpcmUoIi4uL2Fzc2V0cy9xdWVzdGlvbiIpIH0KICAgICAgICB9KSwKICAgICAgICBfYygiZGl2IiwgeyBzdGF0aWNDbGFzczogImNhcmQtYm9keSIgfSwgWwogICAgICAgICAgX2MoImg1IiwgeyBzdGF0aWNDbGFzczogImNhcmQtdGl0bGUiIH0sIFsKICAgICAgICAgICAgX3ZtLl92KF92bS5fcyhhcnRpY2xlLnRpdGxlKSkKICAgICAgICAgIF0pLAogICAgICAgICAgX2MoInAiLCB7IHN0YXRpY0NsYXNzOiAiY2FyZC10ZXh0IiB9LCBbCiAgICAgICAgICAgIF92bS5fdigiIGJ5ICIgKyBfdm0uX3MoYXJ0aWNsZS5hdXRob3IpKQogICAgICAgICAgXSksCiAgICAgICAgICBfYygKICAgICAgICAgICAgImEiLAogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6ICJidG4gYnRuLXByaW1hcnkiLAogICAgICAgICAgICAgIGF0dHJzOiB7IGhyZWY6ICIjIiB9LAogICAgICAgICAgICAgIG9uOiB7CiAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24oJGV2ZW50KSB7CiAgICAgICAgICAgICAgICAgICRldmVudC5wcmV2ZW50RGVmYXVsdCgpCiAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0ubG9hZENvbnRlbnQoYXJ0aWNsZS5pZCkKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIFtfdm0uX3YoIiBFZGl0ICIpXQogICAgICAgICAgKQogICAgICAgIF0pCiAgICAgIF0pCiAgICB9KSwKICAgIDAKICApCn0KdmFyIHN0YXRpY1JlbmRlckZucyA9IFtdCnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZQoKZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfQ=="}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue","mtime":1594823430757},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBWdWVNYXJrZG93biBmcm9tICcuLi8uLi9ub2RlX21vZHVsZXMvdnVlLW1hcmtkb3duL3NyYy9WdWVNYXJrZG93bi5qcycKCmV4cG9ydCBkZWZhdWx0IHsKICBjb21wb25lbnRzOiB7CiAgICBWdWVNYXJrZG93biwKICB9LAogIG5hbWU6ICdQdWJsaXNoZWRQYWdlJywKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKXsKICAgIHJldHVybiB7CiAgICAgIHJlYWR5OiBmYWxzZSwKICAgIH0KICB9LAogIG1ldGhvZHMgOiB7CiAgICBpZih0aGlzLnJlYWR5KXsKICAgICAgcmV0dXJuCiAgICB9CiAgICBnZW5lcmF0ZU1ERmlsZSA6IGZ1bmN0aW9uKCl7CiAgICAgIGxldCBmaWxlID0gbmV3IEJsb2IoCiAgICAgICAgW3RoaXMuJHBhcmVudC51c2VydGV4dF0sCiAgICAgICAge3R5cGU6ICd0ZXh0L3RleHQnfQogICAgICApCiAgICAgIGxldCBmaWxlVVJMID0gVVJMLmNyZWF0ZU9iamVjdFVSTChmaWxlKQogICAgICAvLyBjcmVhdGUgdGhlIGxpbmsKICAgICAgY29uc3QgbGlua0VsZW1lbnQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnZG93bmxvYWQtYnV0dG9uJykKCiAgICAgIC8vIGFkZCB0aGUgZmlsZSB1cmwKICAgICAgbGlua0VsZW1lbnQuc2V0QXR0cmlidXRlKCdocmVmJywgZmlsZVVSTCkKICAgICAgbGlua0VsZW1lbnQuaW5uZXJIVE1MID0gJ1JlYWR5ICEnCiAgICAgIGxpbmtFbGVtZW50LnNldEF0dHJpYnV0ZSgnZG93bmxvYWQnLCAnYXJ0aWNsZS5tZCcpCiAgICAgIHRoaXMucmVhZHkgPSB0cnVlCiAgICB9LAogIH0KfQo="},{"version":3,"sources":["PublishedPage.vue"],"names":[],"mappings":";;;;;;;;;;AAUA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"PublishedPage.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <p class='alert alert-primary' id='published-message'>Your article was published !</p>\n <a @click='generateMDFile' value='Download .md file' class='btn btn-secondary' id='download-button'>Download !</a>\n <vue-markdown :source='this.$parent.usertext'></vue-markdown>\n\n </div>\n</template>\n\n<script>\nimport VueMarkdown from '../../node_modules/vue-markdown/src/VueMarkdown.js'\n\nexport default {\n components: {\n VueMarkdown,\n },\n name: 'PublishedPage',\n props: {\n },\n data: function(){\n return {\n ready: false,\n }\n },\n methods : {\n if(this.ready){\n return\n }\n generateMDFile : function(){\n let file = new Blob(\n [this.$parent.usertext],\n {type: 'text/text'}\n )\n let fileURL = URL.createObjectURL(file)\n // create the link\n const linkElement = document.getElementById('download-button')\n\n // add the file url\n linkElement.setAttribute('href', fileURL)\n linkElement.innerHTML = 'Ready !'\n linkElement.setAttribute('download', 'article.md')\n this.ready = true\n },\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\n#published-message {\n max-width: 80%;\n display: block;\n text-align: center;\n}\n</style>\n"]}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishedPage.vue","mtime":1594991999773},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBWdWVNYXJrZG93biBmcm9tICcuLi8uLi9ub2RlX21vZHVsZXMvdnVlLW1hcmtkb3duL3NyYy9WdWVNYXJrZG93bi5qcycKCmV4cG9ydCBkZWZhdWx0IHsKICBjb21wb25lbnRzOiB7CiAgICBWdWVNYXJrZG93biwKICB9LAogIG5hbWU6ICdQdWJsaXNoZWRQYWdlJywKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKXsKICAgIHJldHVybiB7CiAgICAgIHJlYWR5OiBmYWxzZSwKICAgIH0KICB9LAogIGNvbXB1dGVkOiB7CiAgICBhcnRpY2xlVGV4dCAoKSB7CiAgICAgIHJldHVybiB0aGlzLiRzdG9yZS5zdGF0ZS5hcnRpY2xlLmNvbnRlbnQKICAgIH0sCiAgICBhdXRob3IgKCkgewogICAgICByZXR1cm4gdGhpcy4kc3RvcmUuc3RhdGUuYXJ0aWNsZS5tZXRhLmF1dGhvcgogICAgfSwKICAgIGRhdGVfY3JlYXRlZCAoKSB7CiAgICAgIHJldHVybiB0aGlzLiRzdG9yZS5zdGF0ZS5hcnRpY2xlLm1ldGEuZGF0ZV9jcmVhdGVkCiAgICB9LAogICAgdGl0bGUgKCkgewogICAgICByZXR1cm4gdGhpcy4kc3RvcmUuc3RhdGUuYXJ0aWNsZS5tZXRhLnRpdGxlCiAgICB9CiAgfSwKICBtZXRob2RzIDogewogICAgZ2VuZXJhdGVNREZpbGUgOiBmdW5jdGlvbigpewogICAgICBpZih0aGlzLnJlYWR5KXsKICAgICAgICByZXR1cm4KICAgICAgfQogICAgICBsZXQgZmlsZSA9IG5ldyBCbG9iKAogICAgICAgIFt0aGlzLmFydGljbGVUZXh0XSwKICAgICAgICB7dHlwZTogJ3RleHQvdGV4dCd9CiAgICAgICkKICAgICAgbGV0IGZpbGVVUkwgPSBVUkwuY3JlYXRlT2JqZWN0VVJMKGZpbGUpCiAgICAgIC8vIGNyZWF0ZSB0aGUgbGluawogICAgICBjb25zdCBsaW5rRWxlbWVudCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdkb3dubG9hZC1idXR0b24nKQoKICAgICAgLy8gYWRkIHRoZSBmaWxlIHVybAogICAgICBsaW5rRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ2hyZWYnLCBmaWxlVVJMKQogICAgICBsaW5rRWxlbWVudC5pbm5lckhUTUwgPSAnUmVhZHkgIScKICAgICAgbGlua0VsZW1lbnQuc2V0QXR0cmlidXRlKCdkb3dubG9hZCcsICdhcnRpY2xlLm1kJykKICAgICAgdGhpcy5yZWFkeSA9IHRydWUKICAgIH0sCiAgfQp9Cg=="},{"version":3,"sources":["PublishedPage.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgBA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"PublishedPage.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <p class='alert alert-primary' id='published-message'>Your article was published !</p>\n <a @click.prevent.once='generateMDFile' value='Download .md file' class='btn btn-secondary' id='download-button'>Download !</a>\n <br>\n <hr>\n <br>\n <span>{{ author }} wrote </span>on {{ date_created }}:</span>\n <hr>\n <h1 id='article-title'>{{ title}}</h1>\n <vue-markdown :source='articleText'></vue-markdown>\n\n </div>\n</template>\n\n<script>\nimport VueMarkdown from '../../node_modules/vue-markdown/src/VueMarkdown.js'\n\nexport default {\n components: {\n VueMarkdown,\n },\n name: 'PublishedPage',\n props: {\n },\n data: function(){\n return {\n ready: false,\n }\n },\n computed: {\n articleText () {\n return this.$store.state.article.content\n },\n author () {\n return this.$store.state.article.meta.author\n },\n date_created () {\n return this.$store.state.article.meta.date_created\n },\n title () {\n return this.$store.state.article.meta.title\n }\n },\n methods : {\n generateMDFile : function(){\n if(this.ready){\n return\n }\n let file = new Blob(\n [this.articleText],\n {type: 'text/text'}\n )\n let fileURL = URL.createObjectURL(file)\n // create the link\n const linkElement = document.getElementById('download-button')\n\n // add the file url\n linkElement.setAttribute('href', fileURL)\n linkElement.innerHTML = 'Ready !'\n linkElement.setAttribute('download', 'article.md')\n this.ready = true\n },\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\n#published-message {\n max-width: 80%;\n display: block;\n text-align: center;\n}\n\nhr {\n max-width: 80%;\n margin: 50px;\n}\n\n#article-title:before {\n content: \"« \"\n}\n\n#article-title:after {\n content: \" »\"\n}\n</style>\n"]}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js??ref--13-0!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","mtime":1594817544156},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tICIuL1VzZXJJbnB1dC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NmU4MjgwNzQmc2NvcGVkPXRydWUmIgppbXBvcnQgc2NyaXB0IGZyb20gIi4vVXNlcklucHV0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmV4cG9ydCAqIGZyb20gIi4vVXNlcklucHV0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmltcG9ydCBzdHlsZTAgZnJvbSAiLi9Vc2VySW5wdXQudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmaWQ9NmU4MjgwNzQmc2NvcGVkPXRydWUmbGFuZz1jc3MmIgoKCi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi8KaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSAiIS4uLy4uLy4uLy4uLy4uLy4uLy4uL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanMiCnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKAogIHNjcmlwdCwKICByZW5kZXIsCiAgc3RhdGljUmVuZGVyRm5zLAogIGZhbHNlLAogIG51bGwsCiAgIjZlODI4MDc0IiwKICBudWxsCiAgCikKCi8qIGhvdCByZWxvYWQgKi8KaWYgKG1vZHVsZS5ob3QpIHsKICB2YXIgYXBpID0gcmVxdWlyZSgiL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtaG90LXJlbG9hZC1hcGkvZGlzdC9pbmRleC5qcyIpCiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpCiAgaWYgKGFwaS5jb21wYXRpYmxlKSB7CiAgICBtb2R1bGUuaG90LmFjY2VwdCgpCiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc2ZTgyODA3NCcpKSB7CiAgICAgIGFwaS5jcmVhdGVSZWNvcmQoJzZlODI4MDc0JywgY29tcG9uZW50Lm9wdGlvbnMpCiAgICB9IGVsc2UgewogICAgICBhcGkucmVsb2FkKCc2ZTgyODA3NCcsIGNvbXBvbmVudC5vcHRpb25zKQogICAgfQogICAgbW9kdWxlLmhvdC5hY2NlcHQoIi4vVXNlcklucHV0LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD02ZTgyODA3NCZzY29wZWQ9dHJ1ZSYiLCBmdW5jdGlvbiAoKSB7CiAgICAgIGFwaS5yZXJlbmRlcignNmU4MjgwNzQnLCB7CiAgICAgICAgcmVuZGVyOiByZW5kZXIsCiAgICAgICAgc3RhdGljUmVuZGVyRm5zOiBzdGF0aWNSZW5kZXJGbnMKICAgICAgfSkKICAgIH0pCiAgfQp9CmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9ICJjb21wb25lbnRzL1VzZXJJbnB1dC52dWUiCmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRz"}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js??ref--13-0!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInput.vue","mtime":1594995737947},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tICIuL1VzZXJJbnB1dC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NmU4MjgwNzQmc2NvcGVkPXRydWUmIgppbXBvcnQgc2NyaXB0IGZyb20gIi4vVXNlcklucHV0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmV4cG9ydCAqIGZyb20gIi4vVXNlcklucHV0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmltcG9ydCBzdHlsZTAgZnJvbSAiLi9Vc2VySW5wdXQudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmaWQ9NmU4MjgwNzQmc2NvcGVkPXRydWUmbGFuZz1jc3MmIgoKCi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi8KaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSAiIS4uLy4uLy4uLy4uLy4uLy4uLy4uL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanMiCnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKAogIHNjcmlwdCwKICByZW5kZXIsCiAgc3RhdGljUmVuZGVyRm5zLAogIGZhbHNlLAogIG51bGwsCiAgIjZlODI4MDc0IiwKICBudWxsCiAgCikKCi8qIGhvdCByZWxvYWQgKi8KaWYgKG1vZHVsZS5ob3QpIHsKICB2YXIgYXBpID0gcmVxdWlyZSgiL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtaG90LXJlbG9hZC1hcGkvZGlzdC9pbmRleC5qcyIpCiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpCiAgaWYgKGFwaS5jb21wYXRpYmxlKSB7CiAgICBtb2R1bGUuaG90LmFjY2VwdCgpCiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc2ZTgyODA3NCcpKSB7CiAgICAgIGFwaS5jcmVhdGVSZWNvcmQoJzZlODI4MDc0JywgY29tcG9uZW50Lm9wdGlvbnMpCiAgICB9IGVsc2UgewogICAgICBhcGkucmVsb2FkKCc2ZTgyODA3NCcsIGNvbXBvbmVudC5vcHRpb25zKQogICAgfQogICAgbW9kdWxlLmhvdC5hY2NlcHQoIi4vVXNlcklucHV0LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD02ZTgyODA3NCZzY29wZWQ9dHJ1ZSYiLCBmdW5jdGlvbiAoKSB7CiAgICAgIGFwaS5yZXJlbmRlcignNmU4MjgwNzQnLCB7CiAgICAgICAgcmVuZGVyOiByZW5kZXIsCiAgICAgICAgc3RhdGljUmVuZGVyRm5zOiBzdGF0aWNSZW5kZXJGbnMKICAgICAgfSkKICAgIH0pCiAgfQp9CmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9ICJjb21wb25lbnRzL1VzZXJJbnB1dC52dWUiCmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRz"}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js??ref--13-0!/home/theo/Documents/vue-cli-test/md-parser/src/App.vue","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/App.vue","mtime":1594821849937},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tICIuL0FwcC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NDcyY2ZmNjMmIgppbXBvcnQgc2NyaXB0IGZyb20gIi4vQXBwLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmV4cG9ydCAqIGZyb20gIi4vQXBwLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmltcG9ydCBzdHlsZTAgZnJvbSAiLi9BcHAudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmbGFuZz1jc3MmIgoKCi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi8KaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSAiIS4uLy4uLy4uLy4uLy4uLy4uL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanMiCnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKAogIHNjcmlwdCwKICByZW5kZXIsCiAgc3RhdGljUmVuZGVyRm5zLAogIGZhbHNlLAogIG51bGwsCiAgbnVsbCwKICBudWxsCiAgCikKCi8qIGhvdCByZWxvYWQgKi8KaWYgKG1vZHVsZS5ob3QpIHsKICB2YXIgYXBpID0gcmVxdWlyZSgiL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtaG90LXJlbG9hZC1hcGkvZGlzdC9pbmRleC5qcyIpCiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpCiAgaWYgKGFwaS5jb21wYXRpYmxlKSB7CiAgICBtb2R1bGUuaG90LmFjY2VwdCgpCiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc0NzJjZmY2MycpKSB7CiAgICAgIGFwaS5jcmVhdGVSZWNvcmQoJzQ3MmNmZjYzJywgY29tcG9uZW50Lm9wdGlvbnMpCiAgICB9IGVsc2UgewogICAgICBhcGkucmVsb2FkKCc0NzJjZmY2MycsIGNvbXBvbmVudC5vcHRpb25zKQogICAgfQogICAgbW9kdWxlLmhvdC5hY2NlcHQoIi4vQXBwLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD00NzJjZmY2MyYiLCBmdW5jdGlvbiAoKSB7CiAgICAgIGFwaS5yZXJlbmRlcignNDcyY2ZmNjMnLCB7CiAgICAgICAgcmVuZGVyOiByZW5kZXIsCiAgICAgICAgc3RhdGljUmVuZGVyRm5zOiBzdGF0aWNSZW5kZXJGbnMKICAgICAgfSkKICAgIH0pCiAgfQp9CmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9ICJBcHAudnVlIgpleHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cw=="}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js??ref--13-0!/home/theo/Documents/vue-cli-test/md-parser/src/App.vue","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/App.vue","mtime":1594989732895},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tICIuL0FwcC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NDcyY2ZmNjMmIgppbXBvcnQgc2NyaXB0IGZyb20gIi4vQXBwLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmV4cG9ydCAqIGZyb20gIi4vQXBwLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYiCmltcG9ydCBzdHlsZTAgZnJvbSAiLi9BcHAudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmbGFuZz1jc3MmIgoKCi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi8KaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSAiIS4uLy4uLy4uLy4uLy4uLy4uL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanMiCnZhciBjb21wb25lbnQgPSBub3JtYWxpemVyKAogIHNjcmlwdCwKICByZW5kZXIsCiAgc3RhdGljUmVuZGVyRm5zLAogIGZhbHNlLAogIG51bGwsCiAgbnVsbCwKICBudWxsCiAgCikKCi8qIGhvdCByZWxvYWQgKi8KaWYgKG1vZHVsZS5ob3QpIHsKICB2YXIgYXBpID0gcmVxdWlyZSgiL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL0B2dWUvY2xpLXNlcnZpY2UtZ2xvYmFsL25vZGVfbW9kdWxlcy92dWUtaG90LXJlbG9hZC1hcGkvZGlzdC9pbmRleC5qcyIpCiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpCiAgaWYgKGFwaS5jb21wYXRpYmxlKSB7CiAgICBtb2R1bGUuaG90LmFjY2VwdCgpCiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc0NzJjZmY2MycpKSB7CiAgICAgIGFwaS5jcmVhdGVSZWNvcmQoJzQ3MmNmZjYzJywgY29tcG9uZW50Lm9wdGlvbnMpCiAgICB9IGVsc2UgewogICAgICBhcGkucmVsb2FkKCc0NzJjZmY2MycsIGNvbXBvbmVudC5vcHRpb25zKQogICAgfQogICAgbW9kdWxlLmhvdC5hY2NlcHQoIi4vQXBwLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD00NzJjZmY2MyYiLCBmdW5jdGlvbiAoKSB7CiAgICAgIGFwaS5yZXJlbmRlcignNDcyY2ZmNjMnLCB7CiAgICAgICAgcmVuZGVyOiByZW5kZXIsCiAgICAgICAgc3RhdGljUmVuZGVyRm5zOiBzdGF0aWNSZW5kZXJGbnMKICAgICAgfSkKICAgIH0pCiAgfQp9CmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9ICJBcHAudnVlIgpleHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cw=="}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","mtime":1594818899331},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBWdWVNYXJrZG93biBmcm9tICcuLi8uLi9ub2RlX21vZHVsZXMvdnVlLW1hcmtkb3duL3NyYy9WdWVNYXJrZG93bi5qcycKaW1wb3J0IFVzZXJJbnB1dCBmcm9tICcuL1VzZXJJbnB1dC52dWUnCmltcG9ydCBQdWJsaXNoQnV0dG9uIGZyb20gJy4vUHVibGlzaEJ1dHRvbi52dWUnCmltcG9ydCBBcnRpY2xlRm9ybSBmcm9tICcuL0FydGljbGVGb3JtLnZ1ZScKCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnVXNlcklucHV0UGFnZScsCiAgY29tcG9uZW50czogewogICAgVnVlTWFya2Rvd24sCiAgICBVc2VySW5wdXQsCiAgICBQdWJsaXNoQnV0dG9uLAogICAgQXJ0aWNsZUZvcm0sCiAgfSwKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKSB7CiAgICByZXR1cm57CiAgICAgIHVzZXJ0ZXh0OiAnJywKICAgIH0KICB9LAogIG1ldGhvZHM6IHsKICAgIC8vIGxpdmUtdXBkYXRlcyB1c2VyIHRleHQKICAgIHVzZXJVcGRhdGUgOiBmdW5jdGlvbih0ZXh0KXsKICAgICAgICB0aGlzLnVzZXJ0ZXh0ID0gdGV4dFsndXNlcnRleHQnXQogICAgfSwKICAgIC8vIHNhdmVzIGFydGljbGUgY29udGVudAogICAgYXJ0aWNsZVVwYXRlIDogZnVuY3Rpb24oKSB7CiAgICAgIHRoaXMuJGVtaXQoJ2FydGljbGUtc2F2ZScsIHsKICAgICAgICAgICdhcnRpY2xlLWNvbnRlbnQnOiB0aGlzLnVzZXJ0ZXh0CiAgICAgIH0pOwogICAgICB0aGlzLiRyb3V0ZXIucHVzaCgnL3B1Ymxpc2hlZCcpCiAgICB9CiAgfQp9Cg=="},{"version":3,"sources":["UserInputPage.vue"],"names":[],"mappings":";;;;;;;;;;AAUA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"UserInputPage.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <article-form></article-form>\n <UserInput @user-update='userUpdate' class=\"input-area column\"></UserInput>\n <vue-markdown :source='usertext' class=\"column\" id='render-area'>{{ usertext }}</vue-markdown>\n <publish-button @update='articleUpate'></publish-button>\n </div>\n</template>\n\n<script>\nimport VueMarkdown from '../../node_modules/vue-markdown/src/VueMarkdown.js'\nimport UserInput from './UserInput.vue'\nimport PublishButton from './PublishButton.vue'\nimport ArticleForm from './ArticleForm.vue'\n\nexport default {\n name: 'UserInputPage',\n components: {\n VueMarkdown,\n UserInput,\n PublishButton,\n ArticleForm,\n },\n props: {\n },\n data: function() {\n return{\n usertext: '',\n }\n },\n methods: {\n // live-updates user text\n userUpdate : function(text){\n this.usertext = text['usertext']\n },\n // saves article content\n articleUpate : function() {\n this.$emit('article-save', {\n 'article-content': this.usertext\n });\n this.$router.push('/published')\n }\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\ncode {\n font-style: italic;\n}\n</style>\n"]}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/UserInputPage.vue","mtime":1594995585908},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBWdWVNYXJrZG93biBmcm9tICcuLi8uLi9ub2RlX21vZHVsZXMvdnVlLW1hcmtkb3duL3NyYy9WdWVNYXJrZG93bi5qcycKaW1wb3J0IFVzZXJJbnB1dCBmcm9tICcuL1VzZXJJbnB1dC52dWUnCmltcG9ydCBQdWJsaXNoQnV0dG9uIGZyb20gJy4vUHVibGlzaEJ1dHRvbi52dWUnCmltcG9ydCBBcnRpY2xlRm9ybSBmcm9tICcuL0FydGljbGVGb3JtLnZ1ZScKCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnVXNlcklucHV0UGFnZScsCiAgY29tcG9uZW50czogewogICAgVnVlTWFya2Rvd24sCiAgICBVc2VySW5wdXQsCiAgICBQdWJsaXNoQnV0dG9uLAogICAgQXJ0aWNsZUZvcm0sCiAgfSwKICBwcm9wczogewogIH0sCiAgZGF0YTogZnVuY3Rpb24oKSB7CiAgICByZXR1cm57CiAgICAgIHVzZXJ0ZXh0OiAnJywKICAgIH0KICB9LAogIGNvbXB1dGVkOiB7CiAgICBhcnRpY2xlVGV4dCgpIHsKICAgICAgcmV0dXJuIHRoaXMuJHN0b3JlLnN0YXRlLmFydGljbGUuY29udGVudAogICAgfQogIH0sCiAgbWV0aG9kczogewogICAgLy8gbGl2ZS11cGRhdGVzIHVzZXIgdGV4dAogICAgdXNlclVwZGF0ZSA6IGZ1bmN0aW9uKHRleHQpewogICAgICAgIHRoaXMudXNlcnRleHQgPSB0ZXh0Wyd1c2VydGV4dCddCiAgICB9LAogICAgLy8gc2F2ZXMgYXJ0aWNsZSBjb250ZW50CiAgICBhcnRpY2xlVXBhdGUgOiBmdW5jdGlvbigpIHsKICAgICAgdGhpcy4kZW1pdCgnYXJ0aWNsZS1zYXZlJywgewogICAgICAgICAgJ2FydGljbGUtY29udGVudCc6IHRoaXMudXNlcnRleHQKICAgICAgfSk7CiAgICAgIHRoaXMuJHJvdXRlci5wdXNoKCcvcHVibGlzaGVkJykKICAgIH0sIAogIH0KfQo="},{"version":3,"sources":["UserInputPage.vue"],"names":[],"mappings":";;;;;;;;;;AAUA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"UserInputPage.vue","sourceRoot":"components","sourcesContent":["<template>\n <div>\n <article-form></article-form>\n <UserInput class=\"input-area column\"></UserInput>\n <vue-markdown :source='articleText' class=\"column\" id='render-area'></vue-markdown>\n <publish-button @update='articleUpate'></publish-button>\n </div>\n</template>\n\n<script>\nimport VueMarkdown from '../../node_modules/vue-markdown/src/VueMarkdown.js'\nimport UserInput from './UserInput.vue'\nimport PublishButton from './PublishButton.vue'\nimport ArticleForm from './ArticleForm.vue'\n\nexport default {\n name: 'UserInputPage',\n components: {\n VueMarkdown,\n UserInput,\n PublishButton,\n ArticleForm,\n },\n props: {\n },\n data: function() {\n return{\n usertext: '',\n }\n },\n computed: {\n articleText() {\n return this.$store.state.article.content\n }\n },\n methods: {\n // live-updates user text\n userUpdate : function(text){\n this.usertext = text['usertext']\n },\n // saves article content\n articleUpate : function() {\n this.$emit('article-save', {\n 'article-content': this.usertext\n });\n this.$router.push('/published')\n }, \n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\ncode {\n font-style: italic;\n}\n</style>\n"]}]}

View File

@ -1 +1 @@
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue?vue&type=template&id=74272f56&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue","mtime":1594817674443},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkgewogIHZhciBfdm0gPSB0aGlzCiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oCiAgcmV0dXJuIF9jKCJpbnB1dCIsIHsKICAgIGF0dHJzOiB7IHR5cGU6ICJidXR0b24iLCB2YWx1ZTogIlB1Ymxpc2ghIiB9LAogICAgb246IHsKICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkgewogICAgICAgICRldmVudC5wcmV2ZW50RGVmYXVsdCgpCiAgICAgICAgcmV0dXJuIF92bS51cGRhdGVUZXh0KCRldmVudCkKICAgICAgfQogICAgfQogIH0pCn0KdmFyIHN0YXRpY1JlbmRlckZucyA9IFtdCnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZQoKZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfQ=="}]}
{"remainingRequest":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js??ref--0-0!/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue?vue&type=template&id=74272f56&scoped=true&","dependencies":[{"path":"/home/theo/Documents/vue-cli-test/md-parser/src/components/PublishButton.vue","mtime":1594992094914},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/loaders/templateLoader.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/usr/local/lib/node_modules/@vue/cli-service-global/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:dmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkgewogIHZhciBfdm0gPSB0aGlzCiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50CiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oCiAgcmV0dXJuIF9jKCJpbnB1dCIsIHsKICAgIHN0YXRpY0NsYXNzOiAiYnRuIGJ0bi1wcmltYXJ5IiwKICAgIGF0dHJzOiB7IHR5cGU6ICJidXR0b24iLCB2YWx1ZTogIlB1Ymxpc2ghIiB9LAogICAgb246IHsKICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkgewogICAgICAgICRldmVudC5wcmV2ZW50RGVmYXVsdCgpCiAgICAgICAgcmV0dXJuIF92bS51cGRhdGVUZXh0KCRldmVudCkKICAgICAgfQogICAgfQogIH0pCn0KdmFyIHN0YXRpY1JlbmRlckZucyA9IFtdCnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZQoKZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfQ=="}]}

2