CH-J ToolsSSH를 통한 서버 관리
메뉴
공개된 소스

CH-J Tools

특정 애플리케이션 릴리스의 디렉터리와 파일을 살펴보세요.

소스 ZIP 다운로드
CH-J / Server Manager 1704 개 파일
0.1.2-beta 추가됨: · 빌드됨:
availability.rs 추가됨: 날짜 기록 없음 755 B · 19 줄
코드 파일 다운로드
1//! Availability of saved servers: read the shared state, ask for a new round.
3use super::{main_core, CommandResult};
4use crate::core::app::CoreSlot;
5use serde_json::{json, Value};
6use tauri::{State, Webview};
8#[tauri::command]
9pub async fn core_availability_list(webview: Webview, slot: State<'_, CoreSlot>) -> CommandResult {
10 let core = main_core(&webview, &slot)?;
11 Ok(if core.vault.is_unlocked() { Value::Array(core.services.availability.snapshot()) } else { json!([]) })
14#[tauri::command]
15pub async fn core_availability_refresh(webview: Webview, slot: State<'_, CoreSlot>) -> CommandResult {
16 let core = main_core(&webview, &slot)?;
17 core.services.availability.refresh();
18 Ok(json!({ "refreshing": core.vault.is_unlocked() }))
SHA-2568dcd6047acf49d9ed2c4bc9684c4b8d920e0d67405c3289c7ad2524d5bdf9dcc

CH-J Proprietary Software License 1.14 · 소스는 CH-J Proprietary Software License 1.14에 따라 제공됩니다. 소스를 공개한다고 해서 라이선스 조항이 바뀌거나 추가 권리가 부여되지는 않습니다.

압축 파일 SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
파일