Commit graph

15 commits

Author SHA1 Message Date
67ca253f5c Add docs and otherwise improve how docs will generate
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m5s
Run Tests / test (push) Successful in 1m13s
2024-12-31 13:04:20 +00: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
1e5411d279 Remove processedPropType and convert all components to composition API
Some checks failed
Run Tests / test (pull_request) Failing after 1m8s
2024-10-20 05:47:59 -05:00
4a28c2f8f9 Remove showIf and make visibility properties take booleans 2023-02-15 20:54:56 -06:00
2ece8e5a17 Floor reindeer feed amount 2023-02-15 20:12:18 -06:00
9b49aedccb Add eslint rule for strict boolean expressions and fix linting issues 2022-12-20 21:33:23 -06:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
b82bf8eee3 Made most touch events passive 2022-05-03 01:36:07 -05:00
5427f200c1 Fixed updating displays sometimes eating clicks 2022-04-24 01:03:25 -05:00
561dd35570 Added events to onClick 2022-03-27 00:47:34 -05:00
5ce8195779 Separated Links into a feature and Context 2022-03-27 00:39:38 -05:00
8170f240c8 Fix clickables not obeying mergeAdjacent 2022-03-13 23:05:48 -05:00
49474b1518 Changed path aliasing 2022-03-03 21:39:48 -06:00
7b2b3de788 Fixed lifting up on certain elements not stopping the auto-clicker 2022-03-02 21:34:32 -06:00
a8af84f581 Reorganized components 2022-02-27 16:04:56 -06:00
Renamed from src/components/features/Clickable.vue (Browse further)