-
Notifications
You must be signed in to change notification settings - Fork 0
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
million checkboxes ui #7
Conversation
@@ -4,8 +4,9 @@ | |||
"type": "module", | |||
"version": "0.0.0", | |||
"scripts": { | |||
"dev": "convex dev --live-component-sources", | |||
"dev:backend": "convex dev --live-component-sources", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this have --typecheck-components
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that in the template now? i can add it
export const seed = internalMutation({ | ||
args: {}, | ||
handler: async (ctx) => { | ||
const boxes = await ctx.db | ||
.query("checkboxes") | ||
.withIndex("idx") | ||
.order("asc") | ||
.collect(); | ||
// Clear the table. | ||
for (const box of boxes) { | ||
await ctx.db.delete(box._id); | ||
} | ||
|
||
const bytes = new Uint8Array(BOXES_PER_DOCUMENT / 8); | ||
|
||
// Reset the table. | ||
for (let i = 0; i < NUM_DOCUMENTS; i++) { | ||
await ctx.db.insert("checkboxes", { | ||
idx: i, | ||
boxes: bytes.buffer, | ||
}); | ||
} | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you still need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope
yes it's in the template. The template has been kept up to date, but
unfortunately it's not trivial to just rebase / merge all the components
(or maybe it is with something like `git patch apply`?)
…On Tue, Nov 5, 2024 at 8:17 AM Lee Danilek ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In example/package.json
<#7 (comment)>
:
> @@ -4,8 +4,9 @@
"type": "module",
"version": "0.0.0",
"scripts": {
- "dev": "convex dev --live-component-sources",
+ "dev:backend": "convex dev --live-component-sources",
is that in the template now? i can add it
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACZQW6RBAE5OZUVD72ZFQ3Z7DVRNAVCNFSM6AAAAABRFLN7DGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMJWGEYDKNJRG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
customers are requesting an example repo for a component that has a UI, so let's give them one.
shamelessly copied from https://github.com/atrakh/one-million-checkboxes
two small changes:
seed
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.