diff --git a/examples/kitchensink/src/admin/app.example.js b/examples/kitchensink/src/admin/app.example.js deleted file mode 100644 index 55e1bbcbd4..0000000000 --- a/examples/kitchensink/src/admin/app.example.js +++ /dev/null @@ -1,33 +0,0 @@ -import theme from './extensions/theme'; - -export default { - config: { - auth: { - logo: - 'https://images.unsplash.com/photo-1593642634367-d91a135587b5?ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80', - }, - head: { - favicon: - 'https://images.unsplash.com/photo-1593642634367-d91a135587b5?ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80', - title: 'Strapi test', - }, - locales: ['fr', 'de'], - menu: { - logo: - 'https://images.unsplash.com/photo-1593642634367-d91a135587b5?ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80', - }, - theme, - translations: { - fr: { - 'Auth.form.email.label': 'test', - Users: 'Utilisateurs', - City: 'CITY FRENCH', - // Customize the label of the CM table.. - Id: 'ID french', - }, - }, - tutorials: false, - notifications: { release: false }, - }, - bootstrap() {}, -}; diff --git a/examples/kitchensink/src/admin/app.tsx b/examples/kitchensink/src/admin/app.tsx new file mode 100644 index 0000000000..f0fc63b427 --- /dev/null +++ b/examples/kitchensink/src/admin/app.tsx @@ -0,0 +1,36 @@ +import theme from './extensions/theme' + +const config = { + auth: { + logo: 'https://images.unsplash.com/photo-1593642634367-d91a135587b5?ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80' + }, + head: { + favicon: + 'https://images.unsplash.com/photo-1593642634367-d91a135587b5?ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80', + title: 'Strapi test', + }, + locales: ['fr'], + menu: { + logo: + 'https://images.unsplash.com/photo-1593642634367-d91a135587b5?ixid=MnwxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80', + }, + theme, + translations: { + fr: { + 'Auth.form.email.label': 'test', + Users: 'Utilisateurs', + City: 'CITY FRENCH', + // Customize the label of the CM table.. + Id: 'ID french', + }, + }, + tutorials: false, + notifications: { release: false }, +} + +const bootstrap = (app) => {} + +export default { + config, + bootstrap +}; diff --git a/packages/core/admin/package.json b/packages/core/admin/package.json index 1d0a9e9afd..053025b94f 100644 --- a/packages/core/admin/package.json +++ b/packages/core/admin/package.json @@ -27,7 +27,7 @@ "develop": "yarn create:plugin-file && yarn develop:webpack", "develop:webpack": "cross-env NODE_ENV=development webpack serve --config webpack.config.dev.js --progress profile", "prepublishOnly": "yarn build", - "builde": "rimraf build && node ./scripts/build.js", + "build": "rimraf build && node ./scripts/build.js", "test": "echo \"no tests yet\"", "test:unit": "jest --verbose", "test:front": "cross-env IS_EE=true jest --config ./jest.config.front.js", @@ -145,6 +145,5 @@ "engines": { "node": ">=12.22.0 <=16.x.x", "npm": ">=6.0.0" - }, - "types": "./admin/src/index.d.ts" + } }