lint and format combined
This commit is contained in:
parent
c8dc8d7f55
commit
64c5bbae29
3 changed files with 3 additions and 4 deletions
3
.github/workflows/server.yml
vendored
3
.github/workflows/server.yml
vendored
|
@ -81,12 +81,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '22.11.0'
|
node-version: '22.11.0'
|
||||||
|
|
||||||
- name: WebUI - Run lint
|
- name: WebUI - Install dependencies
|
||||||
id: webui_lint
|
id: webui_lint
|
||||||
run: |
|
run: |
|
||||||
cd examples/server/webui
|
cd examples/server/webui
|
||||||
npm ci
|
npm ci
|
||||||
npm run lint
|
|
||||||
|
|
||||||
- name: WebUI - Check code format
|
- name: WebUI - Check code format
|
||||||
id: webui_format
|
id: webui_format
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"format": "prettier --write .",
|
"format": "eslint . && prettier --write .",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default function ChatScreen() {
|
||||||
}, [viewingConversation?.id]);
|
}, [viewingConversation?.id]);
|
||||||
|
|
||||||
const sendNewMessage = async () => {
|
const sendNewMessage = async () => {
|
||||||
if (inputMsg.trim().length === 0) return;
|
if (inputMsg.trim().length === 0 || isGenerating(currConvId)) return;
|
||||||
const convId = viewingConversation?.id ?? StorageUtils.getNewConvId();
|
const convId = viewingConversation?.id ?? StorageUtils.getNewConvId();
|
||||||
const lastInpMsg = inputMsg;
|
const lastInpMsg = inputMsg;
|
||||||
setInputMsg('');
|
setInputMsg('');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue