Cyberjusticelab / JusticeAI

JusticeAI (ProceZeus) is a web chat bot that aims to facilitate access to judicial proceedings involving Quebec tenant/landlord law
https://cyberjusticelab.github.io/JusticeAI/docs/rendered/
MIT License
21 stars 16 forks source link

[#37] Added legal definitions to difficult words #379

Closed arekmano closed 6 years ago

arekmano commented 6 years ago

screenshot from 2018-03-08 21-58-39

arekmano commented 6 years ago

Data obtained from https://developer.oxforddictionaries.com API

codecov[bot] commented 6 years ago

Codecov Report

Merging #379 into master will decrease coverage by 0.69%. The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #379     +/-   ##
=========================================
- Coverage   65.04%   64.35%   -0.7%     
=========================================
  Files          54       54             
  Lines        2194     2202      +8     
  Branches       16       17      +1     
=========================================
- Hits         1427     1417     -10     
- Misses        765      780     +15     
- Partials        2        5      +3
Impacted Files Coverage Δ
src/web_client/src/components/Chat.vue 73.75% <62.5%> (-22.09%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 732e9b3...7ae9801. Read the comment docs.

dodoels commented 6 years ago

Use <el-tooltip>. http://element.eleme.io/#/en-US/component/tooltip All the works can be done with one line of code :)

arekmano commented 6 years ago

Doesn't work. Since we are inserting the HTML elements programmatically, vuejs does not compile the templates to HTML, so any vuejs component will not work. A vanilla javascript solution is needed for this story.

https://vuejs.org/v2/guide/syntax.html#Raw-HTML

[...] will be replaced with the value of the rawHtml property, interpreted as plain HTML - data bindings are ignored.