@manojkmfsi/monodog 1.1.34 → 1.1.36
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/package.json +12 -1
- package/create-test-session.js +0 -50
- package/dev-server.pid +0 -1
- package/monodog-dashboard/README.md +0 -58
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manojkmfsi/monodog",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
4
4
|
"description": "App for monodog monorepo",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mindfiredigital",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"prisma",
|
|
10
|
+
".env.example",
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"LICENCE",
|
|
13
|
+
"README",
|
|
14
|
+
"monodog-config.example.json",
|
|
15
|
+
"monodog-config.json",
|
|
16
|
+
"package.json"
|
|
17
|
+
],
|
|
7
18
|
"repository": {
|
|
8
19
|
"type": "git",
|
|
9
20
|
"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
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Monodog: Monorepo Health Dashboard (Frontend)
|
|
2
|
-
|
|
3
|
-
## 🎯 Overview
|
|
4
|
-
|
|
5
|
-
This is the **client-side application** designed to consume data from the **Monorepo Analytics and Health API** backend service.
|
|
6
|
-
It provides a **real-time, visual dashboard** for tracking the health, dependencies, and overall status of all packages within the monorepo.
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 🛠 Technology Stack
|
|
11
|
-
|
|
12
|
-
| Component | Technology | Description |
|
|
13
|
-
| ----------------- | ----------------------------- | --------------------------------------------------------------------- |
|
|
14
|
-
| **Framework** | React (Functional Components) | Core library for building the user interface. |
|
|
15
|
-
| **Styling** | Tailwind CSS | Utility-first framework for responsive, modern, and aesthetic design. |
|
|
16
|
-
| **Data Fetching** | Fetch API (Native JavaScript) | Handles communication with the backend Express API. |
|
|
17
|
-
| **Icons** | Lucide React | Simple, clean vector icons for visualization. |
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## ⚙️ Prerequisites
|
|
22
|
-
|
|
23
|
-
To run this application, ensure the following:
|
|
24
|
-
|
|
25
|
-
- **Node.js** and a package manager (`npm`, `yarn`, or `pnpm`) are installed.
|
|
26
|
-
- The **Monorepo Analytics API** backend service is running and accessible.
|
|
27
|
-
- Default backend URL: **http://localhost:8999**
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## API Connection Details
|
|
32
|
-
|
|
33
|
-
The dashboard connects to the backend API using the following base URL:
|
|
34
|
-
|
|
35
|
-
```javascript
|
|
36
|
-
const API_BASE_URL = 'http://localhost:8999/api';
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Getting Started
|
|
40
|
-
|
|
41
|
-
### Installation
|
|
42
|
-
|
|
43
|
-
Clone the repository and install the dependencies:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# Clone the repository
|
|
47
|
-
git clone https://github.com/mindfiredigital/MonoDog.git
|
|
48
|
-
cd packages/monoapp/monodog-dashboard
|
|
49
|
-
|
|
50
|
-
# Install dependencies
|
|
51
|
-
npm install
|
|
52
|
-
|
|
53
|
-
# build
|
|
54
|
-
npm run build
|
|
55
|
-
|
|
56
|
-
# run dashboard
|
|
57
|
-
npm run dev
|
|
58
|
-
```
|