From 8e5c431b8167964a2110988ba943fca369111007 Mon Sep 17 00:00:00 2001 From: AishaAgarwal Date: Wed, 10 Jan 2024 18:13:52 +0530 Subject: [PATCH] Log out done --- .env | 28 +- .gitignore | 1 + account/__pycache__/urls.cpython-39.pyc | Bin 398 -> 423 bytes account/urls.py | 2 +- .../views/__pycache__/logout.cpython-39.pyc | Bin 833 -> 992 bytes account/views/logout.py | 12 +- templates/dashboard_2.html | 407 ++++++++++-------- .../__pycache__/urls.cpython-39.pyc | Bin 1376 -> 1376 bytes .../__pycache__/views.cpython-39.pyc | Bin 2912 -> 2912 bytes translate_panda/urls.py | 1 + 10 files changed, 265 insertions(+), 186 deletions(-) create mode 100644 .gitignore diff --git a/.env b/.env index 5833272..41ed76f 100644 --- a/.env +++ b/.env @@ -1 +1,27 @@ -enter you firebase app and service account variables +SERVICE_ENV=development +HOST=127.0.0.1 +PORT=8000 +API_KEY=AIzaSyB_tOjzX6Em41dcetUBf1pqaOY4pU-E-kM +AUTH_DOMAIN=translate-fe564.firebaseapp.com +DATABASE_URL=https://translate-fe564-default-rtdb.firebaseio.com/ +PROJECT_ID=translate-fe564 +STORAGE_BUCKET=translate-fe564.appspot.com +MESSAGING_SENDER_ID=186396337537 +APP_ID=1:186396337537:web:77729bd3347a8d3a933480 +MEASUREMENT_ID=G-T4CXD6SY5G + + + +FIREBASE_ACCOUNT_TYPE=service_account +FIREBASE_PROJECT_ID=translate-fe564 +FIREBASE_PRIVATE_KEY_ID=2e4a746ba666c81889c594dac6abbd7399c6b7ce +FIREBASE_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDJo6weiI0i7xoG\nksZMs/edWV73LTzrOYmUPrtiYARYZwvFzHjtkUTNVjkho7vBerLTbrl1xxcYHPhj\npEchDPq8lOY+Xnby1CcYy5iqHQXVxjyWw9VbaPzoB7nnFk/FG/lUQPhKUoOxOjjI\n4pt+sAcuw+y+5Ii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0oT0XxyIcLGQETTTYTzAoGAECe3\nVG/ju+096UR2L1TPil+Y2WGkx+WZ9Ia9uMK7b4gJ+gpIHje1e3c60Cr3dxzvY97a\nxXVK5KJrMs121ZGUCDEa5VeCCvS6uPzZDzpS7kpC1L3KtH8+TOpBrB12W9NnnGva\nDQ0fp1Pjnil4FaYmLkSXPg5lNnMc/yI0oYQiYaECgYEArb2q7wfUJnaqETWWm0kc\n/Cjd8AKXZ5VOUCbtMWeI+yHSzWsWwnOFWKtEWiKFG8DbJ2TpECLtXiiIXgYGzKQO\nOTNOb6ZfZ2AmtMIvpxzCPKtnv2kRdt1PKp6VXlDr0WVqKKc+/O3tJ/RwMMKvEWBK\nPQAw14UomNhQFnpeyxtsK/A=\n-----END PRIVATE KEY-----\n +FIREBASE_CLIENT_EMAIL=firebase-adminsdk-a8gi7@translate-fe564.iam.gserviceaccount.com +FIREBASE_CLIENT_ID=106650411189339404056 +FIREBASE_AUTH_URI=https://accounts.google.com/o/oauth2/auth +FIREBASE_TOKEN_URI=https://oauth2.googleapis.com/token +FIREBASE_AUTH_PROVIDER_X509_CERT_URL=https://www.googleapis.com/oauth2/v1/certs +FIREBASE_CLIENT_X509_CERT_URL=https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-a8gi7%40translate-fe564.iam.gserviceaccount.com +# universe_domain=googleapis.com + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/account/__pycache__/urls.cpython-39.pyc b/account/__pycache__/urls.cpython-39.pyc index 229f1d2745e516b4d4351795791f7bd982399035..641a97afd9bd01a25792c0ed55b7104fb49babcf 100644 GIT binary patch delta 180 zcmeBUUe3&$$ji&c00axW=ccMm%^B$i~nWQ1^7%Q92Ti*Kcn4mY=S_wMS_#<7@Y)ofJ`1H9wrthAx0ql F3job5jK-^2#!XP1KflNM%f6NoCGrS-`rGA%!)Ct(O@n!VVN+ z1B-A#ML2;X>|hZtkVran6h{hoFoPz~#4hQH>+BghC%%)KEW~Kb#t*cih<|b@qZ1#< OHXbG(79mC;{0jiMTO6eT diff --git a/account/urls.py b/account/urls.py index 338412c..fd82691 100644 --- a/account/urls.py +++ b/account/urls.py @@ -2,7 +2,7 @@ from . import views - +app_name = 'account' urlpatterns = [ path('login/', views.LoginView.as_view(), name='login'), path('register/', views.RegisterView.as_view(), name='register'), diff --git a/account/views/__pycache__/logout.cpython-39.pyc b/account/views/__pycache__/logout.cpython-39.pyc index a4053d3140304b29c9b3d5d9138d3bc96720239d..11681dab2c7df0ad3843aefbe4610c76d99a8251 100644 GIT binary patch delta 469 zcmZvYy-EW?6ouzzLE&WCg^Iz)1`q1O^26j;vyMBxkGPVcY5l%!4=hf+aa=*XC6o7d4tH)|zx4nK4GA8z;n5c8V*1 zr8<0uR)&A0T`RuhLJ>yUL2YXASm@nW@jULf(zinpcvUoLG{XpBJB;lUQ7w zT3o~ik`yXPEy~R-E=HE%142KczG$)s7Kl94Lf%7{QQ - - - - - - - - - - - - - - - - - - - - - {% if select %} -

- {{ select }}

- {% endif %} - - {% if msg %} - - {{ msg }} - {% endif %} + + + + + + + + + + + + + + + + + + + + + + + + + {% if select %} +

+ {{ select }} +

+ {% endif %} + + {% if msg %} + + {{ msg }} + {% endif %} + + + - - -
-
- - -
    -
  • -
-
- -

Drop to upload

-

(up to 500MB)

-

mp4, quicktime, webm are supported

-
-
    -
    -
    - -
    -

    Requirements

    + Help center +
    - - - - -
    -

    Translated

    - -
    - - - - -
    -
    - - - - - - - - - - - - -