index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/(legacy)/js | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/(legacy)/js/sync/route.ts | import { getUpdatedState } from "@/app/api/v1/(legacy)/js/sync/lib/sync";
import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { ZJsSyncLegacyInput } from "@formbricks/types/js";
import { NextResponse } from "next/server";
export async function O... | 7,700 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/(legacy)/js/sync | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/(legacy)/js/sync/lib/legacy.ts | import { TJsLegacyState, TJsState } from "@formbricks/types/js";
export const transformLegacySurveys = (state: TJsState): TJsLegacyState => {
const updatedState: any = { ...state };
updatedState.surveys = updatedState.surveys.map((survey) => {
const updatedSurvey = { ...survey };
updatedSurvey.triggers = u... | 7,701 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/(legacy)/js/sync | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/(legacy)/js/sync/lib/sync.ts | import { getActionClasses } from "@formbricks/lib/actionClass/service";
import {
IS_FORMBRICKS_CLOUD,
MAU_LIMIT,
PRICING_APPSURVEYS_FREE_RESPONSES,
PRICING_USERTARGETING_FREE_MTU,
} from "@formbricks/lib/constants";
import { getEnvironment } from "@formbricks/lib/environment/service";
import { getPerson } from ... | 7,702 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/actions/route.ts | import { transformErrorToDetails } from "@/app/lib/api/validator";
import { responses } from "@/app/lib/api/response";
import { createAction } from "@formbricks/lib/action/service";
import { ZActionInput } from "@formbricks/types/actions";
import { NextResponse } from "next/server";
interface Context {
params: {
... | 7,703 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/displays/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { createDisplay } from "@formbricks/lib/display/service";
import { capturePosthogEvent } from "@formbricks/lib/posthogServer";
import { getTeamDetails } from "@formbricks/lib/teamDetail/service"... | 7,704 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/displays | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/displays/[displayId]/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { updateDisplay } from "@formbricks/lib/display/service";
import { ZDisplayUpdateInput } from "@formbricks/types/displays";
import { NextResponse } from "next/server";
interface Context {
par... | 7,705 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/in-app | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/in-app/sync/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { getActionClasses } from "@formbricks/lib/actionClass/service";
import { getEnvironment, updateEnvironment } from "@formbricks/lib/environment/service";
import { getProductByEnvironmentId } fro... | 7,706 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/in-app/sync | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/in-app/sync/[userId]/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { getLatestActionByPersonId } from "@formbricks/lib/action/service";
import { getActionClasses } from "@formbricks/lib/actionClass/service";
import { IS_FORMBRICKS_CLOUD, PRICING_USERTARGETING_F... | 7,707 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/people/route.ts | import { responses } from "@/app/lib/api/response";
import { createPerson } from "@formbricks/lib/person/service";
import { NextRequest } from "next/server";
export async function OPTIONS() {
// cors headers
return responses.successResponse({}, true);
}
export async function POST(req: NextRequest) {
// we need... | 7,708 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/people | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/people/[userId]/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { createPerson, getPersonByUserId, updatePerson } from "@formbricks/lib/person/service";
import { ZPersonUpdateInput } from "@formbricks/types/people";
import { NextResponse } from "next/server"... | 7,709 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/responses/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { sendToPipeline } from "@/app/lib/pipelines";
import { getPerson } from "@formbricks/lib/person/service";
import { capturePosthogEvent } from "@formbricks/lib/posthogServer";
import { createRes... | 7,710 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/responses | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/responses/[responseId]/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { sendToPipeline } from "@/app/lib/pipelines";
import { DatabaseError, InvalidInputError, ResourceNotFoundError } from "@formbricks/types/errors";
import { getSurvey } from "@formbricks/lib/surv... | 7,711 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/storage/route.ts | import { responses } from "@/app/lib/api/response";
import { getSurvey } from "@formbricks/lib/survey/service";
import { getTeamByEnvironmentId } from "@formbricks/lib/team/service";
import { NextRequest, NextResponse } from "next/server";
import uploadPrivateFile from "./lib/uploadPrivateFile";
interface Context {
... | 7,712 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/storage | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/storage/lib/uploadPrivateFile.ts | import { responses } from "@/app/lib/api/response";
import { getUploadSignedUrl } from "@formbricks/lib/storage/service";
const uploadPrivateFile = async (
fileName: string,
environmentId: string,
fileType: string,
plan: "free" | "pro"
) => {
const accessType = "private"; // private files are only accessible... | 7,713 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/storage | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/client/[environmentId]/storage/local/route.ts | // headers -> "Content-Type" should be present and set to a valid MIME type
// body -> should be a valid file object (buffer)
// method -> PUT (to be the same as the signedUrl method)
import { responses } from "@/app/lib/api/response";
import { NextRequest, NextResponse } from "next/server";
import { headers } from "ne... | 7,714 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/integrations | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/integrations/airtable/route.ts | import { NextRequest } from "next/server";
import { authOptions } from "@formbricks/lib/authOptions";
import { getServerSession } from "next-auth";
import { responses } from "@/app/lib/api/response";
import { hasUserEnvironmentAccess } from "@formbricks/lib/environment/auth";
import crypto from "crypto";
import { AIRT... | 7,715 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/integrations/airtable | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/integrations/airtable/callback/route.ts | import { authOptions } from "@formbricks/lib/authOptions";
import { connectAirtable, fetchAirtableAuthToken } from "@formbricks/lib/airtable/service";
import { AIRTABLE_CLIENT_ID, WEBAPP_URL } from "@formbricks/lib/constants";
import { hasUserEnvironmentAccess } from "@formbricks/lib/environment/auth";
import { getServ... | 7,716 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/integrations/airtable | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/integrations/airtable/tables/route.ts | import { authOptions } from "@formbricks/lib/authOptions";
import { getTables } from "@formbricks/lib/airtable/service";
import { hasUserEnvironmentAccess } from "@formbricks/lib/environment/auth";
import { getIntegrationByType } from "@formbricks/lib/integration/service";
import { TIntegrationAirtable } from "@formbri... | 7,717 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/action-classes/route.ts | import { responses } from "@/app/lib/api/response";
import { DatabaseError } from "@formbricks/types/errors";
import { authenticateRequest } from "@/app/api/v1/auth";
import { NextResponse } from "next/server";
import { TActionClass, ZActionClassInput } from "@formbricks/types/actionClasses";
import { createActionClass... | 7,718 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/action-classes | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/action-classes/[actionClassId]/route.ts | import { responses } from "@/app/lib/api/response";
import { NextResponse } from "next/server";
import { deleteActionClass, getActionClass, updateActionClass } from "@formbricks/lib/actionClass/service";
import { TActionClass, ZActionClassInput } from "@formbricks/types/actionClasses";
import { authenticateRequest } fr... | 7,719 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/attribute-classes/route.ts | import { responses } from "@/app/lib/api/response";
import { DatabaseError } from "@formbricks/types/errors";
import { authenticateRequest } from "@/app/api/v1/auth";
import { NextResponse } from "next/server";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { TAttributeClass, ZAttributeClassI... | 7,720 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/attribute-classes | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/attribute-classes/[attributeClassId]/route.ts | import { responses } from "@/app/lib/api/response";
import { handleErrorResponse } from "@/app/api/v1/auth";
import { NextResponse } from "next/server";
import {
deleteAttributeClass,
getAttributeClass,
updateAttributeClass,
} from "@formbricks/lib/attributeClass/service";
import { TAttributeClass, ZAttributeClas... | 7,721 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/me/route.ts | import { getSessionUser, hashApiKey } from "@/app/lib/api/apiHelper";
import { prisma } from "@formbricks/database";
import { headers } from "next/headers";
import { NextResponse } from "next/server";
export async function GET() {
const headersList = headers();
const apiKey = headersList.get("x-api-key");
if (ap... | 7,722 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/people/route.ts | import { authenticateRequest } from "@/app/api/v1/auth";
import { responses } from "@/app/lib/api/response";
import { getPeople } from "@formbricks/lib/person/service";
import { DatabaseError } from "@formbricks/types/errors";
import { TPerson } from "@formbricks/types/people";
export async function GET(request: Reque... | 7,723 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/people | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/people/[personId]/route.ts | import { authenticateRequest, handleErrorResponse } from "@/app/api/v1/auth";
import { responses } from "@/app/lib/api/response";
import { deletePerson, getPerson } from "@formbricks/lib/person/service";
import { TAuthenticationApiKey } from "@formbricks/types/auth";
import { TPerson } from "@formbricks/types/people";
... | 7,724 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/responses/route.ts | import { authenticateRequest } from "@/app/api/v1/auth";
import { responses } from "@/app/lib/api/response";
import { getResponsesByEnvironmentId } from "@formbricks/lib/response/service";
import { DatabaseError } from "@formbricks/types/errors";
import { NextRequest } from "next/server";
export async function GET(req... | 7,725 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/responses | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/responses/[responseId]/route.ts | import { responses } from "@/app/lib/api/response";
import { NextResponse } from "next/server";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { deleteResponse, getResponse, updateResponse } from "@formbricks/lib/response/service";
import { TResponse, ZResponseUpdateInput } from "@formbricks/... | 7,726 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/storage/route.ts | import { responses } from "@/app/lib/api/response";
import { NextRequest, NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@formbricks/lib/authOptions";
import { hasUserEnvironmentAccess } from "@formbricks/lib/environment/auth";
import getSignedUrlForPublicF... | 7,727 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/storage | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/storage/lib/getSignedUrl.ts | import { getUploadSignedUrl } from "@formbricks/lib/storage/service";
import { responses } from "@/app/lib/api/response";
const getSignedUrlForPublicFile = async (fileName: string, environmentId: string, fileType: string) => {
const accessType = "public"; // public files are accessible by anyone
// if s3 is not c... | 7,728 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/storage | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/storage/local/route.ts | // headers -> "Content-Type" should be present and set to a valid MIME type
// body -> should be a valid file object (buffer)
// method -> PUT (to be the same as the signedUrl method)
import { responses } from "@/app/lib/api/response";
import { NextRequest, NextResponse } from "next/server";
import { headers } from "ne... | 7,729 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/surveys/route.ts | import { responses } from "@/app/lib/api/response";
import { authenticateRequest } from "@/app/api/v1/auth";
import { NextResponse } from "next/server";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { createSurvey, getSurveys } from "@formbricks/lib/survey/service";
import { ZSurveyInput } f... | 7,730 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/surveys | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/management/surveys/[surveyId]/route.ts | import { responses } from "@/app/lib/api/response";
import { NextResponse } from "next/server";
import { getSurvey, updateSurvey, deleteSurvey } from "@formbricks/lib/survey/service";
import { TSurvey, ZSurvey } from "@formbricks/types/surveys";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import ... | 7,731 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/memberships/route.ts | import { getSessionUser } from "@/app/lib/api/apiHelper";
import { prisma } from "@formbricks/database";
import { NextResponse } from "next/server";
export async function GET() {
const sessionUser = await getSessionUser();
if (!sessionUser) {
return new Response("Not authenticated", {
status: 401,
})... | 7,732 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/og/route.tsx | import { ImageResponse } from "@vercel/og";
import { NextRequest } from "next/server";
/* import { NextRequest } from "next/server";
import { ImageResponse } from "next/og"; */
// App router includes @vercel/og.
// No need to install it.
export const runtime = "edge";
export async function GET(req: NextRequest) {
l... | 7,733 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users/route.ts | import { sendInviteAcceptedEmail, sendVerificationEmail } from "@/app/lib/email";
import { prisma } from "@formbricks/database";
import { EMAIL_VERIFICATION_DISABLED, INVITE_DISABLED, SIGNUP_ENABLED } from "@formbricks/lib/constants";
import { verifyInviteToken } from "@formbricks/lib/jwt";
import { deleteInvite } from... | 7,734 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users/forgot-password/route.ts | import { sendForgotPasswordEmail } from "@/app/lib/email";
import { prisma } from "@formbricks/database";
import { NextResponse } from "next/server";
export async function POST(request: Request) {
const { email } = await request.json();
try {
const foundUser = await prisma.user.findUnique({
where: {
... | 7,735 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users/me/route.ts | import { getSessionUser } from "@/app/lib/api/apiHelper";
import { MembershipRole } from "@prisma/client";
import { prisma } from "@formbricks/database";
import { NextRequest, NextResponse } from "next/server";
interface Membership {
role: MembershipRole;
userId: string;
}
export async function GET() {
const se... | 7,736 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users/reset-password/route.ts | import { prisma } from "@formbricks/database";
import { verifyToken } from "@formbricks/lib/jwt";
import { NextResponse } from "next/server";
import { sendPasswordResetNotifyEmail } from "@/app/lib/email";
export async function POST(request: Request) {
const { token, hashedPassword } = await request.json();
try {... | 7,737 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/users/verification-email/route.ts | import { sendVerificationEmail } from "@/app/lib/email";
import { prisma } from "@formbricks/database";
import { NextResponse } from "next/server";
export async function POST(request: Request) {
const { email } = await request.json();
// check for user in DB
try {
const user = await prisma.user.findUnique({
... | 7,738 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/webhooks/route.ts | import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { getApiKeyFromKey } from "@formbricks/lib/apiKey/service";
import { DatabaseError, InvalidInputError } from "@formbricks/types/errors";
import { createWebhook, getWebhooks } from "@formbricks/l... | 7,739 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/webhooks | petrpan-code/formbricks/formbricks/apps/web/app/api/v1/webhooks/[webhookId]/route.ts | import { responses } from "@/app/lib/api/response";
import { getApiKeyFromKey } from "@formbricks/lib/apiKey/service";
import { deleteWebhook, getWebhook } from "@formbricks/lib/webhook/service";
import { headers } from "next/headers";
export async function GET(_: Request, { params }: { params: { webhookId: string } }... | 7,740 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/auth.ts | import { compare, hash } from "bcryptjs";
export async function hashPassword(password: string) {
const hashedPassword = await hash(password, 12);
return hashedPassword;
}
export async function verifyPassword(password: string, hashedPassword: string) {
const isValid = await compare(password, hashedPassword);
r... | 7,741 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/email-template.ts | export const withEmailTemplate = (content: string) =>
`<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1"
/>
<base target="_blank" />
... | 7,742 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/email.ts | import { getQuestionResponseMapping } from "@/app/lib/responses/questionResponseMapping";
import {
MAIL_FROM,
SMTP_HOST,
SMTP_PASSWORD,
SMTP_PORT,
SMTP_SECURE_ENABLED,
SMTP_USER,
WEBAPP_URL,
} from "@formbricks/lib/constants";
import { createInviteToken, createToken, createTokenForLinkSurvey } from "@form... | 7,743 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/fetchFile.ts | export const fetchFile = async (
data: { json: any; fields?: string[]; fileName?: string },
filetype: string
) => {
const endpoint = filetype === "csv" ? "csv-conversion" : "excel-conversion";
const response = await fetch(`/api/internal/${endpoint}`, {
method: "POST",
headers: {
"Content-Type": "... | 7,744 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/formbricks.ts | import formbricks from "@formbricks/js";
import { env } from "@formbricks/lib/env.mjs";
export const formbricksEnabled =
typeof env.NEXT_PUBLIC_FORMBRICKS_API_HOST && env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID;
export const createResponse = async (
surveyId: string,
data: { [questionId: string]: any },
finishe... | 7,745 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/pipelines.ts | import { INTERNAL_SECRET, WEBAPP_URL } from "@formbricks/lib/constants";
import { TPipelineInput } from "@formbricks/types/pipelines";
export async function sendToPipeline({ event, surveyId, environmentId, response }: TPipelineInput) {
return fetch(`${WEBAPP_URL}/api/pipeline`, {
method: "POST",
headers: {
... | 7,746 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/preview.ts | import { TPlacement } from "@formbricks/types/common";
export const getPlacementStyle = (placement: TPlacement) => {
switch (placement) {
case "bottomRight":
return "bottom-3 sm:right-3";
case "topRight":
return "sm:top-3 sm:right-3 bottom-3";
case "topLeft":
return "sm:top-3 sm:left-3 ... | 7,747 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/questions.ts | import { TSurveyQuestionType as QuestionId } from "@formbricks/types/surveys";
import {
ArrowUpTrayIcon,
ChatBubbleBottomCenterTextIcon,
CheckIcon,
CursorArrowRippleIcon,
ListBulletIcon,
PhotoIcon,
PresentationChartBarIcon,
QueueListIcon,
StarIcon,
} from "@heroicons/react/24/solid";
import { createId... | 7,748 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/singleUseSurveys.ts | import { env } from "@formbricks/lib/env.mjs";
import { decryptAES128, symmetricDecrypt, symmetricEncrypt } from "@formbricks/lib/crypto";
import cuid2 from "@paralleldrive/cuid2";
// generate encrypted single use id for the survey
export const generateSurveySingleUseId = (isEncrypted: boolean): string => {
const cu... | 7,749 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/templates.ts | import { TSurveyQuestion } from "@formbricks/types/surveys";
import { TTemplate } from "@formbricks/types/templates";
export const replaceQuestionPresetPlaceholders = (question: TSurveyQuestion, product) => {
if (!question) return;
if (!product) return question;
const newQuestion = JSON.parse(JSON.stringify(ques... | 7,750 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/lib/utils.ts | import { TInvite } from "@formbricks/types/invites";
export function isLight(color) {
let r, g, b;
if (color.length === 4) {
r = parseInt(color[1] + color[1], 16);
g = parseInt(color[2] + color[2], 16);
b = parseInt(color[3] + color[3], 16);
} else if (color.length === 7) {
r = parseInt(color[1] ... | 7,751 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/api/apiHelper.ts | import { prisma } from "@formbricks/database";
import { authOptions } from "@formbricks/lib/authOptions";
import { hasUserEnvironmentAccess } from "@formbricks/lib/environment/auth";
import { createHash } from "crypto";
import { NextApiRequest, NextApiResponse } from "next";
import type { Session } from "next-auth";
im... | 7,752 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/api/clientSettings.ts | import { prisma } from "@formbricks/database";
import { TSettings } from "@formbricks/types/js";
export const getSettings = async (environmentId: string, personId: string): Promise<TSettings> => {
// get recontactDays from product
const product = await prisma.product.findFirst({
where: {
environments: {
... | 7,753 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/api/response.ts | import { NextApiResponse } from "next";
import { NextResponse } from "next/server";
export type ApiResponse = ApiSuccessResponse | ApiErrorResponse;
export interface ApiSuccessResponse<T = { [key: string]: any }> {
data: T;
}
export interface ApiErrorResponse {
code:
| "not_found"
| "bad_request"
| "... | 7,754 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/api/validator.ts | import { ZodError } from "zod";
export const transformErrorToDetails = (error: ZodError<any>): { [key: string]: string } => {
const details: { [key: string]: string } = {};
for (const issue of error.issues) {
details[issue.path.join(".")] = issue.message;
}
return details;
};
| 7,755 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/responses/questionResponseMapping.ts | import { TSurveyQuestion } from "@formbricks/types/surveys";
import { TResponse } from "@formbricks/types/responses";
export const getQuestionResponseMapping = (
survey: { questions: TSurveyQuestion[] },
response: TResponse
): { question: string; answer: string }[] => {
const questionResponseMapping: { question:... | 7,756 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/surveys/surveys.ts | import {
DateRange,
SelectedFilterValue,
} from "@/app/(app)/environments/[environmentId]/components/ResponseFilterContext";
import {
OptionsType,
QuestionOptions,
} from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/components/QuestionsComboBox";
import { QuestionFilterOptions } from "@/app/(app... | 7,757 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/lib | petrpan-code/formbricks/formbricks/apps/web/app/lib/users/users.ts | import { hashPassword } from "../auth";
export const createUser = async (
name: string,
email: string,
password: string,
inviteToken?: string | null
): Promise<any> => {
const hashedPassword = await hashPassword(password);
try {
const res = await fetch(`/api/v1/users`, {
method: "POST",
hea... | 7,758 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/middleware/bucket.ts | import rateLimit from "@/app/middleware/rateLimit";
import { CLIENT_SIDE_API_RATE_LIMIT, LOGIN_RATE_LIMIT, SIGNUP_RATE_LIMIT } from "@formbricks/lib/constants";
export const signUpLimiter = rateLimit({
interval: SIGNUP_RATE_LIMIT.interval,
allowedPerInterval: SIGNUP_RATE_LIMIT.allowedPerInterval,
});
export const ... | 7,759 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/middleware/endpointValidator.ts | export const loginRoute = (url: string) => url === "/api/auth/callback/credentials";
export const signupRoute = (url: string) => url === "/api/v1/users";
export const clientSideApiRoute = (url: string): boolean => {
if (url.includes("/api/v1/js/actions")) return true;
if (url.includes("/api/v1/client/storage")) r... | 7,760 |
0 | petrpan-code/formbricks/formbricks/apps/web/app | petrpan-code/formbricks/formbricks/apps/web/app/middleware/rateLimit.ts | import { LRUCache } from "lru-cache";
type Options = {
interval: number;
allowedPerInterval: number;
};
export default function rateLimit(options: Options) {
const tokenCache = new LRUCache({
max: 1000, // Max 1000 unique IP sessions per 15 minutes
ttl: options.interval,
});
return {
check: (to... | 7,761 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/actions.ts | "use server";
interface LinkSurveyEmailData {
surveyId: string;
email: string;
surveyData?: {
name?: string;
subheading?: string;
} | null;
}
interface TSurveyPinValidationResponse {
error?: TSurveyPinValidationResponseError;
survey?: TSurvey;
}
import { TSurveyPinValidationResponseError } from "... | 7,762 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/layout.tsx | import LegalFooter from "@/app/s/[surveyId]/components/LegalFooter";
export default async function SurveyLayout({ children }) {
return (
<div className="flex h-full flex-col justify-between bg-white">
<div className="h-full overflow-y-auto">{children}</div>
<LegalFooter />
</div>
);
}
| 7,763 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/loading.tsx | export default function Loading() {
return (
<div className="flex h-full w-full items-center justify-center">
<div className="flex h-1/2 w-1/4 flex-col">
<div className="ph-no-capture h-16 w-1/3 animate-pulse rounded-lg bg-gray-200 font-medium text-slate-900"></div>
<div className="ph-no-cap... | 7,764 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/not-found.tsx | import React from "react";
import { QuestionMarkCircleIcon } from "@heroicons/react/24/solid";
import footerLogo from "./lib/footerlogo.svg";
import Image from "next/image";
import { Button } from "@formbricks/ui/Button";
import Link from "next/link";
export default function NotFound() {
return (
<div className=... | 7,765 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/page.tsx | export const revalidate = REVALIDATION_INTERVAL;
import { validateSurveySingleUseId } from "@/app/lib/singleUseSurveys";
import LinkSurvey from "@/app/s/[surveyId]/components/LinkSurvey";
import PinScreen from "@/app/s/[surveyId]/components/PinScreen";
import SurveyInactive from "@/app/s/[surveyId]/components/SurveyIn... | 7,766 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/types.ts | export enum TSurveyPinValidationResponseError {
INCORRECT_PIN = "INCORRECT_PIN",
INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
NOT_FOUND = "NOT_FOUND",
}
| 7,767 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/components/LegalFooter.tsx | import { IMPRINT_URL, PRIVACY_URL } from "@formbricks/lib/constants";
import Link from "next/link";
export default function LegalFooter() {
if (!IMPRINT_URL && !PRIVACY_URL) return null;
return (
<div className="h-10 w-full border-t border-slate-200">
<div className="mx-auto max-w-lg p-3 text-center text... | 7,768 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/components/LinkSurvey.tsx | "use client";
import ContentWrapper from "@formbricks/ui/ContentWrapper";
import { SurveyInline } from "@formbricks/ui/Survey";
import SurveyLinkUsed from "@/app/s/[surveyId]/components/SurveyLinkUsed";
import VerifyEmail from "@/app/s/[surveyId]/components/VerifyEmail";
import { getPrefillResponseData } from "@/app/s... | 7,769 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/components/PinScreen.tsx | "use client";
import type { NextPage } from "next";
import { TProduct } from "@formbricks/types/product";
import { TResponse } from "@formbricks/types/responses";
import { OTPInput } from "@formbricks/ui/OTPInput";
import { useCallback, useEffect, useState } from "react";
import { validateSurveyPinAction } from "@/app... | 7,770 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/components/SurveyInactive.tsx | import { TSurveyClosedMessage } from "@formbricks/types/surveys";
import { Button } from "@formbricks/ui/Button";
import { CheckCircleIcon, PauseCircleIcon, QuestionMarkCircleIcon } from "@heroicons/react/24/solid";
import Image from "next/image";
import Link from "next/link";
import footerLogo from "../lib/footerlogo.... | 7,771 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/components/SurveyLinkUsed.tsx | import { TSurveySingleUse } from "@formbricks/types/surveys";
import { CheckCircleIcon } from "@heroicons/react/24/solid";
import Image from "next/image";
import Link from "next/link";
import footerLogo from "../lib/footerlogo.svg";
type SurveyLinkUsedProps = {
singleUseMessage: TSurveySingleUse | null;
};
const Su... | 7,772 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/components/VerifyEmail.tsx | "use client";
import { sendLinkSurveyEmailAction } from "@/app/s/[surveyId]/actions";
import { TSurvey } from "@formbricks/types/surveys";
import { Button } from "@formbricks/ui/Button";
import { Input } from "@formbricks/ui/Input";
import { EnvelopeIcon } from "@heroicons/react/24/solid";
import { useState } from "re... | 7,773 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/lib/footerlogo.svg | <svg width="725" height="150" viewBox="0 0 725 150" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M143 116H157V87.4H183.6V75H157V58.6H184.1V46H143V116ZM217.309 117.3C233.409 117.3 245.009 105.1 245.009 90.1C245.009 75.1 233.409 62.8 217.309 62.8C201.209 62.8 189.609 75.1 189.609 90.1C189.609 105.1 201.209 11... | 7,774 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/lib/helpers.ts | import { verifyTokenForLinkSurvey } from "@formbricks/lib/jwt";
export const getEmailVerificationStatus = async (
surveyId: string,
token: string
): Promise<"verified" | "not-verified" | "fishy"> => {
if (!token) {
return "not-verified";
} else {
try {
const validateToken = await verifyTokenForLi... | 7,775 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId] | petrpan-code/formbricks/formbricks/apps/web/app/s/[surveyId]/lib/prefilling.ts | import { TSurveyQuestionType } from "@formbricks/types/surveys";
import { TResponseData } from "@formbricks/types/responses";
import { TSurvey, TSurveyQuestion } from "@formbricks/types/surveys";
export function getPrefillResponseData(
currentQuestion: TSurveyQuestion,
survey: TSurvey,
firstQuestionPrefill: stri... | 7,776 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/storage/[environmentId]/[accessType] | petrpan-code/formbricks/formbricks/apps/web/app/storage/[environmentId]/[accessType]/[fileName]/route.ts | import { authOptions } from "@formbricks/lib/authOptions";
import { responses } from "@/app/lib/api/response";
import { transformErrorToDetails } from "@/app/lib/api/validator";
import { hasUserEnvironmentAccess } from "@formbricks/lib/environment/auth";
import { ZStorageRetrievalParams } from "@formbricks/types/storag... | 7,777 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/storage/[environmentId]/[accessType]/[fileName] | petrpan-code/formbricks/formbricks/apps/web/app/storage/[environmentId]/[accessType]/[fileName]/lib/deleteFile.ts | import { responses } from "@/app/lib/api/response";
import { storageCache } from "@formbricks/lib/storage/cache";
import { deleteFile } from "@formbricks/lib/storage/service";
import { TAccessType } from "@formbricks/types/storage";
export const handleDeleteFile = async (environmentId: string, accessType: TAccessType,... | 7,778 |
0 | petrpan-code/formbricks/formbricks/apps/web/app/storage/[environmentId]/[accessType]/[fileName] | petrpan-code/formbricks/formbricks/apps/web/app/storage/[environmentId]/[accessType]/[fileName]/lib/getFile.ts | import { env } from "@formbricks/lib/env.mjs";
import { responses } from "@/app/lib/api/response";
import { UPLOADS_DIR } from "@formbricks/lib/constants";
import { getLocalFile, getS3File } from "@formbricks/lib/storage/service";
import { notFound } from "next/navigation";
import path from "path";
const getFile = asy... | 7,779 |
0 | petrpan-code/formbricks/formbricks/apps/web | petrpan-code/formbricks/formbricks/apps/web/images/cal-logo-light.svg | <svg width="101" height="22" viewBox="0 0 101 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.0582 20.817C4.32115 20.817 0 16.2763 0 10.6704C0 5.04589 4.1005 0.467773 10.0582 0.467773C13.2209 0.467773 15.409 1.43945 17.1191 3.66311L14.3609 5.96151C13.2025 4.72822 11.805 4.11158 10.0582 4.11158C6.17833 ... | 7,780 |
0 | petrpan-code/formbricks/formbricks/apps/web | petrpan-code/formbricks/formbricks/apps/web/images/logo.svg | <svg width="101" height="150" viewBox="0 0 101 150" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_2627_5881)">
<path d="M0 101.547H40.4528V122C40.4528 133.046 31.4985 142 20.4528 142H20C8.9543 142 0 133.046 0 122V101.547Z" fill="url(#paint0_linear_2627_5881)"/>
<path d="M0 54.7737H81.1321C92.... | 7,781 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/displays/index.ts | import { capturePosthogEvent } from "@formbricks/lib/posthogServer";
import { prisma } from "@formbricks/database";
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
const environmentId = req.query.environmentId?.toString();... | 7,782 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/displays | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/displays/[displayId]/responded.ts | import { prisma } from "@formbricks/database";
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
const environmentId = req.query.environmentId?.toString();
if (!environmentId) {
return res.status(400).json({ message: ... | 7,783 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/events/index.ts | import { prisma } from "@formbricks/database";
import { TActionClassType } from "@formbricks/types/actionClasses";
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
const environmentId = req.query.environmentId?.toString();
... | 7,784 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/people | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/people/[personId]/attribute.ts | import { getSettings } from "@/app/lib/api/clientSettings";
import { prisma } from "@formbricks/database";
import { personCache } from "@formbricks/lib/person/cache";
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
const e... | 7,785 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/responses/index.ts | import { sendToPipeline } from "@/app/lib/pipelines";
import { prisma } from "@formbricks/database";
import { transformPrismaPerson } from "@formbricks/lib/person/service";
import { capturePosthogEvent } from "@formbricks/lib/posthogServer";
import { captureTelemetry } from "@formbricks/lib/telemetry";
import { TRespon... | 7,786 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/responses | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/responses/[responseId]/index.ts | import { sendToPipeline } from "@/app/lib/pipelines";
import { prisma } from "@formbricks/database";
import { INTERNAL_SECRET, WEBAPP_URL } from "@formbricks/lib/constants";
import { transformPrismaPerson } from "@formbricks/lib/person/service";
import { responseCache } from "@formbricks/lib/response/cache";
import { T... | 7,787 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId] | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/environments/[environmentId]/settings/index.ts | import { getSettings } from "@/app/lib/api/clientSettings";
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
const environmentId = req.query.environmentId?.toString();
if (!environmentId) {
return res.status(400).jso... | 7,788 |
0 | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/surveys | petrpan-code/formbricks/formbricks/apps/web/pages/api/v1/client/surveys/[surveyId]/index.ts | import { prisma } from "@formbricks/database";
import type { NextApiRequest, NextApiResponse } from "next";
export default async function handle(req: NextApiRequest, res: NextApiResponse) {
const surveyId = req.query.surveyId?.toString();
if (!surveyId) {
return res.status(400).json({ message: "Missing survey... | 7,789 |
0 | petrpan-code/formbricks/formbricks/apps/web | petrpan-code/formbricks/formbricks/apps/web/public/next.svg | <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="... | 7,790 |
0 | petrpan-code/formbricks/formbricks/apps/web | petrpan-code/formbricks/formbricks/apps/web/public/thirteen.svg | <svg xmlns="http://www.w3.org/2000/svg" width="40" height="31" fill="none"><g opacity=".9"><path fill="url(#a)" d="M13 .4v29.3H7V6.3h-.2L0 10.5V5L7.2.4H13Z"/><path fill="url(#b)" d="M28.8 30.1c-2.2 0-4-.3-5.7-1-1.7-.8-3-1.8-4-3.1a7.7 7.7 0 0 1-1.4-4.6h6.2c0 .8.3 1.4.7 2 .4.5 1 .9 1.7 1.2.7.3 1.6.4 2.5.4 1 0 1.7-.2 2.5-... | 7,791 |
0 | petrpan-code/formbricks/formbricks/apps/web | petrpan-code/formbricks/formbricks/apps/web/public/vercel.svg | <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-1... | 7,792 |
0 | petrpan-code/formbricks/formbricks/apps/web/public | petrpan-code/formbricks/formbricks/apps/web/public/favicon/browserconfig.xml | <?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#0f172a</TileColor>
</tile>
</msapplication>
</browserconfig>
| 7,793 |
0 | petrpan-code/formbricks/formbricks/apps/web/public | petrpan-code/formbricks/formbricks/apps/web/public/favicon/safari-pinned-tab.svg | <?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
preserveAspectRatio="xMidYMid meet... | 7,794 |
0 | petrpan-code/formbricks/formbricks/apps/web/public | petrpan-code/formbricks/formbricks/apps/web/public/favicon/site.webmanifest | {
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
... | 7,795 |
0 | petrpan-code/formbricks/formbricks | petrpan-code/formbricks/formbricks/docker/README.md | # Self Host Formbricks Production Instance
Follow this guide to get your Formbricks instance up and running with a Postgres DB and SSL certificate using a single script:
## Requirements
Before you proceed, make sure you have the following:
- A Linux Ubuntu Virtual Machine deployed with SSH access.
- An A record se... | 7,796 |
0 | petrpan-code/formbricks/formbricks | petrpan-code/formbricks/formbricks/docker/docker-compose.yml | version: "3.3"
x-environment: &environment
environment:
# The url of your Formbricks instance used in the admin panel
WEBAPP_URL:
# PostgreSQL DB for Formbricks to connect to
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/formbricks?schema=public"
# NextJS Auth
# @see: https://n... | 7,797 |
0 | petrpan-code/formbricks/formbricks | petrpan-code/formbricks/formbricks/docker/production.sh | #!/bin/env bash
set -e
ubuntu_version=$(lsb_release -a 2>/dev/null | grep -v "No LSB modules are available." | grep "Description:" | awk -F "Description:\t" '{print $2}')
# Friendly welcome
echo "🧱 Welcome to the Formbricks single instance installer"
echo ""
echo "🛸 Fasten your seatbelts! We're setting up your Form... | 7,798 |
0 | petrpan-code/formbricks/formbricks/packages | petrpan-code/formbricks/formbricks/packages/api/.eslintrc.cjs | module.exports = {
root: true,
extends: ["formbricks"],
};
| 7,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.