Browse Source

Remove DB method call.

master
Nero Ignis 5 years ago
parent
commit
97bf35e3e3
  1. 31
      .idea/workspace.xml
  2. 28
      app.js

31
.idea/workspace.xml

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="e3f098f0-e98c-435a-af04-d153c9525633" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app.js" beforeDir="false" afterPath="$PROJECT_DIR$/app.js" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -30,7 +31,7 @@ @@ -30,7 +31,7 @@
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last.edited.regexp" value="Why, ever, would you? Stupid! pf." />
<property name="nodejs_package_manager_path" value="npm" />
<property name="settings.editor.selected.configurable" value="preferences.general" />
<property name="settings.editor.selected.configurable" value="preferences.keymap" />
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
@ -43,7 +44,8 @@ @@ -43,7 +44,8 @@
<workItem from="1597264411672" duration="27000" />
<workItem from="1597264469454" duration="594000" />
<workItem from="1597346228730" duration="1851000" />
<workItem from="1597348092890" duration="8075000" />
<workItem from="1597348092890" duration="8205000" />
<workItem from="1597530844649" duration="131000" />
</task>
<task id="LOCAL-00001" summary="Adds gitignore.">
<created>1597348071361</created>
@ -199,7 +201,14 @@ @@ -199,7 +201,14 @@
<option name="project" value="LOCAL" />
<updated>1597355794310</updated>
</task>
<option name="localTasksCounter" value="23" />
<task id="LOCAL-00023" summary="Test commit.">
<created>1597356192344</created>
<option name="number" value="00023" />
<option name="presentableId" value="LOCAL-00023" />
<option name="project" value="LOCAL" />
<updated>1597356192344</updated>
</task>
<option name="localTasksCounter" value="24" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -223,10 +232,10 @@ @@ -223,10 +232,10 @@
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="278" y="2" width="800" height="718" key="#Plugins/0.0.1366.720@0.0.1366.720" timestamp="1597350105557" />
<state x="222" y="0" width="912" height="720" key="CommitChangelistDialog2" timestamp="1597355794268">
<state x="222" y="0" width="912" height="720" key="CommitChangelistDialog2" timestamp="1597356192305">
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="222" y="0" width="912" height="720" key="CommitChangelistDialog2/0.0.1366.720@0.0.1366.720" timestamp="1597355794268" />
<state x="222" y="0" width="912" height="720" key="CommitChangelistDialog2/0.0.1366.720@0.0.1366.720" timestamp="1597356192305" />
<state x="466" y="118" width="424" height="490" key="FileChooserDialogImpl" timestamp="1597353496276">
<screen x="0" y="0" width="1366" height="720" />
</state>
@ -239,14 +248,14 @@ @@ -239,14 +248,14 @@
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="315" y="115" width="726" height="496" key="MultipleFileMergeDialog/0.0.1366.720@0.0.1366.720" timestamp="1597354753023" />
<state x="172" y="0" key="SettingsEditor" timestamp="1597353501740">
<state x="172" y="0" key="SettingsEditor" timestamp="1597530949459">
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="172" y="0" key="SettingsEditor/0.0.1366.720@0.0.1366.720" timestamp="1597353501740" />
<state x="278" y="92" width="800" height="542" key="Vcs.Push.Dialog.v2" timestamp="1597355795325">
<state x="172" y="0" key="SettingsEditor/0.0.1366.720@0.0.1366.720" timestamp="1597530949459" />
<state x="278" y="92" width="800" height="542" key="Vcs.Push.Dialog.v2" timestamp="1597356194181">
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="278" y="92" width="800" height="542" key="Vcs.Push.Dialog.v2/0.0.1366.720@0.0.1366.720" timestamp="1597355795325" />
<state x="278" y="92" width="800" height="542" key="Vcs.Push.Dialog.v2/0.0.1366.720@0.0.1366.720" timestamp="1597356194181" />
<state x="0" y="0" width="616" height="720" key="find.popup" timestamp="1597346688624">
<screen x="0" y="0" width="1366" height="720" />
</state>
@ -259,9 +268,9 @@ @@ -259,9 +268,9 @@
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="347" y="155" key="run.anything.popup/0.0.1366.720@0.0.1366.720" timestamp="1597354649319" />
<state x="346" y="41" width="672" height="678" key="search.everywhere.popup" timestamp="1597355944135">
<state x="346" y="41" width="672" height="678" key="search.everywhere.popup" timestamp="1597530895698">
<screen x="0" y="0" width="1366" height="720" />
</state>
<state x="346" y="41" width="672" height="678" key="search.everywhere.popup/0.0.1366.720@0.0.1366.720" timestamp="1597355944135" />
<state x="346" y="41" width="672" height="678" key="search.everywhere.popup/0.0.1366.720@0.0.1366.720" timestamp="1597530895698" />
</component>
</project>

28
app.js

@ -51,7 +51,7 @@ let kara = new Vue({ @@ -51,7 +51,7 @@ let kara = new Vue({
setTimeout(() => {
this.aiMessage(
// this.getAnswer(message)
this.getAnswerFromDB(message)
this.getAnswer(message)
);
this.scrollDown();
}, 3000);
@ -144,18 +144,18 @@ let kara = new Vue({ @@ -144,18 +144,18 @@ let kara = new Vue({
return 'I don\'t know what to say..';
},
getAnswerFromDB(message) {
let answer = null;
axios.post('/karaAI/', {
message: message
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error)
})
}
// getAnswerFromDB(message) {
// let answer = null;
//
// axios.post('/karaAI/', {
// message: message
// })
// .then(function (response) {
// console.log(response);
// })
// .catch(function (error) {
// console.log(error)
// })
// }
}
})
Loading…
Cancel
Save