1
0
Michael Bromley 8a7f62f6dd chore(admin-ui): Update public API 5 жил өмнө
..
e2e 38e94590dc refactor(admin-ui): Move admin-ui into packages dir 6 жил өмнө
scripts 99073c99cb feat(admin-ui): Export minified theme css for ui extensions dev 5 жил өмнө
src 8a7f62f6dd chore(admin-ui): Update public API 5 жил өмнө
.gitignore fe72c41e7c feat(admin-ui): Improved ui extension development API & architecture 5 жил өмнө
.npmignore 1622b146d7 refactor(admin-ui): Split admin ui into library of sub-packages 5 жил өмнө
README.md fe72c41e7c feat(admin-ui): Improved ui extension development API & architecture 5 жил өмнө
angular.json 1622b146d7 refactor(admin-ui): Split admin ui into library of sub-packages 5 жил өмнө
package.json 7f6e3a5662 chore(admin-ui): Update dev deps 5 жил өмнө
tsconfig.json 1622b146d7 refactor(admin-ui): Split admin ui into library of sub-packages 5 жил өмнө
tsconfig.lib.json 1622b146d7 refactor(admin-ui): Split admin ui into library of sub-packages 5 жил өмнө
tsconfig.lib.prod.json f8829400fc refactor(admin-ui, ui-devkit): Minimally working devkit build 5 жил өмнө
tslint.json bc35c2517b feat(admin-ui): Update Angular to v9 6 жил өмнө
yarn.lock 38e94590dc refactor(admin-ui): Move admin-ui into packages dir 6 жил өмнө

README.md

Vendure Admin UI

This is the administration interface for Vendure.

It is an Angular application built with the Angular CLI.

The UI is powered by the Clarity Design System.

Structure

Library

The Admin UI is structured as an Angular library conforming to the ng-packagr format. This library is what is published to npm as @vendure/admin-ui. The libary consists of a set of modules which are accessible from consuming applications as sub-packages:

  • @vendure/admin-ui/core
  • @vendure/admin-ui/catalog
  • @vendure/admin-ui/orders

etc. These library packages are located at ./src/lib

When built with yarn build, the output will be located in the ./package sub directory. This is also the root of the published npm package.

Application

In addition to the library, there is also a full application located at ./src/app. This application is used both during development of the Admin UI, and also as the "default" Admin UI without any UI extensions, as provided as the default by the admin-ui-plugin.

Localization

Localization of UI strings is handled by ngx-translate. The translation strings should use the ICU MessageFormat.

Translation keys are automatically extracted by running:

yarn extract-translations

This will add any new translation keys to the default language file located in ./src/i18n-messages/en.json.

From this master translation file, other language versions can be created by copying and updating the values for the new language.