diff --git a/.cursorrules b/.cursorrules index 8bddb0a..6d26690 100644 --- a/.cursorrules +++ b/.cursorrules @@ -35,3 +35,7 @@ g "작업 요약 내용" - 단지 제안만 하세요 - 커밋 메시지는 작업 내용을 정확히 반영해야 합니다 +## 문서 작성 규칙 +1. **한국어 사용**: `.md` (Markdown) 파일을 작성할 때는 항상 한국어를 사용하세요. +2. **명확한 구조**: 문서의 가독성을 위해 헤더, 목록, 코드 블록 등을 적절히 사용하여 구조화하세요. + diff --git a/eaccount/README.md b/barobill/eaccount/README.md similarity index 100% rename from eaccount/README.md rename to barobill/eaccount/README.md diff --git a/eaccount/api/account_status.php b/barobill/eaccount/api/account_status.php similarity index 99% rename from eaccount/api/account_status.php rename to barobill/eaccount/api/account_status.php index 79fa3d6..3f49013 100644 --- a/eaccount/api/account_status.php +++ b/barobill/eaccount/api/account_status.php @@ -5,8 +5,8 @@ */ header('Content-Type: application/json; charset=utf-8'); -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); require_once('barobill_account_config.php'); require_once(getenv('DOCUMENT_ROOT') . '/session.php'); diff --git a/eaccount/api/accounts.php b/barobill/eaccount/api/accounts.php similarity index 100% rename from eaccount/api/accounts.php rename to barobill/eaccount/api/accounts.php diff --git a/eaccount/api/barobill_account_config.php b/barobill/eaccount/api/barobill_account_config.php similarity index 99% rename from eaccount/api/barobill_account_config.php rename to barobill/eaccount/api/barobill_account_config.php index a1053c7..9613946 100644 --- a/eaccount/api/barobill_account_config.php +++ b/barobill/eaccount/api/barobill_account_config.php @@ -15,8 +15,8 @@ // 인증서 키(CERTKEY) 파일 경로 // load .env file -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); // 인증서 키(CERTKEY) 파일 경로 $documentRoot = getenv('DOCUMENT_ROOT'); diff --git a/eaccount/api/barobill_card_config.php b/barobill/eaccount/api/barobill_card_config.php similarity index 99% rename from eaccount/api/barobill_card_config.php rename to barobill/eaccount/api/barobill_card_config.php index f6801bc..8aeae46 100644 --- a/eaccount/api/barobill_card_config.php +++ b/barobill/eaccount/api/barobill_card_config.php @@ -15,8 +15,8 @@ // 인증서 키(CERTKEY) 파일 경로 // load .env file -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); // 인증서 키(CERTKEY) 파일 경로 $documentRoot = getenv('DOCUMENT_ROOT'); diff --git a/eaccount/api/cards.php b/barobill/eaccount/api/cards.php similarity index 100% rename from eaccount/api/cards.php rename to barobill/eaccount/api/cards.php diff --git a/eaccount/api/check_api_config.php b/barobill/eaccount/api/check_api_config.php similarity index 100% rename from eaccount/api/check_api_config.php rename to barobill/eaccount/api/check_api_config.php diff --git a/eaccount/api/debug_accounts.php b/barobill/eaccount/api/debug_accounts.php similarity index 99% rename from eaccount/api/debug_accounts.php rename to barobill/eaccount/api/debug_accounts.php index 54719b0..5d564ec 100644 --- a/eaccount/api/debug_accounts.php +++ b/barobill/eaccount/api/debug_accounts.php @@ -5,8 +5,8 @@ */ header('Content-Type: application/json; charset=utf-8'); -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); require_once('barobill_account_config.php'); require_once(getenv('DOCUMENT_ROOT') . '/session.php'); diff --git a/eaccount/api/get_tenants.php b/barobill/eaccount/api/get_tenants.php similarity index 97% rename from eaccount/api/get_tenants.php rename to barobill/eaccount/api/get_tenants.php index 1123c0f..5d2f199 100644 --- a/eaccount/api/get_tenants.php +++ b/barobill/eaccount/api/get_tenants.php @@ -5,8 +5,8 @@ */ header('Content-Type: application/json; charset=utf-8'); -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); require_once(getenv('DOCUMENT_ROOT') . '/session.php'); require_once(getenv('DOCUMENT_ROOT') . '/lib/mydb.php'); diff --git a/eaccount/api/set_tenant.php b/barobill/eaccount/api/set_tenant.php similarity index 93% rename from eaccount/api/set_tenant.php rename to barobill/eaccount/api/set_tenant.php index 2fb49e5..c4a286b 100644 --- a/eaccount/api/set_tenant.php +++ b/barobill/eaccount/api/set_tenant.php @@ -5,8 +5,8 @@ */ header('Content-Type: application/json; charset=utf-8'); -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); require_once(getenv('DOCUMENT_ROOT') . '/session.php'); require_once(getenv('DOCUMENT_ROOT') . '/lib/mydb.php'); diff --git a/eaccount/api/transactions.php b/barobill/eaccount/api/transactions.php similarity index 100% rename from eaccount/api/transactions.php rename to barobill/eaccount/api/transactions.php diff --git a/eaccount/api/usage.php b/barobill/eaccount/api/usage.php similarity index 99% rename from eaccount/api/usage.php rename to barobill/eaccount/api/usage.php index 17648bc..17d6614 100644 --- a/eaccount/api/usage.php +++ b/barobill/eaccount/api/usage.php @@ -16,8 +16,8 @@ header('Content-Type: application/json; charset=utf-8'); // load .env -require_once __DIR__ . '/../../lib/DotEnv.php'; -(new DotEnv(__DIR__ . '/../../.env'))->load(); +require_once __DIR__ . '/../../../lib/DotEnv.php'; +(new DotEnv(__DIR__ . '/../../../.env'))->load(); require_once('barobill_card_config.php'); diff --git a/eaccount/index.php b/barobill/eaccount/index.php similarity index 92% rename from eaccount/index.php rename to barobill/eaccount/index.php index 218fde4..90eb288 100644 --- a/eaccount/index.php +++ b/barobill/eaccount/index.php @@ -70,31 +70,47 @@ ), - arrowUp: () => ( - - - - - ), - arrowDown: () => ( - - - - - ), - search: () => ( + building: () => ( - - + + + + + + + + + + + ), - fileText: () => ( + creditCard: () => ( - - - - - + + + + ), + receipt: () => ( + + + + + + + ), + users: () => ( + + + + + + + ), + bookOpen: () => ( + + + ), home: () => ( @@ -103,26 +119,10 @@ ), - chevronsLeft: () => ( + search: () => ( - - - - ), - chevronLeft: () => ( - - - - ), - chevronRight: () => ( - - - - ), - chevronsRight: () => ( - - - + + ), download: ({ className }) => ( @@ -139,18 +139,16 @@ ), - receipt: ({ className }) => ( - - - - - + arrowUp: () => ( + + + ), - creditCard: ({ className }) => ( - - - + arrowDown: () => ( + + + ), x: ({ className }) => ( @@ -158,27 +156,40 @@ + ), + fileText: () => ( + + + + + + + ) }; // Header Component - const Header = ({ activeTab, onTabChange, tenants, currentTenantId, onTenantChange }) => ( -
+ const Header = ({ activeTab, onTabChange, tenants, currentTenantId, onTenantChange, onOpenApiInfo }) => ( +
-
-
-
- 🏦 +
+
+
+ +
+
+

계좌 입출금내역

+

Bank Transaction History

-

계좌 입출금내역

-
+ +
{/* 테넌트 선택 드롭다운 */} {tenants.length > 0 && ( )} - - - 계좌조회 - - - 카드내역 - - - 테넌트관리 - - - 회원관리 - - - API정보 - -
+
+ + 계좌조회 + + + 카드내역 + + + 테넌트 + + + 바로빌 회원관리 + + +
- - 세금계산서 +
+ +
+ 세금계산서 - - 홈 + +
@@ -435,6 +448,32 @@ ); }; + const ApiInfoModal = ({ isOpen, onClose }) => { + if (!isOpen) return null; + return ( +
+
e.stopPropagation()}> +
+

+ + 바로빌 API 상세 정보 +

+ +
+
+ +
+