5.1.6-1694708774972 • Published 6 months ago

dotcms-ui v5.1.6-1694708774972

Weekly downloads
11,588
License
MIT
Repository
github
Last release
6 months ago

DotCMS UI

This project was created using angular-cli it means you can use ng with all the commands and params.

Before start

  1. Install node and npm
  2. Install angular-cli: npm i @angular/cli
  3. npm install

Build and run in local DotCMS instance

Watch and compile your files in development mode and copy it into dotAdmin folder in your tomcat folder.

  1. npm run build:dev -- --output-path your/path/to/dotadmin (ex. ~/dev/dotcms/tomcat8/webapps/ROOT/dotAdmin)
  2. Open http://localhost:8080/dotAdmin

Run unit tests

To test dotcms-ui (main app):

ng test dotcms-ui --browsers=Chrome

To run tests for any internal library:

ng test {library-name} --browsers=Chrome

Publish to NPM

You need the credentials for dotcms npm account

Publish a dev verison

$ npm run publish:dev

This will build a production ready app, update the package.json version using a timestamp (ex: 5.0.1-1537889821825) and publish that as latest version to npm.

Publish a release

$ npm run build:prod

This will build a production ready app inside dist folder, then:

$ cd dist

Edit the package.json to update manually the version of the module and finally run:

$ npm publish

StorybookJS

“Storybook is a powerful frontend workshop environment tool that allows teams to design, build, and organize UI components (and even full screens!) without getting tripped up over business logic and plumbing.” Brad Frost

We use StorybookJS to showcase our internal design system and tests our components in isolation: https://dotcms.github.io/core-web/design/

Internal Libraries

dotcms

A collection of Angular Services to connect our FE with the DotCMS APIs. Full docs

dotcms-models

A collection of DotCMS interfaces and types to be reused in all our libraries and main app. Full docs

A StencilJS Web Elements library of DotCMS form fields.

dot-layout-grid

For our page Layout Editor, allow us to create rows and columns on a page layout.

dot-rules

Our DotCMS Rules portlet.

dotcms-js (deprecated)

This in a inherit collection of Angular Services.


File structure

Modules

Normally is a big funcionality, probably a portlet, typically will contain: components, services and maybe even other modules, but regarthelss, make sure that everything that is contain in the folder of the module is used by the module and only by this module, if a service or component or anything is used by thismodule but also by other module in the app the files for those should not live inside this current module but in the global of the app.

Services, models and utils

They should live in the module if they are shared by more than one component or directive.

module-name/
├── components/
│   ├── index.ts
│   ├── component-one
│   │   ├── components/
│   │   ├── services/
│   │   ├── models/
│   │   ├── utils/
│   │   ├── component.one.component.html
│   │   ├── component.one.component.scss
│   │   ├── component.one.component.ts
│   │   ├── component.one.component.spec.ts
│   ├── component-two
│   │   └── ...
├── services/
│   ├── index.ts
│   ├── service.one.service.ts
│   ├── service.one.service.spec.ts
│   ├── service.two.service.ts
│   └── service.two.service.spec.ts
├── models/
│   ├── index.ts
│   ├── model-one.ts
│   ├── model-two.ts
│   └── model-xxx.ts
├── utils/
│   ├── index.ts
│   ├── util-one.ts
│   ├── util-two.ts
│   └── util-xxx.ts
├── component-name.component.ts
├── component-name.component.scss
├── component-name.component.html
├── component-name.component.spec.ts
├── component-name.module..ts
└── component-name-routing.module..ts

Components and or directives

Services, models and utils are JUST for this component and should be only use it for this component, if any of this needs to be shared between components in the module, it should live at module level

Services, models and utils

They live in the component if they are use ONLY by this component and/or directive, if they are use in other components/directive they should live in the module level.

component-name/
├── components/
│   ├── index.ts
│   ├── components-one
│   │   ├── components.one.service.ts
│   │   └── components.one.service.spec.ts
│   ├── components-two
│   │   └── ...
├── services/
│   ├── index.ts
│   ├── service.one.service.ts
│   ├── service.one.service.spec.ts
│   ├── service.two.service.ts
│   └── service.two.service.spec.ts
├── models/
│   ├── index.ts
│   ├── model-one.ts
│   ├── model-two.ts
│   └── model-xxx.ts
├── utils/
│   ├── index.ts
│   ├── util-one.ts
│   ├── util-two.ts
│   └── util-xxx.ts
├── component-name.component.ts
├── component-name.component.scss
├── component-name.component.html
└── component-name.component.spec.ts
23.1.0-rc.48

6 months ago

22.3.0-rc.34

9 months ago

22.3.0-rc.35

8 months ago

22.3.0-rc.32

9 months ago

22.3.0-rc.33

9 months ago

22.3.0-rc.30

9 months ago

22.3.0-rc.31

9 months ago

22.3.0-rc.29

9 months ago

23.1.0-rc.38

9 months ago

23.1.0-rc.37

9 months ago

23.1.0-rc.36

9 months ago

23.1.0-rc.35

10 months ago

23.1.0-rc.39

9 months ago

23.1.0-rc.41

9 months ago

23.1.0-rc.40

9 months ago

23.1.0-rc.45

6 months ago

23.1.0-rc.44

6 months ago

23.1.0-rc.43

7 months ago

23.1.0-rc.42

8 months ago

23.1.0-rc.47

6 months ago

23.1.0-rc.46

6 months ago

23.1.0-rc.34

10 months ago

23.1.0-rc.33

10 months ago

23.1.0-rc.27

12 months ago

23.1.0-rc.29

12 months ago

23.1.0-rc.28

12 months ago

23.1.0-rc.30

11 months ago

23.1.0-rc.32

11 months ago

23.1.0-rc.31

11 months ago

23.1.0-rc.23

1 year ago

23.1.0-rc.26

12 months ago

23.1.0-rc.25

1 year ago

23.1.0-rc.24

1 year ago

22.3.0-rc.27

1 year ago

22.3.0-rc.28

1 year ago

22.3.0-rc.26

1 year ago

22.3.0-rc.25

1 year ago

23.3.0-rc.23

1 year ago

23.4.0-next.17

1 year ago

23.1.0-rc.11

1 year ago

23.1.0-rc.10

1 year ago

23.1.0-rc.16

1 year ago

23.1.0-rc.15

1 year ago

23.1.0-rc.14

1 year ago

23.1.0-rc.13

1 year ago

23.1.0-rc.19

1 year ago

23.1.0-rc.18

1 year ago

23.1.0-rc.17

1 year ago

22.3.0-rc.23

1 year ago

22.3.0-rc.24

1 year ago

23.1.0-rc.5

1 year ago

23.1.0-rc.4

1 year ago

23.1.0-rc.3

1 year ago

23.1.0-rc.2

1 year ago

23.1.0-rc.1

1 year ago

23.1.0-rc.9

1 year ago

23.1.0-rc.8

1 year ago

23.1.0-rc.7

1 year ago

23.1.0-rc.6

1 year ago

22.12.0-rc.5

1 year ago

22.12.0-rc.4

1 year ago

23.1.0-next.8

1 year ago

23.1.0-next.9

1 year ago

23.1.0-next.4

1 year ago

23.1.0-next.5

1 year ago

23.1.0-next.6

1 year ago

23.1.0-next.7

1 year ago

23.1.0-rc.22

1 year ago

23.1.0-rc.21

1 year ago

23.1.0-rc.20

1 year ago

22.12.0-next.0

1 year ago

23.1.0-next.13

1 year ago

23.1.0-next.11

1 year ago

23.1.0-next.12

1 year ago

23.1.0-next.10

1 year ago

23.2.0-rc.23

1 year ago

23.2.0-rc.22

1 year ago

23.2.0-next.14

1 year ago

23.2.0-next.15

1 year ago

23.3.0-next.16

1 year ago

21.6.0-rc.6

1 year ago

21.6.0-rc.7

1 year ago

22.3.0-rc.21

2 years ago

22.3.0-rc.22

2 years ago

22.3.0-rc.20

2 years ago

22.3.0-rc.18

2 years ago

22.3.0-rc.19

2 years ago

22.3.0-rc.16

2 years ago

22.3.0-rc.17

2 years ago

22.12.0-rc.0

1 year ago

22.12.0-rc.2

1 year ago

22.12.0-rc.1

1 year ago

22.12.0-rc.3

1 year ago

23.1.0-next.2

1 year ago

23.1.0-next.3

1 year ago

22.11.0-next.265

2 years ago

22.11.0-next.264

2 years ago

22.11.0-next.263

2 years ago

22.11.0-next.262

2 years ago

22.11.0-next.261

2 years ago

22.11.0-next.260

2 years ago

22.11.0-next.259

2 years ago

22.11.0-next.258

2 years ago

22.11.0-next.257

2 years ago

22.11.0-next.256

2 years ago

22.12.0-next.24

1 year ago

22.12.0-next.23

1 year ago

22.12.0-next.26

1 year ago

22.12.0-next.25

1 year ago

22.12.0-next.27

1 year ago

22.12.0-next.13

1 year ago

22.12.0-next.12

1 year ago

22.12.0-next.17

1 year ago

22.12.0-next.16

1 year ago

22.12.0-next.19

1 year ago

22.12.0-next.18

1 year ago

22.12.0-next.20

1 year ago

22.12.0-next.22

1 year ago

22.12.0-next.21

1 year ago

22.12.0-next.11

1 year ago

22.12.0-next.10

2 years ago

22.10.0-rc.258

2 years ago

22.10.0-rc.259

2 years ago

22.10.0-rc.257

2 years ago

22.10.0-rc.263

2 years ago

22.10.0-rc.264

2 years ago

22.10.0-rc.261

2 years ago

22.10.0-rc.262

2 years ago

22.10.0-rc.260

2 years ago

22.10.2-rc.1

1 year ago

22.10.2-rc.2

1 year ago

22.11.0-rc.9

2 years ago

22.11.0-rc.10

2 years ago

22.11.0-rc.15

1 year ago

22.11.0-rc.16

1 year ago

22.11.0-rc.13

2 years ago

22.11.0-rc.14

1 year ago

22.11.0-rc.11

2 years ago

22.11.0-rc.12

2 years ago

22.13.0-next.2

1 year ago

22.13.0-next.3

1 year ago

22.10.0-rc.1

1 year ago

22.11.0-next.255

2 years ago

22.11.0-next.254

2 years ago

22.10.0-rc.254

2 years ago

22.10.0-rc.255

2 years ago

22.10.0-rc.256

2 years ago

22.11.0-next.253

2 years ago

22.10.0-rc.253

2 years ago

22.10.0-next.13

2 years ago

22.10.0-next.12

2 years ago

22.10.0-next.11

2 years ago

22.10.0-next.10

2 years ago

22.10.0-next.16

2 years ago

22.10.0-next.15

2 years ago

22.10.0-next.14

2 years ago

22.10.0-next.7

2 years ago

22.10.0-next.6

2 years ago

99.2.0-rc.15

2 years ago

99.2.0-rc.13

2 years ago

99.2.0-rc.14

2 years ago

99.3.0-next.7

2 years ago

99.3.0-next.8

2 years ago

99.3.0-next.9

2 years ago

22.9.0-rc.10

2 years ago

22.9.0-rc.11

2 years ago

22.9.0-rc.12

2 years ago

22.9.0-rc.13

2 years ago

22.3.0-rc.14

2 years ago

22.3.0-rc.15

2 years ago

22.3.0-rc.13

2 years ago

22.10.0-next.3

2 years ago

22.10.0-next.4

2 years ago

22.10.0-next.5

2 years ago

22.9.0-next.2

2 years ago

22.8.0-next.6

2 years ago

22.8.0-next.7

2 years ago

22.8.0-next.8

2 years ago

22.8.0-next.9

2 years ago

22.8.0-next.5

2 years ago

99.2.0-rc.11

2 years ago

99.2.0-rc.12

2 years ago

99.2.0-rc.10

2 years ago

22.8.0-next.10

2 years ago

22.9.0-rc.4

2 years ago

22.9.0-rc.9

2 years ago

22.9.0-rc.8

2 years ago

22.9.0-rc.7

2 years ago

22.9.0-rc.6

2 years ago

22.9.0-rc.5

2 years ago

22.8.0-rc.2

2 years ago

22.8.0-rc.3

2 years ago

99.3.0-next.6

2 years ago

21.6.0-rc.5

2 years ago

22.7.0-rc.30

2 years ago

22.3.0-rc.12

2 years ago

22.3.0-rc.10

2 years ago

22.3.0-rc.11

2 years ago

22.6.0-rc.19

2 years ago

22.8.0-next.1

2 years ago

22.8.0-next.2

2 years ago

22.8.0-next.3

2 years ago

22.8.0-next.4

2 years ago

22.3.0-rc.7

2 years ago

21.6.0-rc.1

2 years ago

22.7.0-rc.23

2 years ago

22.7.0-rc.20

2 years ago

22.7.0-rc.22

2 years ago

22.7.0-rc.21

2 years ago

22.7.0-rc.28

2 years ago

22.7.0-rc.29

2 years ago

22.6.0-next.0

2 years ago

22.6.0-rc.10

2 years ago

22.6.0-rc.12

2 years ago

22.6.0-rc.11

2 years ago

22.6.0-rc.14

2 years ago

22.6.0-rc.13

2 years ago

22.6.0-rc.16

2 years ago

22.6.0-rc.15

2 years ago

22.6.0-rc.18

2 years ago

22.6.0-rc.17

2 years ago

22.7.0-next.11

2 years ago

22.7.0-next.10

2 years ago

22.7.0-next.12

2 years ago

22.6.0-rc.4

2 years ago

22.6.0-rc.5

2 years ago

22.6.0-rc.2

2 years ago

22.6.0-rc.3

2 years ago

22.6.0-rc.8

2 years ago

22.6.0-rc.9

2 years ago

22.6.0-rc.6

2 years ago

22.6.0-rc.7

2 years ago

22.7.0-next.8

2 years ago

22.7.0-next.9

2 years ago

22.3.0-rc.5

2 years ago

22.3.0-rc.6

2 years ago

21.6.0-rc.0

2 years ago

22.6.0-next.7

2 years ago

22.6.0-next.6

2 years ago

22.6.0-next.5

2 years ago

22.5.0-next.14

2 years ago

22.5.0-next.13

2 years ago

22.5.0-next.12

2 years ago

22.5.0-next.11

2 years ago

22.5.0-rc.1

2 years ago

22.4.0-rc.22

2 years ago

22.4.0-rc.23

2 years ago

22.6.0-next.4

2 years ago

22.6.0-next.3

2 years ago

22.4.0-rc.20

2 years ago

22.6.0-next.2

2 years ago

22.4.0-rc.21

2 years ago

22.6.0-next.1

2 years ago

22.5.0-next.10

2 years ago

22.5.0-next.9

2 years ago

22.4.0-rc.9

2 years ago

22.4.0-rc.8

2 years ago

22.4.0-rc.5

2 years ago

22.4.0-rc.7

2 years ago

22.4.0-rc.6

2 years ago

22.4.0-next.7

2 years ago

22.4.0-next.6

2 years ago

22.4.0-next.8

2 years ago

22.4.0-next.3

2 years ago

22.4.0-next.2

2 years ago

22.4.0-next.5

2 years ago

22.4.0-next.4

2 years ago

22.4.0-rc.13

2 years ago

22.4.0-rc.14

2 years ago

22.4.0-rc.11

2 years ago

22.4.0-rc.12

2 years ago

22.4.0-rc.17

2 years ago

22.4.0-rc.18

2 years ago

22.4.0-rc.15

2 years ago

22.4.0-rc.16

2 years ago

22.4.0-rc.10

2 years ago

22.4.0-rc.19

2 years ago

22.3.0-rc.3

2 years ago

22.3.0-rc.4

2 years ago

22.4.0-next.16

2 years ago

22.2.0-rc.9

2 years ago

22.2.0-rc.8

2 years ago

22.2.0-rc.7

2 years ago

22.2.0-rc.6

2 years ago

22.2.0-rc.5

2 years ago

22.2.0-rc.4

2 years ago

22.2.0-rc.3

2 years ago

22.2.0-rc.2

2 years ago

22.2.0-rc.1

2 years ago

22.3.0-next.20

2 years ago

22.3.0-next.21

2 years ago

22.3.0-next.22

2 years ago

22.3.0-next.23

2 years ago

22.3.0-next.14

2 years ago

22.3.0-next.15

2 years ago

22.3.0-next.16

2 years ago

22.3.0-next.17

2 years ago

22.3.0-next.18

2 years ago

22.3.0-next.19

2 years ago

22.3.0-next.10

2 years ago

22.3.0-next.11

2 years ago

22.3.0-next.12

2 years ago

22.3.0-next.13

2 years ago

22.3.0-next.8

2 years ago

22.3.0-next.7

2 years ago

22.3.0-next.6

2 years ago

22.3.0-next.5

2 years ago

22.3.0-next.9

2 years ago

21.1.0-next.9

2 years ago

21.1.0-next.8

2 years ago

21.1.0-next.7

2 years ago

22.2.0-next.1

2 years ago

21.12.0-rc.10

2 years ago

22.1.0-rc.1

2 years ago

21.12.0-rc.4

2 years ago

21.12.0-rc.5

2 years ago

21.12.0-rc.8

2 years ago

21.12.0-rc.9

2 years ago

21.12.0-rc.6

2 years ago

21.12.0-rc.7

2 years ago

22.2.0-rc.12

2 years ago

22.2.0-rc.11

2 years ago

22.2.0-rc.10

2 years ago

21.1.0-next.14

2 years ago

21.1.0-next.13

2 years ago

21.1.0-next.16

2 years ago

21.1.0-next.15

2 years ago

21.1.0-next.10

2 years ago

21.1.0-next.12

2 years ago

21.1.0-next.11

2 years ago

21.1.0-next.18

2 years ago

21.1.0-next.17

2 years ago

21.1.0-next.19

2 years ago

21.1.0-next.21

2 years ago

21.1.0-next.20

2 years ago

22.3.0-rc.1

2 years ago

22.3.0-rc.2

2 years ago

22.3.0-next.4

2 years ago

22.3.0-next.3

2 years ago

22.3.0-next.2

2 years ago

22.3.0-next.1

2 years ago

21.1.0-next.6

2 years ago

21.1.0-next.5

2 years ago

21.1.0-next.4

2 years ago

21.1.0-next.3

2 years ago

21.12.0-next.6

2 years ago

21.12.0-next.5

2 years ago

21.12.0-rc.1

2 years ago

21.12.0-rc.3

2 years ago

21.11.0-rc.5

2 years ago

21.12.0-next.4

3 years ago

21.12.0-next.3

3 years ago

21.11.0-rc.4

3 years ago

21.11.0-rc.3

3 years ago

21.12.0-next.2

3 years ago

21.12.0-next.1

3 years ago

21.11.0-rc.2

3 years ago

21.11.0-rc.1

3 years ago

21.11.0-next.27

3 years ago

21.11.0-next.28

3 years ago

21.10.0-rc.27

3 years ago

21.11.0-next.25

3 years ago

21.11.0-next.26

3 years ago

21.10.0-rc.26

3 years ago

21.11.0-next.24

3 years ago

21.10.0-rc.25

3 years ago

21.10.0-rc.24

3 years ago

21.11.0-next.23

3 years ago

21.10.0-rc.1

3 years ago

21.10.0-rc.23

3 years ago

21.10.0-rc.22

3 years ago

21.11.0-next.16

3 years ago

21.11.0-next.22

3 years ago

21.10.0-next.14

3 years ago

21.10.0-next.15

3 years ago

21.10.0-rc.0

3 years ago

21.10.0-next.13

3 years ago

21.10.0-next.10

3 years ago

21.10.0-next.11

3 years ago

21.10.0-next.12

3 years ago

21.10.0-next.9

3 years ago

21.10.0-next.8

3 years ago

21.9.0-rc.6

3 years ago

21.9.0-rc.7

3 years ago

21.9.0-rc.8

3 years ago

21.9.0-rc.4

3 years ago

21.9.0-rc.5

3 years ago

21.10.0-next.7

3 years ago

21.10.0-next.6

3 years ago

21.10.0-next.5

3 years ago

21.10.0-next.3

3 years ago

21.10.0-next.4

3 years ago

21.6.2

3 years ago

21.9.0-rc.1

3 years ago

21.9.0-rc.2

3 years ago

21.9.0-rc.3

3 years ago

21.10.0-next.2

3 years ago

21.10.0-next.1

3 years ago

21.9.0-rc.0

3 years ago

21.10.0-next.0

3 years ago

21.9.0-next.4

3 years ago

21.9.0-next.2

3 years ago

21.9.0-next.3

3 years ago

21.9.0-next.1

3 years ago

21.8.0-rc.1

3 years ago

21.8.0-next.15

3 years ago

21.8.0-next.14

3 years ago

21.8.0-next.11

3 years ago

21.8.0-next.12

3 years ago

21.8.0-next.13

3 years ago

21.8.0-next.10

3 years ago

21.8.0-next.9

3 years ago

21.8.0-next.8

3 years ago

21.8.0-next.7

3 years ago

21.8.0-next.6

3 years ago

21.8.0-next.5

3 years ago

21.8.0-next.4

3 years ago

21.8.0-next.3

3 years ago

21.8.0-next.2

3 years ago

21.7.0-rc.0

3 years ago

21.8.0-next.0

3 years ago

21.8.0-next.1

3 years ago

21.6.0-next.0

3 years ago

21.6.0

3 years ago

5.3.8

3 years ago

21.5.0

3 years ago

21.5.0-next-1

3 years ago

21.5.0-next.0

3 years ago

21.3.0

3 years ago

21.2.1

3 years ago

21.1.0

3 years ago

20.11.0

3 years ago

5.3.9

4 years ago

5.3.7

4 years ago

5.3.5

4 years ago

5.3.3

4 years ago

5.3.2

4 years ago

5.2.9

4 years ago

5.2.7

4 years ago

5.2.6

4 years ago

5.2.5

4 years ago

5.2.1

4 years ago

5.2.0

5 years ago

5.1.6

5 years ago

5.1.5

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.3

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.3.0

6 years ago

4.2.0-1

7 years ago

4.2.732-f20

7 years ago

4.2.732-f19

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.7

7 years ago

4.0.7-f6c7a8a

7 years ago

4.0.223-sad

7 years ago

4.0.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago