Skip to content

Commit 3a63030

Browse files
Merge branch 'master' into patch-1
2 parents 0f180e7 + f8e35a5 commit 3a63030

Some content is hidden

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

67 files changed

+6784
-6485
lines changed

backend/app/core/config.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from pydantic import (
66
AnyUrl,
77
BeforeValidator,
8+
EmailStr,
89
HttpUrl,
910
PostgresDsn,
1011
computed_field,
@@ -74,9 +75,8 @@ def SQLALCHEMY_DATABASE_URI(self) -> PostgresDsn:
7475
SMTP_HOST: str | None = None
7576
SMTP_USER: str | None = None
7677
SMTP_PASSWORD: str | None = None
77-
# TODO: update type to EmailStr when sqlmodel supports it
78-
EMAILS_FROM_EMAIL: str | None = None
79-
EMAILS_FROM_NAME: str | None = None
78+
EMAILS_FROM_EMAIL: EmailStr | None = None
79+
EMAILS_FROM_NAME: EmailStr | None = None
8080

8181
@model_validator(mode="after")
8282
def _set_default_emails_from(self) -> Self:
@@ -91,10 +91,8 @@ def _set_default_emails_from(self) -> Self:
9191
def emails_enabled(self) -> bool:
9292
return bool(self.SMTP_HOST and self.EMAILS_FROM_EMAIL)
9393

94-
# TODO: update type to EmailStr when sqlmodel supports it
95-
EMAIL_TEST_USER: str = "[email protected]"
96-
# TODO: update type to EmailStr when sqlmodel supports it
97-
FIRST_SUPERUSER: str
94+
EMAIL_TEST_USER: EmailStr = "[email protected]"
95+
FIRST_SUPERUSER: EmailStr
9896
FIRST_SUPERUSER_PASSWORD: str
9997

10098
def _check_default_secret(self, var_name: str, value: str | None) -> None:

frontend/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ But it would be only to clean them up, leaving them won't really have any effect
9191

9292
* Download the OpenAPI JSON file from `http://localhost/api/v1/openapi.json` and copy it to a new file `openapi.json` at the root of the `frontend` directory.
9393

94-
* To simplify the names in the generated frontend client code, modify the `openapi.json` file by running the following script:
95-
96-
```bash
97-
node modify-openapi-operationids.js
98-
```
99-
10094
* To generate the frontend client, run:
10195

10296
```bash

frontend/openapi-ts.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig({
1515
// @ts-ignore
1616
let name: string = operation.name
1717
// @ts-ignore
18-
let service: string = operation.service
18+
const service: string = operation.service
1919

2020
if (service && name.toLowerCase().startsWith(service.toLowerCase())) {
2121
name = name.slice(service.length)

0 commit comments

Comments
 (0)