npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

uniplatforms-ui

v1.0.0

Published

Vue 3 + TypeScript + Vue Router + Vue I18n + TailwindCSS + Axios + Lucide + Naive UI tayyor proyekt shabloni

Downloads

187

Readme

uniplatforms-ui

Vue 3 + TypeScript + Vue Router + Vue I18n + TailwindCSS + Axios + Lucide + Naive UI uchun tayyor proyekt shabloni. NPM orqali o'rnatib, bir buyruq bilan yangi loyiha yaratish mumkin.

Tarkibi

  • Vue 3 (<script setup>, Composition API)
  • TypeScript
  • Vue Router 4
  • Vue I18n (uz / ru / en tillari tayyor)
  • TailwindCSS (global rang o'zgaruvchilar bilan)
  • Axios (interceptor bilan tayyor instansiya)
  • lucide-vue-next (icon library)
  • Naive UI (component library, global theme bilan sozlangan)
  • Pinia (state management, tayyor ulangan)
  • Tayyor AppButton va AppIconButton componentlari

Lokal test qilish (nashr qilishdan oldin)

cd uniplatforms-ui
npm install
npm link

Boshqa papkada:

npx uniplatforms-ui my-app
# yoki: uniplatforms-ui my-app (agar npm link qilingan bo'lsa)
cd my-app
npm install
npm run dev

NPM ga nashr qilish

  1. npmjs.com da account oching (agar yo'q bo'lsa).

  2. Terminalda: npm login

  3. package.json dagi name maydonini o'zingiz xohlagan unique nomga o'zgartiring (masalan create-username-vue-template), chunki uniplatforms-ui nomi band bo'lishi mumkin.

  4. Nashr qilish:

    npm publish --access public
  5. Shundan so'ng har kim quyidagicha ishlatishi mumkin:

    npx create-username-vue-template my-app

Ranglarni global o'zgartirish

Barcha ranglar ikkita joyda markazlashgan:

  • template/src/assets/styles/main.css — Tailwind uchun CSS o'zgaruvchilar (--color-primary, va h.k.)
  • template/src/config/theme.ts — Naive UI componentlari uchun theme overrides

Shu ikki faylni birga o'zgartirsangiz, butun loyihadagi barcha ranglar (Tailwind klasslari va Naive UI componentlari) mos ravishda yangilanadi.

Tayyor "u-" componentlar (global, import shart emas)

Barcha UI componentlar main.ts da global ro'yxatdan o'tkazilgan (app.use(UiComponents)), shuning uchun har qanday .vue faylda import qilmasdan to'g'ridan-to'g'ri ishlatishingiz mumkin:

<template>
  <u-form ref="formRef" :model="form" :rules="rules">
    <u-form-item label="Ism" path="name">
      <u-input v-model="form.name" placeholder="Ismingiz" />
    </u-form-item>

    <u-form-item label="Shahar" path="city">
      <u-select v-model="form.city" :options="cityOptions" />
    </u-form-item>

    <u-checkbox v-model="form.agree">Roziman</u-checkbox>

    <u-button variant="primary" @click="submit">Yuborish</u-button>
  </u-form>
</template>

Mavjud componentlar:

| Tag | Nima uchun | |---|---| | <u-button> | Tugma (variant: primary/secondary/success/warning/danger/ghost, icon, loading, disabled) | | <u-icon-button> | Aylana ikon-tugma, tooltip bilan | | <u-input> | Matn/parol input | | <u-textarea> | Ko'p qatorli matn maydoni | | <u-select> | Dropdown tanlov | | <u-checkbox> | Checkbox | | <u-card> | Karta konteyner (title, header/footer slotlari) | | <u-form> / <u-form-item> | Validatsiyali forma (ref orqali .validate() chaqiriladi) |

Componentlarning haqiqiy kodi template/src/components/ui/ papkasida (masalan UButton.vue, UInput.vue). Global ro'yxatdan o'tkazish template/src/components/ui/index.ts faylida, TypeScript IntelliSense uchun esa template/src/components.d.ts faylida yozilgan.

Yangi component qo'shmoqchi bo'lsangiz: components/ui/ ga yangi .vue fayl qo'shing, components/ui/index.ts va components.d.ts ga qo'shib qo'ying — shundan keyin u ham global <u-...> sifatida ishlaydi. To'liq namuna src/views/HomeView.vue da.

Proyekt tuzilishi (yaratilgandan keyin)

my-app/
├── src/
│   ├── api/axios.ts          # Axios instansiyasi
│   ├── components/ui/        # AppButton, AppIconButton
│   ├── config/theme.ts       # Naive UI global theme
│   ├── i18n/                 # vue-i18n sozlamalari va tillar
│   ├── layouts/               # DefaultLayout
│   ├── router/                # vue-router sozlamalari
│   ├── views/                 # Home, About, NotFound
│   ├── assets/styles/main.css # Tailwind + global CSS ranglar
│   ├── App.vue
│   └── main.ts
├── tailwind.config.js
├── vite.config.ts
└── package.json