Skip to content

Commit

Permalink
added to package --accept-data-loss
Browse files Browse the repository at this point in the history
  • Loading branch information
Predrag Tasevski committed Aug 25, 2024
2 parents db44b27 + d90eded commit ecf238a
Show file tree
Hide file tree
Showing 9 changed files with 13,194 additions and 76 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ Please follow these simple steps to get a local copy up and running.

### 1. Setup

- [Fork](https://github.com/boxyhq/saas-starter-kit/fork) the repository
- [Fork](https://github.com/UnicisTech/unicis-platform-ce/fork) the repository
- Clone the repository by using this command:

```bash
git clone https://github.com/<your_github_username>/saas-starter-kit.git
git clone https://github.com/<your_github_username>/unicis-platform-ce
```

### 2. Go to the project folder

```bash
cd saas-starter-kit
cd unicis-platform-ce
```

### 3. Install dependencies
Expand Down
98 changes: 33 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,73 +1,40 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/boxyhq/jackson/assets/66887028/871d9c0f-d351-49bb-9458-2542830d7910">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/boxyhq/jackson/assets/66887028/4073c181-0653-4d5b-b74f-e7e84fe79da8">
<img alt="BoxyHQ Banner" src="https://github.com/boxyhq/jackson/assets/66887028/b40520b7-dbce-400b-88d3-400d1c215ea1">
</picture>

<h3 align="center">
Participating in
</h3>
# Unicis Platform Community (free and open source)

<div align="center">

![Hacktoberfest](https://ziadoua.github.io/m3-Markdown-Badges/badges/Hacktoberfest2023/hacktoberfest20231.svg)
</div>
![Static Badge](https://img.shields.io/badge/Github%20stargazers%2C%20https%3A%2F%2Fgithub.com%2FUnicisTech%2Funicis-platform-ce%2Fstargazers?logo=github&label=GitHub%20Star&link=https%3A%2F%2Fgithub.com%2FUnicisTech%2Funicis-platform-ce%2Fstargazer)
![Static Badge](https://img.shields.io/badge/Github%20fork%2C%20https%3A%2F%2Fgithub.com%2FUnicisTech%2Funicis-platform-ce%2Ffork?logo=github&label=GitHub%20Fork&link=https%3A%2F%2Fgithub.com%2FUnicisTech%2Funicis-platform-ce%2Ffork)
[Mastodon](https://mastodon.xyz/@unicis_tech) |
![X (formerly Twitter) Follow](https://img.shields.io/twitter/follow/UnicisTech)
![Static Badge](https://img.shields.io/badge/LinkedIn%2C%20https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Funicis-tech-o%C3%BC%2F?logo=LinkedIn&label=LinkedIn&link=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Funicis-tech-o%C3%BC%2F) |
<a href="https://discord.com/invite/8TwyeD97HD">Discord</a>

<h3 align="center">

[⬆️ Take a look at our Issues ⬆️](https://github.com/boxyhq/saas-starter-kit/issues)
Unicis Platform Community Edition - an open core, enterprise-ready trust management platform for startups and SMEs.

</h3>

---

# ⭐ Enterprise SaaS Starter Kit

<p>
<a href="https://github.com/boxyhq/saas-starter-kit/stargazers"><img src="https://img.shields.io/github/stars/boxyhq/saas-starter-kit" alt="Github stargazers"></a>
<a href="https://github.com/boxyhq/saas-starter-kit/issues"><img src="https://img.shields.io/github/issues/boxyhq/saas-starter-kit" alt="Github issues"></a>
<a href="https://github.com/boxyhq/saas-starter-kit/blob/main/LICENSE"><img src="https://img.shields.io/github/license/boxyhq/saas-starter-kit" alt="license"></a>
<a href="https://twitter.com/BoxyHQ"><img src="https://img.shields.io/twitter/follow/BoxyHQ?style=social" alt="Twitter"></a>
<a href="https://www.linkedin.com/company/boxyhq"><img src="https://img.shields.io/badge/LinkedIn-blue" alt="LinkedIn"></a>
<a href="https://discord.gg/uyb7pYt4Pa"><img src="https://img.shields.io/discord/877585485235630130" alt="Discord"></a>
</p>

The Open Source Next.js SaaS boilerplate for Enterprise SaaS app development.

Please star ⭐ the repo if you want us to continue developing and improving the SaaS Starter Kit! 😀
Please star ⭐ the repo if you want us to continue developing and improving the Unicis Platform! 😀

## 📖 Additional Resources

Video - [BoxyHQ's SaaS Starter Kit: Your Ultimate Enterprise-Compliant Boilerplate](https://www.youtube.com/watch?v=oF8QIwQIhyo) <br>
Blog - [Enterprise-ready Saas Starter Kit](https://boxyhq.com/blog/enterprise-ready-saas-starter-kit)
- [Unicis Platform getting started documentation](https://www.unicis.tech/docs/unicis_platform)

Next.js-based SaaS starter kit saves you months of development by starting you off with all the features that are the same in every product, so you can focus on what makes your app unique.

## 🛠️ Built With

- [SaaS-Starter-Kit](https://github.com/boxyhq/saas-starter-kit/)
- [Next.js](https://nextjs.org)
- [Tailwind CSS](https://tailwindcss.com)
- [Tailwind CSS](https://tailwindcss.com) and [Atlaskit](https://atlaskit.atlassian.com/)
- [Postgres](https://www.postgresql.org)
- [React](https://reactjs.org)
- [Prisma](https://www.prisma.io)
- [TypeScript](https://www.typescriptlang.org)
- [SAML Jackson](https://github.com/boxyhq/jackson) (Provides SAML SSO, Directory Sync)
- [Svix](https://www.svix.com/) (Provides Webhook Orchestration)
- [Retraced](https://github.com/retracedhq/retraced) (Provides Audit Logs Service)
- Endpoints collection (Provided by [Osquery](https://osquery.io/))

## 🚀 Deployment

<a href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fboxyhq%2Fsaas-starter-kit&env=NEXTAUTH_SECRET,SMTP_HOST,SMTP_PORT,SMTP_USER,SMTP_PASSWORD,SMTP_FROM,DATABASE_URL,APP_URL">
<img width="90" alt="Deploy with Vercel" src="https://vercel.com/button" />
</a>

<a href="https://heroku.com/deploy" alt="Deploy to Heroku">
<img alt="Deploy to Heroku" src="https://www.herokucdn.com/deploy/button.svg" />
</a>

<a href="https://cloud.digitalocean.com/apps/new?repo=https://github.com/boxyhq/saas-starter-kit/tree/main" alt="Deploy to DO">
<img width="200" alt="Deploy to DO" src="https://www.deploytodo.com/do-btn-blue-ghost.svg" />
</a>
To Be Done

## ✨ Getting Started

Expand All @@ -84,17 +51,17 @@ Please follow these simple steps to get a local copy up and running.

#### 1. Setup

- [Fork](https://github.com/boxyhq/saas-starter-kit/fork) the repository
- [Fork](https://github.com/UnicisTech/unicis-platform-ce/fork) the repository
- Clone the repository by using this command:

```bash
git clone https://github.com/<your_github_username>/saas-starter-kit.git
git clone https://github.com/<your_github_username>/unicis-platform-ce.git
```

#### 2. Go to the project folder

```bash
cd saas-starter-kit
cd unicis-platform-ce
```

#### 3. Install dependencies
Expand Down Expand Up @@ -161,9 +128,15 @@ npm run test:e2e

_Note: HTML test report is generated inside the `report` folder. Currently supported browsers for test execution `chromium` and `firefox`_

#### Fully customizable boilerplate out of the box, see images below 👇👇👇
#### Free and open source community edition - all-in-one tools for security, privacy and compliance team

![unicis-platform-beta-poster](https://www.unicis.tech/img/unicis-platform-beta-001.png)

![saas-starter-kit-poster](/public/saas-starter-kit-poster.png)
## Applications

- [Record of Processing Activities](https://www.unicis.tech/docs/rpa)
- [Transfer Impact Assessment](https://www.unicis.tech/docs/tia)
- [Cybersecurity Controls: MVSP](https://www.unicis.tech/docs/csc)

## 🥇 Features

Expand All @@ -185,11 +158,6 @@ _Note: HTML test report is generated inside the `report` folder. Currently suppo
- Roles and Permissions
- Dark mode

## ➡️ Coming Soon

- Billing & subscriptions
- Unit and integration tests

## ✨ Contributing

Thanks for taking the time to contribute! Contributions make the open-source community a fantastic place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Expand All @@ -201,23 +169,23 @@ Please try to create bug reports that are:
- _Unique._ Do not duplicate existing opened issues.
- _Scoped to a Single Bug._ One bug per report.

[Contributing Guide](https://github.com/boxyhq/saas-starter-kit/blob/main/CONTRIBUTING.md)
[Contributing Guide](https://github.com/UnicisTech/unicis-platform-ce/blob/main/CONTRIBUTING.md)

## 🤩 Community

- [Discord](https://discord.gg/uyb7pYt4Pa) (For live discussion with the Open-Source Community and BoxyHQ team)
- [Twitter](https://twitter.com/BoxyHQ) / [LinkedIn](https://www.linkedin.com/company/boxyhq) (Follow us)
- [Youtube](https://www.youtube.com/@boxyhq) (Watch community events and tutorials)
- [GitHub Issues](https://github.com/boxyhq/saas-starter-kit/issues) (Contributions, report issues, and product ideas)
- [Discord](https://discord.com/invite/8TwyeD97HD) (For live discussion with the Open-Source Community and Unicis team)
- [X](https://twitter.com/UnicisTech) / [LinkedIn](https://www.linkedin.com/company/unicis-tech-oü/) / [Mastodon](https://mastodon.xyz/@unicis_tech) (Follow us)
- [Vimeo](https://vimeo.com/user183384852) (Watch community events and tutorials)
- [GitHub Issues](https://github.com/UnicisTech/unicis-platform-ce/issues) (Contributions, report issues, and product ideas)

## 🌍 Contributors

<a href="https://github.com/boxyhq/saas-starter-kit/graphs/contributors">
<img src="https://contrib.rocks/image?repo=boxyhq/saas-starter-kit" />
<a href="https://github.com/UnicisTech/unicis-platform-ce/graphs/contributors">
<img src="https://contrib.rocks/image?repo=UnicisTech/unicis-platform-ce" />
</a>

Made with [contrib.rocks](https://contrib.rocks).

## 🛡️ License

[Apache 2.0 License](https://github.com/boxyhq/saas-starter-kit/blob/main/LICENSE)
[Apache 2.0 License](https://github.com/UnicisTech/unicis-platform-ce/blob/community-edition/LICENSE)
8 changes: 8 additions & 0 deletions components/shared/shell/Brand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ import app from '@/lib/app';
const Brand = () => {
return (
<div className="flex pt-6 shrink-0 items-center text-xl font-bold gap-2">
<<<<<<< HEAD
<img src={app.logoUrl} alt={app.name} />
=======
<img
// className="h-7 w-auto"
src={app.logoUrl}
alt={app.name}
/>
>>>>>>> community-edition
{/* {app.name} */}
</div>
);
Expand Down
13 changes: 13 additions & 0 deletions components/shared/shell/TeamNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<<<<<<< HEAD
import {
Cog6ToothIcon,
CodeBracketIcon,
ChatBubbleBottomCenterTextIcon,
} from '@heroicons/react/24/outline';
import { QueueListIcon, ChartBarIcon } from '@heroicons/react/24/solid';
=======
import { Cog6ToothIcon, CodeBracketIcon, QuestionMarkCircleIcon } from '@heroicons/react/24/outline';
import {
QueueListIcon
} from "@heroicons/react/24/solid";

>>>>>>> community-edition
import { useTranslation } from 'next-i18next';
import NavigationItems from './NavigationItems';
import { NavigationProps, MenuItem } from './NavigationItems';
Expand Down Expand Up @@ -81,6 +89,11 @@ const TeamNavigation = ({ slug, activePathname }: NavigationItemsProps) => {
activePathname?.startsWith(`/teams/${slug}`) &&
activePathname.includes('feedback'),
},
{
name: t('support'),
href: 'https://discord.com/invite/8TwyeD97HD',
icon: QuestionMarkCircleIcon,
},
{
name: t('settings'),
href: `/teams/${slug}/settings`,
Expand Down
90 changes: 90 additions & 0 deletions components/team/Billing.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import { Card, InputWithLabel } from '@/components/shared';
import { getAxiosError } from '@/lib/common';
import { Team } from '@prisma/client';
import axios from 'axios';
import { useFormik } from 'formik';
import { useTranslation } from 'next-i18next';
import { useRouter } from 'next/router';
import React from 'react';
import { Button } from 'react-daisyui';
import toast from 'react-hot-toast';
import type { ApiResponse } from 'types';
import * as Yup from 'yup';

const availableSubscription = [
{
id: 1,
name: "Pre-Seed"
},
{
id: 2,
name: "Growth"
},
{
id: 3,
name: "Scale"
},
]

const Billing = ({ team }: { team: Team }) => {
const router = useRouter();
const { t } = useTranslation('common');

const formik = useFormik({
initialValues: {
name: team.name,
slug: team.slug,
domain: team.domain,
},
validationSchema: Yup.object().shape({
subscription: Yup.string().required('Choose a subscription'),
slug: Yup.string().required('Slug is required'),
domain: Yup.string().nullable(),
}),
enableReinitialize: true,
onSubmit: async (values) => {

},
});

return (
<>
<form onSubmit={formik.handleSubmit}>
<Card heading={t('team-subscription')}>
<Card.Body className="px-3 py-3">
<div className="mt-2 flex flex-col space-y-4">
<p>{t('choose-subscription-message')}</p>
<div className="flex justify-between space-x-3 w-1/2 items-center">
<select
className="select-bordered select flex-grow"
name="subscription"
onChange={formik.handleChange}
required
>
<option value={"Unicis Platform CE"} key={1}>
Unicis Platform CE
</option>
{/* {availableSubscription.map((role) => (
<option value={role.id} key={role.id}>
{role.name}
</option>
))} */}
</select>
<Button
color="primary"
loading={formik.isSubmitting}
disabled={!formik.isValid}
size="md"
>
{t('subscribe')}
</Button>
</div>
</div>
</Card.Body>
</Card>
</form>
</>
);
};

export default Billing;
6 changes: 4 additions & 2 deletions lib/app.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import packageInfo from '../package.json';

//TODO: logo of app

const app = {
version: packageInfo.version,
name: 'Unicis Platform',
<<<<<<< HEAD
logoUrl: '/unicis-platform-logo-hor-cropped-beta.svg',
=======
logoUrl: '/unicis-platform-logo-hor-cropped.svg',
>>>>>>> community-edition
url: 'http://localhost:3002',
};

Expand Down
4 changes: 4 additions & 0 deletions locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
"submit": "Submit",
"choose": "Choose",
"subscribe": "Subscribe",
<<<<<<< HEAD
"confirm-delete-comment": "Confirm delete comment",
"delete-comment-warning": "Are you sure you want to delete this comment?",
"feedback": "Feedback",
Expand All @@ -263,4 +264,7 @@
"wise-payment-details": "Payment link will be added as soon as your request is processed.",
"pay-now": "Pay Now",
"auth-limited": "Too many login attempts. Please try again in 1 minute."
=======
"support": "Support"
>>>>>>> community-edition
}
Loading

0 comments on commit ecf238a

Please sign in to comment.