접속 IP 를 제한하는 결제사 API 를 로컬·스테이징에서 연동하려면 서버가 내보내는 요청의 출발지 IP 를 바꿔야 한다. 브라우저 프록시로는 바뀌지 않는 축이라 코어 환경설정으로 도입한다. 게이트는 디버그 모드이며 판정은 OutboundProxy 한 곳이 소유한다. 화면의 조건부 렌더링은 편의일 뿐이라 저장 API 직접 호출을 막지 못하므로, 실질 게이트를 판정 지점에 둔다. 주입·적용 지점은 결과만 소비한다. 적용은 Http::globalOptions 전역 옵션이라 확장의 Http:: 호출까지 함께 경유한다. 외부 연동 규약상 curl 핸들을 직접 다뤄야 하는 확장은 OutboundProxy::curlOptions 로 같은 프록시를 탄다 — KG이니시스 본인인증 승인 요청과 CBT 연결 점검을 이 통로로 편입했다. CBT 의 TCP 443 확인은 원시 소켓으로는 프록시를 태울 수 없어 curl CONNECT_ONLY 로 교체했다. 저장 전 연결 테스트는 저장값이 아니라 제출값을 검사하고, 그 프록시를 거쳤을 때 외부에 보이는 IP 를 함께 보고한다. 운영자가 결제사에 등록할 값이라 저장하고 나서 되짚지 않도록 했다. 적용과 같은 조립을 거치므로 확인한 구성과 저장 후 적용되는 구성이 어긋나지 않는다.
70 lines
2.1 KiB
JSON
70 lines
2.1 KiB
JSON
{
|
|
"name": "sirsoft-admin_basic",
|
|
"version": "1.0.6",
|
|
"description": "Gnuboard7 Basic Admin Template Components",
|
|
"type": "module",
|
|
"main": "dist/components.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"components.json"
|
|
],
|
|
"scripts": {
|
|
"safelist": "node scripts/extract-safelist.cjs",
|
|
"prebuild": "npm run safelist",
|
|
"build": "vite build",
|
|
"dev": "npm run safelist && vite build --watch",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:e2e": "playwright test --config=tests/Playwright/playwright.config.ts",
|
|
"test:e2e:ui": "playwright test --config=tests/Playwright/playwright.config.ts --ui",
|
|
"test:coverage": "vitest run --coverage",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"keywords": [
|
|
"g7",
|
|
"template",
|
|
"admin",
|
|
"react",
|
|
"components"
|
|
],
|
|
"author": "sirsoft",
|
|
"license": "MIT",
|
|
"peerDependencies": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.2.2",
|
|
"@tailwindcss/vite": "^4.0.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^5.1.0",
|
|
"axe-core": "^4.11.0",
|
|
"happy-dom": "^20.0.10",
|
|
"jsdom": "^28.1.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^7.0.4",
|
|
"vite-plugin-dts": "^4.5.4",
|
|
"vitest": "^4.0.6",
|
|
"vitest-axe": "^0.1.0"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@fortawesome/fontawesome-free": "^7.1.0",
|
|
"@monaco-editor/react": "^4.7.0",
|
|
"browser-image-compression": "^2.0.2",
|
|
"chart.js": "^4.5.1",
|
|
"flag-icons": "^7.5.0",
|
|
"react-chartjs-2": "^5.3.1",
|
|
"react-select": "^5.10.2",
|
|
"yet-another-react-lightbox": "^3.27.0"
|
|
}
|
|
}
|