Skip to content

Commit

Permalink
chore: added syncfusion license to .env and added files to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
bencodes07 committed May 17, 2024
1 parent 69c5724 commit c0528ab
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ REFRESH_DOMAIN="/refresh"
FRONTEND_DOMAIN="http://localhost:3000"
BACKEND_DOMAIN="https://meetmate.bencodes.de"
GRAPHQL_URL="http://localhost:8080/graphql"
SYNCFUSION_LICENSE="Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXpfcHRSR2BdVUVxW0E="
NEXT_PUBLIC_SYNCFUSION_LICENSE="Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXpfcHRSR2BdVUVxW0E="
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ REFRESH_DOMAIN="/refresh"
FRONTEND_DOMAIN="https://meetmate.dev"
BACKEND_DOMAIN="https://meetmate.bencodes.de"
GRAPHQL_URL="http://localhost:8080/graphql"
SYNCFUSION_LICENSE="Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXpfcHRSR2BdVUVxW0E="
NEXT_PUBLIC_SYNCFUSION_LICENSE="Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXpfcHRSR2BdVUVxW0E="
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ next-env.d.ts
bun.lockb

/.idea

.env.development
.env.production
.env.local
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ MeetMate is an innovative platform dedicated to small brands wanting to improve
```
yarn install
```
4. Add a .env file
```dotenv
JWT_SECRET="mysecretvalue"
JWT_EXPIRATION_MS=60000
JWT_REFRESH_EXPIRATION_MS=1209600000
REFRESH_DOMAIN="/refresh"
FRONTEND_DOMAIN="http://localhost:3000" // for production use real domain
BACKEND_DOMAIN="https://meetmate.bencodes.de"
GRAPHQL_URL="http://localhost:8080/graphql"
NEXT_PUBLIC_SYNCFUSION_LICENSE="mysecretvalue"
```

### Running the Application

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@hookform/resolvers": "^3.3.4",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@next/eslint-plugin-next": "^14.2.3",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
Expand All @@ -47,6 +47,12 @@
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@react-three/drei": "^9.105.6",
"@react-three/fiber": "8.15.16",
"@reduxjs/toolkit": "^2.2.4",
"@splinetool/r3f-spline": "1.0.2",
"@splinetool/react-spline": "2.2.6",
"@splinetool/runtime": "1.0.42",
"@syncfusion/ej2-base": "^25.2.3",
"@syncfusion/ej2-react-buttons": "^25.2.3",
"@syncfusion/ej2-react-calendars": "^25.2.3",
Expand All @@ -55,26 +61,20 @@
"@syncfusion/ej2-react-navigations": "^25.2.3",
"@syncfusion/ej2-react-schedule": "^25.2.3",
"@syncfusion/ej2-react-splitbuttons": "^25.2.3",
"date-fns": "^3.6.0",
"@react-three/drei": "^9.105.6",
"@react-three/fiber": "8.15.16",
"@reduxjs/toolkit": "^2.2.4",
"@splinetool/r3f-spline": "1.0.2",
"@splinetool/react-spline": "2.2.6",
"@splinetool/runtime": "1.0.42",
"@tweenjs/tween.js": "23.1.1",
"class-variance-authority": "^0.7.0",
"classnames": "^2.5.1",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-tailwindcss": "^3.15.1",
"framer-motion": "^11.1.9",
"graphql": "^16.8.1",
"husky": "^9.0.11",
"jsonwebtoken": "^9.0.2",
"locomotive-scroll": "^5.0.0-beta.11",
"moment-timezone": "^0.5.45",
"lucide-react": "^0.378.0",
"moment-timezone": "^0.5.45",
"next": "14.2.3",
"next-sitemap": "^4.2.3",
"react": "^18",
Expand Down
11 changes: 9 additions & 2 deletions src/components/dashboard/scheduler/Scheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ import { FaArrowRight, FaArrowLeft } from "react-icons/fa6";

function Scheduler(props: {
openingHours: { open: string; close: string };
data: Array<{ Id: number; Subject: string; Location: string; StartTime: Date; EndTime: Date; RecurrenceRule: string }>;
data: Array<{
Id: number;
Subject: string;
Location: string;
StartTime: Date;
EndTime: Date;
RecurrenceRule: string;
}>;
}) {
const eventSettings = { dataSource: props.data };

Expand All @@ -27,7 +34,7 @@ function Scheduler(props: {

const predefinedColors = ["#6EE7B7", "#F87171", "#FACC15", "#3B82F6"];

registerLicense("Ngo9BigBOggjHTQxAR8/V1NBaF5cXmZCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWXpfcHRSR2BdVUVxW0E=");
registerLicense(process.env.NEXT_PUBLIC_SYNCFUSION_LICENSE!);

const onEventClick = (args: { cancel: boolean }) => {
args.cancel = true;
Expand Down

0 comments on commit c0528ab

Please sign in to comment.