File tree Expand file tree Collapse file tree 6 files changed +22
-11
lines changed Expand file tree Collapse file tree 6 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export FREENIT_ENV="build"
7
7
8
8
9
9
setup
10
+ pip install hatchling
10
11
11
12
12
13
rm -rf * .egg-info build dist
Original file line number Diff line number Diff line change 451
451
}
452
452
})
453
453
</script>
454
+ EOF
455
+ cat > ' src/routes/verify/+page.svelte' << EOF
456
+ <div class="root">
457
+ <h1>Welcome</h1>
458
+ <p>You should receive email to verify your account shortly!</p>
459
+ </div>
460
+
461
+ <style>
462
+ .root {
463
+ display: flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ flex-direction: column;
467
+ height: 100%;
468
+ }
469
+ </style>
454
470
EOF
455
471
456
472
npm run format
Original file line number Diff line number Diff line change 1
1
from contextlib import asynccontextmanager
2
2
from fastapi import FastAPI
3
3
4
- import freenit .config
4
+ from .config import getConfig
5
5
6
6
from .api import api
7
7
8
- config = freenit . config . getConfig ()
8
+ config = getConfig ()
9
9
10
10
11
11
@asynccontextmanager
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ def sendmail(to, message):
12
12
server .ehlo ()
13
13
server .starttls ()
14
14
server .ehlo ()
15
- server .login (mail .username , mail .password )
15
+ server .login (mail .user , mail .password )
16
16
server .sendmail (message ["From" ], to , message .as_string ().encode ("utf-8" ))
Original file line number Diff line number Diff line change @@ -8,12 +8,6 @@ export OFFLINE=${OFFLINE:="no"}
8
8
. ${BIN_DIR} /common.sh
9
9
setup
10
10
11
- if [ ! -e " alembic/versions" ]; then
12
- mkdir -p alembic/versions
13
- alembic revision --autogenerate -m initial
14
- fi
15
- alembic upgrade head
16
-
17
11
echo " Backend"
18
12
echo " ==============="
19
13
python main.py
Original file line number Diff line number Diff line change 1
1
from contextlib import asynccontextmanager
2
2
from fastapi import FastAPI
3
3
4
- import freenit .config
4
+ from .config import getConfig
5
5
6
6
from .api import api
7
7
8
- config = freenit . config . getConfig ()
8
+ config = getConfig ()
9
9
10
10
11
11
@asynccontextmanager
You can’t perform that action at this time.
0 commit comments