Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function TitleElement(props) {
data-id={element.id}
data-path={JSON.stringify(path)}
data-element={element.type}
data-placeholder={shouldShowPlaceholder ? "Untitled Workspace" : ""}
data-placeholder={shouldShowPlaceholder ? "Untitled Widget" : ""}
>
{children}
</h1>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Layouts/AccountLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ const Layout: React.FC<LayoutProps> = ({
width={22}
/>{" "}
<span className="ml-2 truncate text-sm text-darkergray dark:text-foreground">
New Document
New Widget
</span>
</button>
</SidebarItem>
Expand Down Expand Up @@ -983,7 +983,7 @@ const WorkspacePopover: React.FC<WorkspacePopoverProps> = ({
setPopoverVisible(false);
}}
>
New Document
New Widget
</button>
<button
className="flex w-full cursor-pointer items-center gap-4 rounded-md px-4 py-2 text-left text-sm text-gray-700 transition duration-200 hover:bg-accent hover:text-gray-900 focus:outline-none dark:text-foreground dark:hover:bg-neutral-800"
Expand Down
4 changes: 3 additions & 1 deletion src/server/api/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,6 @@ export const rateLimiterMiddleware = createTRPCUpstashLimiter({
// .use(rateLimiterMiddleware);

export const publicProcedure = t.procedure;
export const protectedProcedure = t.procedure.use(isAuthed);
export const protectedProcedure = t.procedure
.use(isAuthed)
.use(rateLimiterMiddleware);