Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nvms committed Dec 7, 2023
1 parent 3c95de6 commit bf745b5
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 53 deletions.
90 changes: 45 additions & 45 deletions extension/dist/webview.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -50623,6 +50623,42 @@ class xe extends ke {
}
}
function Vf(r) {
let e;
return {
c() {
e = b("div"), f(e, "class", "space-y-4 overflow-hidden highlighter svelte-1ieua60");
},
m(t, n) {
P(t, e, n), e.innerHTML = /*markup*/
r[0];
},
p(t, [n]) {
n & /*markup*/
1 && (e.innerHTML = /*markup*/
t[0]);
},
i: Ee,
o: Ee,
d(t) {
t && w(e);
}
};
}
function zf(r, e, t) {
let { code: n = "" } = e, a = "<span</span>";
return r.$$set = (o) => {
"code" in o && t(1, n = o.code);
}, r.$$.update = () => {
r.$$.dirty & /*code*/
2 && t(0, a = ve(n));
}, [a, n];
}
class Wf extends ke {
constructor(e) {
super(), Pe(this, e, zf, Vf, De, { code: 1 });
}
}
function Kf(r) {
let e, t, n, a, o, i = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ width: "1em" },
Expand Down Expand Up @@ -50658,17 +50694,17 @@ function Vf(r) {
}
};
}
function zf(r, e, t) {
function Qf(r, e, t) {
return r.$$set = (n) => {
t(0, e = Xe(Xe({}, e), dt(n)));
}, e = dt(e), [e];
}
class Wf extends ke {
class Xf extends ke {
constructor(e) {
super(), Pe(this, e, zf, Vf, De, {});
super(), Pe(this, e, Qf, Kf, De, {});
}
}
function Kf(r) {
function Zf(r) {
let e, t, n = [
{ xmlns: "http://www.w3.org/2000/svg" },
{ width: "1em" },
Expand Down Expand Up @@ -50704,55 +50740,19 @@ function Kf(r) {
}
};
}
function Qf(r, e, t) {
function Jf(r, e, t) {
return r.$$set = (n) => {
t(0, e = Xe(Xe({}, e), dt(n)));
}, e = dt(e), [e];
}
class Xf extends ke {
constructor(e) {
super(), Pe(this, e, Qf, Kf, De, {});
}
}
function Zf(r) {
let e;
return {
c() {
e = b("div"), f(e, "class", "space-y-4 overflow-hidden highlighter svelte-1ieua60");
},
m(t, n) {
P(t, e, n), e.innerHTML = /*markup*/
r[0];
},
p(t, [n]) {
n & /*markup*/
1 && (e.innerHTML = /*markup*/
t[0]);
},
i: Ee,
o: Ee,
d(t) {
t && w(e);
}
};
}
function Jf(r, e, t) {
let { code: n = "" } = e, a = "<span</span>";
return r.$$set = (o) => {
"code" in o && t(1, n = o.code);
}, r.$$.update = () => {
r.$$.dirty & /*code*/
2 && t(0, a = ve(n));
}, [a, n];
}
class jf extends ke {
constructor(e) {
super(), Pe(this, e, Jf, Zf, De, { code: 1 });
super(), Pe(this, e, Jf, Zf, De, {});
}
}
function eT(r) {
let e, t;
return e = new Wf({ props: { class: "w-6 h-6 mr-2" } }), {
return e = new Xf({ props: { class: "w-6 h-6 mr-2" } }), {
c() {
se(e.$$.fragment);
},
Expand All @@ -50772,7 +50772,7 @@ function eT(r) {
}
function tT(r) {
let e, t;
return e = new Xf({ props: { class: "w-6 h-6 mr-2" } }), {
return e = new jf({ props: { class: "w-6 h-6 mr-2" } }), {
c() {
se(e.$$.fragment);
},
Expand Down Expand Up @@ -50816,7 +50816,7 @@ function nT(r) {
)
);
}
~(n = u(r)) && (a = m[n] = d[n](r)), l = new jf({ props: { code: (
~(n = u(r)) && (a = m[n] = d[n](r)), l = new Wf({ props: { code: (
/*message*/
r[1]
) } });
Expand Down
2 changes: 1 addition & 1 deletion extension/dist/webview.umd.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion extension/src/random.txt

This file was deleted.

9 changes: 4 additions & 5 deletions webview/src/components/ConversationMessage.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<script lang="ts">
import extComm from "@/messaging";
import { createEventDispatcher } from "svelte";
import { getNotificationsContext } from "svelte-notifications";
import Highlighter from "./Highlighter.svelte";
import AIAvatarIcon from "./icons/AIAvatarIcon.svelte";
import UserAvatarIcon from "./icons/UserAvatarIcon.svelte";
import Highlighter from "./Highlighter.svelte";
import Button from "./Button.svelte";
import { getNotificationsContext } from "svelte-notifications";
import extComm from "@/messaging";
import { createEventDispatcher, tick } from "svelte";
export let from: "user" | "assistant" = "user";
export let message: string = "";
Expand Down
2 changes: 1 addition & 1 deletion webview/src/components/ModeView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
}
}
function hideDescription() {
description = "";
}
Expand Down

0 comments on commit bf745b5

Please sign in to comment.