1.0.3-alpha.105 • Published 3 years ago

@admin-layout/components v1.0.3-alpha.105

Weekly downloads
217
License
ISC
Repository
-
Last release
3 years ago

Components

It has layout component which is sync with https://github.com/reboxjs/pro-components/tree/master/packages/layout

Readme:

https://procomponents.ant.design/en-US/components/

  1. We can track the new changes from ant-desig/pro-components by create a PR against the cloned repository reboxjs/pro-components like below.

https://github.com/reboxjs/pro-components/pull/1

We create the PR with name as the date when it was created so we can see if any layout components changes has happen since then and we sync those change mannually in this package.

  1. We don't use less styles as in ant-design/pro-components. Instead we convert them to css and add into the stylesheet object so Fela package can absorb them.

Following tools will help to migrate less to css format.

Less to Css Following tool helps convert from less to css.

https://jsonformatter.org/less-to-css

You need to define few variables before you run it.

For example like below and copy rest of the less styles of the component in it.

@ant-prefix: ant;
@basicLayout-prefix-cls: ant-pro-basicLayout;

image

css-beautify: to check the converted css from fela when open the app page and beautify it using following tool. https://www.cleancss.com/css-beautify/

  1. Write tests for fela styles so the styles can be compared.

https://fela.js.org/docs/recipes/TestingFelaComponents.html

Manual converstion from LESS to fela styles

SCSS

  &-logo {
    position: relative;
    cursor: pointer;

    > a {
      display: flex;
    }

    img {
      display: inline-block;
    }

    h1 {
      display: inline-block;
    }
    &:hover,
    &.opened {
      background: @primary-color;
    }
  }

To

            '&-logo': {
                position: 'relative',
                display: 'flex',
                '> a': {
                    display: 'flex',
                },
                '& img': { // need to add `& ` to convert correctly 
                    display: 'inline-block',
                },
                '& h1': {    // need to add `& ` to convert correctly 
                    display: 'inline-block',
                },
                '&:hover': {   // comma seperated will copy same styles as next one
                    background: `${primaryColor}`,
                },
                '&.opened': {
                  background: `${primaryColor}`,
                },
            },
1.0.3-alpha.105

3 years ago

1.0.3-alpha.94

3 years ago

1.0.3-alpha.72

3 years ago

1.0.3-alpha.78

3 years ago

1.0.3-alpha.69

3 years ago

1.0.3-alpha.65

3 years ago

1.0.3-alpha.62

3 years ago

1.0.5

3 years ago

1.0.3-alpha.38

3 years ago

1.0.3-alpha.51

3 years ago

1.0.3-alpha.53

3 years ago

1.0.3-alpha.19

3 years ago

1.0.3-alpha.16

3 years ago

1.0.3-alpha.17

3 years ago

1.0.3-alpha.1

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2-alpha.44

3 years ago

1.0.2-alpha.38

3 years ago

1.0.2-alpha.31

3 years ago

1.0.2-alpha.22

3 years ago

1.0.2-alpha.24

3 years ago

1.0.2-alpha.25

3 years ago

1.0.2-alpha.16

3 years ago

1.0.2-alpha.13

3 years ago

1.0.2-alpha.9

3 years ago

1.0.2-alpha.6

3 years ago

1.0.2-alpha.3

3 years ago

1.0.0-alpha.130

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-alpha.127

3 years ago

1.0.0-alpha.124

3 years ago

1.0.0-alpha.126

3 years ago

1.0.0-alpha.117

3 years ago

1.0.0-alpha.116

3 years ago

1.0.0-alpha.115

3 years ago

1.0.0-alpha.114

3 years ago

1.0.0-alpha.107

3 years ago

1.0.0-alpha.105

3 years ago

1.0.0-alpha.104

4 years ago

1.0.0-alpha.103

4 years ago

1.0.0-alpha.97

4 years ago

1.0.0-alpha.93

4 years ago

1.0.0-alpha.89

4 years ago

1.0.0-alpha.83

4 years ago

1.0.0-alpha.77

4 years ago

1.0.0-alpha.71

4 years ago

1.0.0-alpha.70

4 years ago

1.0.0-alpha.56

4 years ago

1.0.0-alpha.46

4 years ago

1.0.0-alpha.15

4 years ago

1.0.0-alpha.13

4 years ago

1.0.0-alpha.12

4 years ago

1.0.0-alpha.8

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.2

4 years ago

1.0.0-alpha.1

4 years ago

0.0.2-alpha.53

4 years ago

0.0.2-alpha.52

4 years ago

0.0.2-alpha.48

4 years ago

0.0.2-alpha.47

4 years ago

0.0.2-alpha.45

4 years ago

0.0.2-alpha.32

4 years ago

0.0.2-alpha.30

4 years ago

0.0.2-alpha.31

4 years ago

0.0.2-alpha.28

4 years ago

0.0.2-alpha.27

4 years ago

0.0.2-alpha.26

4 years ago

0.0.2-alpha.18

4 years ago

0.0.2-alpha.1

4 years ago

0.0.1-alpha.177

4 years ago

0.0.1-alpha.173

4 years ago

0.0.1-alpha.154

4 years ago

0.0.1-alpha.152

4 years ago

0.0.1-alpha.147

4 years ago

0.0.1-alpha.145

4 years ago

0.0.1-alpha.141

4 years ago

0.0.1-alpha.142

4 years ago

0.0.1-alpha.140

4 years ago

0.0.1-alpha.139

4 years ago

0.0.1-alpha.130

4 years ago

0.0.1-alpha.128

4 years ago

0.0.1-alpha.129

4 years ago

0.0.1-alpha.127

4 years ago

0.0.1-alpha.126

4 years ago

0.0.1-alpha.119

4 years ago

0.0.1-alpha.117

4 years ago

0.0.1-alpha.118

4 years ago

0.0.1-alpha.112

4 years ago

0.0.1-alpha.110

4 years ago

0.0.1-alpha.105

4 years ago

0.0.1-alpha.106

4 years ago

0.0.1-alpha.104

4 years ago

0.0.1-alpha.94

4 years ago

0.0.1-alpha.91

4 years ago

0.0.1-alpha.85

4 years ago

0.0.1-alpha.87

4 years ago

0.0.1-alpha.84

4 years ago

0.0.1-alpha.83

4 years ago