fixes #17: Markdown syntax support for notes
This commit is contained in:
parent
931514ec7a
commit
2f2997812b
4 changed files with 13 additions and 8 deletions
|
@ -5,12 +5,14 @@
|
||||||
Basic workflow:
|
Basic workflow:
|
||||||
- if you want (not mandatory), login with your user; to create a new user, simply choose a username and a password. Benefit of logging in: only you or admins can edit/delete your entries.
|
- if you want (not mandatory), login with your user; to create a new user, simply choose a username and a password. Benefit of logging in: only you or admins can edit/delete your entries.
|
||||||
- pick a date
|
- pick a date
|
||||||
- choose the name of a new group
|
- choose the group you want to join or the name of a new group
|
||||||
- write your name
|
- write your name and, optionally, a note
|
||||||
- rinse and repeat
|
- rinse and repeat
|
||||||
|
|
||||||
It's recommended to login with username **admin** and password **ibt2**, go to your personal page and change the password, if you've just installed ibt2. The *admin* user can grant super cow powers to any other user.
|
It's recommended to login with username **admin** and password **ibt2**, go to your personal page and change the password, if you've just installed ibt2. The *admin* user can grant super cow powers to any other user.
|
||||||
|
|
||||||
|
For the notes, you can use the [Markdown](https://daringfireball.net/projects/markdown/) syntax.
|
||||||
|
|
||||||
# Demo
|
# Demo
|
||||||
|
|
||||||
See [https://ibt2.ismito.it:3002/](https://ibt2.ismito.it:3002/)
|
See [https://ibt2.ismito.it:3002/](https://ibt2.ismito.it:3002/)
|
||||||
|
@ -78,6 +80,7 @@ Technological stack
|
||||||
- [VueJS](https://vuejs.org/) for the webApp
|
- [VueJS](https://vuejs.org/) for the webApp
|
||||||
- [Vue Material](https://vuematerial.github.io/) for the UI components
|
- [Vue Material](https://vuematerial.github.io/) for the UI components
|
||||||
- [Vue Datepicker](https://github.com/charliekassel/vuejs-datepicker) for the datepicker
|
- [Vue Datepicker](https://github.com/charliekassel/vuejs-datepicker) for the datepicker
|
||||||
|
- [Vue Markdown](https://www.npmjs.com/package/vue-markdown) for parsing the Markdown syntax
|
||||||
- [Tornado web](http://www.tornadoweb.org/) as web server
|
- [Tornado web](http://www.tornadoweb.org/) as web server
|
||||||
- [MongoDB](https://www.mongodb.org/) to store the data
|
- [MongoDB](https://www.mongodb.org/) to store the data
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"roboto-fontface": "^0.6.0",
|
"roboto-fontface": "^0.6.0",
|
||||||
"vue": "^2.1.8",
|
"vue": "^2.1.8",
|
||||||
"vue-loader": "^10.0.2",
|
"vue-loader": "^10.0.2",
|
||||||
|
"vue-markdown": "^2.1.3",
|
||||||
"vue-material": "^0.6.3",
|
"vue-material": "^0.6.3",
|
||||||
"vue-resource": "^1.0.3",
|
"vue-resource": "^1.0.3",
|
||||||
"vue-router": "^2.1.1",
|
"vue-router": "^2.1.1",
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
</md-layout>
|
</md-layout>
|
||||||
</md-card-header>
|
</md-card-header>
|
||||||
<md-card-content>
|
<md-card-content>
|
||||||
<div id="day-notes">{{ day.notes }}</div>
|
<div id="day-notes"><vue-markdown :source="day.notes"></vue-markdown></div>
|
||||||
</md-card-content>
|
</md-card-content>
|
||||||
</md-card>
|
</md-card>
|
||||||
</md-layout>
|
</md-layout>
|
||||||
|
@ -51,6 +51,7 @@
|
||||||
import Datepicker from 'vuejs-datepicker';
|
import Datepicker from 'vuejs-datepicker';
|
||||||
import Group from './Group';
|
import Group from './Group';
|
||||||
import IbtDialog from './IbtDialog.vue';
|
import IbtDialog from './IbtDialog.vue';
|
||||||
|
import VueMarkdown from 'vue-markdown';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -183,9 +184,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
components: { Datepicker, Group, IbtDialog, VueMarkdown }
|
||||||
Datepicker, Group, IbtDialog
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</md-layout>
|
</md-layout>
|
||||||
<md-layout v-if="group.notes" md-row>
|
<md-layout v-if="group.notes" md-row>
|
||||||
<md-tooltip md-direction="top">click to expande/collapse notes</md-tooltip>
|
<md-tooltip md-direction="top">click to expande/collapse notes</md-tooltip>
|
||||||
<div ref="groupNotes" class="group-notes" @click="toggleNotes()">{{ group.notes }}</div>
|
<div ref="groupNotes" class="group-notes" @click="toggleNotes()"><vue-markdown :source="group.notes" :break="false"></vue-markdown></div>
|
||||||
</md-layout>
|
</md-layout>
|
||||||
</md-card-header>
|
</md-card-header>
|
||||||
<md-card-content class="group-card">
|
<md-card-content class="group-card">
|
||||||
|
@ -96,6 +96,7 @@
|
||||||
|
|
||||||
import Attendee from './Attendee';
|
import Attendee from './Attendee';
|
||||||
import IbtDialog from './IbtDialog.vue';
|
import IbtDialog from './IbtDialog.vue';
|
||||||
|
import VueMarkdown from 'vue-markdown';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {group: {}, day: {}, addNewGroup: {default: false}},
|
props: {group: {}, day: {}, addNewGroup: {default: false}},
|
||||||
|
@ -179,6 +180,7 @@ export default {
|
||||||
}, (response) => {
|
}, (response) => {
|
||||||
this.$refs.dialogObj.show({text: 'unable to edit group notes'});
|
this.$refs.dialogObj.show({text: 'unable to edit group notes'});
|
||||||
}).then((json) => {
|
}).then((json) => {
|
||||||
|
this.group.notes = json.notes;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.$emit('updated');
|
this.$emit('updated');
|
||||||
});
|
});
|
||||||
|
@ -197,7 +199,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components: { Attendee, IbtDialog }
|
components: { Attendee, IbtDialog, VueMarkdown }
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue