Skip to content

Commit 559acd8

Browse files
Merge branch 'stitionai:main' into main
2 parents 143679d + 086567c commit 559acd8

File tree

5 files changed

+23
-17
lines changed

5 files changed

+23
-17
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
We welcome contributions to enhance Devika's capabilities and improve its performance. To contribute, please follow these steps:
2+
3+
1. Fork the Devika repository on GitHub.
4+
2. Create a new branch for your feature or bug fix.
5+
3. Make your changes and ensure that the code passes all tests.
6+
4. Submit a pull request describing your changes and their benefits.
7+
8+
Please adhere to the coding conventions, maintain clear documentation, and provide thorough testing for your contributions.

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ uv pip install -r requirements.txt
8989
cd ui/
9090
bun install
9191
bun run dev
92+
cd ..
9293
python3 devika.py
9394
```
9495

@@ -216,14 +217,7 @@ To join the Devika community Discord server, [click here](https://discord.com/in
216217

217218
## Contributing
218219

219-
We welcome contributions to enhance Devika's capabilities and improve its performance. To contribute, please follow these steps:
220-
221-
1. Fork the Devika repository on GitHub.
222-
2. Create a new branch for your feature or bug fix.
223-
3. Make your changes and ensure that the code passes all tests.
224-
4. Submit a pull request describing your changes and their benefits.
225-
226-
Please adhere to the coding conventions, maintain clear documentation, and provide thorough testing for your contributions.
220+
We welcome contributions to enhance Devika's capabilities and improve its performance. To contribute, please see the `CONTRIBUTING.md` file for steps.
227221

228222
## License
229223

ui/src/lib/components/ControlPanel.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import { projectList, modelList, internet } from "$lib/store";
44
import { createProject, fetchProjectList, getTokenUsage } from "$lib/api";
55
6-
let selectedProject = localStorage.getItem("selectedProject") || "Select Project";
7-
let selectedModel = localStorage.getItem("selectedModel") || "Select Model";
6+
let selectedProject;
7+
let selectedModel;
88
let tokenUsage = 0;
99
1010
async function updateTokenUsage() {
@@ -54,6 +54,9 @@
5454
onMount(() => {
5555
setInterval(updateTokenUsage, 1000);
5656
57+
selectedProject = localStorage.getItem("selectedProject") || "Select Project";
58+
selectedModel = localStorage.getItem("selectedModel") || "Select Model";
59+
5760
document
5861
.getElementById("project-button")
5962
.addEventListener("click", function () {

ui/src/lib/components/TerminalWidget.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
<script>
22
import { onMount } from "svelte";
3-
import { Terminal } from "xterm";
43
import "xterm/css/xterm.css";
5-
import { FitAddon } from "xterm-addon-fit";
64
import { agentState } from "$lib/store";
75
86
let terminalElement;
97
let terminal;
108
let fitAddon;
119
12-
onMount(() => {
13-
terminal = new Terminal({
10+
onMount(async () => {
11+
let xterm = await import('xterm');
12+
let xtermAddonFit = await('xterm-addon-fit')
13+
14+
terminal = new xterm.Terminal({
1415
disableStdin: true,
1516
cursorBlink: true,
1617
convertEol: true,
1718
rows: 1,
1819
});
19-
fitAddon = new FitAddon();
20+
21+
fitAddon = new xtermAddonFit.FitAddon();
2022
terminal.loadAddon(fitAddon);
2123
terminal.open(terminalElement);
2224
fitAddon.fit();
@@ -99,4 +101,4 @@
99101
background: #4337c9;
100102
border-radius: 10px;
101103
}
102-
</style>
104+
</style>

ui/src/routes/+layout.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
export const ssr = false

0 commit comments

Comments
 (0)