rename misc dir to utils dir

This commit is contained in:
Mylloon 2024-11-09 16:36:04 +01:00
parent 47570bf9e3
commit 9dde91f8ed
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
15 changed files with 13 additions and 13 deletions

View file

@ -13,7 +13,7 @@ use crate::routes::{
mod config;
mod template;
mod misc;
mod utils;
mod routes;
#[actix_web::main]

View file

@ -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;

View file

@ -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},

View file

@ -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},
},

View file

@ -2,7 +2,7 @@ use std::collections::HashMap;
use crate::{
config::Config,
misc::{
utils::{
github::{fetch_pr, ProjectState},
utils::{make_kw, Html},
},

View file

@ -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)]

View file

@ -4,7 +4,7 @@ use ramhorns::Content;
use crate::{
config::Config,
misc::{
utils::{
markdown::{File, TypeFileMetadata},
utils::{make_kw, read_file, Html},
},

View file

@ -4,7 +4,7 @@ use ramhorns::Content;
use crate::{
config::Config,
misc::utils::{get_url, Html},
utils::utils::{get_url, Html},
template::{InfosPage, NavBar},
};

View file

@ -5,7 +5,7 @@ use ramhorns::Content;
use crate::{
config::Config,
misc::{
utils::{
markdown::{File, TypeFileMetadata},
utils::{make_kw, read_file, Html},
},

View file

@ -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,
};

View file

@ -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 {

View file

@ -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};