Skip to content

Commit

Permalink
chore: updating license for v22.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 committed Jan 16, 2024
2 parents e3e9eee + da2c7a1 commit 59c1a7d
Show file tree
Hide file tree
Showing 1,497 changed files with 97,698 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bundle.js
.eslintrc.js

# Transpiled code
/cartridges

# Compiled web component bundle file
src/cartridges/int_adyen_controllers/cartridge/js/pages/checkout/bundle.js

# Test files
*.test.js

# remove lines below from ignore after refactor
src/cartridges/int_adyen_overlay
src/cartridges/int_adyen_controllers
src/cartridges/adyen_controllers_changes
95 changes: 95 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
module.exports = {
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true,
},
"extends": [
"prettier",
"airbnb-base",
],
"globals": {
"$": "readonly",
"Resources": "readonly",
"order": "readonly",
"request": "readonly",
"response": "readonly",
"session": "readonly",
"dw": "readonly",
"empty": "readonly",
"Feature": "readonly",
"Scenario": "readonly",
"AdyenCheckout": "readonly",
"storeDetails": "writable",
"showStoreDetails": "readonly",
"checkout": "readonly",
"orderNo": "readonly",
"pspReference": "readonly",
"donationAmounts": "readonly",
"adyenGivingBackgroundUrl": "readonly",
"charityDescription": "readonly",
"adyenGivingLogoUrl": "readonly",
"charityName": "readonly",
"charityWebsite": "readonly",
"customer": "readonly",
"actor": "readonly",
"locate": "readonly",
"describe": "readonly",
"it": "readonly",
"copyCardData": "readonly",
"PIPELET_NEXT": "readonly",
"PIPELET_ERROR": "readonly",
"Urls": "readonly",
"SitePreferences": "readonly",
"document": "readonly",
"window": "readonly",
"location": "readonly",
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
},
},
"plugins": [
"prettier",
],
"ignorePatterns": [
"*.ds"
],
"rules": {
"prettier/prettier": "error",
"no-var": "error",
"prefer-const": "warn",
"complexity": [
"error",
{
"max": 5,
},
],
"eqeqeq": "error",
"curly": "error",
"import/no-unresolved": [
2,
{
"ignore": [
"^dw",
"^base",
"^\\*",
"^mockData"
],
},
],
"import/extensions": ["error", { "js": "never" }],
"import/no-extraneous-dependencies": "off",
"operator-linebreak": "off",
"object-curly-newline": ["error", {
"ImportDeclaration": { multiline: true, "minProperties": 4 }
}],
"implicit-arrow-linebreak": "off",
"no-param-reassign": ["error", { "props": false }]
},
};
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @maassenbas @zaiddreakh @wboereboom @amihajlovski @shanikantsingh @zenit2001
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- 🎉 Thank you for submitting a pull request! 🎉 -->

## Summary
<!--
Describe the changes proposed in this pull request:
- What is the motivation for this change?
- What existing problem does this pull request solve?
-->

**Fixed issue**: <!-- #-prefixed issue number -->
23 changes: 23 additions & 0 deletions .github/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
exclude:
labels:
- ignore-for-release
- excluded
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: New Features 🎉
labels:
- new
- enhancement
- title: Fixes ❤️‍🩹
labels:
- bug
- fix
- title: Refactored 🌪
labels:
- refactor
- title: Other Changes
labels:
- "*"
27 changes: 27 additions & 0 deletions .github/workflows/SFCC.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: SFCC.js CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build and test
run: |
npm install
npm run lint:fix
npm run lint
npm test
env:
CI: true
51 changes: 51 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Code scanning - action"

on:
push:
pull_request:
schedule:
- cron: '0 3 * * 3'

jobs:
CodeQL-Build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea
.DS_Store
node_modules
dw.json
/.vscode/
/coverage/
screenshots/
playwright-report/
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": all
}
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Contribution guidelines

## How to contribute step-by-step

1. Fork the `Adyen/adyen-salesforce-commerce-cloud` repository.
2. Create a new branch from `develop` in your fork. This makes it easier for you to keep track of your changes.
3. Make the desired changes to the code.
* If you are adding new functionality or fixing a bug, we recommend you add unit tests that cover it.
4. Push the changes to your fork.
5. Create a pull request to the `Adyen/adyen-salesforce-commerce-cloud` repository.
6. In your pull request, please describe in detail:
* What problem you’re solving
* Your approach to fixing the problem
* Any tests you wrote
7. Check Allow edits from maintainers.
8. Create the pull request.
9. Ensure that all checks have passed.

After you create your pull request, one of the code owners will review your code.
We aim to review your request within 2-3 business days.
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2023 Adyen
Copyright (c) 2015 Adyen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading

0 comments on commit 59c1a7d

Please sign in to comment.