Skip to content

Commit

Permalink
feat: edit the front-end page
Browse files Browse the repository at this point in the history
  • Loading branch information
Maricaya committed Sep 29, 2024
1 parent 8180c68 commit d7aaf9f
Show file tree
Hide file tree
Showing 34 changed files with 1,567 additions and 536 deletions.
8 changes: 4 additions & 4 deletions core/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ use reqwest::RequestBuilder;
use crate::error::{Error, Result};

#[async_trait::async_trait]
pub trait Auth: Sync + Send + std::fmt::Debug {
pub trait Auth: Sync + Send {
async fn wrap(&self, builder: RequestBuilder) -> Result<RequestBuilder>;
fn username(&self) -> String;
}

#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct BasicAuth {
username: String,
password: SensitiveString,
Expand All @@ -48,7 +48,7 @@ impl Auth for BasicAuth {
}
}

#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct AccessTokenAuth {
token: SensitiveString,
}
Expand All @@ -72,7 +72,7 @@ impl Auth for AccessTokenAuth {
}
}

#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct AccessTokenFileAuth {
token_file: String,
}
Expand Down
4 changes: 1 addition & 3 deletions core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static VERSION: Lazy<String> = Lazy::new(|| {
version.to_string()
});

#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct APIClient {
pub cli: HttpClient,
pub scheme: String,
Expand Down Expand Up @@ -385,8 +385,6 @@ impl APIClient {
}
resp.schema = schema;
resp.data = data;
// resp.error = None;
println!("----resp:--- ==={:?}", resp.error);
Ok(resp)
} else {
Ok(resp)
Expand Down
7 changes: 7 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"antd": "^5.19.1",
"lodash-es": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
Expand Down Expand Up @@ -41,5 +42,11 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13"
}
}
6 changes: 6 additions & 0 deletions frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
16 changes: 16 additions & 0 deletions frontend/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d7aaf9f

Please sign in to comment.