Commit graph

116 commits

Author SHA1 Message Date
67ca253f5c Add docs and otherwise improve how docs will generate 2024-12-31 13:04:20 +00:00
0a5f63ff04 Don't convert functions with parameters 2024-12-25 11:17:35 -06:00
3a69603031 Lint 2024-12-11 15:12:27 -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
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
4987916900 Fix last lint issue 2024-10-20 13:51:31 -05:00
1e5411d279 Remove processedPropType and convert all components to composition API 2024-10-20 05:47:59 -05:00
052a01d3f7 Fix build issues 2024-10-18 09:26:10 -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
6ba25f9abd Removed dynamic imports 2024-10-18 07:02:32 -05:00
9f25d7f58f Fix more modal paths 2024-10-17 16:17:32 +00:00
563eaa7539 Lint 2024-03-29 00:19:57 -05:00
dfb14acc6e Allow null and undefined values in persistent refs 2024-03-29 04:39:56 +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
5c6ea01990 Add synced icon to saves in saves manager 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
2e0e221010 Made modifier typing a lot less nasty 2024-02-21 01:25:52 +00:00
6ad08c4052 Fix camelCase props not working on links 2023-05-21 17:27:29 -05:00
539282bef8 Improve error handling 2023-05-16 23:49:06 -05:00
81058e10b4 Throw error if lazy proxies get cyclical 2023-04-27 20:41:20 -05:00
632da10aca Make lazy proxies and options funcs pass along base object 2023-04-18 20:56:47 -05:00
d3f5e3bed7 Fix some merge issues 2023-02-15 21:08:10 -06:00
4a28c2f8f9 Remove showIf and make visibility properties take booleans 2023-02-15 20:54:56 -06:00
7f4d57d3e4 Added incredibly dangerous deleteLowerSaves function to window 2023-02-15 20:36:08 -06:00
f5a25b2c2d Fix NaN detection
Also removes the proxy around player and cleaned up types
2023-02-15 20:21:26 -06:00
8c8f7f7904 Fix typos 2023-02-15 20:13:20 -06:00
9b49aedccb Add eslint rule for strict boolean expressions and fix linting issues 2022-12-20 21:33:23 -06:00
b8e498250b Set modVersion 🤦 2022-12-11 23:44:07 -06:00
8e8c71224a Fix total resources increasing on load 2022-12-07 23:01:38 -06:00
4207677944 Fix save data object redundancy
Note: Requires the use of noPersist quite a bit, but the console will tell you when you missed a spot
Also required breaking up events.ts due to cyclical dependencies
2022-12-06 00:22:32 -06:00
7a1e00b2e8 Fixed offline time not being capped 2022-12-03 12:26:12 -06:00
9f38ae6449 Fix typing issue 2022-11-08 10:07:30 -06:00
5bea1bf9b4 Fix isFunction typing 2022-11-07 22:06:16 -06:00
73d6fd7566 Fix a couple type issues 2022-11-07 22:05:37 -06:00
e8ba3f1f88 Add utility type for the values within a readonly array 2022-08-22 08:52:02 -05:00
1729fa8561 Add joinJSX utility function 2022-08-22 08:51:37 -05:00
39c62f3b9c Made trackHover less intrusive 2022-07-27 22:58:59 -05:00
783d5a8a6b Add function to track hovering over a VueFeature 2022-07-26 19:51:39 -05:00
fe865bff9d Add onLoad event 2022-07-21 19:23:50 -05:00
db304dea43 Cleaned up docs 2022-07-10 01:07:39 -05:00
9828e5ec62 Document all the window augmentations 2022-07-09 22:09:25 -05:00
a701168ab1 Fix processed JSXFunctions not being considered coercable components 2022-07-09 19:09:57 -05:00
ff9fa0bf07 Bind uncached functions in processComputable 2022-07-07 20:40:07 -05:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
7fe57798bb Switched from vue-cli-service to vite
Should be thoroughly tested still
Also involved removing operator overloads, which weren't good anyways
2022-06-25 22:34:18 -05:00