Commit Graph

10 Commits (4127f923aa174ecebed93898dd39c1b21b6b2605)

Author SHA1 Message Date
Aravinth Manivannan c2a4f53385
chore: update rust-embed
ref: [RUSTSEC-2021-0126](
2022-04-06 11:32:41 +05:30
Aravinth Manivannan 2323dbf82c
feat: gist view 2022-03-12 18:16:42 +05:30
Aravinth Manivannan 34e8d8851f
feat: login and register HTML pages 2022-02-21 02:22:01 +05:30
Aravinth Manivannan b7fe7ea5d5
chore: rename gists to gitpad 2022-02-20 19:21:28 +05:30
Aravinth Manivannan 632fe272fa
feat: read_file processes directories
    This program supports directories in gists. This patch modifies
    Data::read_file to support directory reads. Additionally,
    CreateGistRequest is modified to accept files in subdirectories.

	When repository contains subdirectories, it will recursively
	read all files and return their contents.

	Set of known(to me) file modes that Git uses.
	GitFileMode::Unsupported is used to take advantage of
	num_enum::FromPrimitive. The alternative would have been
	num_enum::TryFromPrimitive, which returns errors on unsupported
	values. I felt the former was cleaner.
2022-02-18 21:38:38 +05:30
Aravinth Manivannan 303a4ab0ba
feat: helper method Data::new_gist to create new gist and tests
    Data::new_gist creates a bare repository in the supplied
    Data.settings.repository.root directory and saves metadata in the

    See accompanying test for usage
2022-02-14 22:46:17 +05:30
Aravinth Manivannan 34a67a5535 feat: bootstarp gists

- Sign Up
- Sign IN

- Username Exists
- Email Exists
- Account delete
- Password update
- Email update
- Username update
- Get account secret
- Update secret

All routes are implemented with proper error handling and testing

See ./config/default.toml for full list
2022-02-12 23:48:35 +05:30
Aravinth Manivannan 28bbdaebad feat: setup tests 2022-02-12 18:25:45 +05:30
Aravinth Manivannan b28a7d0cfb feat: bootstrap database ops
- db-core: defines base database traits that are required for gists
- db-sqlx-postgres: implements db-core for postgres flavor of the sqlx
- db-sqlx-sqlite: implements db-core for sqlite flavor of the sqlx
2022-02-12 16:35:55 +05:30
Aravinth Manivannan 85ab813816 init 2022-02-11 17:42:35 +05:30