Skip to content

Commit 29b2cd8

Browse files
committed
0.3.0
1 parent 5a7438a commit 29b2cd8

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Next-Langchain-Tauri is a desktop application that combines the power of Next.js for frontend development, Langchain.js for AI processing, and Tauri for packaging the application as a desktop app.
44

5-
<img width="1392" alt="Screenshot 2024-03-12 at 10 34 59 AM" src="https://github.com/etrobot/Next-Langchain-Tauri/assets/3889058/97a7b3e9-653e-4e10-afc2-9b9326a5ee1c">
5+
<img width="1280" alt="image" src="https://github.com/etrobot/next-langchain-tauri/assets/3889058/bad52bde-375b-478a-82c2-158c271f9329">
66

77
## How to use
88

components/agents.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default function Agents({ setInput, showPinnedOnly }: AgentsProps) {
137137
const toggleDark = (AgentId: string) => {
138138
const updatedAgents = {
139139
...agents,
140-
[AgentId]: { ...agents[AgentId], bg: agents[AgentId].dark ? agents[AgentId].bg.replace(/60%\)/g, '94%)') : agents[AgentId].bg.replace(/94%\)/g, '60%)'), dark: !agents[AgentId].dark }
140+
[AgentId]: { ...agents[AgentId], bg: agents[AgentId].dark ? agents[AgentId].bg.replace(/60%\)/g, '96%)') : agents[AgentId].bg.replace(/96%\)/g, '60%)'), dark: !agents[AgentId].dark }
141141
}
142142
setAgents(updatedAgents)
143143
saveAgents(updatedAgents);

components/chat-message-actions.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export function ChatMessageActions({
173173
<Button className='mx-1' variant="outline" onClick={() => {setCoversOpen(false);setMsgEditorOpen(true);setFromCovers(true)}}>Edit Texts</Button>
174174
</DialogTitle>
175175
</DialogHeader>
176-
<div className="flex flex-nowrap overflow-x-auto space-x-4">
176+
<div className="flex flex-nowrap overflow-x-auto">
177177
{covers.map((cover, index) => (
178178
<Cover
179179
key={index}

lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function getRandomColor(): string {
2323
export function getRandomGradient(dark: boolean): string {
2424
const randomHue = (): number => Math.floor(Math.random() * 360);
2525
const randomSaturation = (): number => Math.floor(Math.random() * 100);
26-
const fixedLightness = dark ? 60 : 94;
26+
const fixedLightness = dark ? 60 : 96;
2727

2828
const color1 = `hsl(${randomHue()}, ${randomSaturation()}%, ${fixedLightness}%)`;
2929
const color2 = `hsl(${randomHue()}, ${randomSaturation()}%, ${fixedLightness}%)`;

next.config.mjs

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
//for vercel
2-
/** @type {import('next').NextConfig} */
3-
const nextConfig = {
4-
env: {
5-
NEXT_PUBLIC_API_URL: ''
6-
},
7-
images: {
8-
domains: [
9-
'lh3.googleusercontent.com',
10-
'oaidalleapiprodscus.blob.core.windows.net',
11-
],
12-
}
13-
}
14-
export default nextConfig;
15-
16-
// //for tauri use this part:
172
// /** @type {import('next').NextConfig} */
183
// const nextConfig = {
194
// env: {
20-
// NEXT_PUBLIC_API_URL: process.env.NODE_ENV === 'development' ? 'http://localhost:3100' : 'http://localhost:6677'
5+
// NEXT_PUBLIC_API_URL: ''
216
// },
22-
// ...(process.env.NODE_ENV === 'production' && {
23-
// output: 'export',
24-
// }),
7+
// images: {
8+
// domains: [
9+
// 'lh3.googleusercontent.com',
10+
// 'oaidalleapiprodscus.blob.core.windows.net',
11+
// ],
12+
// }
2513
// }
26-
// export default nextConfig;
14+
// export default nextConfig;
15+
16+
// //for tauri use this part:
17+
/** @type {import('next').NextConfig} */
18+
const nextConfig = {
19+
env: {
20+
NEXT_PUBLIC_API_URL: process.env.NODE_ENV === 'development' ? 'http://localhost:3100' : 'http://localhost:6677'
21+
},
22+
...(process.env.NODE_ENV === 'production' && {
23+
output: 'export',
24+
}),
25+
}
26+
export default nextConfig;

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "Next-Langchain-Tauri",
11-
"version": "0.2.0"
11+
"version": "0.3.0"
1212
},
1313
"tauri": {
1414
"allowlist": {

0 commit comments

Comments
 (0)