Files
api/unraid-ui
renovate[bot] 7539a3ed75 chore(deps): update dependency vite-plugin-vue-devtools to v7.7.2 (#1134)
This PR contains the following updates:

<details>
<summary>vuejs/devtools (vite-plugin-vue-devtools)</summary>

###
[`v7.7.2`](https://redirect.github.com/vuejs/devtools/releases/tag/v7.7.2)

[Compare
Source](https://redirect.github.com/vuejs/devtools/compare/v7.7.1...v7.7.2)

🐞 Bug Fixes

- **api**: Allow treeshaking  -  by
[@&#8203;posva](https://redirect.github.com/posva) in
[https://github.com/vuejs/devtools/issues/795](https://redirect.github.com/vuejs/devtools/issues/795)
[<samp>(81cac)</samp>](https://redirect.github.com/vuejs/devtools/commit/81cacec)

#####     [View changes on
GitHub](https://redirect.github.com/vuejs/devtools/compare/v7.7.1...v7.7.2)

</details>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-19 09:12:01 -05:00
..

Unraid UI

A Vue 3 component library providing a set of reusable, accessible UI components for Unraid development.

Features

  • Built with Vue 3 and TypeScript
  • 🎭 Storybook documentation
  • Tested components
  • 🎪 Built on top of TailwindCSS and Shadcn/UI

Installation

Make sure you have the peer dependencies installed:

npm install vue@^3.3.0 tailwindcss@^3.0.0

Setup

1. Add CSS

Import the component library styles in your main entry file:

import "@unraid/ui/style.css";

2. Configure TailwindCSS

Add the following to your tailwind.config.js:

module.exports = {
  content: [
    // ... your content paths
    "./node_modules/@unraid/ui/**/*.{js,vue,ts}",
  ],
  theme: {
    extend: {},
  },
  plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
};

Usage

<script setup lang="ts">
import { Button } from "@unraid/ui";
</script>

<template>
  <Button variant="primary"> Click me </Button>
</template>

Development

Local Development

Install dependencies:

npm install

Start Storybook development server:

npm run storybook

This will start Storybook at http://localhost:6006

Building

npm run build

Testing

Run tests:

npm run test

Run tests with UI:

npm run test:ui

Generate coverage report:

npm run coverage

Type Checking

npm run typecheck

Scripts

  • dev: Start development server
  • build: Build for production
  • preview: Preview production build
  • test: Run tests
  • test:ui: Run tests with UI
  • coverage: Generate test coverage
  • clean: Remove build artifacts
  • typecheck: Run type checking
  • storybook: Start Storybook development server
  • build-storybook: Build Storybook for production

License