mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 10:48:12 +00:00
Use TS in kitchensink
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
479f330585
commit
be6836637f
@ -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() {},
|
|
||||||
};
|
|
36
examples/kitchensink/src/admin/app.tsx
Normal file
36
examples/kitchensink/src/admin/app.tsx
Normal file
@ -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
|
||||||
|
};
|
@ -27,7 +27,7 @@
|
|||||||
"develop": "yarn create:plugin-file && yarn develop:webpack",
|
"develop": "yarn create:plugin-file && yarn develop:webpack",
|
||||||
"develop:webpack": "cross-env NODE_ENV=development webpack serve --config webpack.config.dev.js --progress profile",
|
"develop:webpack": "cross-env NODE_ENV=development webpack serve --config webpack.config.dev.js --progress profile",
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"builde": "rimraf build && node ./scripts/build.js",
|
"build": "rimraf build && node ./scripts/build.js",
|
||||||
"test": "echo \"no tests yet\"",
|
"test": "echo \"no tests yet\"",
|
||||||
"test:unit": "jest --verbose",
|
"test:unit": "jest --verbose",
|
||||||
"test:front": "cross-env IS_EE=true jest --config ./jest.config.front.js",
|
"test:front": "cross-env IS_EE=true jest --config ./jest.config.front.js",
|
||||||
@ -145,6 +145,5 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.22.0 <=16.x.x",
|
"node": ">=12.22.0 <=16.x.x",
|
||||||
"npm": ">=6.0.0"
|
"npm": ">=6.0.0"
|
||||||
},
|
}
|
||||||
"types": "./admin/src/index.d.ts"
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user