Skip to content

Commit 6aa861a

Browse files
rewrite
1 parent 69e5b5f commit 6aa861a

File tree

304 files changed

+48361
-107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+48361
-107
lines changed

.editorconfig

+688-8
Large diffs are not rendered by default.

.env.example

Whitespace-only changes.

.eslintrc.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "next/core-web-vitals",
3+
"rules": {
4+
"@next/next/no-img-element": "off",
5+
"@next/next/no-page-custom-font": "off",
6+
"jsx-a11y/alt-text": "off",
7+
"react/display-name": "off",
8+
"react/no-children-prop": "off",
9+
"react/no-unescaped-entities": "off",
10+
"react/jsx-max-props-per-line": [
11+
0,
12+
{
13+
"maximum": 10
14+
}
15+
]
16+
}
17+
}

.gitattributes

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# Enforce Unix newlines
2-
* text=auto eol=lf
1+
* text=lf

.gitignore

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
5-
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
build
68
# testing
7-
/coverage
9+
coverage
810

911
# production
10-
/build
12+
.next
13+
out
1114

1215
# misc
13-
.eslintcache
1416
.DS_Store
15-
.idea
17+
.eslintcache
18+
.env
1619
.env.local
1720
.env.development.local
1821
.env.test.local
@@ -21,4 +24,3 @@
2124
npm-debug.log*
2225
yarn-debug.log*
2326
yarn-error.log*
24-
__*

.vscode/launch.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "PowerShell: Execute current file",
6+
"type": "PowerShell",
7+
"request": "launch",
8+
"script": "${file}",
9+
"cwd": "${file}"
10+
},
11+
{
12+
"command": "npm run start-swa",
13+
"name": "Run Emulator",
14+
"request": "launch",
15+
"type": "node-terminal"
16+
},
17+
{
18+
"command": "npm start",
19+
"name": "Run Frontend",
20+
"request": "launch",
21+
"type": "node-terminal",
22+
"preLaunchTask": "Run All Tasks",
23+
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
24+
},
25+
{
26+
"type": "chrome",
27+
"request": "launch",
28+
"name": "Launch Chrome Debugger",
29+
"url": "http://localhost:4280"
30+
},
31+
{
32+
"type": "PowerShell",
33+
"name": "Launch in Windows Terminal",
34+
"request": "launch",
35+
"cwd": "${cwd}",
36+
"script": ". '${cwd}\\Tools\\Start-CowDevEmulators.ps1'"
37+
}
38+
],
39+
"compounds": [
40+
{
41+
"name": "Launch it all 🚀",
42+
"configurations": ["Run Frontend", "Run Emulator"]
43+
}
44+
]
45+
}

.vscode/tasks.json

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run All Tasks",
6+
"dependsOn": ["Run API", "Run Azurite"]
7+
},
8+
{
9+
"label": "Run Azurite",
10+
"type": "shell",
11+
"command": "azurite --location ../",
12+
"isBackground": true,
13+
"problemMatcher": {
14+
"pattern": [
15+
{
16+
"regexp": ".",
17+
"file": 1,
18+
"location": 2,
19+
"message": 3
20+
}
21+
],
22+
"background": {
23+
"activeOnStart": true,
24+
"beginsPattern": ".",
25+
"endsPattern": "."
26+
}
27+
}
28+
},
29+
{
30+
"label": "Run API",
31+
"type": "shell",
32+
"command": "func start --verbose",
33+
"isBackground": true,
34+
"options": {
35+
"cwd": "${workspaceFolder}/../CoW-API"
36+
},
37+
"problemMatcher": {
38+
"pattern": [
39+
{
40+
"regexp": ".",
41+
"file": 1,
42+
"location": 2,
43+
"message": 3
44+
}
45+
],
46+
"background": {
47+
"activeOnStart": true,
48+
"beginsPattern": ".",
49+
"endsPattern": "."
50+
}
51+
}
52+
}
53+
]
54+
}

README.md

+30-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,34 @@
1-
![CyberDrain Light](github_assets/img/CIPP.png#gh-dark-mode-only)
2-
![CyberDrain Dark](github_assets/img/CIPP-Light.png#gh-light-mode-only)
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
32

4-
# What is this?
3+
## Getting Started
54

6-
The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners. The current Microsoft partner landscape makes it fairly hard to manage multi tenant situations, with loads of manual work. Microsoft Lighthouse might resolve this in the future but development of this is lagging far behind development of the current market for Microsoft Partners.
7-
This project is a way to help you with administration, with user management, and deploying your own preferred standards. It's not a replacement for security tools, or a way to cut costs on specific subscriptions. The tool should assist you in removing the gripes with standard partner management and save you several hours per engineer per month.
8-
For more information, we recommend checking out our website [here](https://cipp.app)
9-
For detailed documentation about features of CIPP, please check out our [documentation.](https://docs.cipp.app)
5+
First, run the development server:
106

11-
# Our sponsors
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
```
1212

13-
You can find our sponsors [here.](https://docs.cipp.app/#our-sponsors)
13+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
14+
15+
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
16+
17+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
18+
19+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20+
21+
## Learn More
22+
23+
To learn more about Next.js, take a look at the following resources:
24+
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27+
28+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29+
30+
## Deploy on Vercel
31+
32+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33+
34+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

next.config.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/** @type {import('next').NextConfig} */
2+
const config = {
3+
reactStrictMode: false,
4+
webpack(config) {
5+
config.module.rules.push({
6+
test: /\.svg$/,
7+
use: ["@svgr/webpack"],
8+
});
9+
return config;
10+
},
11+
async redirects() {
12+
return [];
13+
},
14+
};
15+
16+
module.exports = config;

0 commit comments

Comments
 (0)