Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudomain support, register endpoint #505

Draft
wants to merge 45 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
85c9c6e
#288 #489 Register Endpoint and true URLs
joepio Sep 28, 2022
0cff112
Fix some tests
joepio Sep 28, 2022
f5c5882
#502 refactor to AtomicUrl
joepio Oct 12, 2022
aebadad
#518 Fix cargo in CI
joepio Oct 12, 2022
f406a99
Fix tests
joepio Oct 13, 2022
8eedb09
Debug for endpoints
joepio Oct 16, 2022
b1bdca6
Fix URL refactor paths endpoints #502
joepio Oct 16, 2022
747e5d1
URL refactor
joepio Oct 16, 2022
318806c
Add rust vscode extension suggestions
joepio Oct 16, 2022
9d6a1cc
Fix pnpm tasks
joepio Oct 16, 2022
e8409c0
Improve register endpoint, WIP
joepio Oct 25, 2022
681e344
Rebased
joepio Nov 2, 2022
f098d78
Update changelog
joepio Nov 9, 2022
0135f4a
Custom .env parsing, smtp server opts
joepio Nov 29, 2022
63fb5ed
Register endpoint, mail, tokens, #489 #254 #544
joepio Dec 2, 2022
e82201f
WIP
joepio Dec 9, 2022
79782dd
Public key reset endpoint WIP
joepio Dec 15, 2022
b6c650f
#502 fix path confirm email
joepio Dec 27, 2022
9e4694d
Check uniqueness username earlier #489
joepio Dec 31, 2022
4612555
Refactor endpoints, update JSON
joepio Jan 3, 2023
6eaba9d
Improve check_append error #558
joepio Jan 12, 2023
0d3b943
#556 constrain URLs
joepio Jan 23, 2023
609a2fd
Store.tpf public for tests
joepio Jan 23, 2023
f697ec0
import_file test failing on macos #564
joepio Jan 24, 2023
c265fde
Throw error on trailing slash server URL #566
joepio Jan 24, 2023
77f79c3
Fix cookies subject in search
joepio Feb 5, 2023
bf6ddab
Set max chars for meta tags
joepio Feb 10, 2023
4e31d0b
Improve commit error
joepio Feb 10, 2023
0fb74c2
Cleanup, imports
joepio Feb 25, 2023
39766e8
Fix rebase issues
joepio Feb 27, 2023
bff73c3
Use get_subject
joepio Feb 27, 2023
c741566
Do not add `register` endpoint if there is no SMTP server
joepio Mar 30, 2023
286d3df
Fix issues?
joepio Jul 26, 2023
5feb834
Add register form + email confirm #640 #544 #489 #276
joepio Jul 26, 2023
769f9c0
#502-wildcard-subdomain:
joepio Jul 28, 2023
b06a34d
Fix errors
joepio Mar 11, 2024
56f1369
Migrate trailing slash base URLs #895
joepio Jun 17, 2024
3c4930b
WIP fix issues
joepio Jun 25, 2024
5f3afdf
WIP
joepio Jul 15, 2024
7227824
Fix build
joepio Jul 16, 2024
7005121
Add "report issue" button in error component #911
joepio Jul 16, 2024
fb0fdfe
Slow build.rs / rust analyzer #913
joepio Jul 22, 2024
28a1f5c
Make RegisterSignIn work
joepio Jul 23, 2024
85ac228
AsyncMarkdownEditor and MarkdownWrapper should share styles #917
joepio Jul 23, 2024
0ef208d
Fix history page
joepio Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
with:
images: joepmeneer/atomic-server
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"vadimcn.vscode-lldb",
"rust-lang.rust-analyzer"
]
}
21 changes: 19 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@
"group": "build",
"problemMatcher": []
},
{
"label": "watch atomic-server (cargo watch)",
"type": "shell",
"command": "~/.cargo/bin/cargo-watch",
"args": [
"--",
"cargo",
"run",
"--bin",
"atomic-server",
"--",
"--env-file",
"server/.env",
],
"group": "build",
"problemMatcher": []
},
{
"label": "test atomic-server (cargo nextest run)",
"type": "shell",
Expand All @@ -26,9 +43,9 @@
"group": "test"
},
{
"label": "test end-to-end / E2E (npm playwright)",
"label": "test end-to-end / E2E (pnpm playwright)",
"type": "shell",
"command": "cd server/e2e_tests/ && npm i && npm run test",
"command": "cd server/e2e_tests/ && pnpm i && pnpm run test",
"group": "test"
},
{
Expand Down
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,36 @@ See [STATUS.md](server/STATUS.md) to learn more about which features will remain
- Refactor `Endpoint` handlers, uses a Context now #592
- Re-build store + invite when adjusting server url #607
- Use local atomic-server for properties and classes, improves atomic-server #604
- New sign up / register flow. Add `/register` Endpoint #489 #254
- New sign up / register flow. Add `/register`, `/confirm-email`, `/add-public-key` endpoints #489 #254
- Add multi-tenancy support. Users can create their own `Drives` on subdomains. #288
- Refactor URLs. `store.self_url()` returns an `AtomicUrl`, which provides methods to easily add paths, find subdomains and more.
- Add support for subdomains, use a Wildcard TLS certificate #502

## [v0.34.1] - 2023-02-11

- Improve query performance, refactor indexes. The `.tpf` API is deprecated in favor of the more powerful `.query`. #529
- Replace `acme_lib` with `instant-acme`, drop OpenSSL dependency, add DNS verification for TLS option with `--https-dns` #192
- Improved error handling for HTTPS initialization #530
- Add `--force` to `atomic-server import` #536
- Email support. Connect to external SMTP servers. #276
- Basic plugin support through Endpoints. For now only works if you use `**Atomic**-Lib` as a library. Add your plugins by calling `Db::register_endpoint`.
- Allow parsing `.env` files from custom locations using the `--env-file` flag.
- Plugins support `tokio`, so you can spawn async tasks from plugins.
- Add JWT token support, used for emails and registration #544
- Fix index issue happening when deleting a single property in a sorted collection #545
- Update JS assets & playwright
- Fix initial indexing bug #560
- Fix errors on succesful export / import #565
- Fix envs for store path, change `ATOMIC_STORE_DIR` to `ATOMIC_DATA_DIR` #567
- Refactor static file asset hosting #578
- Meta tags server side #577
- Include JSON-AD in initial response, speed up first render #511
- Remove feature to index external RDF files and search them #579
- Add staging environment #588
- Add systemd instructions to readme #271
- Improve check_append error #558
- Fix errors on successful export / import #565
- Most Collection routes now live under `/collections`, e.g. `/collections/agents` instead of `/agents`. #556
- Constrain new URLs. Commits for new Resources are now only valid if their parent is part of the current URL. So it's no longer possible to create `/some-path/new-resource` if `new-resource` is its parent is not in its URL. #556

## [v0.34.0] - 2022-10-31

Expand All @@ -98,6 +110,7 @@ See [STATUS.md](server/STATUS.md) to learn more about which features will remain
- `Store::all_resources` returns `Iterator` instead of `Vec` #522 #487
- Change authentication order #525
- Fix cookie subject check #525
- Refactored Subject URLs to use `AtomicUrl`

## [v0.33.1] - 2022-09-25

Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ TL;DR Clone the repo and run `cargo run` from each folder (e.g. `cli` or `server
- Go to `browser`, run `pnpm install` (if you haven't already), and run `pnpm dev` to start the browser
- Visit your `localhost` in your locally running `atomic-data-browser` instance: (e.g. `http://localhost:5173/app/show?subject=http%3A%2F%2Flocalhost`)
- use `cargo watch -- cargo run` to automatically recompile `atomic-server` when you update JS assets in `browser`
- use `cargo watch -- cargo run --bin atomic-server -- --env-file server/.env` to automatically recompile `atomic-server` when you update code or JS assets.
- If you want to debug emails: `brew install mailhog` => `mailhog` => `http://localhost:8025` and add `ATOMIC_SMTP_HOST=localhost` `ATOMIC_SMTP_PORT=1025` to your `.env`.

### IDE setup (VSCode)

Expand Down
Loading
Loading