5.10.9 • Published 18 days ago

@upswot/ecommerce v5.10.9

Weekly downloads
-
License
MIT
Repository
-
Last release
18 days ago

Sample

This mini project is designed to quickly create a basic widget (component) with the necessary structure.

Each widget (component) has a componentId property and it is unique for each, don't forget about it.

All necessary variables, classes, file names have the word (and then the variable) sample in the name, example:

import { SAMPLE_CONST } from '../constants'
:host,
.sample,
.simplebar-content{
  height: 100%;
}

.sample {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: var(--widget-container-border);
  background: var(--color-neutral-0);
  overflow: hidden;
  transform: scale(1);
}

файлы: src/api/getSampleList.ts, src/components/sampleChild.ts и т.д.

How to start/Visual Example

1.Copying the project

Duplicate entire project packages/sample.

logo_1

2.Naming

Change the copied project to your name, for example the module will be called campaign.

logo_2

3.Replacing variables within files

Here we replace all our sample variables inside files

logo_3

logo_4

logo_5

4.Rename files(Now not actual)

In this paragraph, we rename the files in which the name uses the sample variable and replace it with our name

logo_6

logo_7

5.Result of renamed files(Now not actual)

logo_8

6.Replacement in the global package.json

Copy all instructions that use the sample variable

logo_9

replace with our module name

logo_10

7.Installing a dependency

logo_11

8.Module launch

logo_12

9.Result

logo_13

5.10.9

18 days ago

5.10.8

21 days ago

5.5.11

1 month ago

5.5.5

2 months ago

5.5.4

2 months ago

5.5.1

2 months ago

4.40.2

3 months ago

4.40.2-alpha.0

3 months ago

4.40.1

3 months ago

4.40.1-beta.0

3 months ago

4.40.1-beta

3 months ago

4.40.1-alpha

4 months ago

4.35.7-alpha

4 months ago

4.35.7

4 months ago

4.35.4-alpha

4 months ago

4.35.4

5 months ago

4.35.3

5 months ago

4.35.1

5 months ago

4.35.1-alpha

5 months ago