@manojkmfsi/monodog 1.1.33 → 1.1.35
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/CHANGELOG.md +12 -0
- package/monodog-dashboard/.env.example +2 -0
- package/monodog-dashboard/package.json +39 -0
- package/package.json +13 -1
- package/create-test-session.js +0 -50
- package/dev-server.pid +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dash",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "React dashboard for monodog monorepo management",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"private": true,
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "tsc && vite build --sourcemap",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
13
|
+
"clean": "rm -rf dist node_modules/.vite"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"axios": "^1.6.0",
|
|
17
|
+
"dompurify": "^3.3.1",
|
|
18
|
+
"js-yaml": "^4.1.0",
|
|
19
|
+
"react": "^18.2.0",
|
|
20
|
+
"react-dom": "^18.2.0",
|
|
21
|
+
"react-router-dom": "^6.8.1"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/js-yaml": "^4.0.9",
|
|
25
|
+
"@types/react": "^18.2.37",
|
|
26
|
+
"@types/react-dom": "^18.2.15",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
28
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
29
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
30
|
+
"autoprefixer": "^10.4.14",
|
|
31
|
+
"eslint": "^8.53.0",
|
|
32
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
33
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
|
34
|
+
"postcss": "^8.4.27",
|
|
35
|
+
"tailwindcss": "^3.3.3",
|
|
36
|
+
"typescript": "^5.2.2",
|
|
37
|
+
"vite": "^7.3.1"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manojkmfsi/monodog",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.35",
|
|
4
4
|
"description": "App for monodog monorepo",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mindfiredigital",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"monodog-dashboard/dist",
|
|
10
|
+
"prisma",
|
|
11
|
+
".env.example",
|
|
12
|
+
"CHANGELOG.md",
|
|
13
|
+
"LICENCE",
|
|
14
|
+
"README",
|
|
15
|
+
"monodog-config.example.json",
|
|
16
|
+
"monodog-config.json",
|
|
17
|
+
"package.json"
|
|
18
|
+
],
|
|
7
19
|
"repository": {
|
|
8
20
|
"type": "git",
|
|
9
21
|
"url": "https://github.com/mindfiredigital/MonoDog",
|
package/create-test-session.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This script creates a test session by directly calling the auth middleware's storeSession function
|
|
5
|
-
* It simulates what happens after a successful GitHub OAuth login
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const { storeSession } = require('./dist/middleware/auth-middleware');
|
|
9
|
-
|
|
10
|
-
// Create a mock session
|
|
11
|
-
const mockSession = {
|
|
12
|
-
accessToken: 'gho_test_token_' + Math.random().toString(36).substr(2, 9),
|
|
13
|
-
expiresIn: 3600,
|
|
14
|
-
expiresAt: Date.now() + 24 * 60 * 60 * 1000,
|
|
15
|
-
user: {
|
|
16
|
-
id: 12345,
|
|
17
|
-
login: 'testuser',
|
|
18
|
-
name: 'Test User',
|
|
19
|
-
email: 'test@example.com',
|
|
20
|
-
avatar_url: 'https://avatars.githubusercontent.com/u/12345?v=4',
|
|
21
|
-
public_repos: 5,
|
|
22
|
-
followers: 10,
|
|
23
|
-
following: 5,
|
|
24
|
-
},
|
|
25
|
-
scopes: ['repo', 'read:user'],
|
|
26
|
-
permission: {
|
|
27
|
-
permission: 'maintain',
|
|
28
|
-
role: 'Maintainer',
|
|
29
|
-
userId: 12345,
|
|
30
|
-
username: 'testuser',
|
|
31
|
-
owner: 'manojkmfsi',
|
|
32
|
-
repo: 'MonoDog',
|
|
33
|
-
cachedAt: Date.now(),
|
|
34
|
-
ttl: 3600000,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
const token = storeSession(mockSession);
|
|
40
|
-
console.log('✅ Test session created successfully!');
|
|
41
|
-
console.log(`\nSession Token: ${token}`);
|
|
42
|
-
console.log(`User: ${mockSession.user.login}`);
|
|
43
|
-
console.log(`Permission: ${mockSession.permission.permission}`);
|
|
44
|
-
console.log(`Expires at: ${new Date(mockSession.expiresAt).toISOString()}`);
|
|
45
|
-
console.log(`\nYou can use this token in API requests:`);
|
|
46
|
-
console.log(`curl -H "Authorization: Bearer ${token}" http://localhost:8999/api/publish/trigger`);
|
|
47
|
-
} catch (error) {
|
|
48
|
-
console.error('❌ Failed to create session:', error.message);
|
|
49
|
-
process.exit(1);
|
|
50
|
-
}
|
package/dev-server.pid
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22401
|