Skip to content

Commit 3cbb881

Browse files
committed
mostly good progress, stuck on mcp-dev
1 parent 1fee29c commit 3cbb881

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+22877
-614
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ data.db
1313
# file as well, but since this is for a workshop
1414
# we're going to keep them around.
1515
# .env
16+
**/dist/**
17+
**/.wrangler/**

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
**/public/build/**
66
**/package-lock.json
77
**/playwright-report/**
8+
**/*.worker-configuration.d.ts
9+
**/.wrangler/**

epicshop/.diffignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker-configuration.d.ts

epicshop/epic-me/app/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default function Home({ loaderData }: Route.ComponentProps) {
189189

190190
{user.entries.length > 0 ? (
191191
<div className="space-y-3">
192-
<h4 className="text-sm font-medium tracking-wide text-gray-600 uppercase dark:text-gray-400">
192+
<h4 className="text-sm font-medium uppercase tracking-wide text-gray-600 dark:text-gray-400">
193193
Entries ({user.entries.length})
194194
</h4>
195195
<div className="grid gap-3">
@@ -270,7 +270,7 @@ export default function Home({ loaderData }: Route.ComponentProps) {
270270

271271
{user.tags.length > 0 && (
272272
<div className="mt-6">
273-
<h4 className="mb-3 text-sm font-medium tracking-wide text-gray-600 uppercase dark:text-gray-400">
273+
<h4 className="mb-3 text-sm font-medium uppercase tracking-wide text-gray-600 dark:text-gray-400">
274274
Tags ({user.tags.length})
275275
</h4>
276276
<div className="grid gap-2">

epicshop/epic-me/workers/db/client/dist/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { type Entry, type NewEntry, type Tag, type NewTag, type EntryTag, type NewEntryTag, type EntryWithTags, type User } from './schema.js';
22
export declare class DBClient {
33
private baseUrl;
4-
private oauthToken;
5-
constructor(baseUrl: string, oauthToken: string);
4+
private oauthToken?;
5+
constructor(baseUrl: string, oauthToken?: string);
66
private makeRequest;
77
createEntry(entry: NewEntry): Promise<EntryWithTags>;
88
getEntry(id: number): Promise<EntryWithTags | null>;

epicshop/epic-me/workers/db/client/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var DBClient = /** @class */ (function () {
6969
method: 'POST',
7070
headers: {
7171
'Content-Type': 'application/json',
72-
Authorization: "Bearer ".concat(this.oauthToken),
72+
Authorization: this.oauthToken ? "Bearer ".concat(this.oauthToken) : '',
7373
},
7474
body: JSON.stringify({
7575
method: method,

epicshop/epic-me/workers/db/client/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const errorResponseSchema = z.object({
2222

2323
export class DBClient {
2424
private baseUrl: string
25-
private oauthToken: string
25+
private oauthToken?: string
2626

27-
constructor(baseUrl: string, oauthToken: string) {
27+
constructor(baseUrl: string, oauthToken?: string) {
2828
this.baseUrl = baseUrl.replace(/\/$/, '') // Remove trailing slash
2929
this.oauthToken = oauthToken
3030
}
@@ -37,7 +37,7 @@ export class DBClient {
3737
method: 'POST',
3838
headers: {
3939
'Content-Type': 'application/json',
40-
Authorization: `Bearer ${this.oauthToken}`,
40+
Authorization: this.oauthToken ? `Bearer ${this.oauthToken}` : '',
4141
},
4242
body: JSON.stringify({
4343
method,

0 commit comments

Comments
 (0)