Rename remaining JS files to JSX
This commit is contained in:
1 parent
a9af691b81
commit
9e86bd0962
39 files changed
+83
-348
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { el } from "../base/dom.js";
|
||||
import { sessionTitle } from "./chat-render.js";
|
||||
import { el } from "../base/dom.jsx";
|
||||
import { sessionTitle } from "./chat-render.jsx";
|
||||
|
||||
export function renderSessions({ sessionList, sessionTools, sessions, currentSession, onSelect }) {
|
||||
sessionList.replaceChildren();
|
||||
@@ -1,4 +1,4 @@
|
||||
import { el } from "../base/dom.js";
|
||||
import { el } from "../base/dom.jsx";
|
||||
|
||||
export function renderUpdate(panel, data, { onDefer, onInstall }) {
|
||||
panel.replaceChildren();
|
||||
@@ -1,5 +1,5 @@
|
||||
import { el } from "../base/dom.js";
|
||||
import { renderMarkdown } from "./markdown.js";
|
||||
import { el } from "../base/dom.jsx";
|
||||
import { renderMarkdown } from "./markdown.jsx";
|
||||
|
||||
export function sessionTitle(session) {
|
||||
return session.title || session.branch_name || `Conversation ${session.session_id.slice(0, 8)}`;
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randomUUID } from "../base/uuid.js";
|
||||
import { randomUUID } from "../base/uuid.jsx";
|
||||
|
||||
export function newChatTurn(text) {
|
||||
return { text, sourceID: randomUUID() };
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randomUUID } from "../base/uuid.js";
|
||||
import { randomUUID } from "../base/uuid.jsx";
|
||||
|
||||
const CHANNEL_KEY = "archie.web.chat.channel";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { renderMarkdown } from "./markdown.js";
|
||||
import { renderMarkdown } from "./markdown.jsx";
|
||||
|
||||
export function updateStreamingReply(current, text) {
|
||||
const next = renderMarkdown(text);
|
||||
@@ -1,4 +1,4 @@
|
||||
import { el } from "../base/dom.js";
|
||||
import { el } from "../base/dom.jsx";
|
||||
|
||||
// Tool activity is rendered into its own list inside the assistant bubble
|
||||
// rather than folded into the reply text: the text node is replaced wholesale
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,14 +1,14 @@
|
||||
import { el } from "../base/dom.js";
|
||||
import { api } from "../base/api.js";
|
||||
import { createChatView } from "./chat-view.js";
|
||||
import { assistantBubble, chatBubble } from "./chat-render.js";
|
||||
import { updateStreamingReply } from "./chat-stream.js";
|
||||
import { appendToolCall, appendNavigateChip } from "./chat-tools.js";
|
||||
import { channelID } from "./chat-state.js";
|
||||
import { retryChatTurn, resolveTurn } from "./chat-retry.js";
|
||||
import { renderCommands, renderModels, renderSelectors, renderSessions } from "./chat-catalog.js";
|
||||
import { renderDangerous, renderUpdate } from "./chat-panels.js";
|
||||
import { updateUnavailableMessage } from "./chat-update-status.js";
|
||||
import { el } from "../base/dom.jsx";
|
||||
import { api } from "../base/api.jsx";
|
||||
import { createChatView } from "./chat-view.jsx";
|
||||
import { assistantBubble, chatBubble } from "./chat-render.jsx";
|
||||
import { updateStreamingReply } from "./chat-stream.jsx";
|
||||
import { appendToolCall, appendNavigateChip } from "./chat-tools.jsx";
|
||||
import { channelID } from "./chat-state.jsx";
|
||||
import { retryChatTurn, resolveTurn } from "./chat-retry.jsx";
|
||||
import { renderCommands, renderModels, renderSelectors, renderSessions } from "./chat-catalog.jsx";
|
||||
import { renderDangerous, renderUpdate } from "./chat-panels.jsx";
|
||||
import { updateUnavailableMessage } from "./chat-update-status.jsx";
|
||||
|
||||
import "./chat.css";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { el } from "../base/dom.js";
|
||||
import { el } from "../base/dom.jsx";
|
||||
|
||||
function inlineMarkdown(text) {
|
||||
const fragment = document.createDocumentFragment();
|
||||
Reference in new issue
Block a user