forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'KelvinTegelaar:main' into website
- Loading branch information
Showing
384 changed files
with
109,983 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# https://github.com/browserslist/browserslist#readme | ||
|
||
>= 0.5% | ||
last 2 major versions | ||
not dead | ||
Chrome >= 60 | ||
Firefox >= 60 | ||
Firefox ESR | ||
iOS >= 12 | ||
Safari >= 12 | ||
not Explorer <= 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "0.1", | ||
"language": "en", | ||
"ignorePaths": [ | ||
"**/node_modules/**", | ||
"**/vscode-extension/**", | ||
"**/.git/**", | ||
".vscode", | ||
"megalinter", | ||
"package-lock.json", | ||
"report" | ||
], | ||
"words": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PORT=3000 | ||
CHOKIDAR_USEPOLLING=true | ||
BROWSER=none | ||
GENERATE_SOURCEMAP=false | ||
WDS_SOCKET_PORT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
'import/resolver': { | ||
// added for `import {component} from 'src/component' style imports` | ||
'eslint-import-resolver-custom-alias': { | ||
alias: { | ||
src: './src', | ||
}, | ||
extensions: ['.js', '.jsx', '.json'], | ||
}, | ||
}, | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:import/recommended', | ||
'plugin:react/recommended', | ||
'plugin:react/jsx-runtime', | ||
'plugin:react-hooks/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
plugins: ['react-hooks', 'import'], | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'react/prop-types': 'warn', | ||
// this rule is annoying on strings with quotes in them | ||
'react/no-unescaped-entities': 'off', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enforce Unix newlines | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
# These are supported funding model platforms | ||
|
||
github: [kelvintegelaar] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CLA - Contributor License Agreement | ||
description: Sign the CLA for CIPP and CIPP-API | ||
labels: [CLA] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
CONTRIBUTOR LICENSE AGREEMENT ("Agreement") | ||
Version 1.0 | ||
1. Definitions | ||
"Contribution" means any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Kelvin Tegelaar for inclusion in, or documentation of, any of the products owned or managed by Kelvin Tegelaar (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Kelvin Tegelaar or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Kelvin Tegelaar for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution." | ||
"You" (or "Your") means the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Kelvin Tegelaar. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single contributor. This Agreement applies both to future Contributions and Contributions made prior to the date of this Agreement. | ||
2. Grant of Copyright License | ||
Subject to the terms and conditions of this Agreement, You hereby grant to Kelvin Tegelaar and to recipients of software distributed by Kelvin Tegelaar a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works for the purpose of dual licensing the application. | ||
3. Grant of Patent License | ||
You grant Kelvin Tegelaar, and those who receive the Contribution directly or indirectly from Kelvin Tegelaar, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under Your patent claims that are necessarily infringed by the Contribution or the combination of the Contribution with the Project to which it was submitted, to make, have made, use, offer to sell, sell, import, and otherwise dispose of the Contribution alone or with the Project. | ||
4. Other Rights Reserved | ||
Each party reserves all rights not expressly granted in this Agreement. No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are granted by implication, exhaustion, estoppel, or otherwise. | ||
You are not expected to provide support for your Contributions, except to the extent you desire to provide | ||
support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in | ||
writing, you provide your Contributions on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF | ||
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES | ||
OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A | ||
PARTICULAR PURPOSE. | ||
5. Representations | ||
You represent that you are legally entitled to grant the above licenses. If your employer(s) has rights to intellectual property that you create, you represent that you have received permission to make Contributions on behalf of that employer, or that your employer has waived such rights for your Contributions to Kelvin Tegelaar. | ||
You represent that each of Your Contributions is Your original creation. You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions. | ||
6. Project Sale | ||
In the event that the Project is sold or otherwise transferred in ownership in its entirety to a third party, a sum equivalent to fifteen percent (15%) of the total sale price or value of the consideration received shall be set aside. This sum shall be divided amongst all Contributors who have entered into this Agreement, with each Contributor receiving a portion proportional to the relative quantity and significance of their Contributions to the Project, as determined by Kelvin Tegelaar. The method and timeframe of the distribution shall be at the discretion of Kelvin Tegelaar and shall be communicated | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: > | ||
Type "I Agree" in the text area. | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 🐞 Bug report | ||
description: Report errors or unexpected behaviors for CIPP and CIPP-API | ||
labels: [unconfirmed-by-user , bug] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Thanks for reporting. | ||
- Make sure you are able to reproduce this issue on the latest released version of CIPP & CIPP-API. | ||
- Please search the existing issues to see if there has been a similar issue filed | ||
- This is not the location for support. Issues that request support or are not a bug will be closed. | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: > | ||
Please describe the issue and expected result. You can include a screenshot by pasting it. Issues with a description that is too short or does not explain each step in detail will be closed. | ||
Example: | ||
1.) go to Settings | ||
2.) Click on a tenant in access check | ||
3.) Click on the green pixel in the bottom right corner | ||
4.) A bug appears. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Environment data | ||
description: > | ||
Please let us know your environment information. This must follow this format or the ticket will be closed: | ||
Sponsored / Non-sponsored instance | ||
Front end version number: | ||
Back end version number: | ||
Tried Tenant Cache Clear: true/false | ||
Tried Token Cache Clear: true/false | ||
render: PowerShell | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ✨ Feature request | ||
description: Suggest a new feature or improvement | ||
title: '[Feature Request]: ' | ||
labels: [enhancement, no-priority] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Thanks for suggesting a feature! | ||
- Please search the existing feature request to see if there has been a similar issue filed. | ||
- If a feature has been filed before, but not followed up by a contributor, you can develop the feature yourself by checking the development documentation [here](https://docs.cipp.app/dev-documentation/cipp-dev-guide/setting-up-for-local-development). | ||
- Repeat feature requests are allowed if the previous request has been closed for more than 30 days | ||
- drive-by feature requests without effort will be closed. | ||
- A feature request has 14 days to be fullfilled before automatically being closed. if you want to work on the feature yourself use the phrase "I'd like to work on this please!" | ||
- Feature requests that are detrimental to security will also be closed without notice. | ||
- type: textarea | ||
attributes: | ||
label: Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: PowerShell commands you would normally use to achieve above request | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "1" | ||
rules: | ||
- base: main | ||
upstream: KelvinTegelaar:main | ||
mergeMethod: merge | ||
- base: dev | ||
upstream: KelvinTegelaar:dev | ||
mergeMethod: none | ||
- base: website | ||
upstream: KelvinTegelaar:website | ||
mergeMethod: merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: 'Assign Issue to Volunteer' | ||
on: [issue_comment] # yamllint disable-line rule:truthy | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bhermann/issue-volunteer@v0.1.12 | ||
with: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Check for Version Update | ||
on: | ||
pull_request: | ||
branches: [master, main] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
if: github.repository_owner == 'KelvinTegelaar' | ||
name: 'Check for Version Update' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for Changed Files | ||
uses: brettcannon/check-for-changed-files@v1.1.0 | ||
with: | ||
file-pattern: version_latest.txt | ||
failure-message: 'You have not updated version_latest.txt. This is a required file to update at each PR. Please sync your latest changes and update the version number.' | ||
- name: Prevent changes to workflow files | ||
uses: DovnarAlexander/github-action-file-detection@v0.3.0 | ||
with: | ||
wildcard: '.github/workflows/*.yml' | ||
exit_code_found: 1 | ||
exit_code_not_found: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: 'Close stale issues and PRs' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
jobs: | ||
stale: | ||
if: github.repository_owner == 'KelvinTegelaar' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4 | ||
with: | ||
stale-issue-message: 'This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.' | ||
close-issue-message: 'This issue was closed because it has been stalled for 14 days with no activity.' | ||
stale-issue-label: 'no-activity' | ||
exempt-issue-labels: 'planned' | ||
days-before-stale: 9 | ||
days-before-close: 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: 'CodeQL' | ||
on: | ||
pull_request: | ||
branches: [master, main, dev, react] | ||
schedule: | ||
- cron: '26 17 * * 0' | ||
jobs: | ||
analyze: | ||
if: github.repository_owner == 'KelvinTegelaar' | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ['javascript'] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Add Comment | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
jobs: | ||
add-comment_bug: | ||
if: github.repository_owner == 'KelvinTegelaar' && github.event.label.name == 'unconfirmed-by-user' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Add Comment | ||
uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae | ||
with: | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/ | ||
If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug." | ||
Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!". | ||
add-comment_fr: | ||
if: github.repository_owner == 'KelvinTegelaar' && github.event.label.name == 'enhancement' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Add Comment | ||
uses: peter-evans/create-or-update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Label Issues | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
label_issues_bugs: | ||
if: github.repository_owner == 'KelvinTegelaar' && contains(github.event.issue.title, 'Bug') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Label Issues | ||
uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414 | ||
with: | ||
add-labels: 'unconfirmed-by-user' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
label_issues_frs: | ||
if: github.repository_owner == 'KelvinTegelaar' && contains(github.event.issue.title, 'Feature') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Label Issues | ||
uses: andymckay/labeler@5c59dabdfd4dd5bd9c6e6d255b01b9d764af4414 | ||
with: | ||
add-labels: 'enhancement, no-priority' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.