
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
- [Установка](#install) - [Использование](#usage) - [Запуск](#start) - [Требование](#requirements)
npm install rahmet-ui
yarn add rahmet-ui
Пример использования компонента RahmetButton
:
<template>
<rahmet-button>Test Rahmet Button</rahmet-button>
</template>
import {RahmetButton} from "rahmet-ui"
export default {
...
components: {
RahmetButton
}
}
yarn serve
Инициализация компонентов осуществляется в папке dev/serve.vue
. Файл serve.js
аналог main.js
в обычном Vue проекте.
yarn build
yarn test:unit
yarn test:e2e
yarn lint
.element {
/* Позиционирование */
position: relative;
left: 0;
right: 0;
top: 0;
bottom: 0;
/* Блочная модель */
display: flex;
align-items: center;
margin: 10px;
padding: 10px 20px;
border: 1px solid red;
width: 200px;
height: 100px;
box-sizing: border-box;
/* Типографика */
font-family: Arial;
font-size: 25px;
font-style: italic;
text-decoration: none;
color: red;
/* Оформление */
background: red;
opacity: 1;
/* Анимации */
transform: translateX(5px);
animation: shake 0.3s infinite;
}
1. Смысловые блоки кода отделяются друг от друга не более чем двумя пустыми строками
2. Запрещено использовать case без break или return в блоках switch
3. В коде не используется оставленных выводов в консоль
4. В коде нет объявленных, но неиспользуемых переменных
export default {
// Инициализация компонента
name,
components,
mixins,
// Входные параметры и пользовательские события
props,
emits,
// Работа с данными
data,
computed,
watch,
// Жизненные циклы
beforeCreate,
created,
beforeMount,
mounted,
beforeUpdate,
updated,
beforeUnmount,
unmounted,
errorCaptured,
renderTracked,
renderTriggered,
activated,
deactivated,
// Методы
methods
};
FAQs
- [Установка](#install) - [Использование](#usage) - [Запуск](#start) - [Требование](#requirements)
The npm package rahmet-ui receives a total of 0 weekly downloads. As such, rahmet-ui popularity was classified as not popular.
We found that rahmet-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.