0.0.66 • Published 6 years ago

piktor-profile v0.0.66

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
6 years ago

Piktor Profile

This repo is used to host the Piktor Profile component that we have developed, to use as a module in our products.

Installation

  • Install Piktor Profile using npm or yarn.

    npm install piktor-profile
    yarn add piktor-profile
  • Import it into your project

    import PiktorProfile from 'piktor-profile';
  • Use it as follows

    <PiktorProfile
      userData={user}
      callback={key => callbackHandler(key)}
      customStyle={customStyle}
      editable
    />

Props

  1. UserData - Pass a user object in the structure mentioned below:

      {
        user_name: STRING,
        user_id: STRING,
        user_photo: STRING,
        user_email: STRING,
        user_mobile: STRING,
        designation: STRING,
        job_location: STRING,
        user_social_profiles: [
          {
            social_platform: STRING,
            activeIcon: FILE,
            inactiveIcon: FILE,
            isEnabled: BOOLEAN,
            username: STRING,
            link: STRING,
            id: STRING
          }
        ],
        aspirations: [],
        skills: [
          {
            "_id" : STRING,
            "name" : STRING,
            "id" : STRING,
            "icon" : FILE,
            "achievement" : BOOLEAN
          }
        ],
        recognitions: [
          {
            "_id" : STRING,
            "title" : STRING,
            "issuer" : STRING,
            "issue_date" : STRING,
            "description" : STRING,
            "id" : STRING
          }
        ],
        work_experience: [
          {
            "_id" : STRING,
            "title" : STRING,
            "company_name" : STRING,
            "start_date" : DATE,
            "end_date" : DATE || STRING,
            "description" : STRING,
            "place" : STRING
          }
        ],
        education: [
          {
            "_id" : STRING,
            "school" : STRING,
            "degree" : STRING,
            "start_year" : STRING,
            "end_year" : STRING,
            "id" : STRING
          }
        ],
        personalStatement: STRING
      }
  2. Editing - Boolean to specify if profile is in edit state or not.

  3. Editable - The boolean to specify whether it is editable, or view only.

  4. customStyle - The style prop. Right now, it supports these properties: primaryColor, secondaryColor, fontFamilyMain, fontFamilyTitle, fontFamilyHeading.

  5. callback - A generic callback for all connections from the profile to the application. You will receive a key, and an optional list of arguements, which you can handle in your application.

0.0.66

6 years ago

0.0.67

6 years ago

0.0.9-tmo12

6 years ago

0.0.65

6 years ago

0.0.63

6 years ago

0.0.61

6 years ago

0.0.59

6 years ago

0.0.57

6 years ago

0.0.55

6 years ago

0.0.53

6 years ago

0.0.51

6 years ago

0.0.49

6 years ago

0.0.47

6 years ago

0.0.45

6 years ago

0.0.43

6 years ago

0.0.41

6 years ago

0.0.39

6 years ago

0.0.37

6 years ago

0.0.31

6 years ago

0.0.33

6 years ago

0.0.35

6 years ago

0.0.29

6 years ago

0.0.8-tmo12

6 years ago

0.0.27

6 years ago

0.0.21

6 years ago

0.0.23

6 years ago

0.0.25

6 years ago

0.0.19

6 years ago

0.0.17

6 years ago

0.0.15

6 years ago

0.0.11

6 years ago

0.0.9

6 years ago

0.0.5

6 years ago

0.0.7

6 years ago

0.0.8-tmo11

6 years ago

0.0.8-tmo10

6 years ago

0.0.8-tmo9

6 years ago

0.0.8-tmo8

6 years ago

0.0.8-tmo7

6 years ago

0.0.8-tmo6

6 years ago

0.0.8-tmo5

6 years ago

0.0.8-tmo4

6 years ago

0.0.8-tmo3

6 years ago

0.0.8-tmo2

6 years ago

0.0.8

6 years ago

0.0.8-tmo

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago