hazo_files 1.0.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.
@@ -0,0 +1,31 @@
1
+ ; Hazo Files Configuration
2
+ ; This file configures the file management system
3
+
4
+ [general]
5
+ ; Available providers: local, google_drive
6
+ provider = local
7
+
8
+ [local]
9
+ ; Base path for local file storage (relative or absolute)
10
+ base_path = ./files
11
+ ; Comma-separated list of allowed extensions (optional, empty = all allowed)
12
+ allowed_extensions =
13
+ ; Maximum file size in bytes (optional, 0 = unlimited)
14
+ max_file_size = 0
15
+
16
+ [google_drive]
17
+ ; Google Drive OAuth credentials
18
+ ; These can also be set via environment variables:
19
+ ; GOOGLE_DRIVE_CLIENT_ID, GOOGLE_DRIVE_CLIENT_SECRET, etc.
20
+ client_id =
21
+ client_secret =
22
+ redirect_uri = http://localhost:3000/api/auth/callback/google
23
+ refresh_token =
24
+ access_token =
25
+ ; Optional: Root folder ID to use as base (empty = root of Drive)
26
+ root_folder_id =
27
+
28
+ [naming]
29
+ ; Comma-separated list of supported date format tokens for naming rules
30
+ ; Available: YYYY, YY, MM, M, DD, D, MMM, MMMM, YYYY-MM-DD, YYYY-MMM-DD, DD-MM-YYYY, MM-DD-YYYY
31
+ date_formats = YYYY,YY,MM,M,DD,D,MMM,MMMM,YYYY-MM-DD,YYYY-MMM-DD,DD-MM-YYYY,MM-DD-YYYY
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "hazo_files",
3
+ "version": "1.0.0",
4
+ "description": "File management including integration to cloud files",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./ui": {
15
+ "types": "./dist/ui/index.d.ts",
16
+ "import": "./dist/ui/index.mjs",
17
+ "require": "./dist/ui/index.js"
18
+ }
19
+ },
20
+ "scripts": {
21
+ "build": "tsup",
22
+ "dev": "tsup --watch",
23
+ "test": "vitest",
24
+ "lint": "eslint src/",
25
+ "typecheck": "tsc --noEmit",
26
+ "dev:test-app": "npm run build && cd test-app && npm run dev",
27
+ "build:test-app": "npm run build && cd test-app && npm run build",
28
+ "install:test-app": "cd test-app && npm install"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/pub12/hazo_files.git"
33
+ },
34
+ "keywords": [
35
+ "file",
36
+ "management",
37
+ "google-drive",
38
+ "local-storage",
39
+ "file-browser"
40
+ ],
41
+ "author": "Pubs Abayasiri",
42
+ "license": "MIT",
43
+ "bugs": {
44
+ "url": "https://github.com/pub12/hazo_files/issues"
45
+ },
46
+ "homepage": "https://github.com/pub12/hazo_files#readme",
47
+ "dependencies": {
48
+ "googleapis": "^140.0.1",
49
+ "ini": "^4.1.3"
50
+ },
51
+ "devDependencies": {
52
+ "@dnd-kit/core": "^6.3.1",
53
+ "@dnd-kit/sortable": "^10.0.0",
54
+ "@dnd-kit/utilities": "^3.2.2",
55
+ "@types/ini": "^4.1.1",
56
+ "@types/node": "^20.10.0",
57
+ "@types/react": "^18.2.45",
58
+ "@types/react-dom": "^18.2.18",
59
+ "react": "^18.2.0",
60
+ "react-dom": "^18.2.0",
61
+ "tsup": "^8.0.1",
62
+ "typescript": "^5.3.3",
63
+ "vitest": "^4.0.15"
64
+ },
65
+ "peerDependencies": {
66
+ "@dnd-kit/core": "^6.0.0",
67
+ "@dnd-kit/sortable": "^8.0.0",
68
+ "@dnd-kit/utilities": "^3.0.0",
69
+ "react": "^18.0.0",
70
+ "react-dom": "^18.0.0"
71
+ },
72
+ "peerDependenciesMeta": {
73
+ "@dnd-kit/core": {
74
+ "optional": true
75
+ },
76
+ "@dnd-kit/sortable": {
77
+ "optional": true
78
+ },
79
+ "@dnd-kit/utilities": {
80
+ "optional": true
81
+ }
82
+ }
83
+ }