mirror of
https://github.com/strapi/strapi.git
synced 2025-09-20 14:00:48 +00:00
cleanup commented out block of code
This commit is contained in:
parent
3700b15f76
commit
d940c346d2
@ -364,194 +364,6 @@ const EditView = ({
|
||||
}}
|
||||
</DataManagementWrapper>
|
||||
);
|
||||
|
||||
// return (
|
||||
// <DataManagementWrapper allLayoutData={layout} slug={slug} id={id} origin={origin}>
|
||||
// {({
|
||||
// componentsDataStructure,
|
||||
// contentTypeDataStructure,
|
||||
// data,
|
||||
// isCreatingEntry,
|
||||
// isLoadingForData,
|
||||
// onDelete,
|
||||
// onDeleteSucceeded,
|
||||
// onPost,
|
||||
// onPublish,
|
||||
// onPut,
|
||||
// onUnpublish,
|
||||
// redirectionLink,
|
||||
// status,
|
||||
// }) => {
|
||||
// return (
|
||||
// <EditViewDataManagerProvider
|
||||
// allowedActions={allowedActions}
|
||||
// allLayoutData={layout}
|
||||
// createActionAllowedFields={createActionAllowedFields}
|
||||
// componentsDataStructure={componentsDataStructure}
|
||||
// contentTypeDataStructure={contentTypeDataStructure}
|
||||
// from={redirectionLink}
|
||||
// initialValues={data}
|
||||
// isCreatingEntry={isCreatingEntry}
|
||||
// isLoadingForData={isLoadingForData}
|
||||
// isSingleType={isSingleType}
|
||||
// onPost={onPost}
|
||||
// onPublish={onPublish}
|
||||
// onPut={onPut}
|
||||
// onUnpublish={onUnpublish}
|
||||
// readActionAllowedFields={readActionAllowedFields}
|
||||
// redirectToPreviousPage={goBack}
|
||||
// slug={slug}
|
||||
// status={status}
|
||||
// updateActionAllowedFields={updateActionAllowedFields}
|
||||
// >
|
||||
// <Container className="container-fluid">
|
||||
// <Header allowedActions={allowedActions} />
|
||||
// <div className="row" style={{ paddingTop: 3 }}>
|
||||
// <div className="col-md-12 col-lg-9" style={{ marginBottom: 13 }}>
|
||||
// {formattedContentTypeLayout.map((block, blockIndex) => {
|
||||
// if (isDynamicZone(block)) {
|
||||
// const {
|
||||
// 0: {
|
||||
// 0: { name, fieldSchema, metadatas, labelIcon },
|
||||
// },
|
||||
// } = block;
|
||||
// const baselineAlignementSize = blockIndex === 0 ? '3px' : '0';
|
||||
|
||||
// return (
|
||||
// <BaselineAlignment key={blockIndex} top size={baselineAlignementSize}>
|
||||
// <DynamicZone
|
||||
// name={name}
|
||||
// fieldSchema={fieldSchema}
|
||||
// labelIcon={labelIcon}
|
||||
// metadatas={metadatas}
|
||||
// />
|
||||
// </BaselineAlignment>
|
||||
// );
|
||||
// }
|
||||
|
||||
// return (
|
||||
// <FormWrapper key={blockIndex}>
|
||||
// {block.map((fieldsBlock, fieldsBlockIndex) => {
|
||||
// return (
|
||||
// <div className="row" key={fieldsBlockIndex}>
|
||||
// {fieldsBlock.map(
|
||||
// ({ name, size, fieldSchema, labelIcon, metadatas }, fieldIndex) => {
|
||||
// const isComponent = fieldSchema.type === 'component';
|
||||
|
||||
// if (isComponent) {
|
||||
// const { component, max, min, repeatable = false } = fieldSchema;
|
||||
// const componentUid = fieldSchema.component;
|
||||
|
||||
// return (
|
||||
// <FieldComponent
|
||||
// key={componentUid}
|
||||
// componentUid={component}
|
||||
// labelIcon={labelIcon}
|
||||
// isRepeatable={repeatable}
|
||||
// label={metadatas.label}
|
||||
// max={max}
|
||||
// min={min}
|
||||
// name={name}
|
||||
// />
|
||||
// );
|
||||
// }
|
||||
|
||||
// return (
|
||||
// <div className={`col-${size}`} key={name}>
|
||||
// <Inputs
|
||||
// autoFocus={
|
||||
// blockIndex === 0 &&
|
||||
// fieldsBlockIndex === 0 &&
|
||||
// fieldIndex === 0
|
||||
// }
|
||||
// fieldSchema={fieldSchema}
|
||||
// keys={name}
|
||||
// labelIcon={labelIcon}
|
||||
// metadatas={metadatas}
|
||||
// />
|
||||
// </div>
|
||||
// );
|
||||
// }
|
||||
// )}
|
||||
// </div>
|
||||
// );
|
||||
// })}
|
||||
// </FormWrapper>
|
||||
// );
|
||||
// })}
|
||||
// </div>
|
||||
// <div className="col-md-12 col-lg-3">
|
||||
// <InformationCard />
|
||||
// <Padded size="smd" top />
|
||||
// {currentContentTypeLayoutData.layouts.editRelations.length > 0 && (
|
||||
// <SubWrapper style={{ padding: '0 20px 1px', marginBottom: '25px' }}>
|
||||
// <div style={{ paddingTop: '22px' }}>
|
||||
// {currentContentTypeLayoutData.layouts.editRelations.map(
|
||||
// ({ name, fieldSchema, labelIcon, metadatas, queryInfos }) => {
|
||||
// return (
|
||||
// <SelectWrapper
|
||||
// {...fieldSchema}
|
||||
// {...metadatas}
|
||||
// key={name}
|
||||
// labelIcon={labelIcon}
|
||||
// name={name}
|
||||
// relationsType={fieldSchema.relationType}
|
||||
// queryInfos={queryInfos}
|
||||
// />
|
||||
// );
|
||||
// }
|
||||
// )}
|
||||
// </div>
|
||||
// </SubWrapper>
|
||||
// )}
|
||||
// <LinkWrapper>
|
||||
// <ul>
|
||||
// <CheckPermissions permissions={configurationPermissions}>
|
||||
// <LiLink
|
||||
// message={{
|
||||
// id: 'app.links.configure-view',
|
||||
// }}
|
||||
// icon="layout"
|
||||
// url={configurationsURL}
|
||||
// onClick={() => {
|
||||
// // trackUsage('willEditContentTypeLayoutFromEditView');
|
||||
// }}
|
||||
// />
|
||||
// </CheckPermissions>
|
||||
// {slug !== 'strapi::administrator' && (
|
||||
// <CheckPermissions permissions={ctbPermissions}>
|
||||
// <LiLink
|
||||
// message={{
|
||||
// id: getTrad('containers.Edit.Link.Fields'),
|
||||
// }}
|
||||
// onClick={() => {
|
||||
// trackUsage('willEditEditLayout');
|
||||
// }}
|
||||
// icon="fa-cog"
|
||||
// url={`/plugins/content-type-builder/content-types/${slug}`}
|
||||
// />
|
||||
// </CheckPermissions>
|
||||
// )}
|
||||
// {/* TODO add DOCUMENTATION */}
|
||||
// <InjectionZone area="contentManager.editView.right-links" slug={slug} />
|
||||
|
||||
// {allowedActions.canDelete && (
|
||||
// <DeleteLink
|
||||
// isCreatingEntry={isCreatingEntry}
|
||||
// onDelete={onDelete}
|
||||
// onDeleteSucceeded={onDeleteSucceeded}
|
||||
// />
|
||||
// )}
|
||||
// </ul>
|
||||
// </LinkWrapper>
|
||||
// </div>
|
||||
// </div>
|
||||
// </Container>
|
||||
// </EditViewDataManagerProvider>
|
||||
// );
|
||||
// }}
|
||||
// </DataManagementWrapper>
|
||||
// );
|
||||
};
|
||||
|
||||
EditView.defaultProps = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user