mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 23:29:33 +00:00
Remove config file
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
dfad76bdd1
commit
87b7aece4c
@ -36,6 +36,8 @@ module.exports = {
|
|||||||
BACKEND_URL: true,
|
BACKEND_URL: true,
|
||||||
PUBLIC_PATH: true,
|
PUBLIC_PATH: true,
|
||||||
NODE_ENV: true,
|
NODE_ENV: true,
|
||||||
|
STRAPI_ADMIN_SHOW_TUTORIALS: true,
|
||||||
|
STRAPI_ADMIN_UPDATE_NOTIFICATION: true,
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
react: {
|
react: {
|
||||||
|
|||||||
@ -40,11 +40,11 @@ module.exports = {
|
|||||||
backendURL: 'http://localhost:1337',
|
backendURL: 'http://localhost:1337',
|
||||||
},
|
},
|
||||||
BACKEND_URL: 'http://localhost:1337',
|
BACKEND_URL: 'http://localhost:1337',
|
||||||
MODE: 'host',
|
ADMIN_PATH: '/admin',
|
||||||
PUBLIC_PATH: '/admin',
|
|
||||||
REMOTE_URL: '/',
|
|
||||||
NODE_ENV: 'test',
|
NODE_ENV: 'test',
|
||||||
ENABLED_EE_FEATURES: [],
|
ENABLED_EE_FEATURES: [],
|
||||||
|
STRAPI_ADMIN_SHOW_TUTORIALS: 'false',
|
||||||
|
STRAPI_ADMIN_UPDATE_NOTIFICATION: 'false',
|
||||||
},
|
},
|
||||||
moduleDirectories: [
|
moduleDirectories: [
|
||||||
'node_modules',
|
'node_modules',
|
||||||
|
|||||||
@ -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;
|
|
||||||
@ -22,7 +22,6 @@ import {
|
|||||||
CheckPagePermissions,
|
CheckPagePermissions,
|
||||||
request,
|
request,
|
||||||
} from '@strapi/helper-plugin';
|
} from '@strapi/helper-plugin';
|
||||||
import { SHOW_TUTORIALS, STRAPI_UPDATE_NOTIF } from '../../config';
|
|
||||||
import { checkLatestStrapiVersion } from '../../utils';
|
import { checkLatestStrapiVersion } from '../../utils';
|
||||||
|
|
||||||
import adminPermissions from '../../permissions';
|
import adminPermissions from '../../permissions';
|
||||||
@ -121,7 +120,7 @@ export class Admin extends React.Component {
|
|||||||
getStrapiLatestReleaseSucceeded,
|
getStrapiLatestReleaseSucceeded,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
if (!STRAPI_UPDATE_NOTIF) {
|
if (!STRAPI_ADMIN_UPDATE_NOTIFICATION === 'true') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,7 +292,7 @@ export class Admin extends React.Component {
|
|||||||
isOpen={blockApp && showGlobalAppBlocker}
|
isOpen={blockApp && showGlobalAppBlocker}
|
||||||
{...overlayBlockerData}
|
{...overlayBlockerData}
|
||||||
/>
|
/>
|
||||||
{SHOW_TUTORIALS && <OnboardingVideos />}
|
{STRAPI_ADMIN_SHOW_TUTORIALS === 'true' && <OnboardingVideos />}
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
</GlobalContextProvider>
|
</GlobalContextProvider>
|
||||||
</PermissionsManager>
|
</PermissionsManager>
|
||||||
|
|||||||
@ -11,7 +11,6 @@ import { get } from 'lodash';
|
|||||||
import { ErrorBoundary } from 'react-error-boundary';
|
import { ErrorBoundary } from 'react-error-boundary';
|
||||||
import { BlockerComponent, ErrorFallback } from '@strapi/helper-plugin';
|
import { BlockerComponent, ErrorFallback } from '@strapi/helper-plugin';
|
||||||
import PageTitle from '../../components/PageTitle';
|
import PageTitle from '../../components/PageTitle';
|
||||||
import { LOGIN_LOGO } from '../../config';
|
|
||||||
|
|
||||||
export function PluginDispatcher(props) {
|
export function PluginDispatcher(props) {
|
||||||
const {
|
const {
|
||||||
@ -45,11 +44,7 @@ export function PluginDispatcher(props) {
|
|||||||
<div>
|
<div>
|
||||||
<PageTitle title={`Strapi - ${name}`} />
|
<PageTitle title={`Strapi - ${name}`} />
|
||||||
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
<ErrorBoundary FallbackComponent={ErrorFallback}>
|
||||||
<PluginEntryComponent
|
<PluginEntryComponent {...props} {...blockerComponentProps} />
|
||||||
{...props}
|
|
||||||
{...blockerComponentProps}
|
|
||||||
assets={{ loginLogo: LOGIN_LOGO }}
|
|
||||||
/>
|
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -29,7 +29,8 @@ const getClientEnvironment = (useEE, options) => {
|
|||||||
NODE_ENV: process.env.NODE_ENV || 'development',
|
NODE_ENV: process.env.NODE_ENV || 'development',
|
||||||
// REQUIRED STRAPI_ADMIN variables
|
// REQUIRED STRAPI_ADMIN variables
|
||||||
// TODO
|
// TODO
|
||||||
// STRAPI_ADMIN_SHOW_TUTORIALS: 'true',
|
STRAPI_ADMIN_SHOW_TUTORIALS: 'true',
|
||||||
|
STRAPI_ADMIN_UPDATE_NOTIFICATION: 'true',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user