Compare commits
No commits in common. "8a7da6e146123bf8781932be1017a5a822f2be35" and "846e9a7aa5492c7fd6345c9935d7f2502cac3938" have entirely different histories.
8a7da6e146
...
846e9a7aa5
@ -1,4 +1,6 @@
|
|||||||
import datetime
|
import datetime
|
||||||
|
import json
|
||||||
|
import os
|
||||||
from typing import Any, Union
|
from typing import Any, Union
|
||||||
|
|
||||||
import bcrypt
|
import bcrypt
|
||||||
@ -7,7 +9,7 @@ from fastapi import Depends, HTTPException, status
|
|||||||
from fastapi.security import HTTPBearer
|
from fastapi.security import HTTPBearer
|
||||||
from jwt.exceptions import InvalidTokenError
|
from jwt.exceptions import InvalidTokenError
|
||||||
|
|
||||||
import backend.queries as queries
|
import queries
|
||||||
|
|
||||||
ACCESS_TOKEN_EXPIRE_MINUTES = 30 # 30 minutes
|
ACCESS_TOKEN_EXPIRE_MINUTES = 30 # 30 minutes
|
||||||
ALGORITHM = "HS256"
|
ALGORITHM = "HS256"
|
@ -17,21 +17,25 @@
|
|||||||
</el-button-group>
|
</el-button-group>
|
||||||
<div>
|
<div>
|
||||||
<el-form-item label="Show OTPs">
|
<el-form-item label="Show OTPs">
|
||||||
<el-switch
|
<el-switch v-model="showSecrets" active-value="yes" inactive-value="no" />
|
||||||
v-model="showSecrets"
|
|
||||||
active-value="yes"
|
|
||||||
inactive-value="no"
|
|
||||||
style="--el-switch-on-color: #67c23a"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="sort-options">
|
<div class="sort-options">
|
||||||
<span>
|
<span>
|
||||||
<el-form-item label="Sort">
|
<el-form-item label="Sort">
|
||||||
<el-radio-group v-model="currentSort" @change="sortItems" fill="#67c23a">
|
<el-select
|
||||||
<el-radio-button label="A > Z" value="asc" />
|
v-model="currentSort"
|
||||||
<el-radio-button label="Z > A" value="desc" />
|
placeholder="Select"
|
||||||
</el-radio-group>
|
style="width: 80px"
|
||||||
|
@change="sortItems"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in sortOptions"
|
||||||
|
:key="item.key"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.key"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -107,7 +107,6 @@ export default {
|
|||||||
|
|
||||||
.issuer {
|
.issuer {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
/* max-width: 140px; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user {
|
.user {
|
||||||
@ -123,8 +122,6 @@ export default {
|
|||||||
.card-top {
|
.card-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
max-width: 140px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.card-button {
|
.card-button {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -6,12 +6,12 @@ from fastapi import Depends, FastAPI, HTTPException, status
|
|||||||
from fastapi.encoders import jsonable_encoder
|
from fastapi.encoders import jsonable_encoder
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
import backend.queries as queries
|
import queries
|
||||||
from backend.auth import Hasher, create_access_token, get_current_user
|
from auth import Hasher, create_access_token, get_current_user
|
||||||
from backend.crypto import (deserialize_into_bytes, fernet_decrypt,
|
from crypto import (deserialize_into_bytes, fernet_decrypt, fernet_encrypt,
|
||||||
fernet_encrypt, generate_random_encryption_key,
|
generate_random_encryption_key, generate_user_passkey,
|
||||||
generate_user_passkey, serialize_bytes)
|
serialize_bytes)
|
||||||
from backend.models import Key, Secret, User, UserLogin
|
from models import Key, Secret, User, UserLogin
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user