-
-
Save yasudacloud/4272ce6ffdaf64d6856697ab89ccec1d to your computer and use it in GitHub Desktop.
strapi origin settings
This file contains hidden or 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
import type {StrapiApp} from '@strapi/strapi/admin'; | |
import './common.css' | |
export default { | |
config: { | |
locales: [], | |
}, | |
bootstrap(app: StrapiApp) { | |
}, | |
register(app: StrapiApp) { | |
app.createSettingSection({ | |
id: "hello-custom-setting", intlLabel: {id: "test", defaultMessage: "Custom Settings"} | |
}, | |
[ | |
{ | |
intlLabel: {id: "test", defaultMessage: "Hello Setting"}, | |
id: "test", | |
to: "/hello/settings", | |
Component: async () => await import('./components/HelloSetting'), | |
permissions: [], | |
}, | |
]) | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment