This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use rocket::http::Status; | |
use rocket::{ | |
http::ContentType, | |
response::{self, Responder}, | |
Request, | |
}; | |
use rocket_contrib::json::Json; | |
use std::collections::HashMap; | |
#[derive(Debug)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compile_scss(compress = true) | |
puts cyan 'Compiling Sass files...' | |
files = Dir[File.join(__dir__, 'src/**/*.scss')].reject { |name| name.split("/").last[0] == '_'} | |
system(": > ./static/app.css") | |
files.each do |file| | |
compress ? | |
system("sass #{file} -s compressed | uglifycss >> ./static/app.css") : | |
system("sass #{file} >> ./static/app.css") | |
end | |
puts green 'Sass files compiled' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::Deserialize; | |
use serde::Serialize; | |
use serde_qs as qs; | |
use uuid::Uuid; | |
use yew::callback::Callback; | |
use yew::format::Text; | |
use yew::services::fetch::{FetchService, FetchTask, Request, Response, StatusCode}; | |
use yew::services::storage::{Area, StorageService}; | |
use yew::ComponentLink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use lazy_static::lazy_static; | |
use std::marker::PhantomData; | |
use crate::app::services::http_client::Method; | |
pub enum Api { | |
Licenses, | |
Auth, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod app; | |
fn main() { | |
yew::start_app::<app::Model>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use log::info; | |
use yew::{html, Component, ComponentLink, Html, Renderable, ShouldRender}; | |
use crate::app::modules::Header; | |
use crate::app::root::Model as Root; | |
pub struct Model {} | |
impl Component for Model { | |
type Message = (); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate simple_proxy; | |
mod middlewares; | |
use middlewares::auth::Auth; | |
use simple_proxy::middlewares::{Cors, Health, Logger, Router}; | |
use simple_proxy::SimpleProxy; | |
fn main() { | |
let config = config::Config::new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use chrono::{DateTime, Utc}; | |
use hyper::{Body, Request, Response}; | |
use serde_json; | |
use crate::proxy::error::MiddlewareError; | |
use crate::proxy::middleware::MiddlewareResult::Next; | |
use crate::proxy::middleware::{Middleware, MiddlewareResult}; | |
use crate::proxy::service::{ServiceContext, State}; | |
#[derive(Clone, Default)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# coding: utf-8 | |
# Colors utils | |
GREY = "\e[38;5;247m".freeze | |
GREEN = "\e[0;92m".freeze | |
YELLOW = "\e[0;93m".freeze | |
CYAN = "\e[0;96m".freeze | |
RED = "\e[0;91m".freeze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abaque | |
abat | |
abats | |
abatte | |
abattu | |
abbaye | |
aberra | |
aberre | |
abject | |
abjura |
NewerOlder