Skip to content

Commit

Permalink
Merge pull request #17 from tv2regionerne/fix/popup-fieldtype
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight authored Apr 19, 2024
2 parents 7212608 + 7fc28b2 commit 997bb5a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"resources/js/curated-collections-addon.css": {
"file": "assets/curated-collections-addon-4475c9e7.css",
"file": "assets/curated-collections-addon-584acd78.css",
"src": "resources/js/curated-collections-addon.css"
},
"resources/js/curated-collections-addon.js": {
"css": [
"assets/curated-collections-addon-4475c9e7.css"
"assets/curated-collections-addon-584acd78.css"
],
"file": "assets/curated-collections-addon-b5e8b3b2.js",
"file": "assets/curated-collections-addon-cb5faf41.js",
"isEntry": true,
"src": "resources/js/curated-collections-addon.js"
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/EntriesPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<stack half name="curated-collections-entries-panel" @closed="$emit('closed')">
<div slot-scope="{ close }" class="bg-gray-100 h-full flex flex-col">

<header class="bg-white pl-6 pr-3 py-2 border-b shadow-md text-lg font-medium flex items-center justify-between">
<header class="bg-white px-6 py-2 border-b shadow-md text-lg font-medium flex items-center justify-between">
{{ headerText }}
<button
type="button"
Expand Down
4 changes: 2 additions & 2 deletions resources/js/curated-collections-addon.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import CuratedCollectionFieldtype from './components/fieldtypes/CuratedCollection.vue'
import CuratedCollectionPopupFieldtype from './components/fieldtypes/CuratedCollectionPopup.vue'
import CuratedCollectionListing from './components/curated-collections/Listing.vue'
import CuratedCollectionView from './components/curated-collections/View.vue'
import CuratedCollectionEditForm from './components/curated-collections/EditForm.vue'
import CuratedCollectionCreateFrom from './components/curated-collections/CreateForm.vue'

Statamic.booting(() => {
Statamic.component('curated_collection-fieldtype', CuratedCollectionFieldtype)
Statamic.component('curated_collection_popup-fieldtype', CuratedCollectionPopupFieldtype)
Statamic.component('curated-collection-listing', CuratedCollectionListing)
Statamic.component('curated-collection-view', CuratedCollectionView)
Statamic.component('curated-collection-edit-form', CuratedCollectionEditForm)
Expand Down
9 changes: 9 additions & 0 deletions src/Fieldtypes/CuratedCollectionPopup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Tv2regionerne\StatamicCuratedCollection\Fieldtypes;

use Statamic\Fields\Fieldtype;

class CuratedCollectionPopup extends Fieldtype
{
}
1 change: 1 addition & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class ServiceProvider extends AddonServiceProvider

protected $fieldtypes = [
Fieldtypes\CuratedCollection::class,
Fieldtypes\CuratedCollectionPopup::class,
];

protected $commands = [
Expand Down

0 comments on commit 997bb5a

Please sign in to comment.