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 config;
mod template; mod template;
mod misc; mod utils;
mod routes; mod routes;
#[actix_web::main] #[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 actix_web::{get, http::header::ContentType, routes, web, HttpResponse, Responder};
use cached::proc_macro::once; use cached::proc_macro::once;
use ramhorns::Content; use ramhorns::Content;

View file

@ -16,7 +16,7 @@ use ramhorns::Content;
use crate::{ use crate::{
config::Config, config::Config,
misc::{ utils::{
date::Date, date::Date,
markdown::{get_metadata, get_options, File, FileMetadataBlog, TypeFileMetadata}, markdown::{get_metadata, get_options, File, FileMetadataBlog, TypeFileMetadata},
utils::{get_url, make_kw, read_file, Html}, utils::{get_url, make_kw, read_file, Html},

View file

@ -6,7 +6,7 @@ use std::fs::read_to_string;
use crate::{ use crate::{
config::Config, config::Config,
misc::{ utils::{
markdown::{File, TypeFileMetadata}, markdown::{File, TypeFileMetadata},
utils::{make_kw, read_file, Html}, utils::{make_kw, read_file, Html},
}, },

View file

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

View file

@ -8,11 +8,11 @@ use serde::{Deserialize, Serialize};
use crate::{ use crate::{
config::Config, config::Config,
misc::{ template::{InfosPage, NavBar},
utils::{
markdown::{File, TypeFileMetadata}, markdown::{File, TypeFileMetadata},
utils::{make_kw, read_file, Html}, utils::{make_kw, read_file, Html},
}, },
template::{InfosPage, NavBar},
}; };
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]

View file

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

View file

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

View file

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

View file

@ -3,7 +3,7 @@ use cached::proc_macro::once;
use crate::{ use crate::{
config::Config, config::Config,
misc::utils::{make_kw, Html}, utils::utils::{make_kw, Html},
template::InfosPage, template::InfosPage,
}; };

View file

@ -1,7 +1,7 @@
use reqwest::{header::ACCEPT, Error}; use reqwest::{header::ACCEPT, Error};
use serde::Deserialize; use serde::Deserialize;
use crate::misc::utils::get_reqwest_client; use crate::utils::utils::get_reqwest_client;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
struct GithubResponse { 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::general_purpose;
use base64::Engine; use base64::Engine;
use comrak::nodes::{AstNode, NodeValue}; use comrak::nodes::{AstNode, NodeValue};