Commit Graph

55 Commits

Author SHA1 Message Date
Mihovil Ilakovac
7a0f8b5d58
Replaces Create React App with Vite (#1019) 2023-03-01 17:14:14 +01:00
Shayne Czyzewski
d5488d4963
Update examples to 0.8.0 (#919) 2023-01-02 12:11:39 -05:00
Filip Sodić
b468f72576
Fix version issue for React-related types (#838)
* Fix react version mismatch

* Update e2e tests
2022-11-26 17:39:11 +01:00
Shayne Czyzewski
fc29a891dc
Update example versions (#836) 2022-11-26 10:02:25 -05:00
Shayne Czyzewski
8b4d21ec4c
Update Prisma to latest version (#806) 2022-11-16 09:11:22 -05:00
Shayne Czyzewski
c71c810585
Update examples styling (#807) 2022-11-16 07:57:31 -05:00
Filip Sodić
2fe7398462
Adapt example apps to project struct change (#809)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Add .jsconfig to enable go-to-definition

* Watch shared directory for changes

* Add final newline to jsconfigs

* Fix regular and e2e tests

* Update e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Update waspc.cabal with jsconfigs

* Minimize jsconfig.json files

* Add jsconfigs to waspc todoApp

* Update e2e tests

* Update e2e tests

* Update docs for new project structure

* Update todoApp example to new structure

* Update ItWaspsOnMyMachine

* Update thoughts

* Update Waspello to new structure

* Update Waspleau to new structure

* Update Realworld to new structure, fix warnings

* Fix directory tree watching on wasp start

* Implement review feedback

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Fix another typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Add src prefix to file path in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Remove env server file

* Apply suggestions from code review

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address code review comments

* Fix incorrect path in docs

* Fix references to ext in docs

* Edit changelog and add migration guide

* Further update docs to new structure

* Update blogs about example apps to new structure

* Fix typo in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Update typo on frontpage

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Add missing src in docs

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 18:58:29 +01:00
Anthony Suárez
0cde880f24
Feat: Validate wasp version from spec (#786)
* Add wasp field to AppSpec.App

* Validate app.wasp.version in AppSpec.Valid

* Add app.wasp.version field on .wasp file generated by CreateNewProject

* Add app.wasp.version to .wasp files of e2e tests

* Add app.wasp.version to examples' .wasp files

* Add app.wasp.version to docs

* Change waspc version from 0.6.0.0 to 0.6.0

* Change app.wasp.version validation to use regular semver

* Format code

* Refactor app.wasp.version validation

* Refactor app.wasp.version validation

* Update supported app.wasp.version format in docs

* Add TODO to validateWaspVersion

* Refactor app.wasp.version using toEnum

* Create Wasp.Version module with waspVersion constant

* Fix parseWaspVersionRange regex

Fixed:
  - The regex wasn't checking the string *starts* with ^.
  - The . symbols were not escaped.
  - The $ token is not specified as supported in the regex-tdfa docs.
    \' is used instead.

* Add comment explaining wasp version validation restrictions

* Use Wasp.Version.waspVersion instead of Paths_wasp.version
2022-10-31 23:00:03 +01:00
sivasuriyankumarasamy
d8db0e125e
Fixed uncontrolled input error on Realworld login (#792) 2022-10-30 16:46:08 +01:00
Filip Sodić
a9376c423d
Fix errors in example apps (#727)
* upgrade frontend deps and react to 17

* update examples

* upgrade server deps

* do not upgrade to prisma 4 in this PR

* update e2e

* update pg-boss URLs

* Fix errors in thoughts

* Fix controlled component error in realworld

Co-authored-by: shayneczyzewski <shayne.czyzewski@gmail.com>
2022-09-19 14:03:07 +02:00
Shayne Czyzewski
6cd38b0f94
Adds Google as an authentication method (#669) 2022-09-06 14:35:59 -04:00
Shayne Czyzewski
bc92b024e1
Renames auth method EmailAndPassword to UsernameAndPassword (#696) 2022-08-24 10:32:46 -04:00
h4r1337
602c57bd33
Added header to example apps that points to their source code 2022-07-08 17:53:43 +02:00
Shayne Czyzewski
2345ce2b4f
[Examples] Fixes realworld auth error return and display (#571)
Adds two new sections to docs as well.
2022-04-21 10:22:21 -04:00
Filip Sodić
210a43d781
Fix broken link in realworld README 2022-04-14 16:49:24 +02:00
Filip Sodić
2783c97bc0
[Examples] Fix realworld Wasp example app (#561)
* Fix errors in realworld Wasp app

* Fix errors in realworld Wasp app

* Fix identation

* Add database migration for cascading comments
2022-04-14 16:35:01 +02:00
Shayne Czyzewski
09a72a7e1a
Upgrade Prisma to version 3.9.1 (#452) 2022-02-11 17:55:41 -05:00
Martin Šošić
8d2c33ab28
Replace Wasp with AppSpec and Parser with Analyzer. (#423) 2022-01-20 11:45:14 +01:00
Martin Sosic
0785378a53 Added information on where the examples are deployed. 2021-10-06 16:16:41 +02:00
Martin Šošić
f9e8f88b66
Upgraded to Prisma 2.21 (stable migrations) + postgre can be used in local dev.
- `wasp db migrate-save` and `wasp db migrate-up` got replaced with `wasp db migrate-dev`.
- Wasp now has a declarative way to express which db is used, postgresql or sqlite: `db { system: PostgreSQL }`.
- Prisma is now at the latest version, 2.21. PSL parser was upgraded to work with this.
- PostgreSQL can now be used for local development.
- We migrated examples/realworld to work with this new version of Wasp.
2021-04-21 14:06:25 +02:00
Craig McIlwrath
82ea947981
Add ext/.waspignore file (#196) 2021-03-03 09:35:27 +01:00
Matija Sosic
e83f745f45 RWA: fixed 'read more' button. 2021-02-10 16:32:16 +01:00
Matija Sosic
446e0735c9 RWA: set global-feed tab to be opened by default. 2021-02-10 16:25:43 +01:00
Matija Sosic
2cefd236a7 RWA example: temporarily disabled adding tags because of Prisma error. 2021-02-10 15:59:49 +01:00
Matija Sosic
4bd68ee56b Added material-ui to RWA example. 2021-02-10 14:33:26 +01:00
Matija Sosic
68155711e8
Implemented FE ACL & updated the examples. (#165)
* Implemented FE ACL & updated the examples.

* PR fixes, fixed tests.
2021-02-01 16:32:07 +01:00
Matija Sosic
242c51f6a8
Made auth more flexible - not generating pages & routes anymore, just the forms. (#161) 2021-01-25 19:39:50 +01:00
Martin Sosic
ec015c1357 Final polishing of first version of RWA. 2020-12-01 18:48:39 +01:00
Martin Šošić
e9f4af07d7
Update examples/realworld/README.md
Co-authored-by: Matija Sosic <matija.sosic@gmail.com>
2020-12-01 18:28:28 +01:00
Martin Šošić
32f7736395
Update examples/realworld/README.md
Co-authored-by: Matija Sosic <matija.sosic@gmail.com>
2020-12-01 18:27:31 +01:00
Martin Sosic
0eaebec479 RWA now uses new 'create user' feature. 2020-12-01 15:19:45 +01:00
Martin Sosic
3877ef27e9 Structured files better. 2020-11-30 18:11:48 +01:00
Martin Sosic
c1615656ad Updated README with experiences while developing RWA. 2020-11-30 17:53:21 +01:00
Martin Sosic
9762e85dbf Finished implementing pagination for articles. 2020-11-30 15:00:32 +01:00
Martin Sosic
10450e55a8 Started working on pagination. 2020-11-27 22:52:38 +01:00
Martin Sosic
06ad27192f Organized operations into multiple files. 2020-11-27 21:47:12 +01:00
Martin Sosic
49f7684141 Implemented articles lists on home page. 2020-11-27 18:49:54 +01:00
Martin Sosic
804e3ef37d Added following other users. 2020-11-27 16:10:02 +01:00
Martin Sosic
cdb7484279 Tags are working again! 2020-11-27 14:25:47 +01:00
Martin Sosic
57412b8b3c Added favorited articles. 2020-11-26 22:48:35 +01:00
Martin Sosic
609bb19846 Added popular tags to homepage. 2020-11-26 16:35:38 +01:00
Martin Sosic
5c63faaab8 Tags can now be deleted. 2020-11-25 22:33:48 +01:00
Martin Sosic
c58234650c progress 2020-11-25 18:27:41 +01:00
Martin Sosic
d6a1287c97 Added tags to articles. 2020-11-25 16:25:26 +01:00
Martin Sosic
2dff4efe10 Added comments. 2020-11-24 22:57:14 +01:00
Martin Sosic
7f3ccb8af6 Added article slug. 2020-11-24 21:11:37 +01:00
Martin Sosic
08238e69b2 Made more progress. 2020-11-24 20:39:36 +01:00
Martin Sosic
85d8f5066c More progress. 2020-11-23 17:31:03 +01:00
Martin Sosic
8ffc7ebdae Fixed problem with article editor routing. 2020-11-22 17:18:03 +01:00
Martin Sosic
d0044dd320 Progress. WIP. 2020-11-20 18:22:49 +01:00