Compare commits

...

7 Commits

Author SHA1 Message Date
theo1
6a5982bef7 updating package-lock.json 2020-10-19 16:13:24 +02:00
theo1
c1aa41b0c9 More consistent use of getters in UserInputPage 2020-10-19 16:10:05 +02:00
theo1
c8d1d61ccf Setting date to today in ArticleForm using button 2020-10-19 14:51:38 +02:00
theo1
a23a00fe4a Cleaned up, meta update not working 2020-07-17 16:51:26 +02:00
theo1
ee6264582f updated README 2020-07-17 16:31:17 +02:00
theo1
e387441a96 functional editing of old articles 2020-07-17 16:26:31 +02:00
theo1
673a788ca3 Commiting first version 2020-07-15 17:08:12 +02:00
731 changed files with 13215 additions and 1 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
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>

@ -1 +0,0 @@
Subproject commit 45864b8177364cec7245aa6b796498e2301c8714

34
md-parser/README.md Normal file
View File

@ -0,0 +1,34 @@
# md-parser
**This is a work in progress**
VueJS-based frontend to plug on a Pelican static site.
Gives a nice UI to edit and publish articles.
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
or :
```
vue serve src/
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

View File

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
]
}

1
md-parser/dist/css/app.a9f74452.css vendored Normal file
View File

@ -0,0 +1 @@
textarea[data-v-3744b939]{width:80%;height:800px;resize:none;background-color:#f2f2f2;padding:12px 20px;border:2px solid red;border-radius:4px}*{font-family:Helvetica}.column{width:50%;float:left}#main-content{height:100%}

BIN
md-parser/dist/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

1
md-parser/dist/index.html vendored Normal file
View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>md-parser</title><link href=/css/app.a9f74452.css rel=preload as=style><link href=/js/app.5e8fd664.js rel=preload as=script><link href=/js/chunk-vendors.60d9fb4e.js rel=preload as=script><link href=/css/app.a9f74452.css rel=stylesheet></head><body><noscript><strong>We're sorry but md-parser doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.60d9fb4e.js></script><script src=/js/app.5e8fd664.js></script></body></html>

2
md-parser/dist/js/app.5e8fd664.js vendored Normal file
View File

@ -0,0 +1,2 @@
(function(e){function t(t){for(var r,a,s=t[0],i=t[1],c=t[2],p=0,f=[];p<s.length;p++)a=s[p],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&f.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);l&&l(t);while(f.length)f.shift()();return u.push.apply(u,c||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,s=1;s<n.length;s++){var i=n[s];0!==o[i]&&(r=!1)}r&&(u.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={app:0},u=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var l=i;u.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("d9c2")},"034f":function(e,t,n){"use strict";var r=n("6ce3"),o=n.n(r);o.a},"049c":function(e,t,n){"use strict";var r=n("8fe1"),o=n.n(r);o.a},"3dfd":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"main-content"}},[n("UserInput",{staticClass:"input-area column",on:{"user-update":e.alertUser}}),n("vue-markdown",{attrs:{source:e.usertext}},[e._v(e._s(e.usertext))])],1)},o=[],u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sometext,expression:"sometext"}],attrs:{placeholder:"edit me",id:"textbox"},domProps:{value:e.sometext},on:{input:function(t){t.target.composing||(e.sometext=t.target.value)}}})])},a=[],s={name:"UserInput",props:{},data:function(){return{sometext:""}},watch:{sometext:function(){this.$emit("user-update",{usertext:this.sometext})}}},i=s,c=(n("049c"),n("2bcb")),l=Object(c["a"])(i,u,a,!1,null,"3744b939",null),p=l.exports,f=n("b016"),d={name:"App",components:{UserInput:p,VueMarkdown:f["a"]},data:function(){return{usertext:""}},methods:{alertUser:function(e){this.usertext=e["usertext"]}}},m=d,v=(n("034f"),Object(c["a"])(m,r,o,!1,null,null,null));t["a"]=v.exports},"6ce3":function(e,t,n){},"8fe1":function(e,t,n){}});
//# sourceMappingURL=app.5e8fd664.js.map

1
md-parser/dist/js/app.5e8fd664.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
md-parser/node_modules/.bin/acorn generated vendored Symbolic link
View File

@ -0,0 +1 @@
../acorn/bin/acorn

1
md-parser/node_modules/.bin/ansi-html generated vendored Symbolic link
View File

@ -0,0 +1 @@
../ansi-html/bin/ansi-html

1
md-parser/node_modules/.bin/atob generated vendored Symbolic link
View File

@ -0,0 +1 @@
../atob/bin/atob.js

1
md-parser/node_modules/.bin/autoprefixer generated vendored Symbolic link
View File

@ -0,0 +1 @@
../autoprefixer/bin/autoprefixer

1
md-parser/node_modules/.bin/babylon generated vendored Symbolic link
View File

@ -0,0 +1 @@
../babylon/bin/babylon.js

1
md-parser/node_modules/.bin/browserslist generated vendored Symbolic link
View File

@ -0,0 +1 @@
../browserslist/cli.js

1
md-parser/node_modules/.bin/cssesc generated vendored Symbolic link
View File

@ -0,0 +1 @@
../cssesc/bin/cssesc

1
md-parser/node_modules/.bin/errno generated vendored Symbolic link
View File

@ -0,0 +1 @@
../errno/cli.js

1
md-parser/node_modules/.bin/eslint generated vendored Symbolic link
View File

@ -0,0 +1 @@
../eslint/bin/eslint.js

1
md-parser/node_modules/.bin/esparse generated vendored Symbolic link
View File

@ -0,0 +1 @@
../esprima/bin/esparse.js

1
md-parser/node_modules/.bin/esvalidate generated vendored Symbolic link
View File

@ -0,0 +1 @@
../esprima/bin/esvalidate.js

1
md-parser/node_modules/.bin/he generated vendored Symbolic link
View File

@ -0,0 +1 @@
../he/bin/he

1
md-parser/node_modules/.bin/highlight generated vendored Symbolic link
View File

@ -0,0 +1 @@
../cli-highlight/bin/highlight

1
md-parser/node_modules/.bin/html-minifier generated vendored Symbolic link
View File

@ -0,0 +1 @@
../html-minifier/cli.js

1
md-parser/node_modules/.bin/import-local-fixture generated vendored Symbolic link
View File

@ -0,0 +1 @@
../import-local/fixtures/cli.js

1
md-parser/node_modules/.bin/is-ci generated vendored Symbolic link
View File

@ -0,0 +1 @@
../is-ci/bin.js

1
md-parser/node_modules/.bin/js-yaml generated vendored Symbolic link
View File

@ -0,0 +1 @@
../js-yaml/bin/js-yaml.js

1
md-parser/node_modules/.bin/jsesc generated vendored Symbolic link
View File

@ -0,0 +1 @@
../jsesc/bin/jsesc

1
md-parser/node_modules/.bin/json5 generated vendored Symbolic link
View File

@ -0,0 +1 @@
../json5/lib/cli.js

1
md-parser/node_modules/.bin/katex generated vendored Symbolic link
View File

@ -0,0 +1 @@
../katex/cli.js

1
md-parser/node_modules/.bin/loose-envify generated vendored Symbolic link
View File

@ -0,0 +1 @@
../loose-envify/cli.js

1
md-parser/node_modules/.bin/markdown-it generated vendored Symbolic link
View File

@ -0,0 +1 @@
../markdown-it/bin/markdown-it.js

1
md-parser/node_modules/.bin/miller-rabin generated vendored Symbolic link
View File

@ -0,0 +1 @@
../miller-rabin/bin/miller-rabin

1
md-parser/node_modules/.bin/mime generated vendored Symbolic link
View File

@ -0,0 +1 @@
../mime/cli.js

1
md-parser/node_modules/.bin/mkdirp generated vendored Symbolic link
View File

@ -0,0 +1 @@
../mkdirp/bin/cmd.js

1
md-parser/node_modules/.bin/multicast-dns generated vendored Symbolic link
View File

@ -0,0 +1 @@
../multicast-dns/cli.js

1
md-parser/node_modules/.bin/opencollective generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@nuxt/opencollective/bin/opencollective.js

1
md-parser/node_modules/.bin/opener generated vendored Symbolic link
View File

@ -0,0 +1 @@
../opener/bin/opener-bin.js

1
md-parser/node_modules/.bin/parser generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@babel/parser/bin/babel-parser.js

1
md-parser/node_modules/.bin/prettier generated vendored Symbolic link
View File

@ -0,0 +1 @@
../prettier/bin-prettier.js

1
md-parser/node_modules/.bin/regjsparser generated vendored Symbolic link
View File

@ -0,0 +1 @@
../regjsparser/bin/parser

1
md-parser/node_modules/.bin/rimraf generated vendored Symbolic link
View File

@ -0,0 +1 @@
../rimraf/bin.js

1
md-parser/node_modules/.bin/semver generated vendored Symbolic link
View File

@ -0,0 +1 @@
../semver/bin/semver

1
md-parser/node_modules/.bin/sha.js generated vendored Symbolic link
View File

@ -0,0 +1 @@
../sha.js/bin.js

1
md-parser/node_modules/.bin/sshpk-conv generated vendored Symbolic link
View File

@ -0,0 +1 @@
../sshpk/bin/sshpk-conv

1
md-parser/node_modules/.bin/sshpk-sign generated vendored Symbolic link
View File

@ -0,0 +1 @@
../sshpk/bin/sshpk-sign

1
md-parser/node_modules/.bin/sshpk-verify generated vendored Symbolic link
View File

@ -0,0 +1 @@
../sshpk/bin/sshpk-verify

1
md-parser/node_modules/.bin/svgo generated vendored Symbolic link
View File

@ -0,0 +1 @@
../svgo/bin/svgo

1
md-parser/node_modules/.bin/terser generated vendored Symbolic link
View File

@ -0,0 +1 @@
../terser/bin/terser

1
md-parser/node_modules/.bin/uglifyjs generated vendored Symbolic link
View File

@ -0,0 +1 @@
../uglify-js/bin/uglifyjs

1
md-parser/node_modules/.bin/uuid generated vendored Symbolic link
View File

@ -0,0 +1 @@
../uuid/bin/uuid

1
md-parser/node_modules/.bin/vue-cli-service generated vendored Symbolic link
View File

@ -0,0 +1 @@
../@vue/cli-service/bin/vue-cli-service.js

1
md-parser/node_modules/.bin/webpack generated vendored Symbolic link
View File

@ -0,0 +1 @@
../webpack/bin/webpack.js

1
md-parser/node_modules/.bin/webpack-bundle-analyzer generated vendored Symbolic link
View File

@ -0,0 +1 @@
../webpack-bundle-analyzer/lib/bin/analyzer.js

1
md-parser/node_modules/.bin/webpack-dev-server generated vendored Symbolic link
View File

@ -0,0 +1 @@
../webpack-dev-server/bin/webpack-dev-server.js

1
md-parser/node_modules/.bin/which generated vendored Symbolic link
View File

@ -0,0 +1 @@
../which/bin/which

Some files were not shown because too many files have changed in this diff Show More