Refactor: Rename NanoKVM to BatchuKVM and update server URL

This commit is contained in:
2025-12-09 20:35:38 +09:00
commit 8cf674c9e5
396 changed files with 54380 additions and 0 deletions

24
web/src/api/hid.ts Normal file
View File

@@ -0,0 +1,24 @@
import { http } from '@/lib/http.ts';
// paste
export function paste(content: string, langue: string) {
return http.post('/api/hid/paste', { content, langue });
}
// reset hid
export function reset() {
return http.post('/api/hid/reset');
}
// get hid mode
export function getHidMode() {
return http.get('/api/hid/mode');
}
// set hid mode
export function setHidMode(mode: string) {
const data = {
mode
};
return http.post('/api/hid/mode', data);
}