Merge branch 'main' into all-contributors/add-Michael-Tanzer
This commit is contained in:
commit
0c7cfacf63
|
@ -13,6 +13,15 @@
|
||||||
"ideas",
|
"ideas",
|
||||||
"code"
|
"code"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"login": "petergeneric",
|
||||||
|
"name": "Peter",
|
||||||
|
"avatar_url": "https://avatars.githubusercontent.com/u/870655?v=4",
|
||||||
|
"profile": "https://github.com/petergeneric",
|
||||||
|
"contributions": [
|
||||||
|
"ideas"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -30,6 +30,7 @@ npm run dev # or: npm run build
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Michael-Tanzer"><img src="https://avatars.githubusercontent.com/u/23483071?v=4?s=100" width="100px;" alt="Michael Tanzer"/><br /><sub><b>Michael Tanzer</b></sub></a><br /><a href="#ideas-Michael-Tanzer" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/Niek/chatgpt-web/commits?author=Michael-Tanzer" title="Code">💻</a></td>
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Michael-Tanzer"><img src="https://avatars.githubusercontent.com/u/23483071?v=4?s=100" width="100px;" alt="Michael Tanzer"/><br /><sub><b>Michael Tanzer</b></sub></a><br /><a href="#ideas-Michael-Tanzer" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/Niek/chatgpt-web/commits?author=Michael-Tanzer" title="Code">💻</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/petergeneric"><img src="https://avatars.githubusercontent.com/u/870655?v=4?s=100" width="100px;" alt="Peter"/><br /><sub><b>Peter</b></sub></a><br /><a href="#ideas-petergeneric" title="Ideas, Planning, & Feedback">🤔</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -28,7 +28,7 @@ a.is-disabled {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show the edit button on hover of the chat name */
|
/* Show the edit button on hover of the chat name */
|
||||||
.chatname:hover .editbutton {
|
.chat-header:hover .editbutton {
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const response: Response = await (
|
const response: Response = await (
|
||||||
await fetch("https://api.openai.com/v1/chat/completions", {
|
await fetch("https://api.openai.com/v1/chat/completions", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
@ -105,7 +106,7 @@
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav class="level is-mobile">
|
<nav class="level is-mobile chat-header">
|
||||||
<div class="level-left chatname">
|
<div class="level-left chatname">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
<p class="subtitle is-5">
|
<p class="subtitle is-5">
|
||||||
|
@ -114,8 +115,11 @@
|
||||||
href={"#"}
|
href={"#"}
|
||||||
class="greyscale ml-2 is-hidden editbutton"
|
class="greyscale ml-2 is-hidden editbutton"
|
||||||
on:click|preventDefault={() => {
|
on:click|preventDefault={() => {
|
||||||
chat.name = prompt("Enter a new name for this chat", chat.name);
|
let newChatName = prompt("Enter a new name for this chat", chat.name);
|
||||||
|
if (newChatName) {
|
||||||
|
chat.name = newChatName;
|
||||||
chatsStorage.set($chatsStorage);
|
chatsStorage.set($chatsStorage);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
✏️
|
✏️
|
||||||
|
|
Loading…
Reference in New Issue