This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/components/GrowthChart.tsx | |
| import React from 'react'; | |
| import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'; | |
| interface GrowthData { | |
| month: string; | |
| revenue: number; | |
| } | |
| interface GrowthChartProps { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // main.ts | |
| import { JiraClient } from './jiraClient'; | |
| import { OpenAIClient } from './openAIClient'; | |
| import { GitClient } from './gitClient'; | |
| async function main() { | |
| // Configure your clients | |
| const jiraClient = new JiraClient('https://your-jira-instance.atlassian.net', 'your-jira-api-token'); | |
| const openAIClient = new OpenAIClient('your-openai-api-key'); | |
| const gitClient = new GitClient('https://your-git-instance.com', 'your-git-api-token'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // openAIClient.ts | |
| import { OpenAIApi } from '@openai/api'; | |
| export class OpenAIClient { | |
| private openai: OpenAIApi; | |
| constructor(apiKey: string) { | |
| this.openai = new OpenAIApi({ | |
| apiKey: apiKey, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // jiraClient.ts | |
| import axios, { AxiosInstance } from 'axios'; | |
| export class JiraClient { | |
| private apiClient: AxiosInstance; | |
| constructor(baseUrl: string, apiToken: string) { | |
| this.apiClient = axios.create({ | |
| baseURL: `${baseUrl}/rest/api/3/`, | |
| headers: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // gitClient.ts | |
| import { Octokit } from '@octokit/rest'; | |
| export class GitClient { | |
| private octokit: Octokit; | |
| private owner: string; | |
| private repo: string; | |
| constructor(baseURL: string, apiToken: string, owner: string, repo: string) { | |
| this.octokit = new Octokit({ |
OlderNewer