Commit graph

659 commits

Author SHA1 Message Date
1657dffcfe Feature rewrite
Some checks failed
Run Tests / test (pull_request) Failing after 1m16s
- 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-19 08:32:45 -06:00
4987916900 Fix last lint issue
All checks were successful
Run Tests / test (pull_request) Successful in 1m10s
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)
Some checks failed
Run Tests / test (pull_request) Failing after 1m7s
2024-10-20 06:27:24 -05: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
052a01d3f7 Fix build issues
Some checks failed
Run Tests / test (pull_request) Failing after 58s
2024-10-18 09:26:10 -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
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
6a17bbc29c Use z-index to avoid changing render order 2024-10-18 07:02:33 -05:00
a75c8d81f8 Add cnodes 2024-10-18 07:02:32 -05:00
c64ac82a25 Add support for rendering VueFeatures in boards 2024-10-18 07:02:32 -05:00
1cbe97251c WIP on rewriting board 2024-10-18 07:02:32 -05:00
6ba25f9abd Removed dynamic imports 2024-10-18 07:02:32 -05:00
8a9e106157 Update vite dependencies 2024-10-18 07:00:46 -05:00
90300ce848 Update fontsource dependencies 2024-10-18 07:00:08 -05:00
2b861c3fcf Fix Links.vue checking startNode twice instead of both nodes
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m21s
Run Tests / test (push) Successful in 2m56s
Thanks escapee for reporting the issue!
2024-10-17 16:50:55 +00:00
9debfe6fb4 Unref hotkey descriptions
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m29s
Run Tests / test (push) Successful in 3m5s
2024-10-17 16:28:04 +00:00
9f25d7f58f Fix more modal paths
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m45s
Run Tests / test (push) Successful in 2m50s
2024-10-17 16:17:32 +00:00
239ae7c94a Update saves bank path 2024-10-17 16:17:32 +00:00
2d28be84a9 Add modal to take a mental health break 2024-10-17 16:17:32 +00:00
b98f6db1c4 Move printFormula to Formula.stringify and add tests for it
All checks were successful
Run Tests / test (pull_request) Successful in 2m1s
Build and Deploy / build-and-deploy (push) Successful in 54s
Run Tests / test (push) Successful in 2m3s
2024-03-29 00:24:31 -05:00
563eaa7539 Lint
All checks were successful
Run Tests / test (pull_request) Successful in 2m3s
Build and Deploy / build-and-deploy (push) Successful in 53s
Run Tests / test (push) Successful in 2m4s
2024-03-29 00:19:57 -05:00
90d0307cf0 Add hotkey tests, make them pass
Includes updating vitest and supporting hotkeys with both ctrl+shift
2024-03-28 23:40:46 -05:00
dfb14acc6e Allow null and undefined values in persistent refs
Some checks failed
Build and Deploy / build-and-deploy (push) Successful in 57s
Run Tests / test (push) Failing after 2m6s
2024-03-29 04:39:56 +00:00
c30724d907 Make disabled elements not eat up mouse events
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 55s
Run Tests / test (push) Successful in 2m5s
Browsers make disabled elements eat events rather than let them bubble up
This allows containers with disabled elements to have listeners still
(Used specifically so after the board rewrite, purchased upgrades can still be dragged)
2024-03-08 12:19:52 +00:00
b855139ab4 Fixed issues until it fully worked on Galaxy proper 2024-03-05 22:47:29 -06:00
c85bca110b Sync cloud saves every minute 2024-03-05 22:47:29 -06:00
389e8ad1e1 Move unofficial sdk to repo 2024-03-05 22:47:28 -06:00
f6dec5c614 Sync deleting saves to cloud 2024-03-05 22:47:28 -06:00
af4229ebdd Attention grabber on saves manager when active save isn't synced 2024-03-05 22:47:28 -06:00
7a6f249f58 Add warning to saves manager when not all saves are synced 2024-03-05 22:47:28 -06:00
5c6ea01990 Add synced icon to saves in saves manager 2024-03-05 22:47:28 -06:00
f970b658ff Add "Keep Both" button 2024-03-05 22:47:28 -06:00
ece7ed2923 Add save conflict resolver 2024-03-05 22:47:27 -06:00
cfba55d2c6 Add galaxy api 2024-03-05 22:47:11 -06:00
df9ba59a1a Merge branch 'main' into feat/enforce-eslint
All checks were successful
Run Tests / test (pull_request) Successful in 2m3s
2024-03-04 01:26:29 +00:00
escapee
b40d4bef32 Allow both cases in shift+hotkeys
All checks were successful
Run Tests / test (pull_request) Successful in 2m0s
Build and Deploy / build-and-deploy (push) Successful in 55s
Run Tests / test (push) Successful in 1m56s
2024-02-21 19:21:18 +00:00
f7a8fbbb11 Lint
All checks were successful
Run Tests / test (pull_request) Successful in 2m12s
2024-02-20 22:38:49 -06:00
5f8e35478d Merge remote-tracking branch 'upstream/main' into feat/enforce-eslint 2024-02-20 22:37:17 -06:00
1f22f506dd Add tests for tree reset propagation
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 57s
Run Tests / test (push) Successful in 2m1s
2024-02-21 04:15:49 +00:00