Commit graph

928 commits

Author SHA1 Message Date
05dc162ec1 Merge remote-tracking branch 'template-fork/main' into feat/board-feature-rewrite
Some checks failed
Run Tests / test (pull_request) Failing after 2m29s
2024-12-31 07:20:15 -06:00
78394b83c4 Update changelog 2024-12-31 13:06:57 +00:00
2d880a215a Release Profectus 0.7.0 2024-12-31 13:06:57 +00:00
67ca253f5c Add docs and otherwise improve how docs will generate 2024-12-31 13:04:20 +00:00
be9f488aa2 Move board tests to match board file 2024-12-26 19:18:25 -06:00
1d6f09ce89 Release Profectus 0.7.0
Some checks failed
Run Tests / test (pull_request) Failing after 1m23s
2024-12-26 16:45:04 -06:00
91f1033dbb Merge pull request 'Implement Board and Feature Rewrites' (#88) from thepaperpilot/Profectus:feature/feat-and-board-rewrite into main 2024-12-26 21:58:59 +00:00
44cdb70919 Cleanup 2024-12-26 05:12:16 -06:00
595a4170b2 Fix error about pinned tooltips 2024-12-25 19:30:23 -06:00
9e65adee95 Lint 2024-12-25 11:26:34 -06:00
0a5f63ff04 Don't convert functions with parameters 2024-12-25 11:17:35 -06:00
8861707822 Don't convert functions with parameters
Some checks failed
Run Tests / test (pull_request) Failing after 1m34s
2024-12-25 11:13:29 -06:00
5bdb5ceed1 Change bonus mixin 2024-12-15 19:39:44 -06:00
07718f6c48 Change bonus mixin 2024-12-15 19:39:11 -06:00
b1cbbc4f00 Make board not use computed around jsx 2024-12-12 07:59:10 -06:00
5718abc013 Cleanup 2024-12-12 07:46:59 -06:00
7f2fa9cc27 Cleanup 2024-12-12 07:45:21 -06:00
3a69603031 Lint 2024-12-11 15:12:27 -06:00
c61bf64b15 Remove Grid 2024-12-11 14:29:10 -06:00
68da6c352e Complete the rewrite
Renderables no longer get wrapped in computed refs, because JSX.Elements don't like that (desyncs with the DOM)
Relatedly, a lot of display functions got fairly simplified, removing unnecessary local components
Added `MaybeGetter` utility type for something that may be a getter function or a static value (but not a ref)
Made Achievement.vue use a Renderable for the display. The object of components can still be passed to `createAchievement`
Made Challenge.vue use a Renderable for the display. The object of components can still be passed to `createChallenge`
Fixed some issues introduced by the rewrite that broke particles systems
2024-12-11 14:28:17 -06:00
4ce1b60a3d Merge remote-tracking branch 'template/feature/feat-and-board-rewrite' into feat/board-feature-rewrite 2024-12-11 14:27:38 -06:00
ff14443102 Complete the rewrite
Renderables no longer get wrapped in computed refs, because JSX.Elements don't like that (desyncs with the DOM)
Relatedly, a lot of display functions got fairly simplified, removing unnecessary local components
Added `MaybeGetter` utility type for something that may be a getter function or a static value (but not a ref)
Made Achievement.vue use a Renderable for the display. The object of components can still be passed to `createAchievement`
Made Challenge.vue use a Renderable for the display. The object of components can still be passed to `createChallenge`
Fixed some issues introduced by the rewrite that broke particles systems
2024-12-11 13:58:14 -06:00
ffd9529e9a Merge remote-tracking branch 'template/feature/feat-and-board-rewrite' into feat/board-feature-rewrite 2024-12-03 22:11:01 -06:00
83d41428eb Feature rewrite
- Removed `jsx()` and `JSXFunction`. You can now use `JSX.Element` like any other `Computable` value
- `joinJSX` now always requires a joiner. Just pass the array of elements or wrap them in `<>` and `</>` if there's no joiner
- Removed `coerceComponent`, `computeComponent`, and `computeOptionalComponent`; just use the `render` function now
- It's recommended to now do `<MyComponent />` instead of `<component :is="myComponent" />`
- All features no longer take the options as a type parameter, and all generic forms have been removed as a result
- Fixed `forceHideGoBack` not being respected
- Removed `deepUnref` as now things don't get unreffed before being passed into vue components by default
- Moved MarkNode to new wrapper, and removed existing `mark` properties
- Moved Tooltip to new wrapper, and made it take an options function instead of raw object
- VueFeature component now wraps all vue features, and applies styling, classes, and visibility in the wrapping div. It also adds the Node component so features don't need to
- `mergeAdjacent` now works with grids (perhaps should've used scss to reduce the amount of css this took)
- `CoercableComponent` renamed to `Renderable` since it should be used with `render`
- Replaced `isCoercableComponent` with `isJSXElement`
- Replaced `Computable` and `ProcessedComputable` with the vue built-ins `MaybeRefOrGetter` and `MaybeRef`
- `convertComputable` renamed to `processGetter`
- Also removed `GetComputableTypeWithDefault` and `GetComputableType`, which can similarly be replaced
- `dontMerge` is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column
- Fixed saves manager not being imported in addiction warning component
- Created `vueFeatureMixin` for simplifying the vue specific parts of a feature. Passes the component's properties in explicitly and directly from the feature itself
- All features should now return an object that includes props typed to omit the options object and satisfies the feature. This will ensure type correctness and pass-through custom properties. (see existing features for more thorough examples of changes)
- Replaced decorators with mixins, which won't require casting. Bonus amount decorators converted into generic bonus amount mixin. Removed effect decorator
- All `render` functions now return `JSX.Element`. The `JSX` variants (e.g. `renderJSX`) (except `joinJSX`) have been removed
- Moved all features that use the clickable component into the clickable folder
- Removed `small` property from clickable, since its a single css rule (`min-height: unset`) (you could add a small css class and pass small to any vue feature's classes property, though)
- Upgrades now use the clickable component
- Added ConversionType symbol
- Removed setDefault, just use `??=`
- Added isType function that uses a type symbol to check
- General cleanup
2024-11-29 08:02:24 -06:00
99511288c9 Merge branch 'feat/update-deps' into feat/board-rewrite 2024-11-29 07:52:52 -06:00
4987916900 Fix last lint issue 2024-10-20 13:51:31 -05:00
528e703c88 Ran lint:fix 2024-10-20 11:46:09 -05:00
6c8dd66677 Remove _props abstraction (fixes #2) 2024-10-20 06:27:24 -05:00
1e5411d279 Remove processedPropType and convert all components to composition API 2024-10-20 05:47:59 -05:00
ccd685cb9c Update node 2024-10-19 06:13:24 -05:00
5ce3e64f5d Remove node install 2024-10-19 06:08:12 -05:00
a676829d66 Add rollup for linux 2024-10-19 06:05:00 -05:00
3eeff40910 Update container version 2024-10-19 05:34:32 -05:00
052a01d3f7 Fix build issues 2024-10-18 09:26:10 -05:00
bd165da264 Update deps some more 2024-10-18 09:11:58 -05:00
c93418bfec Fix merge 2024-10-18 08:50:05 -05:00
88abd53faf Update eslint and prettier 2024-10-18 07:04:33 -05:00
80d7a743bc Update TS 2024-10-18 07:04:29 -05:00
2dab35f7cf Update vue 2024-10-18 07:04:26 -05:00
dc8d0ecc95 Update pixi (while staying at v6 until particle-emitter supports v8) 2024-10-18 07:04:20 -05:00
707aacc383 Update vitest 2024-10-18 07:04:19 -05:00
1e13da1129 Revert "Add link to docs in setupDraggableNode docstring"
This reverts commit 1c7824b550.
2024-10-18 07:02:34 -05:00
643bfccada Add link to docs in setupDraggableNode docstring 2024-10-18 07:02:34 -05:00
f9c59f7636 Revert changes in /data. Check the board-example branch for them instead 2024-10-18 07:02:34 -05:00
99227a2cb2 Move common board node CSS to class 2024-10-18 07:02:34 -05:00
e0da9588d2 Move board to src/game 2024-10-18 07:02:34 -05:00
46d0a9aa2e Add some tests for boards 2024-10-18 07:02:33 -05:00
c6035f9077 Document boards 2024-10-18 07:02:33 -05:00
8745304631 Fix upgrade purchasing on drag 2024-10-18 07:02:33 -05:00
5b33a0fceb Perf optimization 2024-10-18 07:02:33 -05:00