Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

credcomponents

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credcomponents

```bash npm install credcomponents --save ``` ## Available components to use - Chat - File Upload - Macro Component - Maps - Mega Menu - Tooltip

  • 0.1.48
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install credcomponents --save

Available components to use

- Chat
- File Upload
- Macro Component
- Maps
- Mega Menu
- Tooltip

Available directives to use

- Comma Seprator
- Sticky Scroll

Available utilities to use

- LoadScript
   - Using `LoadScript` utility function you can load external files and can be unloaded using `unloadScript` utility function.
- There are also other utilities to check type of variables, is property are available or not in object, loops, filters.

Usage

All the components, directives and utilites are tree shaked, where you will install only specific dependency not others with it.


import {
    // Components
    FileUpload, 
    Chat,
    Macro,
    BubbleMap, 
    GoogleMap, 
    LeafletMaps, 
    LineMap, 
    yandexMap, 
    ymapMarker,
    ...,
    // Directives
    CommaSeprator,
    StickyScroll,
    ...,

    // Utilities
    isPrimitive,
    isUndef, 
    isDef, 
    isTrue, 
    isFalse, 
    isPrimitive, 
    isRefrence, 
    isPlainArray, 
    isPlainObject, 
    isRegExp, 
    isFunction, 
    isPromise, 
    isValidArrayIndex, 
    toNumber, 
    ...
} from 'credcomponents'
// plugin
// To use Macro component you need to register it globally via plugin
import Vue from 'vue'
import { Macro } from 'credcomponents'

Vue.use(Macro, { 
    applicationName: "<< Your appname>>", macroJSFileUrl: "<<Your path for macro file, where in custom code get executed>>" 
});

Above components can be used as webcomponents in your legacy application.

  • Include webcomponents/credence.min.js in your html file or load the you load other javascript files.
  • The use above published component this way.
<!doctype html>
    <meta charset="utf-8">
    <title>credence demo</title>
    <script src="https://unpkg.com/vue"></script>
    <script src="/credcomponents/webcomponents/credence.min.js"></script>
    <credence-file-upload></credence-file-upload>
    <credence-macro></credence-macro>
    <credence-mega-menu-web-component></credence-mega-menu-web-component>

Each published components, directives and utility can be installed individually instead of installing all package credcomponents.

  • e.g
npm install @credenceanalytics/file-upload --save
npm install @credenceanalytics/macro-component --save
// plugin
// To use Macro component you need to register it globally via plugin
import Vue from 'vue'
import { Macro } from '@credenceanalytics/macro-component'

Vue.use(Macro, { 
    applicationName: "<< Your appname>>", macroJSFileUrl: "<<Your path for macro file, where in custom code get executed>>" 
});

import { FileUpload } from "@credenceanalytics/file-upload";

import SearchBar from "@credenceanalytics/search-bar"


FAQs

Package last updated on 16 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc