Skip to content

Commit

Permalink
savestate
Browse files Browse the repository at this point in the history
  • Loading branch information
Sopze92 committed May 14, 2024
1 parent da23d2a commit c84213d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 37 deletions.
35 changes: 0 additions & 35 deletions migrations/versions/8e3b0e2a2e2c_.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
print("Serving static files from: " + static_file_dir)

# config
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get("DATABASE_URL", "sqlite:////database.db")
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get("DATABASE_URL", "sqlite:///database.db")
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config["JWT_SECRET_KEY"]= "una_paja_a_la_crema_es_una_buena_paja"
app.config["JWT_TOKEN_LOCATION"]= ('headers')
Expand Down
14 changes: 14 additions & 0 deletions src/frontend/js/component/board/list.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react"
import { Context } from "../../store/appContext.jsx"

const List = () => {
const { store, actions } = React.useContext(Context)

return (
<div className="bg-slate-300 text-black w-2/12">
HELLO WORLD
</div>
)
}

export default List
7 changes: 6 additions & 1 deletion src/frontend/js/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Home } from "./pages/home.jsx"
import { Navbar } from "./component/navbar.jsx"
import { Footer } from "./component/footer.jsx"

import Board from "./pages/board.jsx"

import appContext from "./store/appContext.jsx"

const Layout = () => {
Expand All @@ -18,7 +20,10 @@ const Layout = () => {
<BrowserRouter>
<Navbar />
<Routes>
<Route element={<Home />} path="/" />
<Route path="/" element={<Home />} />

<Route path="/test" element={<Board />} />

<Route element={<h1>Not found!</h1>} />
</Routes>
<Footer />
Expand Down
19 changes: 19 additions & 0 deletions src/frontend/js/pages/board.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react"

import List from "../component/board/list.jsx"

// this is just a component that renders another component centered in the viewport
export const Board= ()=>{

return (
<div className="w-screen h-screen flex-auto items-center">
<div className="flex-auto mx-auto w-10/12 outline-1 outline-dashed outline-magenta">
<List />
<List />
<List />
</div>
</div>
)
}

export default Board

0 comments on commit c84213d

Please sign in to comment.