-
-
Notifications
You must be signed in to change notification settings - Fork 1
2.x #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* Squashed 'packages/filament-uploadcare-field/' content from commit 34c1516 git-subtree-dir: packages/filament-uploadcare-field git-subtree-split: 34c15165cfe7d938bdd1a77db2b1a2b01551b7b6 * Squashed 'packages/uploadcare-field/' content from commit a994f38 git-subtree-dir: packages/uploadcare-field git-subtree-split: a994f3896d2f93608a518261885576f3c0c31c57 * import media package changes * import uploadcare-field changes * import core changes * build uploadcare assets * fix icon path * packages * add missing files * columnSpanFull for first alt * rename alt tag to alt text * remove original filename and set filename as modal heading * add translations to the media model * fix: styling * wip it * fix: styling * remove dupe notification * fix: styling * improve media picker * media grid picker improvements * fix: styling * feat: check on file types and allow multiple * fix: keyvalue nested arrays * fix uploading files * backstage specific listmedia * custom uploadcare src attribute * fix: styling * remove code * fix: nested array values * fix: styling * fix imports * feat: add database view * fix: styling * feat: add image preview in edit mode and show array values correct * fix: translations in UC * remove hardcoded lang * fix: styling * alignCenter * decouple Uploadcare from core packages * fix: styling * this needs testing: check if saving works correctly * feat: allow hydrating values from custom fields * give custom fields priority over normal fields * fix handling nested fields in repeater/builder * fix: styling * reduce redundant code * wip * fix: styling * return Media model * getMimeTypeAttribute * fix: styling * cast metadata to array * fix: styling * wip * convert data to media_relationships * relationships and hydrating * observer and define relation * fix: styling * rename usages to edits * load edits for media * `getEditAttribute` * `getEditAttribute` * fix: styling * disable future mediaPicker * fix: styling * return relation * fix manoj * wip * remove media resource * fix: styling * disable broken translations in edit form * fix file upload by uploadcare * extends functionality from the media baseclass * fix translations * hide translate button when no openai key set * file icons for previews * fix: styling * dont encode metadata * use correct md5 hashes for normal media and uploadcare * fix: styling * docs: hydrating fields * docs: custom mediaupload using events * fix: media grid picker and cleanup Uploadcare code * styles: darkmode issues * fix migration * wip * fix: styling * fix: defining extension * fix: styling * fix: saving crop doesnt always saves cdnUrlModifiers * fix: load values when getting field * wip * wip * fix: styling * wip * fix: styling * fix: order of executing * fix: load site relation * fix: styling * wip * wip it * fix composer.json * test: trigger workflow * test: trigger workflow * self.version * fix incorrect config key * get nested configs * wip * fix phpstan issues --------- Co-authored-by: Baspa <[email protected]> Co-authored-by: Mathieu <[email protected]>
* Remove publishing of translation config in backstage:install * Dont add default vk10 users * Remove translation config & option for creating user in install * Add secret as password * Remove vk10 users * fix: styling * email and pw required * RedirectFactory * Dont duplicate pw hash * fix: styling * Feedback * fix: styling --------- Co-authored-by: Casmo <[email protected]>
|
Ik heb:
De hydrate() functie wordt ook gebruikt bij de Content Form voor het vullen van de values. Ik weet niet of we dat willen. Ik zou eigenlijk de hydrate() functie echt alleen gebruiken voor front(enders). Even onderzoeken nog. Er moet nog hoop gedaan worden want de hydrate() functie wordt nu op meer plekken (dubbel) gebruikt. Kijken of we deze code uit cms kunnen halen en naar de specifieke fields kunnen toevoegen. |
Remaining tasks
Release notes
What's changed
hydratemethod to allow you to transform raw values stores in the database into a runtime representation. Useful when you want to convert stored IDs into models, format dates or process JSON data into specific objects.media_relationshipstable. Here unique (meta)data for eachcontent_field_valueis stored.laravel-translationsto set (and translate) alt text for each configured language.Breaking changes
content_field_valuestable instead of the whole file objects. You can migrate existing Uploadcare data usingphp artisan vendor:publish --tag=backstage/uploadcare-field-migrations && migrate. When you want to get themetaof an "edit", you can access it like$media->edit.Collectioninstead of anarray.$item->field('image')will now return a Media model$imagesin blocks will now return a single Media model when not multiple. When multiple, it will return a collection instead of anarray.PageComponentslots are replaced by stacks:headFirst>head-first,headLast>headLast,bodyFirst>body-first,bodyLast>body-lastUpgrade guide
Uploadcare
To upgrade when using Uploadcare, run:
composer update && php artisan vendor:publish --tag=backstage/uploadcare-field-migrations && migrateNot using Uploadcare?
Simply run
composer update.