implement UI (Vue) to edit and generate templates

in #utopian-io8 years ago (edited)

This is based on Utopian Weekly Automation request and deals with one of the todo's mentioned in

New Features

  • New Web UI for editing markdown files

Side Navigation

Selection_002.png

  • Side navigation is a bit clunky at the moment as I removed some of the main feature you would expect from a manager: creating new files and deleting existing ones. At the templates are read explicitly from the static/templates folder.

Online Editor

Selection_003.png

  • The editor parts pick up content based on the current article selected in side-nav. Most of this logic resides in the store while the display relies on 2 components src/components/inputer.vue and src/components/outputer.vue.
  • I would think that displaying the html template (a new feature) would be done enhancing src/components/inputer.vue component.

UI Overview:

utopian-weekly-vuejs - Google Chrome_004.png

Bug fixes

Config modules were conflicting

  • I had to move the config rules for connecting and sending emails in the base config folder, as environment variables. In order to overwrite those as a best practice would be to set environment variables on the server so that these are only set as reference for developers. For now the examples are moved in config/prod.env.js

Pull Request: PR 7



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @decebal2dac I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Thanks for sharing this information with us.

Please reference the merged PR for approval.

sorry I got confused by the ui, is it alright as it is now (added the link at the end of the article )

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.077
BTC 65812.53
ETH 1719.32
USDT 1.00
SBD 0.41