
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@smatch-corp/admin-front-property
Advanced tools
매물 관리 관련 컴포넌트 라이브러리
# npm 사용 시
npm install @smatch-corp/admin-front-property
# pnpm 사용 시
pnpm add @smatch-corp/admin-front-property
# yarn 사용 시
yarn add @smatch-corp/admin-front-property
이 라이브러리는 매물 컬렉션 관리를 위한 React 컴포넌트를 제공합니다.
날짜 선택 기능을 위한 Flatpickr 스타일을 사용하는 방법은 다음과 같습니다:
// 전역 CSS 파일에서 import (Next.js의 global.css 또는 _app.tsx에서)
import 'flatpickr/dist/flatpickr.css';
import { useFlatpickrStyles } from '@smatch-corp/admin-front-property';
function MyComponent() {
// 스타일 주입 훅 사용
const { injectStyles } = useFlatpickrStyles();
// 컴포넌트 마운트 시 스타일 주입
React.useEffect(() => {
injectStyles();
}, [injectStyles]);
return (
// 컴포넌트 내용
);
}
import { FlatpickrProvider } from '@smatch-corp/admin-front-property';
// Next.js의 _app.tsx 또는 앱의 최상위 컴포넌트
function MyApp({ Component, pageProps }) {
return (
<FlatpickrProvider>
<Component {...pageProps} />
</FlatpickrProvider>
);
}
export default MyApp;
주의: Node.js 패키지에서는 전역 CSS를 직접 가져올 수 없으므로, 위 세 가지 방법 중 하나를 사용해야 합니다.
import React from 'react';
import {
PropertyCollectionList,
PropertyCollectionCreate,
PropertyCollectionEdit,
useApi
} from '@smatch-corp/admin-front-property';
// 컬렉션 목록 컴포넌트
export default function CollectionsPage() {
return (
<div>
<h1>매물 컬렉션 목록</h1>
<PropertyCollectionList
onViewDetail={(collection) => {
// 상세 페이지로 이동
console.log('컬렉션 상세 보기:', collection);
}}
onEdit={(collection) => {
// 수정 페이지로 이동
console.log('컬렉션 수정하기:', collection);
}}
/>
</div>
);
}
컴포넌트를 사용하지 않고 API를 직접 호출할 수도 있습니다:
import { useApi } from '@smatch-corp/admin-front-property';
function MyComponent() {
const { propertyCollectionRepository } = useApi();
const fetchCollections = async () => {
try {
const result = await propertyCollectionRepository.findAllPage({
page: 0,
size: 10,
request: {
// 필요한 요청 파라미터
}
});
console.log('컬렉션 목록:', result.content);
return result;
} catch (error) {
console.error('컬렉션 조회 중 오류 발생:', error);
throw error;
}
};
// ...
}
매물 컬렉션 목록을 표시하는 컴포넌트입니다.
<PropertyCollectionList
onViewDetail={(collection) => {}}
onEdit={(collection) => {}}
onDelete={(collection) => {}}
onCreateClick={() => {}}
onCreateSuccess={() => {}}
showCreateFormInline={true}
/>
매물 컬렉션을 생성하는 폼 컴포넌트입니다.
<PropertyCollectionCreate
onSuccess={() => {}}
/>
매물 컬렉션을 수정하는 폼 컴포넌트입니다.
<PropertyCollectionEdit
id="컬렉션ID"
onSuccess={() => {}}
onCancel={() => {}}
/>
MIT
FAQs
매물 관리 관련 컴포넌트 라이브러리
The npm package @smatch-corp/admin-front-property receives a total of 0 weekly downloads. As such, @smatch-corp/admin-front-property popularity was classified as not popular.
We found that @smatch-corp/admin-front-property demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.