Commit graph

31 commits

Author SHA1 Message Date
595a4170b2 Fix error about pinned tooltips
All checks were successful
Run Tests / test (pull_request) Successful in 1m15s
2024-12-25 19:30:23 -06:00
9e65adee95 Lint
All checks were successful
Run Tests / test (pull_request) Successful in 1m21s
2024-12-25 11:26:34 -06:00
5718abc013 Cleanup
Some checks failed
Run Tests / test (pull_request) Failing after 1m49s
2024-12-12 07:46:59 -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
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
1b267edc32 Revert changes in /data. Check the board-example branch for them instead 2024-03-10 09:27:31 -05:00
2cfa450d96 Move board to src/game 2024-03-09 20:36:41 -06:00
68b1401c2a Document boards 2024-03-08 17:06:54 -06:00
17b878e3be Fix upgrade purchasing on drag
Some checks failed
Run Tests / test (pull_request) Failing after 48s
2024-03-03 22:31:20 -06:00
aca56f6af6 Use z-index to avoid changing render order 2024-03-03 22:17:06 -06:00
f0e831ee8f Add cnodes
Some checks failed
Run Tests / test (pull_request) Failing after 46s
2024-03-03 20:26:00 -06:00
1acfde134b Add support for rendering VueFeatures in boards
Some checks failed
Run Tests / test (pull_request) Failing after 47s
2024-03-03 19:59:26 -06:00
424bde0cdd WIP on rewriting board
Some checks failed
Run Tests / test (pull_request) Failing after 57s
2024-02-28 23:19:11 -06:00
d3faec6a66 Add Nodes to the text that can disappear in projEntry
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 58s
Run Tests / test (push) Successful in 2m3s
2024-02-21 04:08:59 +00:00
eff5852b04 Remove some debugging code 2023-04-02 16:42:03 -05:00
6f9b73d0e8 Add printFormula util 2023-04-02 00:48:48 -05:00
6115b6687d Fixing more tests with integral rework 2023-04-02 00:33:11 -05:00
c3b5f2cdad Throw error objects instead of strings 2023-03-23 20:22:03 -05:00
f5a25b2c2d Fix NaN detection
Also removes the proxy around player and cleaned up types
2023-02-15 20:21:26 -06:00
36f91f91c3 Hide dev speed when paused 2022-12-20 21:57:11 -06:00
9b49aedccb Add eslint rule for strict boolean expressions and fix linting issues 2022-12-20 21:33:23 -06:00
c84bffae59 Made default layer option functions not anonymous 2022-07-22 18:59:52 -05:00
5c0a248b16 Documented /data 2022-07-10 01:44:45 -05:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
3118db1402 Fixed offline time amount always showing when offline limit is 0 2022-05-10 21:01:57 -05:00
f1e5f177bf Made projEntry default display avoid rendering things rather than hiding them 2022-04-23 22:15:15 -05:00
6bbd9b990a Update default layers to use new createLayer signature 2022-04-10 19:26:33 -05:00
e56f34c13c Converted variables that track time to numbers 2022-03-11 15:33:08 -06:00
a76182c0bd Hide things from documentation that don't apply 2022-03-08 00:25:08 -06:00
49474b1518 Changed path aliasing 2022-03-03 21:39:48 -06:00
52a9f51510 Renamed modInfo -> projInfo, mod -> projEntry 2022-03-02 20:12:56 -06:00
Renamed from src/data/mod.tsx (Browse further)