Version 0.1.0
This commit is contained in:
parent
261623960e
commit
4c1a8a9489
9 changed files with 37 additions and 29 deletions
18
Cargo.lock
generated
18
Cargo.lock
generated
|
|
@ -2048,14 +2048,6 @@ version = "2.7.4"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
||||
|
||||
[[package]]
|
||||
name = "migration"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"async-std",
|
||||
"sea-orm-migration",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "mime"
|
||||
version = "0.3.17"
|
||||
|
|
@ -3046,13 +3038,13 @@ dependencies = [
|
|||
"futures-util",
|
||||
"image",
|
||||
"itertools 0.14.0",
|
||||
"migration",
|
||||
"mime_guess",
|
||||
"password-auth",
|
||||
"pulldown-cmark",
|
||||
"rand 0.9.0",
|
||||
"rss",
|
||||
"rust-embed",
|
||||
"samey-migration",
|
||||
"sea-orm",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
|
@ -3063,6 +3055,14 @@ dependencies = [
|
|||
"tower-sessions",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "samey-migration"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"async-std",
|
||||
"sea-orm-migration",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "scopeguard"
|
||||
version = "1.2.0"
|
||||
|
|
|
|||
|
|
@ -6,9 +6,13 @@ rust-version = "1.85"
|
|||
license = "MIT"
|
||||
authors = ["Bad Manners <me@badmanners.xyz>"]
|
||||
readme = "README.md"
|
||||
keywords = ["booru", "image-board", "gallery"]
|
||||
categories = ["web-programming"]
|
||||
description = "Sam's small image board"
|
||||
repository = "https://github.com/BadMannersXYZ/samey"
|
||||
|
||||
[workspace]
|
||||
members = [".", "migration"]
|
||||
members = ["migration"]
|
||||
|
||||
[dependencies]
|
||||
askama = { version = "0.13.0", features = ["serde_json"] }
|
||||
|
|
@ -21,7 +25,7 @@ clap = "4.5.35"
|
|||
futures-util = "0.3.31"
|
||||
image = "0.25.6"
|
||||
itertools = "0.14.0"
|
||||
migration = { path = "migration" }
|
||||
samey-migration = { path = "./migration", version = "0.1.0" }
|
||||
mime_guess = "2.0.5"
|
||||
password-auth = "1.0.0"
|
||||
pulldown-cmark = "0.13.0"
|
||||
|
|
|
|||
|
|
@ -15,12 +15,13 @@ Still very much an early WIP.
|
|||
|
||||
### Known issues
|
||||
|
||||
- No way to close tag autocompletion on mobile
|
||||
- No way to close tag autocompletion on mobile.
|
||||
|
||||
### Roadmap
|
||||
|
||||
- [ ] Logging and improved error handling
|
||||
- [ ] Lossless compression
|
||||
- [ ] Post selection
|
||||
- [ ] Caching
|
||||
- [ ] Text media
|
||||
- [ ] Improve CSS
|
||||
|
|
|
|||
|
|
@ -1,16 +1,19 @@
|
|||
[package]
|
||||
name = "migration"
|
||||
name = "samey-migration"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
name = "migration"
|
||||
path = "src/lib.rs"
|
||||
edition = "2024"
|
||||
rust-version = "1.85"
|
||||
license = "MIT"
|
||||
authors = ["Bad Manners <me@badmanners.xyz>"]
|
||||
readme = "README.md"
|
||||
keywords = ["booru", "image-board", "gallery"]
|
||||
categories = ["web-programming"]
|
||||
description = "Migrations for Samey, Sam's small image board"
|
||||
repository = "https://github.com/BadMannersXYZ/samey"
|
||||
|
||||
[dependencies]
|
||||
async-std = { version = "1", features = ["attributes", "tokio1"] }
|
||||
|
||||
[dependencies.sea-orm-migration]
|
||||
version = "1.1.8"
|
||||
features = ["sqlx-sqlite", "runtime-tokio-rustls"]
|
||||
async-std = { version = "1.13.1", features = ["attributes", "tokio1"] }
|
||||
sea-orm-migration = { version = "1.1.8", features = [
|
||||
"sqlx-sqlite",
|
||||
"runtime-tokio-rustls",
|
||||
] }
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@ use sea_orm_migration::prelude::*;
|
|||
|
||||
#[async_std::main]
|
||||
async fn main() {
|
||||
cli::run_cli(migration::Migrator).await;
|
||||
cli::run_cli(samey_migration::Migrator).await;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use std::fmt::Debug;
|
||||
|
||||
use axum_login::{AuthUser, AuthnBackend, UserId};
|
||||
use migration::Expr;
|
||||
use password_auth::verify_password;
|
||||
use samey_migration::Expr;
|
||||
use sea_orm::{ActiveValue::Set, ColumnTrait, DatabaseConnection, EntityTrait, QueryFilter};
|
||||
use serde::Deserialize;
|
||||
use time::OffsetDateTime;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ use std::{
|
|||
};
|
||||
|
||||
use clap::{Parser, Subcommand};
|
||||
use migration::{Migrator, MigratorTrait};
|
||||
use samey::{create_user, get_router};
|
||||
use samey_migration::{Migrator, MigratorTrait};
|
||||
use sea_orm::Database;
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use std::collections::HashSet;
|
||||
|
||||
use chrono::NaiveDateTime;
|
||||
use migration::{Expr, Query};
|
||||
use samey_migration::{Expr, Query};
|
||||
use sea_orm::{
|
||||
ColumnTrait, Condition, DatabaseConnection, EntityTrait, FromQueryResult, IntoSimpleExpr,
|
||||
QueryFilter, QueryOrder, QuerySelect, RelationTrait, Select, SelectColumns, SelectModel,
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ use axum_extra::extract::Form;
|
|||
use chrono::Utc;
|
||||
use image::{GenericImageView, ImageFormat, ImageReader};
|
||||
use itertools::Itertools;
|
||||
use migration::{Expr, OnConflict, Query as MigrationQuery};
|
||||
use rand::Rng;
|
||||
use samey_migration::{Expr, OnConflict, Query as MigrationQuery};
|
||||
use sea_orm::{
|
||||
ActiveValue::Set, ColumnTrait, Condition, EntityTrait, FromQueryResult, IntoSimpleExpr,
|
||||
ModelTrait, PaginatorTrait, QueryFilter, QuerySelect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue