6.2.1 • Published 3 years ago

showcar-ui v6.2.1

Weekly downloads
123
License
MIT
Repository
github
Last release
3 years ago

npm version BrowserStack Status

showcar-ui

showcar-ui is the pattern library that is used to build the frontend of AutoScout24. It provides CSS classes, custom elements and components.

Installation:

To install showcar-ui within your project use npm.

npm install showcar-ui --save

How to build:

We are using node 10.16.0 version for build. Make sure you have it installed. If you are using nvm simply run

nvm use

and follow the instructions

For building on your local machine install all npm packages first.

yarn
yarn run build

How to run locally:

You can use the gulp default command to run the build locally:

gulp

and open http://localhost:5000 in your browser to see the showcar docs locally.

How to run tests locally:

You can run tests locally in Chrome:

gulp test:fast

How to publish an npm package

From master branch

yarn build

If you see after unning build some files in dist please commit it

npm version patch|minor|major
npm publish
git push --follow-tags

Interacting w/ local changes

You can preview/interact with the local changes by running yarn run docs:serve. This will generate the docs & launch a server where you can look at them, running the local version of showcar-ui

How to include:

You can either include showcar-ui as a fragment or directly include the JS, CSS and inline HTML on your page. The library provides some HTML content that needs to be inlined on your page. Use the index.html in the dist folder as a template in order to include the inline HTML, CSS and JS on your page.

<link rel="stylesheet" href="@@ASSET_PATH/showcar-ui.css">
<script src="@@ASSET_PATH/showcar-ui.js"></script>

Make sure to replace the @@ASSET_PATH string with the path to the JS/CSS file.

How to test:

You can check development state of the library on home, list and detail page with a parameter ?toguru=sc_develop%3dtrue.

You can also check your branch on home, list and detail using sc_branch=Your-Branch-Name-Here as request parameter. Example: https://www.autoscout24.de/auto-verkaufen/?sc_branch=UGACT-24-Support-ES6

How to test fragments with toggles

You can check any branch of the library on your page with parameter ?toguru=sc_develop%3dtest-branch where test-branch is the name of the desired branch.

Locally run

docker-compose up

and check localhost:8080/test/showcar-ui-toggled-fragment.html?toguru=sc_develop%3dtest-branch where test-branch is the name of the branch to test

Build Pipeline

build pipeline

Source: https://miro.com/app/board/o9J_l8FFfQY=/

Additional information

The showcar-ui library includes some libraries and polyfills:

Libraries

Polyfills

showcar-storage

You can access the Stroage API via the global Storage object. For further information see the documentation under https://github.com/AutoScout24/showcar-storage

showcar-icons

You can use all the icons defined by showcar-icons with the custom <as24-icon> tag. For further information see the documentation under https://github.com/AutoScout24/showcar-icons

Zepto

Showcar-ui includes Zepto, which is a lightweight replacement for jQuery. You can access Zepto via the global variables $ and Zepto. For a detailed usage guide, have a look at http://zeptojs.com/

How to use:

for the use of the library have a look at the documentation.

How to contribute:

See CONTRIBUTING.md

License

See LICENSE.md

Z-indexes table

Published 13.03.2017

ShowcarUInotes
lightboxoverlay140useful
modal window139useful
spy-navigationwrapper2/21(if sticky)useful
tooltip2useful
input groupfocus2useful
ad110useful
custom dropdown1useful
sticky2usefulCould have bigger z-index but lower than overlay
navigation::before li100usefulCan be 10
notification120useful
Contentservice
header130useful
notification9999remove!

Optimizely (to be continued)

window.optimizelyReady.then(() => {
  const state = window.optimizely.get('state');
  const variationMap = state.getVariationMap();

  const experiment = variationMap['11184022659'];
  console.log(experiment.name);
  console.log(experiment.index);
});

window.optimizely.push({
  type: 'event',
  eventName: 'favoritesAdd',
});
6.2.1

3 years ago

6.2.0

4 years ago

6.1.1

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

4.5.7

4 years ago

4.5.5

4 years ago

4.5.3

4 years ago

4.5.2

4 years ago

4.5.0

4 years ago

4.5.1

4 years ago

4.4.13

4 years ago

4.4.11

4 years ago

4.4.12

4 years ago

4.4.10

4 years ago

4.4.9

4 years ago

4.4.8

5 years ago

4.4.7

5 years ago

4.4.2

5 years ago

4.4.0

5 years ago

4.3.105

5 years ago

4.3.104

5 years ago

4.4.0-beta.0

5 years ago

4.3.103

5 years ago

4.3.102

5 years ago

4.3.101

5 years ago

4.3.100

5 years ago

4.3.99

5 years ago

4.3.98

5 years ago

4.3.97

5 years ago

4.3.96

5 years ago

4.3.95

5 years ago

4.3.94

5 years ago

4.3.93

5 years ago

4.3.92

5 years ago

4.3.91

5 years ago

4.3.90

5 years ago

4.3.89

5 years ago

4.3.88

5 years ago

4.3.85

5 years ago

4.3.82

5 years ago

4.3.81

5 years ago

4.3.80

5 years ago

4.3.78

5 years ago

4.3.77

5 years ago

4.3.74

5 years ago

4.3.68

5 years ago

4.3.65

5 years ago

4.3.61

5 years ago

4.3.60

5 years ago

4.3.59

5 years ago

4.3.58

5 years ago

4.3.49

5 years ago

4.3.48

5 years ago

4.3.39

5 years ago

4.3.38

5 years ago

4.3.35

6 years ago

4.3.34

6 years ago

4.3.32

6 years ago

4.3.31

6 years ago

4.3.30

6 years ago

4.3.29

6 years ago

4.3.28

6 years ago

4.3.27

6 years ago

4.3.26

6 years ago

4.3.23

6 years ago

4.3.22

6 years ago

4.3.21

6 years ago

4.3.16

6 years ago

4.3.15

6 years ago

4.3.14

6 years ago

4.3.11

6 years ago

4.3.10

6 years ago

4.3.9

6 years ago

4.3.6

6 years ago

4.3.5

6 years ago

4.3.4

6 years ago

4.3.3

6 years ago

4.3.2

6 years ago

4.3.1

6 years ago

4.2.44

6 years ago

4.2.43

6 years ago

4.2.42

6 years ago

4.2.41

6 years ago

4.2.40

6 years ago

4.2.39

6 years ago

4.2.38

6 years ago

4.2.37

6 years ago

4.2.36

6 years ago

4.2.35

6 years ago

4.2.34

6 years ago

4.2.33

6 years ago

4.2.32

6 years ago

4.2.31

6 years ago

4.2.30

6 years ago

4.2.29

6 years ago

4.2.28

6 years ago

4.2.27

6 years ago

4.2.26

6 years ago

4.2.25

6 years ago

4.2.22

6 years ago

4.2.21

6 years ago

4.2.20

6 years ago

4.2.19

6 years ago

4.2.18

6 years ago

4.2.17

6 years ago

4.2.16

6 years ago

4.2.15

6 years ago

4.2.14

6 years ago

4.2.13

6 years ago

4.2.12

6 years ago

4.2.11

6 years ago

4.2.9

6 years ago

4.2.8

6 years ago

4.2.7

6 years ago

4.2.6

6 years ago

4.2.5

6 years ago

4.2.4

6 years ago

4.2.3

6 years ago

4.2.1

6 years ago

4.2.2

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.8.2

6 years ago

3.8.1

6 years ago

3.8.0

6 years ago

3.7.3

7 years ago

3.7.2

7 years ago

3.7.1

7 years ago

3.7.0

7 years ago

3.6.1

7 years ago

3.6.0

7 years ago

3.5.1

7 years ago

3.5.0

7 years ago

3.4.1

7 years ago

3.4.0

7 years ago

3.3.1

7 years ago

3.3.0

7 years ago

3.2.14

7 years ago

3.2.11

7 years ago

3.2.8

7 years ago

3.2.5

7 years ago

3.2.3

7 years ago

3.2.2

7 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.10

7 years ago

3.0.9

7 years ago

3.0.8

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago