feat: setup wizard shell

This commit is contained in:
2026-04-22 12:41:33 +01:00
parent e8005f3fbf
commit aa28a03e3c
5 changed files with 143 additions and 22 deletions

View File

@@ -3,10 +3,10 @@ use serde::Deserialize;
use crate::{api, query};
#[derive(Clone)]
struct CreateDeviceCode;
pub struct CreateDeviceCode;
#[derive(Deserialize)]
struct DeviceCodeResponse {
pub struct DeviceCodeResponse {
device_code: String,
user_code: String,
vertification_uri: String,
@@ -20,7 +20,7 @@ impl query::QueryFn for CreateDeviceCode {
type Context = api::QueryContext;
fn key(&self) -> &'static str {
todo!()
"auth.device_code"
}
async fn run(&self, c: &Self::Context) -> Result<Self::Data, Self::Error> {