Remove config file

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-05-05 11:44:34 +02:00
parent dfad76bdd1
commit 87b7aece4c
6 changed files with 10 additions and 26 deletions

View File

@ -36,6 +36,8 @@ module.exports = {
BACKEND_URL: true,
PUBLIC_PATH: true,
NODE_ENV: true,
STRAPI_ADMIN_SHOW_TUTORIALS: true,
STRAPI_ADMIN_UPDATE_NOTIFICATION: true,
},
settings: {
react: {

View File

@ -40,11 +40,11 @@ module.exports = {
backendURL: 'http://localhost:1337',
},
BACKEND_URL: 'http://localhost:1337',
MODE: 'host',
PUBLIC_PATH: '/admin',
REMOTE_URL: '/',
ADMIN_PATH: '/admin',
NODE_ENV: 'test',
ENABLED_EE_FEATURES: [],
STRAPI_ADMIN_SHOW_TUTORIALS: 'false',
STRAPI_ADMIN_UPDATE_NOTIFICATION: 'false',
},
moduleDirectories: [
'node_modules',

View File

@ -1,13 +0,0 @@
// DO NOT MODIFY THESE OPTIONS
// NOTE TO PLUGINS DEVELOPERS:
// If you modify this file you also need to update the documentation accordingly
// Here's the file: strapi/docs/3.0.0-beta.x/admin-panel/customization.md#tutorial-videos
// IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED
// IMPORTANT: It also needs to be added to the migration guide.
export const LOGIN_LOGO = null;
export const SHOW_TUTORIALS = true;
// export const SETTINGS_BASE_URL = '/settings';
export const STRAPI_UPDATE_NOTIF = true;

View File

@ -22,7 +22,6 @@ import {
CheckPagePermissions,
request,
} from '@strapi/helper-plugin';
import { SHOW_TUTORIALS, STRAPI_UPDATE_NOTIF } from '../../config';
import { checkLatestStrapiVersion } from '../../utils';
import adminPermissions from '../../permissions';
@ -121,7 +120,7 @@ export class Admin extends React.Component {
getStrapiLatestReleaseSucceeded,
} = this.props;
if (!STRAPI_UPDATE_NOTIF) {
if (!STRAPI_ADMIN_UPDATE_NOTIFICATION === 'true') {
return;
}
@ -293,7 +292,7 @@ export class Admin extends React.Component {
isOpen={blockApp && showGlobalAppBlocker}
{...overlayBlockerData}
/>
{SHOW_TUTORIALS && <OnboardingVideos />}
{STRAPI_ADMIN_SHOW_TUTORIALS === 'true' && <OnboardingVideos />}
</Wrapper>
</GlobalContextProvider>
</PermissionsManager>

View File

@ -11,7 +11,6 @@ import { get } from 'lodash';
import { ErrorBoundary } from 'react-error-boundary';
import { BlockerComponent, ErrorFallback } from '@strapi/helper-plugin';
import PageTitle from '../../components/PageTitle';
import { LOGIN_LOGO } from '../../config';
export function PluginDispatcher(props) {
const {
@ -45,11 +44,7 @@ export function PluginDispatcher(props) {
<div>
<PageTitle title={`Strapi - ${name}`} />
<ErrorBoundary FallbackComponent={ErrorFallback}>
<PluginEntryComponent
{...props}
{...blockerComponentProps}
assets={{ loginLogo: LOGIN_LOGO }}
/>
<PluginEntryComponent {...props} {...blockerComponentProps} />
</ErrorBoundary>
</div>
);

View File

@ -29,7 +29,8 @@ const getClientEnvironment = (useEE, options) => {
NODE_ENV: process.env.NODE_ENV || 'development',
// REQUIRED STRAPI_ADMIN variables
// TODO
// STRAPI_ADMIN_SHOW_TUTORIALS: 'true',
STRAPI_ADMIN_SHOW_TUTORIALS: 'true',
STRAPI_ADMIN_UPDATE_NOTIFICATION: 'true',
}
);