Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination and filtering in my-app #96

Merged
merged 15 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion example/my-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

```
npm start
go run server.go functions.go
export OPENAI_API_KEY=sk-
go generate ./...
go run *.go
```
32 changes: 30 additions & 2 deletions example/my-app/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ span.error {
span.await {
background-color: #52d2d2;
}
input {

input, select {
padding: 5px;
margin: 0 5px 0 0;
}

input, button {
input, button, select, textarea {
border: 1px solid #51887a;
border-radius: 0;
margin-top: 2px;
Expand Down Expand Up @@ -97,6 +98,18 @@ table > thead .option-row button {
margin-right: 5px;
}

table > thead .filter-rules {
float: right;
}

.filter-rules {

}

.filter-group, .filter-rule {
margin-left: 40px;
}

table > tbody > tr {
border-bottom: 1px solid #dddddd;
}
Expand All @@ -109,6 +122,21 @@ tbody tr:last-of-type {
border-bottom: 2px solid #009879;
}

tfoot tr {
background-color: #ffffff;
color: #ffffff;
text-align: left;
font-size: 1.2em;
}

button.next-page{
float: right;
}
button.prev-page{
float: left;
}


/* tables inside a table should be smaller */
table table {
font-size: 0.8em;
Expand Down
Loading