├── db
├── src
│ ├── db.rs
│ ├── lib.rs
│ ├── database_args.rs
│ ├── database.rs
│ ├── entities
│ │ └── pasta.rs
│ ├── test_utils.rs
│ └── db
│ │ ├── json.rs
│ │ └── sqlite.rs
└── Cargo.toml
├── .github
├── index.png
├── logo.png
├── FUNDING.yml
├── workflows
│ ├── rust.yml
│ ├── pull_request.yml
│ ├── rust-clippy.yml
│ └── release.yml
└── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
├── templates
├── assets
│ ├── logo.png
│ ├── favicon.ico
│ ├── logo-square.png
│ ├── utils.js
│ └── highlight
│ │ ├── LICENSE
│ │ └── highlight.min.css
├── error.html
├── footer.html
├── qr.html
├── auth_admin.html
├── edit.html
├── header.html
├── guide.html
├── auth_upload.html
├── list.html
└── upload.html
├── render.yaml
├── .cargo
└── config.toml
├── .gitignore
├── SECURITY.md
├── src
├── util
│ ├── hashids.rs
│ ├── telemetry.rs
│ ├── http_client.rs
│ ├── version.rs
│ ├── syntaxhighlighter.rs
│ ├── animalnumbers.rs
│ ├── auth.rs
│ ├── cleanup.rs
│ └── misc.rs
├── endpoints
│ ├── errors.rs
│ ├── guide.rs
│ ├── list.rs
│ ├── auth_admin.rs
│ ├── static_resources.rs
│ ├── qr.rs
│ ├── admin.rs
│ ├── file.rs
│ ├── remove.rs
│ ├── pasta.rs
│ └── auth_upload.rs
├── error_handling.rs
├── main.rs
├── args.rs
└── pasta.rs
├── Dockerfile
├── docker-setup.sh
├── LICENSE
├── compose.yaml
├── Cargo.toml
├── README.md
└── .env
/db/src/db.rs:
--------------------------------------------------------------------------------
1 | pub(crate) mod json;
2 | pub(crate) mod sqlite;
3 |
--------------------------------------------------------------------------------
/.github/index.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yara-blue/microbin/HEAD/.github/index.png
--------------------------------------------------------------------------------
/.github/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yara-blue/microbin/HEAD/.github/logo.png
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: szabodanika
4 |
5 |
--------------------------------------------------------------------------------
/templates/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yara-blue/microbin/HEAD/templates/assets/logo.png
--------------------------------------------------------------------------------
/templates/assets/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yara-blue/microbin/HEAD/templates/assets/favicon.ico
--------------------------------------------------------------------------------
/templates/assets/logo-square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yara-blue/microbin/HEAD/templates/assets/logo-square.png
--------------------------------------------------------------------------------
/db/src/lib.rs:
--------------------------------------------------------------------------------
1 | pub mod database;
2 | pub mod database_args;
3 | mod db;
4 | mod test_utils;
5 | pub mod entities {
6 | pub mod pasta;
7 | }
8 |
--------------------------------------------------------------------------------
/templates/error.html:
--------------------------------------------------------------------------------
1 | {% include "header.html" %}
2 |
3 |
4 | {% if args.footer_text.as_ref().is_none() %} 5 | MicroBin by Dániel Szabó and the FOSS 6 | Community. Let's keep the Web compact, accessible and 7 | humane! {%- else %} {{ args.footer_text.as_ref().unwrap()|safe }} {%- 8 | endif %} 9 |
10 | 11 | {%- endif %} 12 | 13 |