@mack1ch/fingerprint-js 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # 1pay_risk — сбор данных о пользователе (браузер, отпечаток, бот-детекция)
2
+
3
+ React + TypeScript + Vite + Tailwind + Ant Design. Сбор метрик без запроса разрешений, экспорт в CSV.
4
+
5
+ ## Запуск через Docker
6
+
7
+ ```bash
8
+ # Сборка и запуск (порт 3000)
9
+ docker compose up --build
10
+
11
+ # Или только сборка образа и запуск контейнера
12
+ docker build -t 1pay_risk .
13
+ docker run -p 3000:80 1pay_risk
14
+ ```
15
+
16
+ Приложение будет доступно по адресу: http://localhost:3000
17
+
18
+ ## Локальная разработка
19
+
20
+ ```bash
21
+ npm install
22
+ npm run dev
23
+ ```
24
+
25
+ ---
26
+
27
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
28
+
29
+ Currently, two official plugins are available:
30
+
31
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
32
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
33
+
34
+ ## React Compiler
35
+
36
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
37
+
38
+ ## Expanding the ESLint configuration
39
+
40
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
41
+
42
+ ```js
43
+ export default defineConfig([
44
+ globalIgnores(['dist']),
45
+ {
46
+ files: ['**/*.{ts,tsx}'],
47
+ extends: [
48
+ // Other configs...
49
+
50
+ // Remove tseslint.configs.recommended and replace with this
51
+ tseslint.configs.recommendedTypeChecked,
52
+ // Alternatively, use this for stricter rules
53
+ tseslint.configs.strictTypeChecked,
54
+ // Optionally, add this for stylistic rules
55
+ tseslint.configs.stylisticTypeChecked,
56
+
57
+ // Other configs...
58
+ ],
59
+ languageOptions: {
60
+ parserOptions: {
61
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
62
+ tsconfigRootDir: import.meta.dirname,
63
+ },
64
+ // other options...
65
+ },
66
+ },
67
+ ])
68
+ ```
69
+
70
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
71
+
72
+ ```js
73
+ // eslint.config.js
74
+ import reactX from 'eslint-plugin-react-x'
75
+ import reactDom from 'eslint-plugin-react-dom'
76
+
77
+ export default defineConfig([
78
+ globalIgnores(['dist']),
79
+ {
80
+ files: ['**/*.{ts,tsx}'],
81
+ extends: [
82
+ // Other configs...
83
+ // Enable lint rules for React
84
+ reactX.configs['recommended-typescript'],
85
+ // Enable lint rules for React DOM
86
+ reactDom.configs.recommended,
87
+ ],
88
+ languageOptions: {
89
+ parserOptions: {
90
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
91
+ tsconfigRootDir: import.meta.dirname,
92
+ },
93
+ // other options...
94
+ },
95
+ },
96
+ ])
97
+ ```