Commit Graph

2141 Commits

Author SHA1 Message Date
Dillon Kearns
57b147f046 Add options as part of Form type in preparation for removing extra FinalForm. 2023-03-03 13:22:53 -08:00
Dillon Kearns
8f0c334b22 Re-order RouteBuilder parameters for consistency. 2023-03-03 11:06:28 -08:00
Dillon Kearns
74249406f9 Use a plain List String for Path instead of Custom Type. 2023-03-03 10:13:51 -08:00
Dillon Kearns
d48485e541 Rename argument sharedModel -> shared. 2023-03-02 11:43:22 -08:00
Dillon Kearns
e19b547808 Remove PageUrl argument and rename RouteBuilder.StaticPayload -> RouteBuilder.App. 2023-03-02 11:36:34 -08:00
Dillon Kearns
22dbb95c35 Fix error. 2023-03-01 17:37:10 -08:00
Dillon Kearns
8d64611254 Fix test. 2023-02-28 16:12:19 -08:00
Dillon Kearns
04f2cbaa0a Bump dependencies in example folder. 2023-02-28 16:06:44 -08:00
Dillon Kearns
4ae64cb5bd Wire in onSubmit for TransitionStrategy. 2023-02-28 16:01:55 -08:00
Dillon Kearns
c53c09aa31 Move Pages.Msg -> PagesMsg and Pages.Msg.Msg -> PagesMsg.PagesMsg. 2023-02-28 15:45:59 -08:00
Dillon Kearns
5857ccefb7 Lock in esbuild version in another example. 2023-02-20 15:40:27 -08:00
Dillon Kearns
9d87036995 Lock in some NPM dependencies to fix build error. 2023-02-20 15:36:53 -08:00
Dillon Kearns
bfe22f3424 Update output. 2023-02-20 11:47:02 -08:00
Dillon Kearns
e3cb9d3a01 Fix some issues with the test script and esm import syntax to fix CI. 2023-02-20 11:44:02 -08:00
Dillon Kearns
ba875d789f Add FieldView.valueButton helpers, and rerun loaders when query params are changed to ensure that GET form submissions reload data. 2023-02-18 12:31:32 -08:00
Dillon Kearns
a9d367725f Handle new from admin/:slug and add delete action handler. 2023-02-07 08:31:51 -08:00
Dillon Kearns
f76870cabe Fix flaky test. 2023-02-06 22:40:49 -08:00
Dillon Kearns
5a2545329e Use Scaffold namespace for generator modules. 2023-02-06 22:04:11 -08:00
Dillon Kearns
2fa6c41d72 Add more type information to Form.Context record in generator. 2023-02-06 20:54:19 -08:00
Dillon Kearns
bcaabe81d8 Extract some code in generator. 2023-02-06 20:36:32 -08:00
Dillon Kearns
e5e007741a Inline more helpers. 2023-02-06 18:23:56 -08:00
Dillon Kearns
3de46b4a99 Inline more helpers. 2023-02-06 18:15:09 -08:00
Dillon Kearns
e85a148da6 Inline helpers. 2023-02-06 15:13:46 -08:00
Dillon Kearns
915b21a501 Change options to better match Field API. 2023-02-06 14:49:03 -08:00
Dillon Kearns
8887770ecb Simplify scaffolding script. 2023-02-06 14:23:04 -08:00
Dillon Kearns
57a3ecf13f Parse module name into List in CLI options parser helper. 2023-02-06 14:17:28 -08:00
Dillon Kearns
17ed841d4b Extract the form rendering line from generator since it's a small amount of code and has customization opportunities. 2023-02-06 14:13:30 -08:00
Dillon Kearns
de0a9d9ac9 Use some import alias in script. 2023-02-06 14:01:29 -08:00
Dillon Kearns
21e38074c5 Rename AddForm to AddRoute now that they handle both cases. 2023-02-06 13:55:17 -08:00
Dillon Kearns
df7f275566 Move some helpers outside of form helper to make it more customizable. 2023-02-06 13:53:24 -08:00
Dillon Kearns
5aeade0daf Extract helper for module name CLI options parsing. 2023-02-06 12:07:41 -08:00
Dillon Kearns
da132b13f3 Extract more helpers from form generator helper. 2023-02-06 12:00:48 -08:00
Dillon Kearns
2977c467b1 Extract CLI parsing helper for form fields. 2023-02-06 11:19:14 -08:00
Dillon Kearns
b3689478d3 Extract some helpers for generating forms. 2023-02-06 10:53:20 -08:00
Dillon Kearns
ad3d68cc9b Use local artificial error API to avoid rate limit. 2023-02-06 09:52:59 -08:00
Dillon Kearns
b9a0aa2c6a Add basic auth helper module. 2023-02-06 08:27:55 -08:00
Dillon Kearns
d74e4360f4 Reuse type. 2023-02-05 17:45:57 -08:00
Dillon Kearns
8ee0c73ab5 Add deletePost definition. 2023-02-05 17:12:02 -08:00
Dillon Kearns
7f6f2c19e5 Change sort order. 2023-02-05 17:11:43 -08:00
Dillon Kearns
087a73e97f Update blog db seed file. 2023-02-05 17:08:38 -08:00
Dillon Kearns
202a8bf666 Remove unused imports. 2023-02-05 09:21:50 -08:00
Dillon Kearns
d140be0f73 Replace New route with Admin/Slug. 2023-02-04 17:21:03 -08:00
Dillon Kearns
b0d5a3c2e1 Render 404 page. 2023-02-04 13:08:54 -08:00
Dillon Kearns
4482820641 Update blog example. 2023-02-04 12:38:42 -08:00
Dillon Kearns
ae28135a6c Update blog example scripts to use Html instead of Styled Html. 2023-02-04 08:22:31 -08:00
Dillon Kearns
48b92722e5 Update blog example. 2023-02-04 08:19:06 -08:00
Dillon Kearns
219e4b3a12 Add publish date. 2023-02-04 08:06:42 -08:00
Dillon Kearns
4e9900779f Include AddRoute script in blog engine project. 2023-02-04 07:57:20 -08:00
Dillon Kearns
8c45376a22 Add post preview. 2023-02-03 10:49:03 -08:00
Dillon Kearns
2b409c6849 Add prisma setup for example. 2023-02-03 10:19:48 -08:00
Dillon Kearns
f08b0c3564 Render post titles in example 2023-02-03 10:19:38 -08:00
Dillon Kearns
49f6e14042 Use transitioning state in form route generator. 2023-02-03 10:19:15 -08:00
Dillon Kearns
51f7a8dbd7 Update posts/new example. 2023-02-03 10:18:37 -08:00
Dillon Kearns
18e2e43da3 Add initial setup for blog-engine example. 2023-02-02 11:07:57 -08:00
Dillon Kearns
737cb66903 Delete unused import. 2023-01-31 10:57:42 -08:00
Dillon Kearns
c32662fd6b Fix magic link encryption to use latest code fixes. 2023-01-31 10:54:55 -08:00
Dillon Kearns
957ea0333b Fix ordering for retrieving newly created session. 2023-01-31 10:54:38 -08:00
Dillon Kearns
7d73c34d61 Delete commented code. 2023-01-31 10:41:21 -08:00
Dillon Kearns
c5ea554e80 Add missing command. 2023-01-30 21:15:16 -08:00
Dillon Kearns
eb834baf41 Bump node version. 2023-01-30 21:08:44 -08:00
Dillon Kearns
1136aa11e6 Skip GraphQL Generate step in build. 2023-01-30 21:04:10 -08:00
Dillon Kearns
39123b0fc0 Set esbuild option for netlify functions. 2023-01-30 21:03:03 -08:00
Dillon Kearns
df73e7a082 Update adapter script in todos example. 2023-01-30 21:01:47 -08:00
Dillon Kearns
eabe849240 Revert module type in package for now. 2023-01-30 20:59:04 -08:00
Dillon Kearns
da4205284d Remove unused. 2023-01-30 20:46:46 -08:00
Dillon Kearns
78272efaae Add missing sessionId check. 2023-01-30 20:46:43 -08:00
Dillon Kearns
a69c286011 Use package type module. 2023-01-30 20:37:56 -08:00
Dillon Kearns
92da4b3f7a Remove some obsolete hasura references. 2023-01-30 20:37:49 -08:00
Dillon Kearns
10d77f357e Migrate remaining helpers to prisma. 2023-01-30 20:33:43 -08:00
Dillon Kearns
114043eaee Migrate some code from todo example to prisma. 2023-01-30 14:21:06 -08:00
Dillon Kearns
e6c372b14b Update example. 2023-01-30 13:13:21 -08:00
Dillon Kearns
75ed9c50e7 Use node prefix for node core imports. 2023-01-29 08:37:50 -08:00
Dillon Kearns
7b1baec4a2 Use esm for example project. 2023-01-28 14:32:39 -08:00
Dillon Kearns
19004f9180 Try importing custom-backend-task definitions directly to avoid bundling issues. 2023-01-27 10:18:19 -08:00
Dillon Kearns
5f8ce1b2eb Try different path format in adapter script. 2023-01-27 09:43:37 -08:00
Dillon Kearns
a3a385d643 Update prisma example code. 2023-01-27 09:39:48 -08:00
Dillon Kearns
93408eb17b Try prisma in Netlify. 2023-01-26 16:07:40 -08:00
Dillon Kearns
e0b9c35d6d Wire through server data in form example. 2023-01-26 09:16:03 -08:00
Dillon Kearns
61212bce0c Remove obsolete SEO tags for form example. 2023-01-26 09:15:49 -08:00
Dillon Kearns
11b4fc729e Add BackendTask.Time.now. 2023-01-25 15:49:43 -08:00
Dillon Kearns
a864a517ea Add BackendTask.Random API. 2023-01-25 14:33:24 -08:00
Dillon Kearns
71bd580f98 Fix path to compiled CLI elm. 2023-01-25 09:00:19 -08:00
Dillon Kearns
e835b494c9 Update adapter script. 2023-01-22 15:47:51 -08:00
Dillon Kearns
7f35edd60e Set esbuild option in netlify.toml to allow ESM syntax. 2023-01-22 14:37:31 -08:00
Dillon Kearns
852be5fe11 Fix compiler errors in example. 2023-01-22 14:28:24 -08:00
Dillon Kearns
2973589dea Bump Node version. 2023-01-22 14:18:48 -08:00
Dillon Kearns
0f32ba7daa Use import syntax for adapter script. 2023-01-22 14:17:47 -08:00
Dillon Kearns
69d7237af9 Update codegen template. 2023-01-22 09:33:32 -08:00
Dillon Kearns
c178ec2a18 Update code generation example. 2023-01-22 09:33:32 -08:00
Dillon Kearns
5289639248 Fix type annotation in scaffold generator. 2023-01-22 09:33:31 -08:00
Dillon Kearns
5179b569fb Fix typo. 2023-01-22 09:33:31 -08:00
Dillon Kearns
6c8cf291d8 Change Form.Response API. 2023-01-22 09:33:31 -08:00
Dillon Kearns
00dc4b622d Change signature for rendering forms. 2023-01-22 09:33:31 -08:00
Dillon Kearns
5d730e588c Fix types in scaffolding. 2023-01-22 09:33:31 -08:00
Dillon Kearns
e18d8c0fe7 Add space after string. 2023-01-22 09:33:31 -08:00
Dillon Kearns
55ca73c5e3 Support different types of fields in the AddForm script example. 2023-01-22 09:33:31 -08:00
Dillon Kearns
6e522b505e Add prototype for scaffolding a route with a form. 2023-01-22 09:33:31 -08:00
Dillon Kearns
66babff176 Add missing dependency in example. 2023-01-22 09:33:31 -08:00
Dillon Kearns
89658e1a98 Change import alias in example script. 2023-01-19 08:29:21 -08:00
Dillon Kearns
35ebe5b204 Fix module name regex in example. 2023-01-19 08:28:53 -08:00
Dillon Kearns
da45250fca Remove Recoverable type alias. 2023-01-17 10:57:42 -08:00
Dillon Kearns
8879b3efa6 Rename BackendTask.Custom.get -> BackendTask.Custom.run. 2023-01-17 07:14:03 -08:00
Dillon Kearns
f7825c45c7 Look for BackendTask.Custom definitions in custom-backend-task instead of port-data-source. 2023-01-17 07:08:15 -08:00
Dillon Kearns
ea29d1bbb3 Rename BackendTask.Port -> BackendTask.Custom. 2023-01-17 07:04:18 -08:00
Dillon Kearns
d61ddecca8 Make FatalError opaque. 2023-01-16 21:43:59 -08:00
Dillon Kearns
5b19e2dc3e Rename BackendTask.throw -> BackendTask.allowFatal. 2023-01-16 18:24:48 -08:00
Dillon Kearns
60afaee624 Rename Exception -> RecoverableError. 2023-01-16 17:48:46 -08:00
Dillon Kearns
0b54107831 Remove unnecessary metadata for example page. 2023-01-14 09:26:58 -08:00
Dillon Kearns
2ddd0c89e8 Use record for parameters in Pages.Generate to make it more manageable to keep track of names. 2023-01-13 15:53:57 -08:00
Dillon Kearns
77e37c5d0b Add another example script. 2023-01-12 12:04:37 -08:00
Dillon Kearns
a88c0400d2 Fix example script. 2023-01-12 12:04:30 -08:00
Dillon Kearns
e5bcdf2d6e Rename Exception.Catchable -> Exception.Exception to reduce number of terms. 2023-01-10 11:06:20 -08:00
Dillon Kearns
0c8bebee1d Try a different cache path to see if netlify gives error. 2023-01-09 14:37:21 -08:00
Dillon Kearns
c31e952afa Try custom caching options to test netlify error. 2023-01-09 14:20:46 -08:00
Dillon Kearns
c4636ec93b Fix error in example. 2023-01-09 14:09:11 -08:00
Dillon Kearns
5d83cafff5 Force netlify build when parent folders change. 2023-01-09 13:19:26 -08:00
Dillon Kearns
e2297cd52f Add build generator step to netlify build command. 2023-01-09 11:29:22 -08:00
Dillon Kearns
0afe0b37ca Update example to latest and fix some types in API. 2023-01-09 11:24:50 -08:00
Dillon Kearns
fd08eda9f7 Fix error in script. 2023-01-08 11:44:09 -08:00
Dillon Kearns
7c71fe492c Fix error in docs site. 2023-01-08 11:13:39 -08:00
Dillon Kearns
2ae58cc0ab Fix test case compiler errors. 2023-01-08 11:04:27 -08:00
Dillon Kearns
a77787135d Don't list or delete dot-files in example to prevent git noise. 2023-01-08 11:04:17 -08:00
Dillon Kearns
e61a430a80 Update gitignore. 2023-01-08 10:58:42 -08:00
Dillon Kearns
e0d949c008 Fix example. 2023-01-07 15:41:52 -08:00
Dillon Kearns
ef0f091790 Make BackendTask.Http.get take an Expect, add Http.getJson and Http.post helpers. 2023-01-07 10:38:52 -08:00
Dillon Kearns
55e94c3970 Update withMetadata to accept a combine function. 2023-01-07 09:56:51 -08:00
Dillon Kearns
2abf10a468 Replace BackendTask.Http.expect*Response helpers with a more composable withMetadata expect builder. 2023-01-06 18:17:36 -08:00
Dillon Kearns
9c07ae57b8 Pass through caching options from request. 2023-01-06 12:53:48 -08:00
Dillon Kearns
9db4a351c4 Change test name. 2023-01-06 10:21:05 -08:00
Dillon Kearns
89491a9515 Use HTTP conditional requests, and fix some handling of HTTP error cases for BackendTask error paths (return the error data instead of handling them as build errors). 2023-01-06 10:03:19 -08:00
Dillon Kearns
7f23779816 Rename DataSource -> BackendTask. 2023-01-01 14:45:54 -08:00
Dillon Kearns
dd11836490 Remove unused. 2023-01-01 14:23:13 -08:00
Dillon Kearns
6bd91eb68e Make DataSource.Port error catchable. 2022-12-31 13:24:00 -08:00
Dillon Kearns
b9902c2c8c Remove Debug.todo in example. 2022-12-31 12:00:02 -08:00
Dillon Kearns
6cff8a7000 Merge branch 'master' into backend-tasks 2022-12-31 11:46:15 -08:00
Dillon Kearns
804e9015ae Fix errors in example. 2022-12-30 18:03:43 -08:00
Dillon Kearns
e65218834b Fix example. 2022-12-29 17:33:55 -07:00
Dillon Kearns
18c5cb7d9e Update function name. 2022-12-29 07:36:14 -07:00
Dillon Kearns
c982947c7d Make Throwable/Catchable exceptions. 2022-12-28 18:45:49 -07:00
Dillon Kearns
81888ea995 Handle new Vite format in diff cleaning for tests. 2022-12-26 12:03:58 -07:00
Dillon Kearns
d78a3ca91d Add initial prototype for error type variable in DataSources. 2022-12-26 10:53:06 -07:00
Dillon Kearns
94a37fe51f Extract secrets in helper to single definition. 2022-12-21 08:46:04 -08:00
Dillon Kearns
a1b545008f Merge branch 'master' into uncached-requests
# Conflicts:
#	examples/docs/package-lock.json
#	examples/end-to-end/package-lock.json
2022-12-19 16:53:33 -08:00
Dillon Kearns
dcf19fd443 Add default config in example project to reduce warnings. 2022-12-18 17:12:37 -08:00
Dillon Kearns
14968cad9c Add favicon. 2022-12-15 10:19:59 -08:00
Dillon Kearns
3462441c0e Remove some unused code and hardcoding. 2022-12-15 09:50:31 -08:00
Dillon Kearns
4f56f19dc1 Bump cypress version. 2022-12-11 19:46:22 -08:00
Dillon Kearns
11c5897737 Seperate test scripts into 3 different scripts. 2022-12-08 09:47:13 -08:00
Dillon Kearns
49fc15994b Add example script for testing uncached requests. 2022-12-07 11:47:01 -08:00
Dillon Kearns
73fb00e38a Bump example project package-lock files. 2022-12-07 09:39:36 -08:00