Refactored the Dashboard app to utilize the APIs directly from client() instead of creating separate functions for them. This also means that almost all of the PocketbaseClient.ts functions are documented with JSDoc and intellisense now. Depending on how far we go with this, we might be able to remove database.ts completely
Rewrote the <AlertBar> component to support all the DaisyUI alert types, and to reduce complexity on the components and pages that use it
Fixed minor bug with the dashboard page showing a message that you didn't have any instances, when you did in fact have instances.
Removed some unused imports across the app
AlertBar Changes
Old method involved creating the slide logic + the full HTML code from Daisy
The slide behavior exists in the component and will trigger depending on if the message prop has data. This means that you'll need to set the message value to a blank string if you want to clear out the error. All the APIs calls are set up like this already.
client()
instead of creating separate functions for them. This also means that almost all of thePocketbaseClient.ts
functions are documented with JSDoc and intellisense now. Depending on how far we go with this, we might be able to removedatabase.ts
completely<AlertBar>
component to support all the DaisyUI alert types, and to reduce complexity on the components and pages that use itAlertBar Changes
Old method involved creating the slide logic + the full HTML code from Daisy
The new method now can be called like so:
The slide behavior exists in the component and will trigger depending on if the
message
prop has data. This means that you'll need to set the message value to a blank string if you want to clear out the error. All the APIs calls are set up like this already.