
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
react-dialogic
Advanced tools
一個專為 React 應用開發的對話系統 UI 套件
A dialogue system UI kit for React applications
npm install react-dialogic
# or
yarn add react-dialogic
import { ReactDialogic } from 'react-dialogic';
// 重要:引入樣式
import 'react-dialogic/dist/index.css';
function App() {
return (
<ReactDialogic
characters={charactersConfig}
dialogue={dialogueConfig}
startScene="intro"
/>
);
}
查看 examples 目錄獲取完整示例。
See the examples directory for complete examples.
React Dialogic 使用 CSS 變量來控制組件的外觀。您可以通過以下方式自定義主題:
在您的 CSS 中覆蓋預設變量:
/* 覆蓋預設值 */
:root {
--dialogic-dialog-bg: rgba(255, 255, 255, 0.9);
--dialogic-dialog-border: #FF5500;
--dialogic-dialog-text: #333333;
--dialogic-name-text: #FF5500;
}
您可以創建自己的主題類:
/* 自定義主題 */
.theme-fantasy {
--dialogic-dialog-bg: rgba(64, 41, 93, 0.85);
--dialogic-dialog-border: #9951FF;
--dialogic-dialog-text: #FFFFFF;
--dialogic-name-text: #FFD700;
--dialogic-choice-bg: rgba(64, 41, 93, 0.7);
--dialogic-choice-bg-hover: rgba(153, 81, 255, 0.3);
--dialogic-choice-text: #FFFFFF;
--dialogic-choice-text-hover: #FFD700;
--dialogic-font-dialog: 'Tangerine', cursive;
--dialogic-font-choice: 'Tangerine', cursive;
--dialogic-typewriter-speed: 35ms;
--dialogic-dialog-radius: 12px;
--dialogic-choice-radius: 8px;
}
以下是可用的 CSS 變量及其用途:
變量名 | 說明 | 預設值 |
---|---|---|
--dialogic-dialog-bg | 對話框背景色 | rgba(0, 0, 0, 0.8) |
--dialogic-dialog-border | 對話框邊框顏色 | #FFCC00 |
--dialogic-dialog-text | 對話文本顏色 | #FFFFFF |
--dialogic-name-text | 角色名稱顏色 | #FFCC00 |
--dialogic-choice-bg | 選項背景色 | rgba(0, 0, 0, 0.7) |
--dialogic-choice-bg-hover | 選項懸停背景色 | rgba(255, 204, 0, 0.3) |
--dialogic-choice-text | 選項文本顏色 | #FFFFFF |
--dialogic-choice-text-hover | 選項懸停文本顏色 | #FFCC00 |
--dialogic-font-dialog | 對話框字體 | 'Press Start 2P', system-ui, sans-serif |
--dialogic-font-choice | 選項字體 | 'Press Start 2P', system-ui, sans-serif |
--dialogic-typewriter-speed | 打字效果速度 | 40ms |
--dialogic-dialog-radius | 對話框圓角半徑 | 4px |
--dialogic-choice-radius | 選項圓角半徑 | 2px |
如有問題,請在 GitHub Issues 中提出。
For issues and questions, please file a GitHub Issue.
FAQs
A React UI library for creating dialogue systems with a game-like interface | 一個專為 React 應用開發的對話系統 UI 套件,提供類遊戲風格的對話介面
The npm package react-dialogic receives a total of 2 weekly downloads. As such, react-dialogic popularity was classified as not popular.
We found that react-dialogic 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.