rename misc dir to utils dir
This commit is contained in:
parent
47570bf9e3
commit
9dde91f8ed
15 changed files with 13 additions and 13 deletions
|
@ -13,7 +13,7 @@ use crate::routes::{
|
|||
mod config;
|
||||
mod template;
|
||||
|
||||
mod misc;
|
||||
mod utils;
|
||||
mod routes;
|
||||
|
||||
#[actix_web::main]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{config::Config, misc::utils::get_url, template::InfosPage};
|
||||
use crate::{config::Config, utils::utils::get_url, template::InfosPage};
|
||||
use actix_web::{get, http::header::ContentType, routes, web, HttpResponse, Responder};
|
||||
use cached::proc_macro::once;
|
||||
use ramhorns::Content;
|
||||
|
|
|
@ -16,7 +16,7 @@ use ramhorns::Content;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::{
|
||||
utils::{
|
||||
date::Date,
|
||||
markdown::{get_metadata, get_options, File, FileMetadataBlog, TypeFileMetadata},
|
||||
utils::{get_url, make_kw, read_file, Html},
|
||||
|
|
|
@ -6,7 +6,7 @@ use std::fs::read_to_string;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::{
|
||||
utils::{
|
||||
markdown::{File, TypeFileMetadata},
|
||||
utils::{make_kw, read_file, Html},
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::collections::HashMap;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::{
|
||||
utils::{
|
||||
github::{fetch_pr, ProjectState},
|
||||
utils::{make_kw, Html},
|
||||
},
|
||||
|
|
|
@ -8,11 +8,11 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::{
|
||||
template::{InfosPage, NavBar},
|
||||
utils::{
|
||||
markdown::{File, TypeFileMetadata},
|
||||
utils::{make_kw, read_file, Html},
|
||||
},
|
||||
template::{InfosPage, NavBar},
|
||||
};
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
|
@ -4,7 +4,7 @@ use ramhorns::Content;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::{
|
||||
utils::{
|
||||
markdown::{File, TypeFileMetadata},
|
||||
utils::{make_kw, read_file, Html},
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@ use ramhorns::Content;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::utils::{get_url, Html},
|
||||
utils::utils::{get_url, Html},
|
||||
template::{InfosPage, NavBar},
|
||||
};
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ use ramhorns::Content;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::{
|
||||
utils::{
|
||||
markdown::{File, TypeFileMetadata},
|
||||
utils::{make_kw, read_file, Html},
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@ use cached::proc_macro::once;
|
|||
|
||||
use crate::{
|
||||
config::Config,
|
||||
misc::utils::{make_kw, Html},
|
||||
utils::utils::{make_kw, Html},
|
||||
template::InfosPage,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use reqwest::{header::ACCEPT, Error};
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::misc::utils::get_reqwest_client;
|
||||
use crate::utils::utils::get_reqwest_client;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct GithubResponse {
|
|
@ -1,4 +1,4 @@
|
|||
use crate::misc::date::Date;
|
||||
use crate::utils::date::Date;
|
||||
use base64::engine::general_purpose;
|
||||
use base64::Engine;
|
||||
use comrak::nodes::{AstNode, NodeValue};
|
Loading…
Reference in a new issue