mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 12:16:04 +00:00
Update editor.html
This commit is contained in:
parent
05ea48a0be
commit
ea412908ef
|
@ -15,19 +15,16 @@
|
||||||
#container {
|
#container {
|
||||||
border: 1px solid grey;
|
border: 1px solid grey;
|
||||||
height: calc(100% - 167px);
|
height: calc(100% - 167px);
|
||||||
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#editor {
|
#editor {
|
||||||
float: left;
|
flex: 3;
|
||||||
width: 75%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#promptEditor {
|
#promptEditor {
|
||||||
float: left;
|
flex: 1;
|
||||||
width: 25%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
|
@ -224,7 +221,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getSuggestions = () => axios.get(`${serverPrefix}completion/${encodeURIComponent(word)}`)
|
const getSuggestions = (word) => axios.get(`${serverPrefix}completion/${encodeURIComponent(word)}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const parser = new XMLParser();
|
const parser = new XMLParser();
|
||||||
const result = parser.parse(response.data);
|
const result = parser.parse(response.data);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user