Skip to content

Commit acc94e2

Browse files
Update routes and API endpoints
1 parent f8677ba commit acc94e2

15 files changed

Lines changed: 33 additions & 33 deletions

app/routes/_index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const loader = () => json({});
2222
*/
2323
export default function Index() {
2424
return (
25-
<div className="flex flex-col h-full w-full bg-bolt-elements-background-depth-1">
25+
<div className="flex flex-col h-full w-full bg-codinit-elements-background-depth-1">
2626
<BackgroundRays />
2727
<Header />
2828
<ClientOnly fallback={<BaseChat />}>{() => <Chat />}</ClientOnly>

app/routes/api.bug-report.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function formatIssueBody(data: z.infer<typeof bugReportSchema>): string {
114114
}
115115

116116
if (data.environmentInfo.boltVersion) {
117-
body += `- bolt.diy: ${data.environmentInfo.boltVersion}\n`;
117+
body += `- codinit.dev: ${data.environmentInfo.boltVersion}\n`;
118118
}
119119

120120
if (data.environmentInfo.aiProviders) {
@@ -136,7 +136,7 @@ function formatIssueBody(data: z.infer<typeof bugReportSchema>): string {
136136
body += `**Contact:** ${data.contactEmail}\n\n`;
137137
}
138138

139-
body += '---\n*Submitted via bolt.diy bug report feature*';
139+
body += '---\n*Submitted via codinit.dev bug report feature*';
140140

141141
return body;
142142
}
@@ -207,7 +207,7 @@ export async function action({ request, context }: ActionFunctionArgs) {
207207
// Initialize GitHub client
208208
const octokit = new Octokit({
209209
auth: githubToken,
210-
userAgent: 'bolt.diy-bug-reporter',
210+
userAgent: 'codinit.dev-bug-reporter',
211211
});
212212

213213
// Create GitHub issue

app/routes/api.github-branches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function githubBranchesLoader({ request, context }: { request: Request; co
7272
headers: {
7373
Accept: 'application/vnd.github.v3+json',
7474
Authorization: `Bearer ${githubToken}`,
75-
'User-Agent': 'bolt.diy-app',
75+
'User-Agent': 'codinit.dev-app',
7676
},
7777
});
7878

@@ -96,7 +96,7 @@ async function githubBranchesLoader({ request, context }: { request: Request; co
9696
headers: {
9797
Accept: 'application/vnd.github.v3+json',
9898
Authorization: `Bearer ${githubToken}`,
99-
'User-Agent': 'bolt.diy-app',
99+
'User-Agent': 'codinit.dev-app',
100100
},
101101
});
102102

app/routes/api.github-stats.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function githubStatsLoader({ request, context }: { request: Request; conte
2727
headers: {
2828
Accept: 'application/vnd.github.v3+json',
2929
Authorization: `Bearer ${githubToken}`,
30-
'User-Agent': 'bolt.diy-app',
30+
'User-Agent': 'codinit.dev-app',
3131
},
3232
});
3333

@@ -53,7 +53,7 @@ async function githubStatsLoader({ request, context }: { request: Request; conte
5353
headers: {
5454
Accept: 'application/vnd.github.v3+json',
5555
Authorization: `Bearer ${githubToken}`,
56-
'User-Agent': 'bolt.diy-app',
56+
'User-Agent': 'codinit.dev-app',
5757
},
5858
},
5959
);
@@ -80,7 +80,7 @@ async function githubStatsLoader({ request, context }: { request: Request; conte
8080
headers: {
8181
Accept: 'application/vnd.github.v3+json',
8282
Authorization: `Bearer ${githubToken}`,
83-
'User-Agent': 'bolt.diy-app',
83+
'User-Agent': 'codinit.dev-app',
8484
},
8585
});
8686

app/routes/api.github-template.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function fetchRepoContentsCloudflare(repo: string, githubToken?: string) {
2222
const repoResponse = await fetch(`${baseUrl}/repos/${repo}`, {
2323
headers: {
2424
Accept: 'application/vnd.github.v3+json',
25-
'User-Agent': 'bolt.diy-app',
25+
'User-Agent': 'codinit.dev-app',
2626
...(githubToken ? { Authorization: `Bearer ${githubToken}` } : {}),
2727
},
2828
});
@@ -38,7 +38,7 @@ async function fetchRepoContentsCloudflare(repo: string, githubToken?: string) {
3838
const treeResponse = await fetch(`${baseUrl}/repos/${repo}/git/trees/${defaultBranch}?recursive=1`, {
3939
headers: {
4040
Accept: 'application/vnd.github.v3+json',
41-
'User-Agent': 'bolt.diy-app',
41+
'User-Agent': 'codinit.dev-app',
4242
...(githubToken ? { Authorization: `Bearer ${githubToken}` } : {}),
4343
},
4444
});
@@ -84,7 +84,7 @@ async function fetchRepoContentsCloudflare(repo: string, githubToken?: string) {
8484
const contentResponse = await fetch(`${baseUrl}/repos/${repo}/contents/${file.path}`, {
8585
headers: {
8686
Accept: 'application/vnd.github.v3+json',
87-
'User-Agent': 'bolt.diy-app',
87+
'User-Agent': 'codinit.dev-app',
8888
...(githubToken ? { Authorization: `Bearer ${githubToken}` } : {}),
8989
},
9090
});
@@ -128,7 +128,7 @@ async function fetchRepoContentsZip(repo: string, githubToken?: string) {
128128
const releaseResponse = await fetch(`${baseUrl}/repos/${repo}/releases/latest`, {
129129
headers: {
130130
Accept: 'application/vnd.github.v3+json',
131-
'User-Agent': 'bolt.diy-app',
131+
'User-Agent': 'codinit.dev-app',
132132
...(githubToken ? { Authorization: `Bearer ${githubToken}` } : {}),
133133
},
134134
});

app/routes/api.github-user.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function githubUserLoader({ request, context }: { request: Request; contex
2626
headers: {
2727
Accept: 'application/vnd.github.v3+json',
2828
Authorization: `Bearer ${githubToken}`,
29-
'User-Agent': 'bolt.diy-app',
29+
'User-Agent': 'codinit.dev-app',
3030
},
3131
});
3232

@@ -117,7 +117,7 @@ async function githubUserAction({ request, context }: { request: Request; contex
117117
headers: {
118118
Accept: 'application/vnd.github.v3+json',
119119
Authorization: `Bearer ${githubToken}`,
120-
'User-Agent': 'bolt.diy-app',
120+
'User-Agent': 'codinit.dev-app',
121121
},
122122
});
123123

@@ -166,7 +166,7 @@ async function githubUserAction({ request, context }: { request: Request; contex
166166
headers: {
167167
Accept: 'application/vnd.github.v3+json',
168168
Authorization: `Bearer ${githubToken}`,
169-
'User-Agent': 'bolt.diy-app',
169+
'User-Agent': 'codinit.dev-app',
170170
},
171171
});
172172

@@ -214,7 +214,7 @@ async function githubUserAction({ request, context }: { request: Request; contex
214214
headers: {
215215
Accept: 'application/vnd.github.v3+json',
216216
Authorization: `Bearer ${githubToken}`,
217-
'User-Agent': 'bolt.diy-app',
217+
'User-Agent': 'codinit.dev-app',
218218
},
219219
},
220220
);

app/routes/api.gitlab-branches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function gitlabBranchesLoader({ request }: { request: Request }) {
4040
headers: {
4141
Authorization: `Bearer ${token}`,
4242
Accept: 'application/json',
43-
'User-Agent': 'bolt.diy-app',
43+
'User-Agent': 'codinit.dev-app',
4444
},
4545
});
4646

@@ -72,7 +72,7 @@ async function gitlabBranchesLoader({ request }: { request: Request }) {
7272
headers: {
7373
Authorization: `Bearer ${token}`,
7474
Accept: 'application/json',
75-
'User-Agent': 'bolt.diy-app',
75+
'User-Agent': 'codinit.dev-app',
7676
},
7777
});
7878

app/routes/api.gitlab-projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function gitlabProjectsLoader({ request }: { request: Request }) {
3232
headers: {
3333
Authorization: `Bearer ${token}`,
3434
Accept: 'application/json',
35-
'User-Agent': 'bolt.diy-app',
35+
'User-Agent': 'codinit.dev-app',
3636
},
3737
});
3838

app/routes/api.netlify-deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function action({ request }: ActionFunctionArgs) {
2121

2222
// If no siteId provided, create a new site
2323
if (!targetSiteId) {
24-
const siteName = `bolt-diy-${chatId}-${Date.now()}`;
24+
const siteName = `codinit-diy-${chatId}-${Date.now()}`;
2525
const createSiteResponse = await fetch('https://api.netlify.com/api/v1/sites', {
2626
method: 'POST',
2727
headers: {
@@ -70,7 +70,7 @@ export async function action({ request }: ActionFunctionArgs) {
7070

7171
// If no siteId provided or site doesn't exist, create a new site
7272
if (!targetSiteId) {
73-
const siteName = `bolt-diy-${chatId}-${Date.now()}`;
73+
const siteName = `codinit-diy-${chatId}-${Date.now()}`;
7474
const createSiteResponse = await fetch('https://api.netlify.com/api/v1/sites', {
7575
method: 'POST',
7676
headers: {

app/routes/api.netlify-user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function netlifyUserLoader({ request, context }: { request: Request; conte
2222
const response = await fetch('https://api.netlify.com/api/v1/user', {
2323
headers: {
2424
Authorization: `Bearer ${netlifyToken}`,
25-
'User-Agent': 'bolt.diy-app',
25+
'User-Agent': 'codinit.dev-app',
2626
},
2727
});
2828

@@ -91,7 +91,7 @@ async function netlifyUserAction({ request, context }: { request: Request; conte
9191
headers: {
9292
Authorization: `Bearer ${netlifyToken}`,
9393
'Content-Type': 'application/json',
94-
'User-Agent': 'bolt.diy-app',
94+
'User-Agent': 'codinit.dev-app',
9595
},
9696
});
9797

0 commit comments

Comments
 (0)