1
0
Fork 0
forked from 2sys/shoutdotdev

name change -> shout.dev

This commit is contained in:
Brent Schroeter 2025-02-26 13:10:46 -08:00
parent d593d56ef5
commit 2acb922979
12 changed files with 45 additions and 48 deletions

64
Cargo.lock generated
View file

@ -467,38 +467,6 @@ version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da"
[[package]]
name = "callout_dev"
version = "0.1.0"
dependencies = [
"anyhow",
"askama",
"askama_axum",
"async-session",
"axum",
"axum-extra",
"base64 0.22.1",
"chrono",
"config",
"console_error_panic_hook",
"deadpool-diesel",
"diesel",
"dotenvy",
"futures",
"oauth2",
"rand",
"reqwest 0.12.8",
"serde",
"serde_json",
"tokio",
"tower",
"tower-http",
"tower-service",
"tracing",
"tracing-subscriber",
"uuid",
]
[[package]]
name = "cc"
version = "1.1.31"
@ -2260,6 +2228,38 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "shoutdotdev"
version = "0.1.0"
dependencies = [
"anyhow",
"askama",
"askama_axum",
"async-session",
"axum",
"axum-extra",
"base64 0.22.1",
"chrono",
"config",
"console_error_panic_hook",
"deadpool-diesel",
"diesel",
"dotenvy",
"futures",
"oauth2",
"rand",
"reqwest 0.12.8",
"serde",
"serde_json",
"tokio",
"tower",
"tower-http",
"tower-service",
"tracing",
"tracing-subscriber",
"uuid",
]
[[package]]
name = "slab"
version = "0.4.9"

View file

@ -1,11 +1,8 @@
[package]
name = "callout_dev"
name = "shoutdotdev"
version = "0.1.0"
edition = "2021"
[unstable]
async_iterator = true
[dependencies]
tower-service = "0.3.2"
console_error_panic_hook = { version = "0.1.1" }

View file

@ -1,4 +1,4 @@
name: callout
name: shoutdotdev
services:
pg:

View file

@ -1,3 +0,0 @@
CREATE USER callout WITH ENCRYPTED PASSWORD 'callous';
CREATE DATABASE callout;
ALTER DATABASE callout OWNER TO callout;

View file

@ -0,0 +1,3 @@
CREATE USER shoutdotdev WITH ENCRYPTED PASSWORD 'callous';
CREATE DATABASE shoutdotdev;
ALTER DATABASE shoutdotdev OWNER TO shoutdotdev;

View file

@ -6,4 +6,4 @@ file = "src/schema.rs"
custom_type_derives = ["diesel::query_builder::QueryId", "Clone"]
[migrations_directory]
dir = "/Users/brent-personal/Developer/callout_dev/migrations"
dir = "migrations"

View file

@ -39,7 +39,7 @@ pub fn new_router(state: AppState) -> Router<()> {
format!("{}", base_path).as_str(),
Router::new()
.route("/", get(landing_page))
.nest("/v0", v0_router::new_router(state.clone()))
.merge(v0_router::new_router(state.clone()))
.route("/teams", get(teams_page))
.route("/teams/{team_id}", get(team_page))
.route("/teams/{team_id}/projects", get(projects_page))

View file

@ -43,7 +43,7 @@ pub struct Auth {
}
fn default_cookie_name() -> String {
"CALLOUT_SESSION".to_string()
"SHOUT_DOT_DEV_SESSION".to_string()
}
impl Settings {

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
<title>{% block title %}callout.dev{% endblock %}</title>
<title>{% block title %}Shout.dev{% endblock %}</title>
{% include "meta_tags.html" %}
<link rel="stylesheet" href="{{ base_path }}/bootstrap-5.3.3-dist/css/bootstrap.min.css">
</head>

View file

@ -1,6 +1,6 @@
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container">
<a class="navbar-brand" href="#">Callout.dev</a>
<a class="navbar-brand" href="#">Shout.dev</a>
<button
class="navbar-toggler"
type="button"

View file

@ -17,12 +17,12 @@
</p>
<p>
<code>
https://callout.dev{{ base_path }}/v0/say?project=my-first-project&amp;key=***&amp;message=Hello,%20World
https://shout.dev{{ base_path }}/say?project=my-first-project&amp;key=***&amp;message=Hello,%20World
</code>
</p>
<p>
<code>
https://callout.dev{{ base_path }}/v0/watchdog?project=my-first-project&amp;key=***&amp;seconds=300
https://shout.dev{{ base_path }}/watchdog?project=my-first-project&amp;key=***&amp;seconds=300
</code>
</p>
</div>

View file

@ -1,6 +1,6 @@
{% extends "base.html" %}
{% block title %}callout.dev: Teams{% endblock %}
{% block title %}Shout.dev: Teams{% endblock %}
{% block main %}
<nav class="container mt-4" aria-label="breadcrumb">