upgraded ui

This commit is contained in:
Saifeddine ALOUI 2024-12-20 21:56:00 +01:00
parent b930b7940e
commit 54e09e85da
9 changed files with 4723 additions and 4268 deletions

3997
web/dist/assets/index-Bt6VF9H5.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

8
web/dist/assets/index-COFFlPfA.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script> <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title> <title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-DQmEh9rd.js"></script> <script type="module" crossorigin src="/assets/index-Bt6VF9H5.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C5n6m1nm.css"> <link rel="stylesheet" crossorigin href="/assets/index-COFFlPfA.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

636
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,15 +16,17 @@
"axios": "^1.7.4", "axios": "^1.7.4",
"baklavajs": "^2.3.0", "baklavajs": "^2.3.0",
"dompurify": "^3.1.3", "dompurify": "^3.1.3",
"feather-icons": "^4.29.0", "feather-icons": "^4.29.2",
"flowbite": "^1.6.5", "flowbite": "^1.6.5",
"flowbite-vue": "^0.0.10", "flowbite-vue": "^0.0.7",
"highlight.js": "^11.8.0", "highlight.js": "^11.11.0",
"katex": "^0.16.18",
"markdown-it": "^13.0.2", "markdown-it": "^13.0.2",
"markdown-it-anchor": "^8.6.7", "markdown-it-anchor": "^8.6.7",
"markdown-it-attrs": "^4.1.6", "markdown-it-attrs": "^4.1.6",
"markdown-it-emoji": "^2.0.2", "markdown-it-emoji": "^2.0.2",
"markdown-it-implicit-figures": "^0.11.0", "markdown-it-implicit-figures": "^0.11.0",
"markdown-it-katex": "^2.0.3",
"markdown-it-math": "^4.1.1", "markdown-it-math": "^4.1.1",
"markdown-it-mathjax": "^2.0.0", "markdown-it-mathjax": "^2.0.0",
"markdown-it-multimd-table": "^4.2.3", "markdown-it-multimd-table": "^4.2.3",
@ -33,12 +35,15 @@
"mathjax": "^3.2.2", "mathjax": "^3.2.2",
"mermaid": "^11.2.1", "mermaid": "^11.2.1",
"monaco-editor": "^0.51.0", "monaco-editor": "^0.51.0",
"monaco-editor-vue3": "^0.1.10",
"papaparse": "^5.4.1", "papaparse": "^5.4.1",
"prismjs": "^1.29.0", "prismjs": "^1.29.0",
"socket.io-client": "^4.6.1", "socket.io-client": "^4.6.1",
"three": "^0.159.0", "three": "^0.159.0",
"vue": "^3.5.10", "vue": "^3.5.10",
"vue-inline-svg": "^2.1.3", "vue-inline-svg": "^2.1.3",
"vue-json-pretty": "^2.4.0",
"vue-markdown": "^2.1.3",
"vue-router": "^4.1.6", "vue-router": "^4.1.6",
"vuex": "^4.0.2" "vuex": "^4.0.2"
}, },

View File

@ -21,7 +21,8 @@
<script> <script>
import { nextTick, ref, onMounted, watch } from 'vue'; import { nextTick, ref, onMounted, watch } from 'vue';
import feather from 'feather-icons'; import feather from 'feather-icons';
import MarkdownIt from 'markdown-it'; import MarkdownIt from 'markdown-it'
import markdownItKatex from 'markdown-it-katex'
import emoji from 'markdown-it-emoji'; import emoji from 'markdown-it-emoji';
import anchor from 'markdown-it-anchor'; import anchor from 'markdown-it-anchor';
import MarkdownItMultimdTable from 'markdown-it-multimd-table'; import MarkdownItMultimdTable from 'markdown-it-multimd-table';
@ -101,7 +102,7 @@ export default {
multilineCellPadding: ' ', multilineCellPadding: ' ',
multilineCellJoiner: '\n', multilineCellJoiner: '\n',
}) })
.use(mathjax); // Ensure mathjax is used for inline LaTeX .use(markdownItKatex)
const markdownItems = ref([]); const markdownItems = ref([]);
const updateMarkdown = () => { const updateMarkdown = () => {
@ -173,3 +174,4 @@ export default {
display: inline !important; display: inline !important;
} }
</style> </style>

View File

@ -2,6 +2,7 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig, loadEnv } from 'vite' import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import monacoEditorPlugin from 'vite-plugin-monaco-editor'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
@ -14,6 +15,9 @@ export default async ({ mode }) => {
plugins: [ plugins: [
vue() vue()
], ],
optimizeDeps: {
include: ['monaco-editor/esm/vs/editor/editor.main.js']
},
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))