From c191943c502bc08aa8f69cc4bde0a9d62173b943 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 22 Dec 2023 22:08:06 +0530 Subject: [PATCH 1/3] added requirements.txt --- .gitignore | 2 +- requirements.txt | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 68bc17f..2dc53ca 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,4 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c4f7e2d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +annotated-types==0.6.0 +anyio==3.7.1 +fastapi==0.104.1 +idna==3.6 +Jinja2==3.1.2 +MarkupSafe==2.1.3 +pydantic==2.5.2 +pydantic_core==2.14.5 +sniffio==1.3.0 +starlette==0.27.0 +typing_extensions==4.9.0 From 452bd72ad23ce70c4521788b6f5c4bd8ae19b9c2 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 22 Dec 2023 22:08:27 +0530 Subject: [PATCH 2/3] minor refactor in main.py --- src/paste/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paste/main.py b/src/paste/main.py index 0ed75e6..2437515 100644 --- a/src/paste/main.py +++ b/src/paste/main.py @@ -6,7 +6,7 @@ from fastapi import FastAPI from fastapi.templating import Jinja2Templates from fastapi.middleware.cors import CORSMiddleware -from .utils import generate_uuid +from utils import generate_uuid app = FastAPI(title="paste.py 🐍") From 996f1dff533a27a194b94eeff48a4c1ac0095904 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 22 Dec 2023 22:12:56 +0530 Subject: [PATCH 3/3] added metadata to index and web templates --- src/paste/templates/index.html | 12 +++++++++--- src/paste/templates/web.html | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/paste/templates/index.html b/src/paste/templates/index.html index cade7ea..3bb2389 100644 --- a/src/paste/templates/index.html +++ b/src/paste/templates/index.html @@ -1,9 +1,15 @@ - - - Codestin Search App + Codestin Search App + + + + + + + +