mirror of
https://github.com/strapi/strapi.git
synced 2025-12-05 03:21:22 +00:00
Merge pull request #14162 from strapi/custom-fields/remove-map-cf
[Custom fields] remove map cf
This commit is contained in:
commit
d84d954e43
@ -5,25 +5,7 @@ import ColorPickerIcon from './components/ColorPicker/ColorPickerIcon';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
register(app) {
|
register(app) {
|
||||||
app.customFields.register([
|
app.customFields.register({
|
||||||
{
|
|
||||||
name: 'map',
|
|
||||||
pluginId: 'mycustomfields',
|
|
||||||
type: 'json',
|
|
||||||
intlLabel: {
|
|
||||||
id: 'mycustomfields.map.label',
|
|
||||||
defaultMessage: 'Map',
|
|
||||||
},
|
|
||||||
intlDescription: {
|
|
||||||
id: 'mycustomfields.map.description',
|
|
||||||
defaultMessage: 'Select any location',
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
Input: async () =>
|
|
||||||
import(/* webpackChunkName: "input-component" */ './components/Map/MapInput'),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'color',
|
name: 'color',
|
||||||
pluginId: 'mycustomfields',
|
pluginId: 'mycustomfields',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -128,8 +110,7 @@ export default {
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
]);
|
|
||||||
},
|
},
|
||||||
bootstrap(app) {},
|
bootstrap(app) {},
|
||||||
async registerTrads({ locales }) {
|
async registerTrads({ locales }) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user