mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
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 [@​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>
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 serverbuild: Build for productionpreview: Preview production buildtest: Run teststest:ui: Run tests with UIcoverage: Generate test coverageclean: Remove build artifactstypecheck: Run type checkingstorybook: Start Storybook development serverbuild-storybook: Build Storybook for production