Skip to content

Commit 74c04c3

Browse files
authored
Merge pull request #6 from encryption4all/file-encrypt-design
Add file encryption and signing feature
2 parents 1d59f53 + 567bc64 commit 74c04c3

181 files changed

Lines changed: 12133 additions & 2257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
VITE_PKG_URL="https://postguard-main.cs.ru.nl/pkg"
2+
VITE_APP_VERSION="1.0.0"
3+
VITE_APP_NAME="PostGuard"
4+
VITE_MAX_UPLOAD_SIZE=2147483648 # 2 Gib
5+
VITE_UPLOAD_CHUNK_SIZE=1048576
6+
VITE_FILEREAD_CHUNK_SIZE=1048576
7+
VITE_BACKEND_URL=""

.eslintrc.cjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:svelte/recommended',
7+
'prettier',
8+
],
9+
parser: '@typescript-eslint/parser',
10+
plugins: ['@typescript-eslint'],
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020,
14+
extraFileExtensions: ['.svelte'],
15+
},
16+
env: {
17+
browser: true,
18+
es2017: true,
19+
node: true,
20+
},
21+
overrides: [
22+
{
23+
files: ['*.svelte'],
24+
parser: 'svelte-eslint-parser',
25+
parserOptions: {
26+
parser: '@typescript-eslint/parser',
27+
},
28+
},
29+
],
30+
}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
/node_modules
2+
.claude/
23
.svelte-kit
34
build
45
package
6+
.idea
7+
.vscode
8+
.env
9+
10+
# macOS
11+
.DS_Store

README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
1-
# create-svelte
1+
# PostGuard Website
22

3-
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
3+
The PostGuard web frontend for encrypting and sending files using [Yivi](https://yivi.app)-based identity attributes. Built with SvelteKit.
44

5-
## Creating a project
5+
## Prerequisites
66

7-
If you're seeing this, you've probably already done this step. Congrats!
8-
9-
```bash
10-
# create a new project in the current directory
11-
npm create svelte@latest
12-
13-
# create a new project in my-app
14-
npm create svelte@latest my-app
15-
```
7+
- [Node.js](https://nodejs.org/)
8+
- A running [Cryptify](https://github.com/nickt/cryptify) backend (otherwise you'll end up on the "error occurred" page)
169

1710
## Developing
1811

19-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
12+
Install dependencies and create a `.env` file based on `.env.example`. Make sure the chunk size matches your Cryptify backend configuration.
2013

2114
```bash
15+
npm install
16+
cp .env.example .env
2217
npm run dev
23-
24-
# or start the server and open the app in a new browser tab
25-
npm run dev -- --open
2618
```
2719

28-
## Building
20+
## Mobile Debugging
2921

30-
To create a production version of your app:
22+
To test on a physical Android device over USB:
3123

3224
```bash
33-
npm run build
25+
npm run dev -- --host
26+
adb reverse tcp:5173 tcp:5173
27+
adb reverse tcp:8000 tcp:8000
3428
```
3529

36-
You can preview the production build with `npm run preview`.
30+
Port 5173 is the dev server, port 8000 is for the Cryptify backend. Then open `http://localhost:5173` in the phone's browser.
31+
32+
## Building
3733

38-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
34+
```bash
35+
npm run build
36+
npm run preview # preview the production build
37+
```

0 commit comments

Comments
 (0)