Compare commits
No commits in common. "99d3a234f4618d0baae9c56fbf35baab085d1f67" and "b82095ca7af02e0f8cb1f1673d06e7716b3ee09d" have entirely different histories.
99d3a234f4
...
b82095ca7a
6
searchserver/.gitignore
vendored
6
searchserver/.gitignore
vendored
|
@ -1,6 +0,0 @@
|
|||
# Editor
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
meilisearch-linux-amd64
|
||||
data.ms/
|
|
@ -1,14 +0,0 @@
|
|||
# Qotnews Search Server
|
||||
|
||||
Download MeiliSearch with:
|
||||
|
||||
```
|
||||
wget https://github.com/meilisearch/MeiliSearch/releases/download/v0.11.1/meilisearch-linux-amd64
|
||||
chmod +x meilisearch-linux-amd64
|
||||
```
|
||||
|
||||
Run with:
|
||||
|
||||
```
|
||||
MEILI_NO_ANALYTICS=true ./meilisearch-linux-amd64
|
||||
```
|
|
@ -56,9 +56,9 @@ class Article extends React.Component {
|
|||
let nodes = null;
|
||||
|
||||
if (story.text) {
|
||||
let div = document.createElement('div');
|
||||
div.innerHTML = story.text;
|
||||
nodes = div.childNodes;
|
||||
let domparser = new DOMParser();
|
||||
let doc = domparser.parseFromString(story.text, 'text/html');
|
||||
nodes = doc.querySelector('body').children;
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -86,14 +86,10 @@ class Article extends React.Component {
|
|||
<p dangerouslySetInnerHTML={{ __html: x }} />
|
||||
)
|
||||
:
|
||||
(v.nodeName === '#text' ?
|
||||
<p>{v.data}</p>
|
||||
:
|
||||
<>
|
||||
<v.localName dangerouslySetInnerHTML={v.innerHTML ? { __html: v.innerHTML } : null} />
|
||||
{v.localName == 'pre' && <button onClick={() => this.pConvert(k)}>Convert Code to Paragraph</button>}
|
||||
</>
|
||||
)
|
||||
<>
|
||||
<v.localName dangerouslySetInnerHTML={{ __html: v.innerHTML }} />
|
||||
{v.localName == 'pre' && <button onClick={() => this.pConvert(k)}>Convert Code to Paragraph</button>}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
:
|
||||
|
|
Loading…
Reference in New Issue
Block a user