Skip to content

Commit e72a81e

Browse files
committed
fixed some naming issues
1 parent 1b78ae0 commit e72a81e

14 files changed

Lines changed: 47 additions & 44 deletions

src/App.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Header } from './components/Header.jsx'
2-
import { ChatArea } from './components/ChatArea.jsx'
3-
import { InputArea } from './components/InputArea.jsx'
4-
import { Sidebar } from './components/Sidebar.jsx'
5-
import { MobileOverlay } from './components/MobileOverlay.jsx'
1+
import { Header } from './components/Header.tsx'
2+
import { ChatArea } from './components/ChatArea.tsx'
3+
import { InputArea } from './components/InputArea.tsx'
4+
import { Sidebar } from './components/Sidebar.tsx'
5+
import { MobileOverlay } from './components/MobileOverlay.tsx'
66
import { WllamaChat } from "./components/model/wllama";
77
import { useEffect } from 'react'
8-
import { ModelConfig } from './components/ModelConfig.jsx'
9-
import { useStates } from './components/Context.js'
8+
import { ModelConfig } from './components/ModelConfig.tsx'
9+
import { useStates } from './components/Context.tsx'
1010

11-
import type { sessionProps } from './components/types.js'
11+
import type { sessionProps } from './components/types.tsx'
1212

1313
function App() {
1414
const { chatMessages, currentSessionId, setCurrentSessionId, isSidebarOpen, isModelConfigOpen } = useStates()

src/components/Buttons.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { useStates } from "./Context.js";
2-
import { AutoFixSvg, HamburgerSvg } from "./SVGs.jsx";
3-
import { PlusSvg } from "./SVGs.jsx"
1+
import { useStates } from "./Context.tsx";
2+
import { AutoFixSvg, HamburgerSvg } from "./SVGs.tsx";
3+
import { PlusSvg } from "./SVGs.tsx"
44
import { useState } from "react";
5-
import { sessionProps } from "./types.js";
5+
import { sessionProps } from "./types.tsx";
66

77
export function ClearAllHistoryButton() {
88
return (<button onClick={() => { localStorage.removeItem('sessions') }} className="text-[10px] text-red-400 hover:underline">

src/components/ChatArea.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useRef } from "react";
2-
import { LightningSvg } from "./SVGs.jsx"
3-
import { ChatInterface } from "./model/ChatInterface.jsx"
4-
import { useStates } from "./Context.js";
2+
import { LightningSvg } from "./SVGs.tsx"
3+
import { ChatInterface } from "./model/ChatInterface.tsx"
4+
import { useStates } from "./Context.tsx";
55

66
export function ChatArea() {
77
const { chatMessages, liveToken, isLiveTokenLive, userPrompt } = useStates()

src/components/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SidebarToggleButton } from "./Buttons.jsx";
2-
import { NewChatButton } from "./Buttons.jsx";
3-
import { useStates } from "./Context.js";
1+
import { SidebarToggleButton } from "./Buttons.tsx";
2+
import { NewChatButton } from "./Buttons.tsx";
3+
import { useStates } from "./Context.tsx";
44

55
export function Header() {
66
const { modelStatus, loadedModelName } = useStates()

src/components/InputArea.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useRef, useEffect } from "react";
2-
import { SendButton } from "./Buttons.jsx";
3-
import { useStates } from "./Context.js";
2+
import { SendButton } from "./Buttons.tsx";
3+
import { useStates } from "./Context.tsx";
44

55
export function InputArea() {
66
const { setUserPrompt, modelStatus, isLiveTokenLive, stopModelReplyRef } = useStates()

src/components/ModelConfig.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useState } from "react";
2-
import { ModelConfigCloseButton, ModelConfigDoneButton, RecommendedButton, TabModelConfigButton } from "./Buttons.jsx";
3-
import { TabPromptConfigButton } from "./Buttons.jsx"
4-
import { PromptConfigTab } from "./sidebar/PromptConfigTab.jsx";
5-
import { ModelConfigTab } from "./sidebar/ModelConfigTab.jsx";
2+
import { ModelConfigCloseButton, ModelConfigDoneButton, RecommendedButton, TabModelConfigButton } from "./Buttons.tsx";
3+
import { TabPromptConfigButton } from "./Buttons.tsx"
4+
import { PromptConfigTab } from "./sidebar/PromptConfigTab.tsx";
5+
import { ModelConfigTab } from "./sidebar/ModelConfigTab.tsx";
66

77
export function ModelConfig() {
88
const [selectedTab, setSelectedTab] = useState<string>('promptConfigTab')

src/components/Sidebar.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { ModelConfigMenuButton, TabModelsButton } from "./Buttons.jsx"
2-
import { TabHistoryButton } from "./Buttons.jsx"
3-
import { ModelsList } from "./sidebar/modelsTab/ModelsList.jsx"
1+
import { ModelConfigMenuButton, TabModelsButton } from "./Buttons.tsx"
2+
import { TabHistoryButton } from "./Buttons.tsx"
3+
import { ModelsList } from "./sidebar/modelsTab/ModelsList.tsx"
44
import { useState } from "react"
5-
import { HistoryTab } from "./sidebar/historyTab/HistoryTab.jsx"
6-
import { ManualUpload } from "./sidebar/modelsTab/ManualUpload.jsx"
7-
import { DownloadProgressBar } from "./sidebar/DownloadProgressBar.jsx"
5+
import { HistoryTab } from "./sidebar/historyTab/HistoryTab.tsx"
6+
import { ManualUpload } from "./sidebar/modelsTab/ManualUpload.tsx"
7+
import { DownloadProgressBar } from "./sidebar/DownloadProgressBar.tsx"
88
import coderPrompt from "/systemPrompts/coderPrompt.txt?raw"
99
import friendlyPrompt from "/systemPrompts/friendlyPrompt.txt?raw"
10-
import { useStates } from "./Context.js"
10+
import { useStates } from "./Context.tsx"
1111

1212

1313
export function Sidebar() {

src/components/model/configValues.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function modelConfigCPF (config: modelConfigDefaultProps) {
5959
{ id: 'cache_type_k', label: 'KV Cache Precision (Keys)', hint: 'Key Memory quality. Higher (f32/f16) means more precision; lower (q4_0/q8_0) saves RAM but might make the AI slightly "forgetful."', type: 'select', step: '1', value: config.cache_type_k, min: '', max: '', options: cache_type_options },
6060
{ id: 'cache_type_v', label: 'KV Cache Precision (Values)', hint: "Value Memory quality. Same as above. It’s the second half of the AI's 'workspace' memory.", type: 'select', step: '1', value: config.cache_type_v, min: '', max: '', options: cache_type_options },
6161
{ id: 'flash_attn', label: 'Flash Attention', hint: 'Nitro boost. An optimization that makes the model faster and use less memory during long conversations. Keep it ON if your hardware supports it.', type: 'toggle', step: '1', value: config.flash_attn, min: '', max: '' },
62-
{ id: 'embedidings', label: 'Embedding mode', hint: 'Vector mode. Turn this on only if you are using the AI to compare pieces of text or build a search engine. Usually not needed for chatting.', type: 'toggle', step: '1', value: config.embeddings, min: '', max: '' },
62+
{ id: 'embeddings', label: 'Embedding mode', hint: 'Vector mode. Turn this on only if you are using the AI to compare pieces of text or build a search engine. Usually not needed for chatting.', type: 'toggle', step: '1', value: config.embeddings, min: '', max: '' },
6363
{ id: 'offload_kqv', label: 'GPU KV Offloading', hint: 'GPU Hand-off. Moves the heaviest math from your CPU to your GPU. Makes things much faster if you have a decent graphics card.', type: 'toggle', step: '1', value: config.offload_kqv, min: '', max: '' }
6464
];
6565
return modelConfigControlPanel;

src/components/sidebar/historyTab/HistoryTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ClearAllHistoryButton, RenderHistoryButton } from '../../Buttons.jsx';
2-
import { sessionProps } from '../../types.js';
1+
import { ClearAllHistoryButton, RenderHistoryButton } from '../../Buttons.tsx';
2+
import { sessionProps } from '../../types.tsx';
33

44
export function HistoryTab() {
55
let sessions: Array<sessionProps> = JSON.parse(localStorage.getItem('sessions') || '[]')

src/components/sidebar/modelsTab/ManualUpload.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState } from "react"
2-
import { UploadSvg } from "../../SVGs.jsx"
3-
import { UploadedModelFilesButton } from "../../Buttons.jsx"
4-
import { useStates } from "../../Context.js"
2+
import { UploadSvg } from "../../SVGs.tsx"
3+
import { UploadedModelFilesButton } from "../../Buttons.tsx"
4+
import { useStates } from "../../Context.tsx"
55

66

77
export function ManualUpload() {

0 commit comments

Comments
 (0)