The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
tidy and pink
awaliasdf7d02b2f300
diff --git a/examples/todo/public/favicon.ico b/examples/todo/public/favicon.icoindex bcd5dfd67cd..d3fca2acb10 100644Binary files a/examples/todo/public/favicon.ico and b/examples/todo/public/favicon.ico differdiff --git a/examples/todo/public/logo192.png b/examples/todo/public/logo192.pngdeleted file mode 100644index fc44b0a3796..00000000000Binary files a/examples/todo/public/logo192.png and /dev/null differdiff --git a/examples/todo/public/logo512.png b/examples/todo/public/logo512.pngdeleted file mode 100644index a4e47a6545b..00000000000Binary files a/examples/todo/public/logo512.png and /dev/null differdiff --git a/examples/todo/public/manifest.json b/examples/todo/public/manifest.jsonindex 080d6c77ac2..1f2f141fafd 100644--- a/examples/todo/public/manifest.json+++ b/examples/todo/public/manifest.json@@ -6,16 +6,6 @@"src": "favicon.ico","sizes": "64x64 32x32 24x24 16x16","type": "image/x-icon"- },- {- "src": "logo192.png",- "type": "image/png",- "sizes": "192x192"- },- {- "src": "logo512.png",- "type": "image/png",- "sizes": "512x512"}],"start_url": ".",diff --git a/examples/todo/src/TodoList.js b/examples/todo/src/TodoList.jsindex 53513443e53..26ca77e94c7 100644--- a/examples/todo/src/TodoList.js+++ b/examples/todo/src/TodoList.js@@ -9,50 +9,59 @@ export const TodoList = (props) => {const { tasks, setTasks, list } = useStore({ uuid })return (- <div>+ <div className="container"><Link to="/">back</Link>- <h1>My Task List</h1>- <label>Sharing url: </label>- <input type="text" readonly value={window.location.href} />- <div className={'field-row'}>+ <h1 className="section">My Task List</h1>+ <div className="section">+ <label>Sharing url: </label>+ <input type="text" readonly value={window.location.href} />+ </div>+ <div className={'field-row section'}><formonSubmit={(e) => {e.preventDefault()setNewTaskText('')}}>- <input id="newtask" type="text" value={newTaskText} onChange={(e) => setNewTaskText(e.target.value)} />+ <input+ id="newtask"+ type="text"+ value={newTaskText}+ onChange={(e) => setNewTaskText(e.target.value)}+ /><button type="submit" onClick={() => addTask(newTaskText, list.id)}>add task</button></form></div>- {tasks- ? tasks.map((task) => {- return (- <div key={task.id} className={'field-row'}>- <input- checked={task.complete ? true : ''}- onChange={(e) => {- tasks.find((t, i) => {- if (t.id === task.id) {- tasks[i].complete = !task.complete- return true- }- })- setTasks([...tasks])- updateTask(task.id, { complete: e.target.checked })- }}- type="checkbox"- id={`task-${task.id}`}- ></input>- <label htmlFor={`task-${task.id}`}>- {task.complete ? <del>{task.task_text}</del> : task.task_text}- </label>- </div>- )- })- : ''}+ <div className="section">+ {tasks+ ? tasks.map((task) => {+ return (+ <div key={task.id} className={'field-row'}>+ <input+ checked={task.complete ? true : ''}+ onChange={(e) => {+ tasks.find((t, i) => {+ if (t.id === task.id) {+ tasks[i].complete = !task.complete+ return true+ }+ })+ setTasks([...tasks])+ updateTask(task.id, { complete: e.target.checked })+ }}+ type="checkbox"+ id={`task-${task.id}`}+ ></input>+ <label htmlFor={`task-${task.id}`}>+ {task.complete ? <del>{task.task_text}</del> : task.task_text}+ </label>+ </div>+ )+ })+ : ''}+ </div></div>)}diff --git a/examples/todo/src/index.css b/examples/todo/src/index.cssindex ec2585e8c0b..b5c80a98468 100644--- a/examples/todo/src/index.css+++ b/examples/todo/src/index.css@@ -5,9 +5,18 @@ body {sans-serif;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;+ background-color: rgb(250, 217, 246);}code {font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',monospace;}++.container {+ margin: 1em;+}++.section {+ margin: 1em;+}diff --git a/examples/todo/src/index.js b/examples/todo/src/index.jsindex f8cc3d6ef3a..a4628a4a799 100644--- a/examples/todo/src/index.js+++ b/examples/todo/src/index.js@@ -1,4 +1,5 @@import React from 'react'+import './index.css'import { BrowserRouter as Router, Route, Switch, useHistory } from 'react-router-dom'import { render } from 'react-dom'import { TodoList } from './TodoList'@@ -14,7 +15,7 @@ const newList = async (history) => {const Home = () => {const history = useHistory()return (- <div>+ <div className='container'><buttononClick={() => {newList(history)