Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Darkmode docs #193

Merged
merged 1 commit into from
Dec 26, 2023
Merged
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
20 changes: 15 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
# environement details
# # # # # #
# Secrets #
# # # # # #
POSTGRES_PASSWORD=my_password
JWT_SECRET=secret_jwt
ENCRYPT_CRYPTO_SECRET_KEY="0123456789abcdef0123456789abcdef"



# API Backend
ENV=dev
DISTRIBUTION=selfhosted

POSTGRES_USER=my_user
POSTGRES_PASSWORD=my_password
POSTGRES_DB=panora_db
POSTGRES_HOST=postgres
JWT_SECRET=secret_jwt
OAUTH_REDIRECT_BASE=http://localhost:3000
ENCRYPT_CRYPTO_SECRET_KEY="0123456789abcdef0123456789abcdef"

# OAuth Providers
# Hubspot
HUBSPOT_CLIENT_ID=
HUBSPOT_CLIENT_SECRET=
# Zoho
ZOHOCRM_CLIENT_ID=
ZOHOCRM_CLIENT_SECRET=
# Pipedrive
PIPEDRIVE_CLIENT_ID=
PIPEDRIVE_CLIENT_SECRET=
# Zendesk
ZENDESK_CLIENT_ID=
ZENDESK_CLIENT_SECRET=
# Freshsales
FRESHSALES_CLIENT_ID=
FRESHSALES_CLIENT_SECRET=

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function FModal({ onClose }: {onClose: () => void}) {
return (
<Tabs defaultValue="define" className="w-[400px] mt-5">
<TabsList className="grid w-full grid-cols-2">
<TabsTrigger value="define">Define Panora Custom Fields</TabsTrigger>
<TabsTrigger value="define">Define Field</TabsTrigger>
<TabsTrigger value="map">Map Fields</TabsTrigger>
</TabsList>
<TabsContent value="define">
Expand Down
Binary file added docs/logo/logo-panora-white-hq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}
},
"modeToggle": {
"default": "light",
"default": "dark",
"isHidden": true
},
"logo": {
"dark": "/logo/logo-panora-white.png",
"dark": "/logo/logo-panora-white-hq.png",
"light": "/logo/logo-panora-white.png"
},
"favicon": "logo/favicon.png",
Expand All @@ -31,8 +31,12 @@
},
"topbarLinks": [
{
"name": "Join Community",
"url": "https://discord.gg/G7fr4HNyTb"
"name": "Home",
"url": "https://panora.dev"
},
{
"name": "Blog",
"url": "https://panora.dev/blog"
}
],
"topbarCtaButton": {
Expand Down
17 changes: 0 additions & 17 deletions docs/welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@ title: 🌼 Welcome to Panora
description: "Panora is an open-source, unified API for shipping customer-facing integrations"
---

<CardGroup cols={2}>
<Card
title="Watch Product Tour"
icon="video"
href="https://youtube.com"
>
Discover Panora in 5 minutes
</Card>
<Card
title="Try Self-Host"
icon="house-laptop"
href="/features/self-host-guide"
>
Run Panora locally
</Card>
</CardGroup>

<img
className="block dark:hidden"
src="/images/panora.png"
Expand Down
123 changes: 122 additions & 1 deletion packages/api/scripts/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CREATE TABLE webhook_endpoints
secret text NOT NULL,
active boolean NOT NULL,
created_at timestamp NOT NULL,
"scope" text NULL,
"scope" text[] NULL,
id_project uuid NOT NULL,
last_update timestamp NULL,
CONSTRAINT PK_webhook_endpoint PRIMARY KEY ( id_webhook_endpoint )
Expand All @@ -60,6 +60,82 @@ COMMENT ON COLUMN webhook_endpoints."scope" IS 'stringified array with events,';



-- ************************************** tcg_users

CREATE TABLE tcg_users
(
id_tcg_user uuid NOT NULL,
name text NULL,
email_address text NULL,
created_at timestamp NULL,
modified_at timestamp NULL,
remote_id text NULL,
CONSTRAINT PK_tcg_users PRIMARY KEY ( id_tcg_user )
);

COMMENT ON TABLE tcg_users IS 'The User object is used to represent an employee within a company.';






-- ************************************** tcg_tickets

CREATE TABLE tcg_tickets
(
id_tcg_ticket uuid NOT NULL,
name text NULL,
status text NULL,
description text NULL,
due_date timestamp NULL,
ticket_type text NULL,
parent_ticket uuid NULL,
tags text NULL,
completed_at timestamp NULL,
priority text NULL,
created_at timestamp NOT NULL,
modified_at timestamp NOT NULL,
assigned_to text[] NULL,
remote_id text NULL,
CONSTRAINT PK_tcg_tickets PRIMARY KEY ( id_tcg_ticket )
);



COMMENT ON COLUMN tcg_tickets.name IS 'Name of the ticket. Usually very short.';
COMMENT ON COLUMN tcg_tickets.status IS 'OPEN, CLOSED, IN_PROGRESS, ON_HOLD';
COMMENT ON COLUMN tcg_tickets.tags IS 'array of tags';
COMMENT ON COLUMN tcg_tickets.assigned_to IS 'Employees assigned to this ticket.

It is a stringified array containing tcg_users';





-- ************************************** tcg_contacts

CREATE TABLE tcg_contacts
(
id_tcg_contact uuid NOT NULL,
name text NULL,
email_address text NULL,
phone_number text NULL,
details text NULL,
created_at timestamp NULL,
modified_at timestamp NULL,
remote_id text NULL,
CONSTRAINT PK_tcg_contact PRIMARY KEY ( id_tcg_contact )
);








-- ************************************** remote_data

CREATE TABLE remote_data
Expand Down Expand Up @@ -206,6 +282,50 @@ COMMENT ON COLUMN users.created_at IS 'DEFAULT NOW() to automatically insert a v



-- ************************************** tcg_comments

CREATE TABLE tcg_comments
(
id_tcg_comment uuid NOT NULL,
body text NULL,
html_body text NULL,
is_private boolean NULL,
created_at timestamp NULL,
modified_at timestamp NULL,
author_type uuid NULL,
remote_id text NULL,
id_tcg_ticket uuid NULL,
id_tcg_contact uuid NULL,
id_tcg_user uuid NULL,
CONSTRAINT PK_tcg_comments PRIMARY KEY ( id_tcg_comment ),
CONSTRAINT FK_41 FOREIGN KEY ( id_tcg_contact ) REFERENCES tcg_contacts ( id_tcg_contact ),
CONSTRAINT FK_40_1 FOREIGN KEY ( id_tcg_ticket ) REFERENCES tcg_tickets ( id_tcg_ticket ),
CONSTRAINT FK_42 FOREIGN KEY ( id_tcg_user ) REFERENCES tcg_users ( id_tcg_user )
);

CREATE INDEX FK_tcg_comment_tcg_contact ON tcg_comments
(
id_tcg_contact
);

CREATE INDEX FK_tcg_comment_tcg_ticket ON tcg_comments
(
id_tcg_ticket
);

CREATE INDEX FK_tcg_comment_tcg_userID ON tcg_comments
(
id_tcg_user
);

COMMENT ON TABLE tcg_comments IS 'The tcg_comment object represents a comment on a ticket.';

COMMENT ON COLUMN tcg_comments.author_type IS 'Who created the comment. Can be a a id_tcg_contact or a id_tcg_user';





-- ************************************** projects

CREATE TABLE projects
Expand Down Expand Up @@ -379,6 +499,7 @@ CREATE TABLE api_keys
(
id_api_key uuid NOT NULL,
api_key_hash text NOT NULL,
name text NULL,
id_project uuid NOT NULL,
id_user uuid NOT NULL,
CONSTRAINT id_ PRIMARY KEY ( id_api_key ),
Expand Down
Loading