Skip to content

Commit

Permalink
Merge pull request #14 from pr0gr8mm3r/settings
Browse files Browse the repository at this point in the history
Move to Settings
  • Loading branch information
ScottAgirs committed May 22, 2021
2 parents 280dde4 + d6c4134 commit 00c01cb
Show file tree
Hide file tree
Showing 12 changed files with 206 additions and 317 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ or
npm cache clean --force && npm run dev
```

3 - Go to Sidebar Menu > Migrate Strapi
3 - Go to your Settings > `Dashboard` (in the new `Migrate` section)

4 - Export your data by downloading a JSON file or Copying the Text string

5 - Import your data in the target environment

## Control access to the settings

By default, only admin panel users with `Super Admin`-role are able to access the settings of this plugin. Due to Strapi's restrictions you can't change this behavior if you are using the free Community Edition. When using Enterprise Edition you're able to adjust the settings for this plugin on the edit page of a role under Settings > Administration Panel > Roles > Select a role > Settings tab > Migrate. More information can be found [here](https://strapi.io/documentation/user-docs/latest/users-roles-permissions/configuring-administrator-roles.html#plugins-and-settings).

## Updating to new version

When updating to a new version, you will need to rebuild your Strapi admin UI for the changes to take effect.
Expand Down
2 changes: 1 addition & 1 deletion admin/src/basePluginUrl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const pluginId = require('./pluginId.js');

const basePluginUrl = `/plugins/${pluginId}`
const basePluginUrl = `/settings/${pluginId}`

module.exports = basePluginUrl;
130 changes: 0 additions & 130 deletions admin/src/components/data-display/MenuList.js

This file was deleted.

15 changes: 2 additions & 13 deletions admin/src/components/layout/PageContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { ViewContainer } from 'strapi-helper-plugin';

// import PropTypes from 'prop-types';
import pluginId from '../../pluginId';
import Sidebar from '../../containers/Sidebar';

const Wrapper = styled(ViewContainer)`
.button-secondary {
Expand All @@ -34,19 +33,9 @@ const Wrapper = styled(ViewContainer)`
const PageContainer = ({ children, headerProps }) => {
return (
<Wrapper className={pluginId}>
<div className="container-fluid">
<div className="row">
<Sidebar />
<div
className="col-md-9 content"
style={{ paddingLeft: '30px', paddingRight: '30px' }}
>
<Header {...headerProps} />
<Header {...headerProps} />

<div>{children}</div>
</div>
</div>
</div>
<div>{children}</div>
</Wrapper>
);
};
Expand Down
14 changes: 0 additions & 14 deletions admin/src/containers/App/Wrapper.js

This file was deleted.

55 changes: 0 additions & 55 deletions admin/src/containers/App/index.js

This file was deleted.

69 changes: 0 additions & 69 deletions admin/src/containers/Sidebar/index.js

This file was deleted.

Loading

0 comments on commit 00c01cb

Please sign in to comment.