builds unlicensed route
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
"payload": "./dist/src/bin/index.js"
|
"payload": "./dist/src/bin/index.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"copyfiles": "copyfiles \"src/admin/**/*.*\" dist",
|
"copyfiles": "copyfiles src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png} dist/",
|
||||||
"build:components": "webpack --config src/webpack/components.config.js",
|
"build:components": "webpack --config src/webpack/components.config.js",
|
||||||
"build": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js node src/bin/build",
|
"build": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js node src/bin/build",
|
||||||
"build:tsc": "tsc",
|
"build:tsc": "tsc",
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
"@faceless-ui/modal": "^1.0.4",
|
"@faceless-ui/modal": "^1.0.4",
|
||||||
"@faceless-ui/scroll-info": "^1.1.1",
|
"@faceless-ui/scroll-info": "^1.1.1",
|
||||||
"@faceless-ui/window-info": "^1.2.2",
|
"@faceless-ui/window-info": "^1.2.2",
|
||||||
"@payloadcms/config-provider": "0.0.3",
|
"@payloadcms/config-provider": "0.0.7",
|
||||||
"@typescript-eslint/parser": "4.0.1",
|
"@typescript-eslint/parser": "4.0.1",
|
||||||
"@udecode/slate-plugins": "^0.64.3",
|
"@udecode/slate-plugins": "^0.64.3",
|
||||||
"ajv": "^6.12.6",
|
"ajv": "^6.12.6",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import DefaultTemplate from './templates/Default';
|
|||||||
import { requests } from '../api';
|
import { requests } from '../api';
|
||||||
import Loading from './elements/Loading';
|
import Loading from './elements/Loading';
|
||||||
import StayLoggedIn from './modals/StayLoggedIn';
|
import StayLoggedIn from './modals/StayLoggedIn';
|
||||||
|
import Unlicensed from './views/Unlicensed';
|
||||||
|
|
||||||
const Dashboard = lazy(() => import('./views/Dashboard'));
|
const Dashboard = lazy(() => import('./views/Dashboard'));
|
||||||
const ForgotPassword = lazy(() => import('./views/ForgotPassword'));
|
const ForgotPassword = lazy(() => import('./views/ForgotPassword'));
|
||||||
@@ -81,6 +82,9 @@ const Routes = () => {
|
|||||||
<Route path={`${match.url}/reset/:token`}>
|
<Route path={`${match.url}/reset/:token`}>
|
||||||
<ResetPassword />
|
<ResetPassword />
|
||||||
</Route>
|
</Route>
|
||||||
|
<Route path={`${match.url}/unlicensed`}>
|
||||||
|
<Unlicensed />
|
||||||
|
</Route>
|
||||||
|
|
||||||
{collections.map((collection) => {
|
{collections.map((collection) => {
|
||||||
if (collection?.auth?.verify) {
|
if (collection?.auth?.verify) {
|
||||||
|
|||||||
@@ -24,17 +24,20 @@
|
|||||||
"inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
"inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||||
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
||||||
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
||||||
|
// "typeRoots": [
|
||||||
|
// "./src",
|
||||||
|
// "./node_modules/@types"
|
||||||
|
// ]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/",
|
"src/"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"demo",
|
"demo",
|
||||||
"dist",
|
"dist",
|
||||||
"src/admin",
|
"build",
|
||||||
"src/tests",
|
"src/tests",
|
||||||
"src/tests/**/*.spec.ts",
|
"src/tests/**/*.spec.ts",
|
||||||
// "**/*.d.ts",
|
|
||||||
// "node_modules/"
|
// "node_modules/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1360,10 +1360,10 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
mkdirp "^1.0.4"
|
mkdirp "^1.0.4"
|
||||||
|
|
||||||
"@payloadcms/config-provider@0.0.3":
|
"@payloadcms/config-provider@0.0.7":
|
||||||
version "0.0.3"
|
version "0.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/@payloadcms/config-provider/-/config-provider-0.0.3.tgz#0c460583b3b70f396b3f91ad69194ade300683ed"
|
resolved "https://registry.yarnpkg.com/@payloadcms/config-provider/-/config-provider-0.0.7.tgz#c225f29cf1737e039c95bd54ba25be5e32550ae1"
|
||||||
integrity sha512-YSPHssYTvYZYnsd+smtrhMCNsGNL/MWU8YtApa+nZRuHGbBGgO+tuffgNqzSJzUnTnliaVBzUz/RTNdaXnXrRQ==
|
integrity sha512-qiiz5i/BRPkU6wyBg01Cf5pikfYxudanIjONdpTx7Z4xaUN67OZ0SDCfRno5LGrUupsFgxlEfSIXFGWb9h4gdw==
|
||||||
|
|
||||||
"@popperjs/core@^2.4.4":
|
"@popperjs/core@^2.4.4":
|
||||||
version "2.5.4"
|
version "2.5.4"
|
||||||
|
|||||||
Reference in New Issue
Block a user