-
-
Notifications
You must be signed in to change notification settings - Fork 625
Expand file tree
/
Copy pathcomponents.js
More file actions
103 lines (93 loc) · 4.84 KB
/
components.js
File metadata and controls
103 lines (93 loc) · 4.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import AssetManager from '../components/assets/AssetManager.vue';
import Browser from '../components/assets/Browser/Browser.vue';
import UpdatesBadge from '../components/UpdatesBadge.vue';
import FullscreenHeader from '../components/publish/FullscreenHeader.vue';
import FieldMeta from '../components/publish/FieldMeta.vue';
import LivePreview from '../components/live-preview/LivePreview.vue';
import Popout from '../components/live-preview/Popout.vue';
import EntryPublishForm from '../components/entries/PublishForm.vue';
import TermPublishForm from '../components/terms/PublishForm.vue';
import UserPublishForm from '../components/users/PublishForm.vue';
import EntryListing from '../components/entries/Listing.vue';
import CollectionListing from '../components/collections/Listing.vue';
import TaxonomyListing from '../components/taxonomies/Listing.vue';
import TermListing from '../components/terms/Listing.vue';
import AddonListing from '../components/addons/Listing.vue';
import CollectionWidget from '../components/entries/CollectionWidget.vue';
import FormWidget from '../components/forms/FormWidget.vue';
import SvgIcon from '../components/SvgIcon.vue';
import FileIcon from '../components/FileIcon.vue';
import LoadingGraphic from '../components/LoadingGraphic.vue';
import DropdownList from '../components/DropdownList.vue';
import DropdownItem from '../components/DropdownItem.vue';
import Slugify from '../components/slugs/Slugify.vue';
import ElementContainer from '../components/ElementContainer.vue';
import Avatar from '../components/Avatar.vue';
import CreateEntryButton from '../components/entries/CreateEntryButton.vue';
import Popover from '../components/Popover.vue';
import Portal from '../components/portals/Portal.vue';
import ConfirmationModal from '../components/modals/ConfirmationModal.vue';
import KeyboardShortcutsModal from '../components/modals/KeyboardShortcutsModal.vue';
import FieldActionModal from '../components/field-actions/FieldActionModal.vue';
import ElevatedSessionModal from '../components/modals/ElevatedSessionModal.vue';
import ResourceDeleter from '../components/ResourceDeleter.vue';
import Stack from '../components/stacks/Stack.vue';
import StackTest from '../components/stacks/StackTest.vue';
import CodeBlock from '../components/CodeBlock.vue';
import BlueprintCreateForm from '../components/blueprints/BlueprintCreateForm.vue';
import BlueprintResetter from '../components/blueprints/BlueprintResetter.vue';
import { defineAsyncComponent } from 'vue';
import DateTime from '../components/DateTime.vue';
import UpdaterWidget from '../components/updater/UpdaterWidget.vue';
export default function registerGlobalComponents(app) {
// Core
app.component('asset-manager', AssetManager);
app.component('asset-browser', Browser);
app.component('updates-badge', UpdatesBadge);
// Publish
app.component('publish-field-meta', FieldMeta);
app.component('publish-field-fullscreen-header', FullscreenHeader);
app.component('live-preview', LivePreview);
app.component('live-preview-popout', Popout);
app.component('EntryPublishForm', EntryPublishForm);
app.component('TermPublishForm', TermPublishForm);
app.component('UserPublishForm', UserPublishForm);
// Resource Type Lists
app.component('entry-list', EntryListing);
app.component('collection-list', CollectionListing);
app.component('taxonomy-list', TaxonomyListing);
app.component('term-list', TermListing);
app.component('addon-list', AddonListing);
// Widgets
app.component('collection-widget', CollectionWidget);
app.component('form-widget', FormWidget);
app.component('updater-widget', UpdaterWidget);
// Reusable
app.component('svg-icon', SvgIcon);
app.component('file-icon', FileIcon);
app.component('loading-graphic', LoadingGraphic);
app.component('dropdown-list', DropdownList);
app.component('dropdown-item', DropdownItem);
app.component('slugify', Slugify);
app.component('element-container', ElementContainer);
app.component('avatar', Avatar);
app.component('create-entry-button', CreateEntryButton);
app.component('popover', Popover);
app.component('portal', Portal);
app.component('code-block', CodeBlock);
app.component('date-time', DateTime);
// Modals
app.component(
'modal',
defineAsyncComponent(() => import('../components/Modal.vue')),
);
app.component('confirmation-modal', ConfirmationModal);
app.component('keyboard-shortcuts-modal', KeyboardShortcutsModal);
app.component('resource-deleter', ResourceDeleter);
app.component('field-action-modal', FieldActionModal);
app.component('elevated-session-modal', ElevatedSessionModal);
app.component('stack', Stack);
app.component('stack-test', StackTest);
app.component('blueprint-create-form', BlueprintCreateForm);
app.component('blueprint-resetter', BlueprintResetter);
}