mirror of
https://shylinux.com/x/ollama-story
synced 2025-04-29 00:59:23 +08:00
opt some
This commit is contained in:
parent
4685812585
commit
3a49081a05
@ -1,5 +1,5 @@
|
||||
$content>div.message { padding:20px; overflow:auto; }
|
||||
$content>div.message>div.request { background-color:#94ec69; padding:10px; float:right; }
|
||||
$content>div.message>div.request { background-color:#94ec69; color:black; padding:10px; float:right; }
|
||||
$content>div.message>div.request>span { float:right; }
|
||||
$content>div.message>div.response { white-space:break-spaces; padding:0px; clear:both; }
|
||||
$content>div.request { padding:20px; }
|
@ -8,8 +8,8 @@ Volcanos(chat.ONIMPORT, {
|
||||
},
|
||||
content: function(can, target) {
|
||||
var ui = can.page.Append(can, can.ui.content, [
|
||||
{view: chat.MESSAGE, list: [{text: "有什么问题尽管问吧!"}]},
|
||||
{view: chat.REQUEST, list: [
|
||||
{view: "message", list: [{text: "有什么问题尽管问吧!"}]},
|
||||
{view: "request", list: [
|
||||
{type: html.TEXTAREA, onkeydown: function(event) {
|
||||
if (event.key == code.ENTER) {
|
||||
can.onaction.request(event, can, event.target.value), event.target.value = "", can.onkeymap.prevent(event)
|
||||
@ -30,9 +30,9 @@ Volcanos(chat.ONIMPORT, {
|
||||
})
|
||||
Volcanos(chat.ONACTION, {
|
||||
request: function(event, can, text) {
|
||||
can.page.Append(can, can.ui.message, [{view: chat.REQUEST, list: [{text: text}]}])
|
||||
var response = can.page.Append(can, can.ui.message, [{view: chat.RESPONSE}])._target; can.ui.responseList.push(response)
|
||||
can.page.Append(can, can.ui.message, [{view: "request", list: [{text: text}]}])
|
||||
var response = can.page.Append(can, can.ui.message, [{view: "response"}])._target; can.ui.responseList.push(response)
|
||||
can.request(event, {which: ""+can.ui.responseList.length, model: can.db.model})
|
||||
can.runAction(event, chat.REQUEST, [text], function(msg) {})
|
||||
can.runAction(event, "request", [text], function(msg) {})
|
||||
},
|
||||
})
|
||||
})
|
||||
|
@ -7,6 +7,14 @@
|
||||
"time": "2025-02-08 09:20:30.381"
|
||||
}
|
||||
},
|
||||
"937681425ca043f9908761fbcdf3c813": {
|
||||
"meta": {
|
||||
"icon": "src/main.png",
|
||||
"index": "web.chat.ollama.chat",
|
||||
"name": "chat",
|
||||
"time": "2025-02-08 15:27:08.564"
|
||||
}
|
||||
},
|
||||
"adf694a4d378bcc855218c464fecb7d9": {
|
||||
"meta": {
|
||||
"icon": "usr/icons/Messages.png",
|
||||
|
Loading…
x
Reference in New Issue
Block a user