Commit Graph

20 Commits

Author SHA1 Message Date
Aravinth Manivannan 9411c2ba9f
feat: read publication dir config and serve it 2023-03-12 20:10:40 +05:30
Aravinth Manivannan 604fca0a62
feat: archive campaign and benchmark data
DESCRIPTION
    FORMATS
	- Campaign configuration is stored in JSON format
	- Benchmark data is stored in CSV format

    DIRECTORY STRUCTURE
	Each campaign gets a separate directory. A campaign can have
	multiple archives. Archives are stored in directories whose names
	would be the same as the UNIX timestamp of when they were
	recorded.

	EXAMPLE
	    The example below shows three campaigns with one archive
	    each. Each archive is stored in a directory denoting the
	    moment in which the archive was generated. Each archive
	    includes campaign configuration and benchmark.

	    ```bash
		14:53 atm@lab archive → tree
		.
		├── 4e951e01-71ee-4a18-9b97-782965495ae3
		│   └── 1675329764
		│       ├── benchmark.csv
		│       └── challenge.json
		├── 9d16df08-dffc-484e-bbe2-10c00b431c7e
		│   └── 1675329764
		│       ├── benchmark.csv
		│       └── challenge.json
		└── fa9f7c24-afec-4505-adb9-8e0c3ce54d37
		    └── 1675329764
			├── benchmark.csv
			└── challenge.json

		7 directories, 6 files
		```
2023-03-08 17:36:45 +05:30
Aravinth Manivannan 29a5e065aa
feat: use settings from app context 2023-01-24 19:22:19 +05:30
Aravinth Manivannan 7ff66c551d
feat & chore: update actix-web and deps and use actix-auth-middleware for guarding auth routes 2022-03-26 12:45:36 +05:30
Aravinth Manivannan 0524208a39
mobile styling 2021-10-27 11:39:37 +05:30
Aravinth Manivannan 35937134f2
- initialize survey user
- skip survey user registration if cookie is already present
2021-10-14 20:39:39 +05:30
Aravinth Manivannan 95dba20074
handle survey sessions with actix sessions 2021-10-14 18:53:06 +05:30
Aravinth Manivannan 8c977ca0af
scope survey routes to /survey/ 2021-10-14 14:43:22 +05:30
Aravinth Manivannan 115b096008
restrict admin functions to /admin 2021-10-13 17:06:36 +05:30
Aravinth Manivannan a8c6912c25
implement redirect to source on admin login HTML endpoint 2021-10-13 14:28:18 +05:30
Aravinth Manivannan bc63926d18
templates 2021-10-13 14:11:39 +05:30
Aravinth Manivannan f10c620040
load mcaptcha-glue 2021-10-12 14:54:51 +05:30
Aravinth Manivannan 2609ade2a5
Setup ts compilation
- import frontend code from mCaptcha/benchs
- setup TS compilation workflow
- import vendor code from mCaptcha/mCaptcha/browser
- rewrite bench.js import in bundle.js to include file's hash
2021-10-12 14:02:34 +05:30
Aravinth Manivannan f1bc63d2c1
get admin functions into admin scope 2021-10-11 13:41:53 +05:30
Aravinth Manivannan f5d9094149
load static assets module 2021-10-11 10:32:19 +05:30
Aravinth Manivannan dbffef5e30
admin account management routes 2021-10-11 10:25:45 +05:30
Aravinth Manivannan d828a4a5d9
auth middleware: redirect to specified route 2021-10-11 10:09:51 +05:30
Aravinth Manivannan d2c4e9a06b
admin authentication 2021-10-11 09:56:15 +05:30
Aravinth Manivannan 3a7559d6a8
add survey table 2021-10-06 19:00:53 +05:30
Aravinth Manivannan a4251a772a
init 2021-10-04 21:21:10 +05:30