This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from openchatai/major/new-flows-ui
The new flows builder
- Loading branch information
Showing
175 changed files
with
4,887 additions
and
4,858 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,5 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
.idea |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Next.js: debug server-side", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev" | ||
}, | ||
{ | ||
"name": "Next.js: debug client-side", | ||
"type": "chrome", | ||
"request": "launch", | ||
"url": "http://localhost:3000" | ||
}, | ||
{ | ||
"name": "Next.js: debug full stack", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev", | ||
"serverReadyAction": { | ||
"pattern": "- Local:.+(https?://.+)", | ||
"uriFormat": "%s", | ||
"action": "debugWithChrome" | ||
} | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,60 @@ | ||
# Start with a base node image | ||
FROM node:18-alpine AS base | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
# Install corepack and pnpm | ||
RUN corepack enable | ||
RUN corepack prepare pnpm@8.7.0 --activate | ||
FROM base AS deps | ||
|
||
# Add libc6-compat if necessary for your application | ||
RUN apk add --no-cache libc6-compat | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ | ||
RUN pnpm i --frozen-lockfile | ||
# Copy package files | ||
COPY package.json pnpm-lock.yaml* ./ | ||
|
||
# Install dependencies | ||
# This layer will be cached unless package.json or pnpm-lock.yaml changes | ||
RUN pnpm i --frozen-lockfile | ||
|
||
# Builder image | ||
FROM base AS builder | ||
|
||
WORKDIR /app | ||
|
||
# Copy installed node_modules from deps stage | ||
COPY --from=deps /app/node_modules ./node_modules | ||
COPY . . | ||
|
||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
# Copy the rest of your application's source code | ||
COPY . . | ||
|
||
# RUN yarn build | ||
# Build your application | ||
RUN pnpm run build | ||
|
||
# Production image, copy all the files and run next | ||
# Production image | ||
FROM base AS runner | ||
WORKDIR /app | ||
|
||
# Set environment variables | ||
ENV NODE_ENV production | ||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
ENV PORT 8000 | ||
ENV HOSTNAME "0.0.0.0" | ||
|
||
WORKDIR /app | ||
|
||
RUN addgroup --system --gid 1001 nodejs | ||
RUN adduser --system --uid 1001 nextjs | ||
|
||
COPY --from=builder /app/public ./public | ||
# Create a non-root user | ||
RUN addgroup --system --gid 1001 nodejs && \ | ||
adduser --system --uid 1001 nextjs | ||
|
||
# Copy the build output and necessary files from builder stage | ||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ | ||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static | ||
|
||
# copy public folder | ||
COPY --from=builder --chown=nextjs:nodejs /app/public ./public | ||
USER nextjs | ||
|
||
EXPOSE 8000 | ||
|
||
ENV PORT 8000 | ||
ENV HOSTNAME "0.0.0.0" | ||
|
||
CMD ["node", "server.js"] | ||
CMD ["node", "server.js"] |
This file contains 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
This file contains 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
101 changes: 0 additions & 101 deletions
101
dashboard/app/(copilot)/copilot/[copilot_id]/flows/_parts/AddFlowModal.tsx
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
dashboard/app/(copilot)/copilot/[copilot_id]/flows/_parts/WorkflowsList.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
dashboard/app/(copilot)/copilot/[copilot_id]/flows/_parts/useIsEditing.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
dashboard/app/(copilot)/copilot/[copilot_id]/flows/layout.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.