@prodfleet/pf-core (1.0.5)

Published 2024-11-24 23:50:49 +00:00 by sanjin

Installation

@prodfleet:registry=
npm install @prodfleet/pf-core@1.0.5
"@prodfleet/pf-core": "1.0.5"

About this package

ProdFleet Core

Prodfleet core components for cross project use for shared style and design consistency.

Installation

npm install @prodfleet/pf-core

Usage

Logo Component

<template>
  <Logo 
    source="/path/to/logo.png"
    alt="Company Logo"
    :size="150"
  />
</template>

<script>
import { Logo } from 'my-vue-components'

export default {
  components: {
    Logo
  }
}
</script>

Props

  • source (String, required): URL of the logo image
  • alt (String, default: 'Logo'): Alt text for the image
  • size (Number, default: 100): Size in pixels (width and height)

Events

  • update:modelValue: Emitted when the value changes
  • select: Emitted when an option is selected, provides the full option object

Development

Make sure custom registry is set in package.json file.:

Add custom registry to npm

npm config set @prodfleet:registry=https://git.outbox.systems/api/packages/Outbox.Systems/npm/
npm config set -- '//git.outbox.systems/api/packages/Outbox.Systems/npm/:_authToken' "{TOKEN}"
npm publish
npm unpublish @prodfleet/gitea_npm@1.0.0
# Install dependencies
npm install

# Build the library
npm run build

Dependencies

Development Dependencies

ID Version
@vitejs/plugin-vue ^5.0.0
vite ^5.0.0
vue ^3.0.0

Peer Dependencies

ID Version
vue ^3.0.0
Details
npm
2024-11-24 23:50:49 +00:00
9
Sanjin Lisic
2.0 KiB
Assets (1)
Versions (20) View all
1.4.0 2024-11-27
1.3.2 2024-11-27
1.3.1 2024-11-27
1.3.0 2024-11-27
1.2.5 2024-11-26