-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix)As a user i want to embed items from ansa meta search to article…
… body using drag and drop (sdansa 208) (#2663) * Allow adding embed URLs by drag and dropping * code style * eslint autofix * check if embeds are configured for content profile * fix lint errors
- Loading branch information
1 parent
1695c12
commit 646019c
Showing
4 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import {get} from 'lodash'; | ||
// Adding the following because planning webpack when compiled for test cases | ||
// won't be aware of gettext. | ||
const gettext = get(window, 'gettext', (text) => text); | ||
|
||
export const MEDIA_TYPES = { | ||
GALLERY: { | ||
id: 'media', | ||
label: gettext('Media gallery'), | ||
}, | ||
RELATED_CONTENT: { | ||
id: 'related_content', | ||
label: gettext('Related items'), | ||
}, | ||
}; | ||
|
||
export const MEDIA_TYPE_KEYS = Object.keys(MEDIA_TYPES).map((type) => MEDIA_TYPES[type].id); | ||
|
||
export const VOCABULARY_SELECTION_TYPES = { | ||
SINGLE_SELECTION: { | ||
id: 'single selection', | ||
label: gettext('Single selection'), | ||
}, | ||
MULTIPLE_SELECTION: { | ||
id: 'multi selection', | ||
label: gettext('Multi selection'), | ||
}, | ||
DO_NOT_SHOW: { | ||
id: 'do not show', | ||
label: gettext('Do not show'), | ||
}, | ||
}; | ||
|
||
export const DEFAULT_SCHEMA = { | ||
name: {}, | ||
qcode: {}, | ||
parent: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters