Passer au contenu principal

Frontend

The Casdoor web UI lives in the /web directory: https://github.com/casdoor/casdoor/tree/master/web. It is a Create React App (CRA) project with this layout:

Fichier/RépertoireDescription
publicRoot HTML and static assets
srcApplication source code
craco.config.jsCraco config (e.g. theme; default primary is blue)
crowdin.ymlCrowdin i18n config
package.jsonNPM/Yarn dependencies
yarn.lockLock file

Under /src:

Fichier/RépertoireDescription
account“My profile” page for signed-in users
authAuth flows: OAuth, SAML, sign-up, sign-in, forgot password
backendClient for the Go API (all fetch calls)
basicDashboard (home) and card widgets
commonShared UI components
localesi18n JSON (synced with Crowdin)
App.jsRoot and routing
Setting.jsShared helpers
*ListPage.js / *EditPage.jsList and edit pages per resource (e.g. OrganizationListPage.js, OrganizationEditPage.js)