This file contains hidden or 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 common; | |
#[cfg(test)] | |
mod tests { | |
use crate::common::{TestApp, Vars}; | |
use async_graphql::ID; | |
use gql_client::Client; | |
use serde_json::Value; | |
use server::error::AppError; | |
use server::http::project::resolver::Project; |
This file contains hidden or 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 async_graphql::ID; | |
use serde::Serialize; | |
use server::config::{Configuration, Http, Postgres}; | |
use server::http::App; | |
use sqlx::{Executor, PgPool}; | |
use uuid::Uuid; | |
pub struct TestApp { | |
pub addr: String, | |
pub pool: PgPool, |
This file contains hidden or 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
// _app.tsx | |
import "../styles/globals.css"; | |
import type { AppProps } from "next/app"; | |
import { useEffect } from "react"; | |
import * as Fathom from "fathom-client"; | |
import { useRouter } from "next/router"; | |
function MyApp({ Component, pageProps }: AppProps) { | |
const router = useRouter(); |
OlderNewer