1.0.0-beta.5 • Published 4 months ago

@zafir.co.ao/lightray v1.0.0-beta.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

Lightray Vue Component Library

Lightray is a Vue component library designed for seamlessly managing content in the Antbox ECM server. With four meticulously crafted components, Lightray streamlines interactions with Antbox, making your development faster and more intuitive. Whether you're integrating a single component or utilizing the entire plugin, Lightray is here to illuminate the path for you.

Table of Contents

Installation

Installing Lightray is a breeze, simply run the following command:

npm install @zafir.co.ao/lightray

Quick Start

  1. To use Lightray in your Vue project, first, install the package:

    npm install @zafir.co.ao/lightray
  2. Next, add the following line to your src/main.ts:

    import "@zafir.co.ao/lightray/style.css";

Usage

Import the desired component or the entire plugin.

Using Single Component

For importing specific components into your Single File Components (SFC):

<!-- Inside your .vue file-->

<script lang="ts" setup>
	import { LrHelloLight } from "@zafir.co.ao/lightray";
</script>

<template>
	<LrHelloLight />
</template>

Using as a Plugin

For a more holistic approach, where you'd like to use all of Lightray's offerings, you can integrate it as a plugin:

// main.ts

import { createApp } from "vue";

import "./style.css";
import App from "./App.vue";

import { LightrayPlugin } from "@zafir.co.ao/lightray";
import "@zafir.co.ao/lightray/style.css";

createApp(App).use(LightrayPlugin).mount("#app");

Components

LrDiscovery

The LrDiscovery component serves as an interface to the Antbox ECM server.

PropertyTypeRequiredDefaultDescription
antboxUrlStringYes-URL for the Antbox server.
tokenStringNo-Authentication token for Antbox.
tenantStringNo-Specifies the tenant in a multi-tenant Antbox.

LrWebContent

The LrWebContent component is designed to display and optionally allow the edition of web content based on the provided language.

PropertyTypeRequiredDefaultDescription
langLanguageYes-Language of the displayed web content.
webContentWebContentNo-Object representing the web content to be displayed.
editionAllowedBooleanNofalseDetermines if the web content can be edited.
onEditFunctionNo-Callback when the content is edited.

Events:

  • edit: Emitted when the web content is edited.

LrHelloLight

The LrHelloLight component is a simple greeting component.

(This component does not have any properties.)

(Optional) Configure project as PWA

To configure your project as a PWA, follow the steps at Vite PWA.

1.0.0-beta.5

4 months ago

1.0.0-beta.3

5 months ago

1.0.0-beta.4

5 months ago

1.0.0-alpha.9

6 months ago

1.0.0-alpha.8

6 months ago

1.0.0-alpha.7

6 months ago

1.0.0-alpha.6

6 months ago

1.0.0-alpha.10

6 months ago

1.0.0-alpha.5

6 months ago

1.0.0-alpha.4

6 months ago

1.0.0-alpha.2

8 months ago

1.0.0-alpha.1

8 months ago

1.0.0-beta.2

5 months ago

1.0.0-beta.1

6 months ago

0.11.0

1 year ago

0.12.0

12 months ago

0.13.0

12 months ago

0.12.1

12 months ago

0.13.1

12 months ago

0.13.2

12 months ago

0.13.3

12 months ago

0.13.4

11 months ago

0.13.5

11 months ago

0.10.0

1 year ago

0.8.9

1 year ago

0.8.8

1 year ago

0.8.5

1 year ago

0.8.4

1 year ago

0.8.7

1 year ago

0.8.6

1 year ago

0.9.0

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.8.3

1 year ago

0.9.1

1 year ago

0.8.2

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago