Skip to content

Commit

Permalink
monor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kudah99 committed Jan 3, 2024
1 parent 3f867dc commit a998ada
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sqlalchemy = "*"
sqlmodel = "*"
black = "*"
psycopg-binary = "*"
passlib = "*"

[dev-packages]

Expand Down
10 changes: 9 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from fastapi_offline import FastAPIOffline
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from app.core.config import configs
from app.util.class_object import singleton
Expand All @@ -10,7 +10,7 @@
class AppCreator:
def __init__(self):
# set app default
self.app = FastAPIOffline(
self.app = FastAPI(
title=configs.PROJECT_NAME,
description="",
version="0.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class ExampleCardComponent {
@Input() output: any;
@Input() title: string;

baseUrl = "http://127.0.0.1:8000/api";
baseUrl = "https://fake-ecommerce-backend-api-e5g3.vercel.app/api";

isVisible = false;
showSpinner =false;
Expand Down
11 changes: 11 additions & 0 deletions docs/src/app/pages/docs/docs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,16 @@
<router-outlet></router-outlet
></nz-content>
</nz-layout>
<nz-sider nzTheme="light">
<ul nz-menu nzMode="inline" nz-menu-divider class="sider-menu-r" style="padding-top: 30%;">
<li nz-menu-item nzMatchRouter style="padding-left: 40px;">
<span class="ant-menu-title-content">
<a nz-button nzType="text" href="">
Try swagger documentation
</a>
</span>
</li>
</ul>
</nz-sider>
</nz-layout>
</nz-layout>
8 changes: 8 additions & 0 deletions docs/src/app/pages/docs/docs.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@

}

.sider-menu-r {
height: 100%;
border-right: 0;
margin-top: 1.25rem;
border-left: 1px solid rgba(0,0,0,.06);

}

.inner-layout {
padding: 0 0 0;
}
Expand Down

1 comment on commit a998ada

@vercel
Copy link

@vercel vercel bot commented on a998ada Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.