-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from pluginpal/feature/migrate-v5
feat: initial v5 migration
- Loading branch information
Showing
43 changed files
with
8,626 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
branches: | ||
- master | ||
- develop | ||
- beta | ||
|
||
jobs: | ||
lint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import { EmptyStateLayout } from '@strapi/design-system'; | ||
import { useIntl } from 'react-intl'; | ||
import { EmptyDocuments } from '@strapi/icons'; | ||
|
||
const NoChanges = () => { | ||
const { formatMessage } = useIntl(); | ||
return ( | ||
<EmptyStateLayout | ||
content={formatMessage({ id: 'config-sync.NoChanges.Message', defaultMessage: 'No differences between DB and sync directory. You are up-to-date!' })} | ||
icon={<EmptyDocuments width={160} />} | ||
/> | ||
); | ||
}; | ||
|
||
export default NoChanges; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const pluginPkg = require('../../../package.json'); | ||
import pluginPkg from '../../../package.json'; | ||
|
||
const pluginId = pluginPkg.name.replace( | ||
/^strapi-plugin-/i, | ||
'', | ||
); | ||
|
||
module.exports = pluginId; | ||
export default pluginId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const prefixPluginTranslations = (trad, pluginId) => { | ||
if (!pluginId) { | ||
throw new TypeError("pluginId can't be empty"); | ||
} | ||
return Object.keys(trad).reduce((acc, current) => { | ||
acc[`${pluginId}.${current}`] = trad[current]; | ||
return acc; | ||
}, {}); | ||
}; | ||
|
||
export { prefixPluginTranslations }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
HOST=0.0.0.0 | ||
PORT=1337 | ||
APP_KEYS=SIwLyqu+IpSHIuUBDQfPZg==,Nzqbq2C3ATsR19u5XEAJQA==,/Agk5Sn8M4EzfoSiIHcDlQ==,gSxT2T0k2zbQatKXUV0zCA== | ||
API_TOKEN_SALT=reQcUBbGXD2KWG2QpRn7DA== | ||
ADMIN_JWT_SECRET= 69mzgwRGfEBUhPEaas8EBA== | ||
TRANSFER_TOKEN_SALT=/LTsSGpC5afHICjZu0oEuQ== | ||
JWT_SECRET=E0TTVdsr+M/FXAjfrNIgXA== | ||
APP_KEYS=ujfpKPEst1tv0WDxJEhjJw==,MOnFjWYKbWYmtrBZ3cQTFQ==,zQpX70tJw/Mw+Y656kXfVA==,xJT1vbsiz3cgabfgpLu72w== | ||
API_TOKEN_SALT=5FoJkYoZV8IA6+NnZJDzng== | ||
ADMIN_JWT_SECRET=tkeg3+HqE+QmTd2ITEivtA== | ||
TRANSFER_TOKEN_SALT=UUMCRQ2cx9qvKw/RkB815Q== | ||
# Database | ||
DATABASE_CLIENT=sqlite | ||
DATABASE_FILENAME=.tmp/data.db | ||
JWT_SECRET=Dn/nUGQsREUw4/lfQYOScw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
HOST=0.0.0.0 | ||
PORT=1337 | ||
APP_KEYS="toBeModified1,toBeModified2" | ||
API_TOKEN_SALT=tobemodified | ||
ADMIN_JWT_SECRET=tobemodified | ||
TRANSFER_TOKEN_SALT=tobemodified | ||
JWT_SECRET=tobemodified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* This file was automatically generated by Strapi. | ||
* Any modifications made will be discarded. | ||
*/ | ||
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin"; | ||
import strapiCloud from "@strapi/plugin-cloud/strapi-admin"; | ||
import { renderAdmin } from "@strapi/strapi/admin"; | ||
|
||
renderAdmin(document.getElementById("strapi"), { | ||
plugins: { | ||
"users-permissions": usersPermissions, | ||
"strapi-cloud": strapiCloud, | ||
}, | ||
}); |
Oops, something went wrong.