:recycle: [Refactor] Move messager.js to components
Browse files- {js β components}/messager.js +1 -1
- js/chat_operator.js +2 -2
{js β components}/messager.js
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
constructor(message) {
|
3 |
this.message = message;
|
4 |
this.create_elements();
|
|
|
1 |
+
class MessagerViewer {
|
2 |
constructor(message) {
|
3 |
this.message = message;
|
4 |
this.create_elements();
|
js/chat_operator.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
import { Messager, MessagerList } from "
|
2 |
-
import { transform_footnote } from "
|
3 |
|
4 |
let messagers_container = $("#messagers-container");
|
5 |
let available_models_select = $("#available-models-select");
|
|
|
1 |
+
import { Messager, MessagerList } from "../components/messager.js";
|
2 |
+
import { transform_footnote } from "../converters/stream_jsonizer.js";
|
3 |
|
4 |
let messagers_container = $("#messagers-container");
|
5 |
let available_models_select = $("#available-models-select");
|