1.1.146 • Published 6 months ago

@cheryx2020/core v1.1.146

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Cheryx Core

Cheryx Core is a library of reusable React components and utilities designed to streamline the development of web applications. It includes components for layouts, UI elements, and utilities for managing content and interactions.


Installation

To install the library, use one of the following commands:

Using Yarn

yarn add @cheryx2020/core

Using npm

npm install @cheryx2020/core

After installation, make sure to include the library's CSS file in your application. Add the following line to your app.js or equivalent entry file:

import "/node_modules/@cheryx2020/core/dist/index.css";

Usage

Importing Components

You can import components and utilities from the library as follows:

import { AdminMenu, PatternList, TipDetail, Footer } from "@cheryx2020/core";

Example Usage

Here is an example of how to use the AdminMenu component:

import React from "react";
import { AdminMenu } from "@cheryx2020/core";

const Example = () => {
    return (
        <AdminMenu
            text="Admin Options"
            onSaveClick={() => alert('Saved!')}
            onEditClick={() => alert('Editing...')}
            onCancelClick={() => alert('Cancelled!')}
            onPreviewClick={() => alert('Previewing...')}
        />
    );
};

export default Example;

Development

Running the Example Application

To explore and test the components in a live environment, follow these steps:

  1. Clone this repository to your local machine:

    git clone <repository-url>
  2. Navigate to the example folder:

    cd example
  3. Install dependencies and start the development server:

    yarn install && yarn dev
  4. Open your browser and navigate to http://localhost:3000 to view the example application.


Components Overview

Layouts

  • MainLayout: A layout component for the main structure of the application.
  • DetailLayout: A layout component for detailed views.

UI Components

  • AdminMenu: A menu for admin actions like save, edit, cancel, and preview.
  • PatternList: A list of patterns with optional editing capabilities.
  • TipDetail: A detailed view for tips or articles.
  • Footer: A footer component with social links and additional information.

Utilities

  • PostContent: A utility for rendering and managing post content.
  • PageItem: A utility for rendering different page components based on data.

Example Pages

The example/pages directory contains several example pages demonstrating the usage of components:

  • AdminMenu.js: Demonstrates the AdminMenu component.
  • BestSeller.js: Demonstrates the BestSeller component.
  • PatternItem.js: Demonstrates the PatternItem component.
  • ImageUploadable.js: Demonstrates the ImageUploadable component.

To explore these examples, navigate to the corresponding routes in the example application.


Contributing

We welcome contributions to improve Cheryx Core. To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with clear messages.
  4. Submit a pull request to the main repository.

License

Cheryx Core is licensed under the MIT License. See the LICENSE file for more details.


Support

If you encounter any issues or have questions, feel free to open an issue in the repository or contact the maintainers.


Additional Notes

  • The library is built with React and uses modern JavaScript features. Ensure your project is set up to support ES6+ syntax.
  • Some components may require additional dependencies, such as next/link for routing or react-share for social sharing. Refer to the component documentation for details.

Happy coding!

1.1.100

12 months ago

1.1.108

10 months ago

1.1.107

10 months ago

1.1.106

10 months ago

1.1.105

10 months ago

1.1.104

10 months ago

1.1.103

10 months ago

1.1.102

10 months ago

1.1.101

11 months ago

1.1.122

10 months ago

1.1.92

12 months ago

1.1.121

10 months ago

1.1.91

12 months ago

1.1.120

10 months ago

1.1.90

12 months ago

1.1.96

12 months ago

1.1.95

12 months ago

1.1.94

12 months ago

1.1.93

12 months ago

1.1.129

9 months ago

1.1.99

12 months ago

1.1.128

9 months ago

1.1.98

12 months ago

1.1.127

9 months ago

1.1.97

12 months ago

1.1.126

9 months ago

1.1.125

9 months ago

1.1.124

9 months ago

1.1.123

10 months ago

1.1.109

10 months ago

1.1.111

10 months ago

1.1.110

10 months ago

1.1.119

10 months ago

1.1.118

10 months ago

1.1.117

10 months ago

1.1.116

10 months ago

1.1.115

10 months ago

1.1.114

10 months ago

1.1.113

10 months ago

1.1.112

10 months ago

1.1.144

6 months ago

1.1.70

1 year ago

1.1.143

6 months ago

1.1.142

8 months ago

1.1.141

9 months ago

1.1.140

9 months ago

1.1.74

1 year ago

1.1.73

1 year ago

1.1.72

1 year ago

1.1.71

1 year ago

1.1.78

1 year ago

1.1.77

1 year ago

1.1.76

1 year ago

1.1.75

1 year ago

1.1.146

6 months ago

1.1.145

6 months ago

1.1.79

1 year ago

1.1.133

9 months ago

1.1.81

1 year ago

1.1.132

9 months ago

1.1.80

1 year ago

1.1.131

9 months ago

1.1.130

9 months ago

1.1.85

1 year ago

1.1.84

1 year ago

1.1.83

1 year ago

1.1.82

1 year ago

1.1.89

12 months ago

1.1.88

12 months ago

1.1.139

9 months ago

1.1.87

12 months ago

1.1.138

9 months ago

1.1.86

12 months ago

1.1.137

9 months ago

1.1.136

9 months ago

1.1.135

9 months ago

1.1.134

9 months ago

1.1.69

1 year ago

1.1.68

1 year ago

1.1.67

1 year ago

1.1.66

1 year ago

1.1.65

1 year ago

1.1.64

1 year ago

1.1.63

2 years ago

1.1.59

2 years ago

1.1.62

2 years ago

1.1.61

2 years ago

1.1.60

2 years ago

1.1.56

2 years ago

1.1.55

2 years ago

1.1.54

2 years ago

1.1.58

2 years ago

1.1.57

2 years ago

1.1.45

2 years ago

1.1.44

2 years ago

1.1.43

2 years ago

1.1.49

2 years ago

1.1.48

2 years ago

1.1.47

2 years ago

1.1.46

2 years ago

1.1.52

2 years ago

1.1.51

2 years ago

1.1.50

2 years ago

1.1.53

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.42

2 years ago

1.1.39

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.36

2 years ago

1.1.35

2 years ago

1.1.30

2 years ago

1.1.29

2 years ago

1.1.28

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago