Compare commits

..

No commits in common. "8a7da6e146123bf8781932be1017a5a822f2be35" and "846e9a7aa5492c7fd6345c9935d7f2502cac3938" have entirely different histories.

9 changed files with 23 additions and 20 deletions

View File

@ -1,4 +1,6 @@
import datetime
import json
import os
from typing import Any, Union
import bcrypt
@ -7,7 +9,7 @@ from fastapi import Depends, HTTPException, status
from fastapi.security import HTTPBearer
from jwt.exceptions import InvalidTokenError
import backend.queries as queries
import queries
ACCESS_TOKEN_EXPIRE_MINUTES = 30 # 30 minutes
ALGORITHM = "HS256"

View File

View File

@ -17,21 +17,25 @@
</el-button-group>
<div>
<el-form-item label="Show OTPs">
<el-switch
v-model="showSecrets"
active-value="yes"
inactive-value="no"
style="--el-switch-on-color: #67c23a"
/>
<el-switch v-model="showSecrets" active-value="yes" inactive-value="no" />
</el-form-item>
</div>
<div class="sort-options">
<span>
<el-form-item label="Sort">
<el-radio-group v-model="currentSort" @change="sortItems" fill="#67c23a">
<el-radio-button label="A > Z" value="asc" />
<el-radio-button label="Z > A" value="desc" />
</el-radio-group>
<el-select
v-model="currentSort"
placeholder="Select"
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>
</span>
</div>

View File

@ -107,7 +107,6 @@ export default {
.issuer {
font-weight: 700;
/* max-width: 140px; */
}
.user {
@ -123,8 +122,6 @@ export default {
.card-top {
display: flex;
justify-content: space-between;
max-width: 140px;
overflow: hidden;
}
.card-button {
position: relative;

View File

@ -6,12 +6,12 @@ from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.encoders import jsonable_encoder
from fastapi.middleware.cors import CORSMiddleware
import backend.queries as queries
from backend.auth import Hasher, create_access_token, get_current_user
from backend.crypto import (deserialize_into_bytes, fernet_decrypt,
fernet_encrypt, generate_random_encryption_key,
generate_user_passkey, serialize_bytes)
from backend.models import Key, Secret, User, UserLogin
import queries
from auth import Hasher, create_access_token, get_current_user
from crypto import (deserialize_into_bytes, fernet_decrypt, fernet_encrypt,
generate_random_encryption_key, generate_user_passkey,
serialize_bytes)
from models import Key, Secret, User, UserLogin
app = FastAPI()