diff --git a/.codeclimate.yml b/.codeclimate.yml
deleted file mode 100644
index 1ff3720ba091f..0000000000000
--- a/.codeclimate.yml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-prepare:
- fetch:
- - url: "https://raw.githubusercontent.com/automattic/jetpack/master/.github/codeclimate-base.yml"
- path: "codeclimate-base.yml"
-
diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index c6f3cf49588a3..0000000000000
--- a/.editorconfig
+++ /dev/null
@@ -1,24 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-# WordPress Coding Standards
-# https://make.wordpress.org/core/handbook/coding-standards/
-
-root = true
-
-[*]
-charset = utf-8
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
-indent_style = tab
-
-[*.yml]
-indent_style = space
-indent_size = 2
-
-[*.md]
-trim_trailing_whitespace = false
-
-[{*.txt,wp-config-sample.php}]
-end_of_line = crlf
diff --git a/.eslines.json b/.eslines.json
deleted file mode 100644
index e9b5fee85d291..0000000000000
--- a/.eslines.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "branches": {
- "default": [ "downgrade-unmodified-lines", "filter-when-format" ],
- "master": [ "filter-parsing-errors" ]
- },
- "processors": {
- "downgrade-unmodified-lines": {
- "remote": "origin/master",
- "rulesNotToDowngrade": [ "no-unused-vars" ]
- },
- "filter-when-format": {
- "rulesToIgnore": [ "indent" ]
- }
- }
-}
diff --git a/.eslintignore b/.eslintignore
deleted file mode 100644
index 053cb775f1a48..0000000000000
--- a/.eslintignore
+++ /dev/null
@@ -1,24 +0,0 @@
-*.min.js
-/3rd-party/debug-bar/debug-bar.js
-/_inc/blocks
-/_inc/build
-/_inc/client/**/test/*.js
-/_inc/jetpack-modules.models.js
-/_inc/jquery.spin.js
-/_inc/postmessage.js
-/_inc/spin.js
-/docker/wordpress-develop/
-/docker/wordpress/
-/languages/
-/modules/custom-css/custom-css/js/core-customizer-css-preview.js
-/modules/custom-css/custom-css/js/core-customizer-css.core-4.9.js
-/modules/custom-css/custom-css/js/core-customizer-css.js
-/modules/lazy-images/js/lazy-images.js
-/modules/widgets/search/js/search-widget-admin.js
-/vendor/
-
-# Temporary ignore until Jest is set up
-/extensions/**/test/
-
-# Temporary ignore until Instant Search is moved into modules
-/_inc/search
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 98a24e8057972..0000000000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,145 +0,0 @@
-module.exports = {
- root: true,
- parser: 'babel-eslint',
- extends: [ 'wpcalypso/react', 'plugin:jsx-a11y/recommended', 'prettier', 'prettier/react' ],
- env: {
- browser: true,
- es6: true,
- mocha: true,
- node: true,
- jquery: true,
- },
- parserOptions: {
- ecmaVersion: 2019,
- ecmaFeatures: {
- jsx: true,
- },
- },
- settings: {
- react: {
- version: 'detect', // React version. "detect" automatically picks the version you have installed.
- },
- },
- plugins: [ 'jsx-a11y', 'lodash', 'jsdoc' ],
- rules: {
- // REST API objects include underscores
- camelcase: 0,
- 'comma-spacing': 2,
- curly: 2,
- 'computed-property-spacing': [ 2, 'always' ],
- 'func-call-spacing': 2,
- 'jsx-quotes': [ 2, 'prefer-double' ],
- 'key-spacing': 2,
- 'keyword-spacing': 2,
- 'lodash/import-scope': [ 2, 'member' ],
- 'max-len': 0, // Ignored for Jetpack
- 'new-cap': [ 2, { capIsNew: false, newIsCap: true } ],
- 'no-else-return': 2,
- 'no-extra-semi': 2,
- 'no-multiple-empty-lines': [ 2, { max: 1 } ],
- 'no-multi-spaces': 2,
- 'no-restricted-imports': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ],
- 'no-restricted-modules': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ],
- 'no-shadow': 2,
- 'no-spaced-func': 2,
- 'no-trailing-spaces': 2,
- // Allows Chai `expect` expressions
- 'no-unused-expressions': 0,
- 'no-unused-vars': 2,
- 'no-var': 2,
- 'object-curly-spacing': [ 2, 'always' ],
- 'operator-linebreak': [
- 2,
- 'after',
- {
- overrides: {
- '?': 'before',
- ':': 'before',
- },
- },
- ],
- 'padded-blocks': [ 2, 'never' ],
- 'prefer-const': 2,
- 'react/jsx-curly-spacing': [ 2, 'always' ],
- 'react/jsx-no-bind': 2,
- // 'react/jsx-space-before-closing': 2,
- 'react/jsx-tag-spacing': [ 2, { beforeSelfClosing: 'always' } ],
- 'react/no-danger': 2,
- 'react/no-did-mount-set-state': 2,
- 'react/no-did-update-set-state': 2,
- 'react/no-is-mounted': 2,
- 'react/prefer-es6-class': 1,
- semi: 2,
- 'semi-spacing': 2,
- 'space-before-blocks': [ 2, 'always' ],
- 'space-in-parens': [ 2, 'always' ],
- 'space-infix-ops': [ 2, { int32Hint: false } ],
- 'space-unary-ops': [
- 2,
- {
- overrides: {
- '!': true,
- },
- },
- ],
- 'template-curly-spacing': [ 2, 'always' ],
- 'wpcalypso/i18n-ellipsis': 2,
- 'wpcalypso/i18n-no-collapsible-whitespace': 2,
- 'wpcalypso/i18n-no-this-translate': 2,
- 'wpcalypso/i18n-no-variables': 2,
- 'wpcalypso/i18n-mismatched-placeholders': 2,
- 'wpcalypso/import-docblock': 2,
- 'wpcalypso/jsx-gridicon-size': 0, // Ignored for Jetpack
- 'wpcalypso/jsx-classname-namespace': 0, // Ignored for Jetpack
- 'jsx-a11y/label-has-for': [
- 2,
- {
- required: {
- some: [ 'nesting', 'id' ],
- },
- },
- ],
- // Disabled rules for now. Ideally we should resolve all the errors these rules create.
- 'wpcalypso/redux-no-bound-selectors': 0,
- 'jsx-a11y/anchor-has-content': 0,
- 'react/no-string-refs': 0,
- 'jsx-a11y/anchor-is-valid': 0,
-
- // JSDoc plugin overrides
- 'jsdoc/check-alignment': 1, // Recommended
- 'jsdoc/check-examples': 1,
- 'jsdoc/check-indentation': 1,
- 'jsdoc/check-param-names': 1, // Recommended
- 'jsdoc/check-syntax': 1,
- 'jsdoc/check-tag-names': 1, // Recommended
- 'jsdoc/check-types': 1, // Recommended
- 'jsdoc/implements-on-classes': 1, // Recommended
- 'jsdoc/newline-after-description': 1, // Recommended
- 'jsdoc/no-undefined-types': 1, // Recommended
- 'jsdoc/require-description': 1,
- 'jsdoc/require-hyphen-before-param-description': 1,
- 'jsdoc/require-jsdoc': 1, // Recommended
- 'jsdoc/require-param': 1, // Recommended
- 'jsdoc/require-param-description': 1, // Recommended
- 'jsdoc/require-param-name': 1, // Recommended
- 'jsdoc/require-param-type': 1, // Recommended
- 'jsdoc/require-returns': 1, // Recommended
- 'jsdoc/require-returns-check': 1, // Recommended
- 'jsdoc/require-returns-description': 1, // Recommended
- 'jsdoc/require-returns-type': 1, // Recommended
- 'jsdoc/valid-types': 1, // Recommended
- 'jsdoc/check-values': 1,
-
- // eslint 6.x migration
- 'no-unused-vars': 1,
- 'no-useless-escape': 1,
- 'no-extra-boolean-cast': 1,
- 'no-case-declarations': 1,
- 'no-class-assign': 1,
- 'no-redeclare': 1,
-
- // Workaround for ESLint failing to parse files with template literals
- // with this error: "TypeError: Cannot read property 'range' of null"
- 'template-curly-spacing': 'off',
- },
-};
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
deleted file mode 100644
index 322e44682b1b1..0000000000000
--- a/.github/CODEOWNERS
+++ /dev/null
@@ -1,18 +0,0 @@
-############################################
-# Please fire off a PR to this file to own #
-# or disavow any section of the codebase. #
-############################################
-
-# Individual Modules:
-/modules/contact-form/ @georgestephanis
-/modules/custom-css/ @georgestephanis
-/modules/search/ @Automattic/jetpack-search
-
-# Other bits of the Codebase
-/_inc/lib/debugger/ @kraftbj
-/_inc/lib/jetpack-wpes-query-builder/ @gibrown
-
-# Functionality that is important to our partners
-/class.jetpack-cli.php @automattic/jetpack-infinity
-/bin/partner-provision.sh @automattic/jetpack-infinity
-/bin/partner-cancel.sh @automattic/jetpack-infinity
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 608dcf54f9ffa..0000000000000
--- a/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-#### Steps to reproduce the issue
-
-1.
-2.
-3.
-
-#### What I expected
-
-#### What happened instead
-
-
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index 6bb4a341ff033..0000000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve
-
----
-
-
-
-#### Steps to reproduce the issue
-
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
-
-#### What I expected
-
-
-#### What happened instead
-
-
-**Screenshots**
-If applicable, add screenshots to help explain your problem.
-
-
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
index 684861f2fc7bd..0000000000000
--- a/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-
----
-
-#### Is your feature request related to a problem? Please describe.
-
-
-#### Describe the solution you'd like
-
-
-#### Describe alternatives you've considered
-
-
-#### Additional context
-
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 731ba0b6d8f33..0000000000000
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-Fixes #
-
-#### Changes proposed in this Pull Request:
-
-*
-
-#### Is this a new feature or does it add/remove features to an existing part of Jetpack?
-* If you're an Automattician, include a shortlink to the p2 discussion with Jetpack Product here.
-
-#### Does this pull request change what data or activity we track or use?
-
-
-
-#### Testing instructions:
-
-
-
-
-
-
-* Go to '..'
-*
-
-#### Proposed changelog entry for your changes:
-
-*
diff --git a/.github/codeclimate-base.yml b/.github/codeclimate-base.yml
deleted file mode 100644
index 6c4738419692a..0000000000000
--- a/.github/codeclimate-base.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-# Basic configuration for CodeClimate.
-# This basic configuration can then be used and extended up in other repositories,
-# or in this one, using the prepare step:
-# https://docs.codeclimate.com/docs/configuring-the-prepare-step
-#
-# Here is how your codeclimate file extending Jetpack's one should look like:
-# prepare:
-# fetch:
-# - url: "https://raw.githubusercontent.com/automattic/jetpack/master/.github/codeclimate-base.yml"
-# path: "codeclimate-base.yml"
----
-engines:
- csslint:
- enabled: true
- duplication:
- enabled: true
- config:
- languages:
- - javascript
- - php
- fixme:
- enabled: true
- phpcodesniffer:
- enabled: true
- config:
- standard: "WordPress"
- phpmd:
- enabled: true
- eslint:
- enabled: true
- channel: "eslint-5"
- config:
- config: "/.eslintrc.js"
- scss-lint:
- enabled: true
- markdownlint:
- enabled: true
-ratings:
- paths:
- - "**.css"
- - "**.scss"
- - "**.inc"
- - "**.js"
- - "**.jsx"
- - "**.php"
- - "**.md"
-exclude_paths:
- - "**/.github/**"
- - "**/tests/**"
- - "**.png"
- - "**.jpg"
- - "**.gif"
- - "gulpfile.js"
- - "composer.lock"
- - ".phpcs.xml.dist"
- - "**.json"
- - "**.svnignore"
- - "**.travis.yml"
- - "**.gitignore"
- - "**.eslintrc.js"
- - "**.editorconfig"
- - "**.pot"
- - "**.txt"
- - "**-min.js"
- - "**-min.css"
- - "**.dist"
- - "**.sh"
-checks:
- method-lines:
- enabled: false
- file-lines:
- enabled: false
diff --git a/.github/labeler.yml b/.github/labeler.yml
deleted file mode 100644
index a068bbd128f30..0000000000000
--- a/.github/labeler.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-"[Status] Needs Package Release":
-- 'packages/*'
-- 'packages/*/*'
-- 'packages/*/*/*'
-- 'packages/*/*/*/*'
diff --git a/.github/renovate.json b/.github/renovate.json
deleted file mode 100644
index 168fb2deab3b3..0000000000000
--- a/.github/renovate.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "extends": [ "config:base" ],
- "labels": [ "[Type] Janitorial", "[Status] Needs Review" ],
- "prHourlyLimit": 1,
- "supportPolicy": [ "lts_latest" ],
- "timezone": "UTC",
- "schedule": [ "every weekend" ],
- "updateNotScheduled": false,
- "ignoreDeps": [ "mockery/mockery", "php-mock/php-mock", "phpunit/phpunit" ],
- "packageRules": [
- {
- "extends": "monorepo:wordpress",
- "separateMajorMinor": false,
- "prPriority": 1
- },
- {
- "depTypeList": [ "monorepo:wordpress", "monorepo:react" ],
- "groupName": "React and WordPress monorepos"
- }
- ]
-}
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index 1616317f350fe..0000000000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-# Configuration for probot-stale - https://github.com/probot/stale
-
-# Number of days of inactivity before a stale Issue or Pull Request is closed.
-# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
-daysUntilClose: false
-
-# Number of days of inactivity before an Issue or Pull Request becomes stale
-daysUntilStale: 180 # 6 months
-
-# Issues with these labels will never be considered stale
-exemptLabels:
- - "[Pri] High"
- - "[Pri] BLOCKER"
- - "[Type] Good For Community"
- - "[Type] Good First Bug"
- - "FixTheFlows"
-
-# Set to true to ignore issues in a project (defaults to false)
-exemptProjects: true
-
-# Set to true to ignore issues in a milestone (defaults to false)
-exemptMilestones: false
-
-# Label to use when marking an issue as stale
-staleLabel: "[Status] Stale"
-
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false
-
-# Limit the number of actions per hour, from 1-30. Default is 30
-limitPerRun: 2
-
-# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
-issues:
- # Comment to post when marking an issue as stale. Set to `false` to disable
- markComment: >
-
This issue has been marked as stale. This happened because:
-
-
-
It has been inactive in the past 6 months.
-
It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.
-
-
-
No further action is needed. But it's worth checking if this ticket has clear
- reproduction steps and it is still reproducible. Feel free to close this issue
- if you think it's not valid anymore — if you do, please add a brief
- explanation.
-
-pulls:
- # Number of days of inactivity before an Issue or Pull Request becomes stale
- daysUntilStale: 90 # 3 months
- markComment: >
-
This PR has been marked as stale. This happened because:
-
-
-
It has been inactive in the past 3 months.
-
It hasn’t been labeled `[Pri] Blocker`, `[Pri] High`.
-
-
-
No further action is needed. But it's worth checking if this PR has clear
- testing instructions, is it up to date with master, and it is still valid.
- Feel free to close this issue if you think it's not valid anymore — if you
- do, please add a brief explanation.
diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml
deleted file mode 100644
index f6c1f43bb252f..0000000000000
--- a/.github/workflows/build-master.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Build production to master-built
-on:
- push:
- branches:
- - master
-
-jobs:
- build_master_job:
- runs-on: ubuntu-latest
- name: Build production version of master to master-built branch!
- steps:
- - name: Checkout Jetpack
- uses: actions/checkout@master
- - name: Build production version
- uses: automattic/action-jetpack-build-to-branch@master
- with:
- branch_pull: 'master'
- branch_push: 'master-built'
- commit_message: 'Automated production build from master'
\ No newline at end of file
diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml
deleted file mode 100644
index dcafb97dc984a..0000000000000
--- a/.github/workflows/label.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: "Pull Request Labeler"
-on:
-- pull_request
-
-jobs:
- triage:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/labeler@v2
- with:
- repo-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.github/workflows/needs-review.yml b/.github/workflows/needs-review.yml
deleted file mode 100644
index 24c7755c9d510..0000000000000
--- a/.github/workflows/needs-review.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: "Needs Review Label Actions"
-on:
- push:
- branches-ignore:
- - '**'
- #pull_request:
- #types: [labeled]
-
-jobs:
- comment:
- runs-on: ubuntu-latest
- name: Comment on Needs Review label
- if: github.event.label.name == '[Status] Needs Review'
- steps:
- - name: Comment
- uses: actions/github-script@0.8.0
- with:
- github-token: ${{secrets.GITHUB_TOKEN}}
- script: |
- github.issues.createComment({
- issue_number: context.issue.number,
- owner: context.repo.owner,
- repo: context.repo.repo,
- body: 'Howdy! The Jetpack team has disappeared for a few days to a secret island lair to concoct new ways to make Jetpack one hundred billion percent better. As a result, your Pull Request may not be reviewed right away. Do not worry, we will be back next week to look at your work! Thank you for your understanding.'
- })
diff --git a/.github/workflows/required-review.yml b/.github/workflows/required-review.yml
deleted file mode 100644
index 371efff562811..0000000000000
--- a/.github/workflows/required-review.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-on: pull_request_review
-name: Check required reviews
-jobs:
- check_required_reviews:
- name: Checking required reviews
- runs-on: ubuntu-latest
- steps:
- - name: Check for required review approval
- uses: automattic/action-required-review@master
- env:
- REQUIRED_REVIEW_TEAM_ID: "2787210"
- GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
diff --git a/.github/workflows/update-package.yml b/.github/workflows/update-package.yml
deleted file mode 100644
index f38bae204aeb2..0000000000000
--- a/.github/workflows/update-package.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Update a package when it is updated in the monorepo
-on:
- push:
- branches:
- - master # Every time a PR is merged to master.
- paths:
- - 'packages/**' # Only when package files are modified.
-
-jobs:
- update_package:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@master
- - name: Keep Jetpack Packages up to date
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
- run: |
- sh ./bin/update-package.sh
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index ebe3ee137fa44..0000000000000
--- a/.gitignore
+++ /dev/null
@@ -1,64 +0,0 @@
-## FOLDERS
-/.sass-cache/
-/node_modules
-vendor/bin
-vendor/dealerdirect
-vendor/phpcompatibility
-vendor/sirbrillig
-vendor/squizlabs
-vendor/wp-coding-standards
-vendor/automattic/jetpack-autoloader
-/wpcom-test-backup/
-/.vscode/
-/logs
-
-
-## FILES
-.DS_Store
-*.code-workspace
-# Custom environment for docker-compose (used by docker-compose.yml)
-/.env
-/docker/compose-extras.yml
-languages/messages.pot
-.idea
-*.iml
-npm-debug.log
-tests/php/files/jetpack-150x150.jpg
-*.unison.tmp
-.eslintcache
-yarn-error.log
-.phpcs.xml
-phpcs.xml
-/modules/**/*.min.css.map
-
-## Things for docker-composer
-/docker/data/mysql/*
-!/docker/data/mysql/.gitkeep
-/docker/logs/*
-!/docker/logs/.gitkeep
-# Custom environment for docker containers
-/docker/.env
-/docker/wordpress-develop/*
-!/docker/wordpress-develop/.gitkeep
-/docker/wordpress/*
-
-!/docker/wordpress/.gitkeep
-
-# Don't list files below this comment if they need to be ignored for bundling the Jetpack release.
-# From here on, we only list files that are generated by a build process, ignored in git, but should be present in SVN.
-#
-/_inc/client
-/docker/
-__snapshots__/
-/extensions/**/*.css
-/extensions/**/*.gif
-/extensions/**/*.jpeg
-/extensions/**/*.jpg
-/extensions/**/*.js
-/extensions/**/*.json
-/extensions/**/*.jsx
-/extensions/**/*.md
-/extensions/**/*.png
-/extensions/**/*.sass
-/extensions/**/*.scss
-/extensions/**/*.svg
diff --git a/.npmrc b/.npmrc
deleted file mode 100644
index 1dab4ed4c3020..0000000000000
--- a/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-save-exact = true
diff --git a/.nvmrc b/.nvmrc
deleted file mode 100644
index f599e28b8ab0d..0000000000000
--- a/.nvmrc
+++ /dev/null
@@ -1 +0,0 @@
-10
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index ce59d627e38ca..0000000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,158 +0,0 @@
-# Travis CI Configuration File
-
-# Tell Travis CI which distro to use
-dist: trusty
-
-# Tell Travis CI we're using PHP
-language: php
-
-services:
- - docker
-
-# Run Matrix for these PHP versions
-php:
-- "5.6"
-- "7.0"
-- "7.2"
-- "7.3"
-- "7.4snapshot"
-
-env:
- # Global variable is re-defined in matrix-include -list
- global:
- - WP_TRAVISCI=phpunit
- # Run phpunit in Travis matrix for these combinations
- matrix:
- - WP_BRANCH=master SIMPLE_AND_MULTISITE=1 # SIMPLE_AND_MULTISITE is just a way to explicitly mention that we run both suites
- - WP_BRANCH=latest
- - WP_BRANCH=previous PHP_LINT=1
-
-# Define a matrix of additional build configurations
-# The versions listed above will automatically create our first configuration,
-# so it doesn't need to be re-defined below.
-matrix:
- fast_finish: true
- include:
- - if: branch !~ /(^branch-.*-built)/
- name: "JavaScript & CSS lint"
- language: node_js
- env: WP_TRAVISCI="yarn lint"
- - if: branch !~ /(^branch-.*-built)/
- name: "Danger CI, test dashboard & extensions"
- language: node_js
- env: WP_TRAVISCI="yarn test-dangerci-and-adminpage-and-extensions"
- - if: branch !~ /(^branch-.*-built)/
- name: "Build dashboard & extensions"
- language: node_js
- env: WP_TRAVISCI="yarn build"
-
- # Disable for now until we fix all the spelling issues
- # - name: "Spell check Markdown files"
- # if: branch !~ /(^branch-.*-built)/
- # language: node_js
- # env: WP_TRAVISCI="yarn test-spelling"
-
- - php: "nightly"
- name: "PHP Nightly"
-
- # Code Climate code coverage.
- - php: "7.3"
- name: "Code Coverage"
- env:
- - WP_BRANCH=previous
- - DO_COVERAGE=true
- before_script:
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- - chmod +x ./cc-test-reporter
- - ./cc-test-reporter before-build
- - export PATH="$HOME/.composer/vendor/bin:$PATH"
- - export PLUGIN_SLUG=$(basename $(pwd))
- - ./tests/setup-travis.sh
- after_script:
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t clover -p /tmp/wordpress-previous/src/wp-content/plugins/jetpack
-
- - php: "7.0"
- name: "E2E tests"
- # Since build secrets are not available for forks, we would not be able to (and don't want) decrypt the config file
- # so we just skip the E2E job all together
- if: branch !~ /(^branch-.*-built)/ AND env(RUN_E2E) = true AND fork = false
- before_script:
- # Enable user namespace cloning
- - "sysctl kernel.unprivileged_userns_clone=1"
- - nvm install
- - yarn && yarn build-production
- - ./tests/e2e/bin/setup-e2e-travis.sh
- - yarn test-decrypt-config
- script:
- - yarn test-e2e --runInBand --verbose
- after_script:
- - sudo apt-add-repository -y ppa:qameta/allure
- - sudo apt-get update
- - sudo apt-get -y install allure
- - ./tests/e2e/bin/push-allure-artifacts.sh
- addons:
- apt:
- packages:
- - nginx
- # This is required to run new chrome on old trusty
- - libnss3
- - php: "7.0"
- name: "Legacy full sync"
- env: LEGACY_FULL_SYNC=1 WP_BRANCH=latest
-
- allow_failures:
- - name: "PHP Nightly"
- - name: "Spell check Markdown files"
- - name: "Code Coverage"
- - name: "E2E tests"
-
-cache:
- directories:
- - $HOME/.composer/cache/files
- - $HOME/.cache/yarn
- - $HOME/.phpbrew
-
-# whitelist branches for the "push" build check
-branches:
- only:
- - master
- - master-stable
- - /^branch-.*$/
- - /^feature\/.*$/
-
-# Git clone depth
-# By default Travis CI clones repositories to a depth of 50 commits
-git:
- depth: 1
-
-before_script:
- - export PLUGIN_SLUG=$(basename $(pwd))
- - export PATH="$HOME/.composer/vendor/bin:$PATH"
- - ./tests/setup-travis.sh
-
-script: ./tests/run-travis.sh
-
-sudo: false
-
-notifications:
- webhooks:
- urls:
- - https://betadownload.jetpack.me/travis.php
- on_success: always # Beta builder needs notifications for successful builds
- email:
- on_success: never # default: change
- recipients:
- - enej.bajgoric@automattic.com
- - georgestephanis@automattic.com
- - miguel@automattic.com
- - rocco@automattic.com
- - smart@automattic.com
- - eric.binnion@automattic.com
- - allendav@automattic.com
- - beau@automattic.com
- # Encrypted Slack notification address
- - secure: "WQdTdmYuifSW0hiJGXpQGKystMASC50QvxHlyUL5SM3h5GP8aCgeSsHuXvKPe3dT3Pffhk0dSHBfDtdWFwSHW/upURhg0vs4dm7+nxxvGZiTPzKcuAIjgvCoqWM7teyda/XqFGNSnv+XsT34uoyPhhFgd45T3oS+QQ3aNCruFak="
-
-addons:
- code_climate:
- repo_token: 683bd559e5214ca3b721092af177893f05765ba90d2589fcf35d7e85c6ea01e8
diff --git a/LICENSE.txt b/LICENSE.txt
deleted file mode 100644
index e82774c1bd5d4..0000000000000
--- a/LICENSE.txt
+++ /dev/null
@@ -1,357 +0,0 @@
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-===================================
-
-
-GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
- Preamble
-
-The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
-When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
-We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and
-modification follow.
-
-GNU GENERAL PUBLIC LICENSE
-TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-a) You must cause the modified files to carry prominent notices
-stating that you changed the files and the date of any change.
-
-b) You must cause any work that you distribute or publish, that in
-whole or in part contains or is derived from the Program or any
-part thereof, to be licensed as a whole at no charge to all third
-parties under the terms of this License.
-
-c) If the modified program normally reads commands interactively
-when run, you must cause it, when started running for such
-interactive use in the most ordinary way, to print or display an
-announcement including an appropriate copyright notice and a
-notice that there is no warranty (or else, saying that you provide
-a warranty) and that users may redistribute the program under
-these conditions, and telling the user how to view a copy of this
-License. (Exception: if the Program itself is interactive but
-does not normally print such an announcement, your work based on
-the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-a) Accompany it with the complete corresponding machine-readable
-source code, which must be distributed under the terms of Sections
-1 and 2 above on a medium customarily used for software interchange; or,
-
-b) Accompany it with a written offer, valid for at least three
-years, to give any third party, for a charge no more than your
-cost of physically performing source distribution, a complete
-machine-readable copy of the corresponding source code, to be
-distributed under the terms of Sections 1 and 2 above on a medium
-customarily used for software interchange; or,
-
-c) Accompany it with the information you received as to the offer
-to distribute corresponding source code. (This alternative is
-allowed only for noncommercial distribution and only if you
-received the program in object code or executable form with such
-an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
-11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
-How to Apply These Terms to Your New Programs
-
-If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
-Copyright (C)
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-Gnomovision version 69, Copyright (C) year name of author
-Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-This is free software, and you are welcome to redistribute it
-under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
-Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-`Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-, 1 April 1989
-Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/_inc/.eslintrc.js b/_inc/.eslintrc.js
deleted file mode 100644
index a8e05fc203023..0000000000000
--- a/_inc/.eslintrc.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = {
- // Use ESlint from modules folder. JS files here are not transpiled unless otherwise configured.
- root: true,
- extends: [ '../modules/.eslintrc.js' ],
-};
diff --git a/_inc/client/.eslintrc.js b/_inc/client/.eslintrc.js
deleted file mode 100644
index d58d0d045ebac..0000000000000
--- a/_inc/client/.eslintrc.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = {
- // Use root level ESlint configuration.
- // JavaScript files inside this folder are meant to be transpiled by Webpack.
- root: true,
- extends: [ '../../.eslintrc.js' ],
-};
diff --git a/_inc/client/README.md b/_inc/client/README.md
deleted file mode 100644
index 8616be72ce10f..0000000000000
--- a/_inc/client/README.md
+++ /dev/null
@@ -1,186 +0,0 @@
-
-## Jetpack React Admin UI
-
-The **Jetpack Admin Page** is a Javascript app built on **React**, [redux](https://github.com/reactjs/redux) and the fetch API.
-
-It's rendered on page load when visiting Jetpack's Admin Pages and fetches data from Jetpack via a REST API.
-
-### Data approach on the Admin Page
-
-The **Admin Page** uses **redux**, [redux-thunk](https://github.com/gaearon/redux-thunk), and [react-redux](https://github.com/reactjs/react-redux) for state handling trying to ressemble [Calypso's data approach, third Era](https://github.com/Automattic/wp-calypso/blob/master/docs/our-approach-to-data.md#third-era-redux-global-state-tree-december-2015---present).
-
-#### State related code
-
-The `_inc/client/state` directory holds directories named after things we fetch from the API. These directories hold the **redux**-related code like **state selectors**, **action types**, **action creators thunks** and **reducers**.
-
-#### Data fetching
-
-The data is being made available to the **Admin Page** by means of the WordPress REST API infrastructure present in WordPress since [version 4.4](https://make.wordpress.org/core/2015/10/28/rest-api-welcome-the-infrastructure-to-core/).
-
-Jetpack extends the Core API adding some specific methods for several jetpack-related actions exclusively, like activating or deactivating jetpack modules or updating any of the modules options.
-
-You may find additional reference for the Jetpack's HTTP API on the [rest-api.md](../../docs/rest-api.md) file.
-
-##### REST API Authentication
-
-The API requests rely on [cookie-based authentication and a specific nonce](http://v2.wp-api.org/guide/authentication/#cookie-authentication)
-for requests to be authorized.
-
-The nonce is being served on the Jetpack admin page by usage of the [wp_localize_script](https://codex.wordpress.org/Function_Reference/wp_localize_script) mechanism for passing values from PHP code to the JS scope.
-
-This nonce is created with the action `wp_rest`.
-
-The nonce and the API root URL are made available on
-
-```
-window.Initial_State.WP_API_nonce;
-window.Initial_State.WP_API_root;
-```
-
-##### Query Components
-
-We rely extensively in [query components](https://github.com/Automattic/wp-calypso/blob/master/docs/our-approach-to-data.md#query-components) to declare the data needs from inside state-aware React components.
-
-These components dispatch the API-fetching actions creators that eventually feed the redux state reducers with data.
-
-#### State selectors
-
-We kept [state selectors](https://github.com/Automattic/wp-calypso/blob/master/docs/our-approach-to-data.md#selectors) definition inside the same file that defines the reducers for each leaf of the state tree.
-
-This was done this way to keep functions that are aware of the tree shape on the same file while we were building the **Admin Page** and learning this pattern altogether.
-
-Below, under [Internal API](#internal-api) you'll find a brief listing about available state selectors you may need in the process of writing a new React component which will be connected to the Redux state tree.
-
-#### Action creators
-
-Every action creator defined in the **Admin Page** returns a Promise and is built as a thunk for handling [Asynchronous actions](https://github.com/reactjs/redux/blob/master/docs/advanced/AsyncActions.md#async-action-creators).
-
-### Internationalization of the Admin Page
-
-The **Admin Page** takes advantage of [i18n-calypso]() for internationalization purposes.
-
-Internally we use the `translate` function exported by `i18n-calypso` by aliasing to `__()`:
-
-```
-import { translate as __ } from 'i18n-calypso';
-...
-
{ __( 'String' ) }
-```
-
-### Browser compatibility of the Admin Page
-
-
-#### Suport for non-javascript environments
-
-Some static HTML is generated from the JSX files and rendered on build time before a release to provide a non-javascript UI with basic functionality if the browser does not report javascript capabilities.
-
-## Internal API
-
-### Action types
-
-Action types dispatched during the UI lifecycle are listed in `state/action-types.js`.
-
-### Available state selectors
-
-* **getActiveStatsTab( state )**
-* **getAdminEmailAddress( state )**
-* **getAkismetData( state )**
-* **getApiNonce( state )**
-* **getApiRootUrl( state )**
-* **getConnectUrl( state )**
-* **getCurrentVersion( state )**
-* **getInitialStateStatsData( state )**
-* **getJetpackNotices( state )**
-* **getJetpackStateNoticesErrorCode( state )**
-* **getJetpackStateNoticesErrorDescription( state )**
-* **getJetpackStateNoticesMessageCode( state )**
-* **getLastDownTime( state )**
-* **getModule( state, name )**
-* **getModuleOption( state, module_slug, option_name )** {
-* **getModuleOptionValidValues( state, module_slug, option_name )**
-* **getModules( state )**
-* **getModulesByFeature( state,**eature ) {
-* **getModulesThatRequireConnection( state )**
-* **getPluginUpdates( state )**
-* **getProtectCount( state )**
-* **getSearchTerm( state )**
-* **getSettings( state )**
-* **getSiteAdminUrl( state )**
-* **getSiteConnectionStatus( state )**
-* **getSiteDevMode( state )**
-* **getSitePlan( state )**
-* **getSiteRawUrl( state )**
-* **getSiteRoles( state )**
-* **getStatsData( state )**
-* **getTracksUserData( state )**
-* **getUserWpComAvatar( state )**
-* **getUserWpComEmail( state )**
-* **getUserWpComLogin( state )**
-* **getUsername( state )**
-* **isGutenbergAvailable( state )**
-
-### Available action creators (thunks)
-
-* **activateModule( slug )**
-* **deactivateModule( slug )**
-* **disconnectSite()**
-* **dismissJetpackActionNotice( notice )**
-* **dismissJetpackNotice( notice )**
-* **fetchAkismetData()**
-* **fetchConnectUrl()**
-* **fetchLastDownTime()**
-* **fetchModule()**
-* **fetchModules()**
-* **fetchPluginUpdates()**
-* **fetchPluginsData()**
-* **fetchProtectCount()**
-* **fetchSettings()**
-* **fetchSiteConnectionStatus()**
-* **fetchSiteData()**
-* **fetchStatsData( range )**
-* **fetchUserConnectionData()**
-* **filterSearch( term )**
-* **regeneratePostByEmailAddress()**
-* **resetOptions( options )**
-* **setInitialState()**
-* **statsSwitchTab( tab )**
-* **unlinkUser()**
-* **updateModuleOptions( slug, newOptionValues )**
-* **updateSetting( updatedOption )**
-
-#### How to use selectors and actions creators from a component file
-
-```javascript
-import { getModules, isModuleActivated, activateModule } from 'state/modules';
-
-export const YourComponent = ( props ) => (
-
-
-
-)
-
-// Connect selectors to the component's props
-const mapStateToProps = ( state, ownProps ) => {
- return {
- modules: getModules( state ),
- isModuleActivated: isModuleActivated( state, 'protect' ),
- ...ownProps
- }
-}
-
-// Connect action creators to the component's props
-const mapDispatchToProps = ( dispatch ) => {
- return {
- activate: ( module_name ) => dispatch( activateModule( module_name ) )
- deactivate: ( module_name ) => dispatch( deactivateModule( module_name ) )
- }
-}
-
-export default connect(
- mapStateToProps,
- mapDispatchToProps
-)( YourComponent )
-```
diff --git a/_inc/client/admin.js b/_inc/client/admin.js
deleted file mode 100644
index 177ea1a189f7d..0000000000000
--- a/_inc/client/admin.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/**
- * External dependencies
- */
-import ReactDOM from 'react-dom';
-import React from 'react';
-import { Provider } from 'react-redux';
-import { HashRouter, Route, Switch } from 'react-router-dom';
-import { assign, get } from 'lodash';
-
-/**
- * Internal dependencies
- */
-import accessibleFocus from 'lib/accessible-focus';
-import store from 'state/redux-store';
-import i18n from 'i18n-calypso';
-import Main from 'main';
-import * as actionTypes from 'state/action-types';
-
-// Initialize the accessibile focus to allow styling specifically for keyboard navigation
-accessibleFocus();
-
-const Initial_State = window.Initial_State;
-
-Initial_State.locale = JSON.parse( Initial_State.locale );
-Initial_State.locale = get( Initial_State.locale, [ 'locale_data', 'jetpack' ], {} );
-
-if ( 'undefined' !== typeof Initial_State.locale[ '' ] ) {
- Initial_State.locale[ '' ].localeSlug = Initial_State.localeSlug;
-
- // Overloading the toLocaleString method to use the set locale
- Number.prototype.realToLocaleString = Number.prototype.toLocaleString;
-
- Number.prototype.toLocaleString = function( locale, options ) {
- locale = locale || Initial_State.localeSlug;
- options = options || {};
-
- return this.realToLocaleString( locale, options );
- };
-} else {
- Initial_State.locale = { '': { localeSlug: Initial_State.localeSlug } };
-}
-
-i18n.setLocale( Initial_State.locale );
-
-// Add dispatch and actionTypes to the window object so we can use it from the browser's console
-if ( 'undefined' !== typeof window && process.env.NODE_ENV === 'development' ) {
- assign( window, {
- actionTypes: actionTypes,
- dispatch: store.dispatch,
- } );
-}
-
-render();
-
-/**
- *
- */
-function render() {
- const container = document.getElementById( 'jp-plugin-container' );
-
- if ( container === null ) {
- return;
- }
-
- ReactDOM.render(
-
- { __( 'Your site is connected to WordPress.com.' ) }
- { this.props.userIsMaster && (
-
-
- { __( 'You are the Jetpack owner.' ) }
-
- ) }
-
-
- { this.props.userCanDisconnectSite && (
-
-
-
- ) }
-
- );
- }
-
- return cardContent;
- }
-
- /*
- * Render a card for user linking. If it's connected, show the currently linked user.
- * Show an alternative message if site is in Dev Mode.
- *
- * @returns {string}
- */
- userConnection() {
- const maybeShowLinkUnlinkBtn = this.props.userIsMaster ? null : (
-
- );
-
- let cardContent = '';
-
- if ( this.props.isDevMode ) {
- // return nothing if this is an account connection card
- cardContent = (
-
- );
- } // render
-}
-
-export default connect( state => {
- return {
- userCanManageModules: userCanManageModules( state ),
- userCanViewStats: userCanViewStats( state ),
- userIsSubscriber: userIsSubscriber( state ),
- isDevMode: isDevMode( state ),
- getModuleOverride: module_name => getModuleOverride( state, module_name ),
- multisite: isMultisite( state ),
- };
-} )( withModuleSettingsFormHelpers( AtAGlance ) );
diff --git a/_inc/client/at-a-glance/monitor.jsx b/_inc/client/at-a-glance/monitor.jsx
deleted file mode 100644
index 7b127e33a8d2f..0000000000000
--- a/_inc/client/at-a-glance/monitor.jsx
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * External dependencies
- */
-import PropTypes from 'prop-types';
-import React, { Component } from 'react';
-import { connect } from 'react-redux';
-import { translate as __ } from 'i18n-calypso';
-import analytics from 'lib/analytics';
-import getRedirectUrl from 'lib/jp-redirect';
-
-/**
- * Internal dependencies
- */
-import { isModuleAvailable } from 'state/modules';
-import { isDevMode } from 'state/connection';
-import DashItem from 'components/dash-item';
-
-class DashMonitor extends Component {
- static propTypes = {
- isDevMode: PropTypes.bool.isRequired,
- isModuleAvailable: PropTypes.bool.isRequired,
- };
-
- activateAndTrack = () => {
- analytics.tracks.recordEvent( 'jetpack_wpa_module_toggle', {
- module: 'monitor',
- toggled: 'on',
- } );
-
- this.props.updateOptions( { monitor: true } );
- };
-
- getContent() {
- const labelName = __( 'Downtime monitor' );
-
- const support = {
- text: __(
- 'Jetpack’s downtime monitor will continuously monitor your site, and alert you the moment that downtime is detected.'
- ),
- link: getRedirectUrl( 'jetpack-support-monitor' ),
- };
-
- if ( this.props.getOptionValue( 'monitor' ) ) {
- return (
-
-
- { __(
- 'Jetpack is monitoring your site. If we think your site is down, you will receive an email.'
- ) }
-
-
- );
- }
-
- return (
-
-
- { this.props.isDevMode
- ? __( 'Unavailable in Dev Mode.' )
- : __(
- '{{a}}Activate Monitor{{/a}} to receive email notifications if your site goes down.',
- {
- components: {
- a: ,
- },
- }
- ) }
-
-
- );
- }
-
- render() {
- return this.props.isModuleAvailable && this.getContent();
- }
-}
-
-export default connect( state => ( {
- isDevMode: isDevMode( state ),
- isModuleAvailable: isModuleAvailable( state, 'monitor' ),
-} ) )( DashMonitor );
diff --git a/_inc/client/at-a-glance/photon.jsx b/_inc/client/at-a-glance/photon.jsx
deleted file mode 100644
index bfeedc6907bfa..0000000000000
--- a/_inc/client/at-a-glance/photon.jsx
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * External dependencies
- */
-import PropTypes from 'prop-types';
-import React, { Component } from 'react';
-import { connect } from 'react-redux';
-import DashItem from 'components/dash-item';
-import { translate as __ } from 'i18n-calypso';
-import getRedirectUrl from 'lib/jp-redirect';
-
-/**
- * Internal dependencies
- */
-import { isModuleAvailable } from 'state/modules';
-import { isDevMode } from 'state/connection';
-
-class DashPhoton extends Component {
- static propTypes = {
- isDevMode: PropTypes.bool.isRequired,
- isModuleAvailable: PropTypes.bool.isRequired,
- };
-
- activatePhoton = () => this.props.updateOptions( { photon: true } );
-
- getContent() {
- const labelName = __( 'Image Accelerator' );
-
- const support = {
- text: __(
- 'Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.'
- ),
- link: getRedirectUrl( 'jetpack-support-photon' ),
- };
-
- if ( this.props.getOptionValue( 'photon' ) ) {
- return (
-
-
- { __(
- "Jetpack is optimizing your image sizes and download speed using our fast global network of servers. This improves your site's performance on desktop and mobile devices."
- ) }
-
-
- );
- }
-
- return (
-
-
- { this.props.isDevMode
- ? __( 'Unavailable in Dev Mode' )
- : __(
- "{{a}}Activate{{/a}} to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.",
- {
- components: {
- a: ,
- },
- }
- ) }
-
- { __( 'Hello there! Your stats have been activated.' ) }
-
- { __( 'Just give us a little time to collect data so we can display it for you here.' ) }
-
- { __( 'Get WordPress Apps for every device' ) }
-
-
-
- { __(
- 'Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.'
- ) }
-
-
-
-
-
-
- );
- }
-}
-
-AppsCard.propTypes = {
- className: PropTypes.string,
-};
-
-export default connect(
- state => {
- return {
- isAppsCardDismissed: appsCardDismissed( state ),
- arePromotionsActive: arePromotionsActive( state ),
- userCanManageOptions: userCanManageOptions( state ),
- };
- },
- dispatch => {
- return {
- dismissAppCard: () => {
- return dispatch( updateSettings( { dismiss_dash_app_card: true } ) );
- },
- };
- }
-)( AppsCard );
diff --git a/_inc/client/components/apps-card/style.scss b/_inc/client/components/apps-card/style.scss
deleted file mode 100644
index d72ee62f536bd..0000000000000
--- a/_inc/client/components/apps-card/style.scss
+++ /dev/null
@@ -1,69 +0,0 @@
-.jp-apps-card {
- margin-top: rem( 64px );
- margin-bottom: 0;
-}
-
-.jp-apps-card__content {
- margin-bottom: 0;
-
- &.dops-card {
- padding: 0;
- }
-
- a:not( .dops-button ) {
- font-style: italic;
- }
-}
-
-.jp-apps-card__dismiss {
- position: absolute;
- top: 8px;
- right: 8px;
-
- &.dops-button.is-compact {
- padding: 8px 8px 2px 8px;
- }
-}
-
-.jp-apps-card__top {
- padding: rem( 60px ) 0 0;
- background: #ffffff;
- text-align: center;
-
- img {
- max-width: 26%;
- padding-top: 10px;
- }
-}
-
-.jp-apps-card__description {
- max-width: 80%;
- margin: 0 auto;
- padding: rem( 10px ) rem( 24px ) rem( 24px );
- line-height: 1.65;
- color: $black;
- text-align: center;
-
- .dops-button {
- margin: 8px 0;
- }
-}
-
-.jp-apps-card__paragraph {
- font-size: rem( 15px );
-}
-
-.jp-apps-card__header {
- margin-top: 0;
- margin-bottom: rem( 5px );
- font-weight: 500;
-}
-
-.jp-apps-card__promo_subhead {
- margin-top: 0;
- font-style: italic;
-}
-
-.jp-themes-card {
- margin-bottom: rem( 20px );
-}
diff --git a/_inc/client/components/banner/README.md b/_inc/client/components/banner/README.md
deleted file mode 100644
index f3274a7c26dc4..0000000000000
--- a/_inc/client/components/banner/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# Banner
-
-This component renders a customizable banner.
-
-## Props:
-
-- *callToAction* - shows a CTA text.
-- *className* - any additional CSS classes.
-- *description* - the banner description.
-- *dismissPreferenceName*: the user preference name that we store a boolean against, prefixed with 'dismissible-card-' to avoid namespace collisions.
-- *dismissTemporary*: when true, clicking on the cross will dismiss the card for the current page load.
-- *event* - event to distinguish the nudge in tracks. Used as `cta_name` event property.
-- *feature* - slug of the feature to highlight in the plans compare card.
-- *href* - the component target URL.
-- *icon* - the component icon.
-- *list* - a list of the upgrade features.
-- *onClick* - a function associated to the click on the whole banner or just the CTA or dismiss button.
-- *plan* - PlanSlug of the plan that upgrade leads to.
-- *price* - one or two (original/discounted) upgrade prices.
-- *title* - (required) the banner title.
-
-If `href` is not provided, `feature` can auto-generate it.
-
-If `callToAction` is provided, `href` and `onClick` are not applied to the whole banner, but to the `callToAction` button only.
-
-If `dismissPreferenceName` is provided, `href` is only applied if `callToAction` is provided.
-
-## Usage:
-
-```js
-import { PLAN_BUSINESS, FEATURE_ADVANCED_SEO } from 'lib/plans/constants';
-import Banner from 'components/banner';
-
-render() {
- return (
-
- );
-}
-```
diff --git a/_inc/client/components/banner/index.jsx b/_inc/client/components/banner/index.jsx
deleted file mode 100644
index fe8198bd92017..0000000000000
--- a/_inc/client/components/banner/index.jsx
+++ /dev/null
@@ -1,160 +0,0 @@
-/**
- * External dependencies
- */
-import PropTypes from 'prop-types';
-import React, { Component } from 'react';
-import { connect } from 'react-redux';
-import classNames from 'classnames';
-import { noop, size } from 'lodash';
-
-/**
- * Internal dependencies
- */
-import analytics from 'lib/analytics';
-import { getPlanClass } from 'lib/plans/constants';
-import Button from 'components/button';
-import Card from 'components/card';
-import Gridicon from 'components/gridicon';
-import PlanIcon from 'components/plans/plan-icon';
-import { getCurrentVersion } from 'state/initial-state';
-
-import './style.scss';
-
-class Banner extends Component {
- static propTypes = {
- callToAction: PropTypes.string,
- className: PropTypes.string,
- currentVersion: PropTypes.string.isRequired,
- description: PropTypes.node,
- eventFeature: PropTypes.string,
- feature: PropTypes.string, // PropTypes.oneOf( getValidFeatureKeys() ),
- href: PropTypes.string,
- icon: PropTypes.string,
- list: PropTypes.arrayOf( PropTypes.string ),
- onClick: PropTypes.func,
- path: PropTypes.string,
- plan: PropTypes.string,
- siteSlug: PropTypes.string,
- title: PropTypes.string.isRequired,
- };
-
- static defaultProps = {
- onClick: noop,
- };
-
- getHref() {
- const { href, feature, siteSlug } = this.props;
-
- if ( ! href && siteSlug ) {
- if ( feature ) {
- return `/plans/${ siteSlug }?feature=${ feature }`;
- }
- return `/plans/${ siteSlug }`;
- }
- return href;
- }
-
- handleClick = () => {
- this.props.onClick();
-
- const { eventFeature, path, currentVersion } = this.props;
- if ( eventFeature || path ) {
- const eventFeatureProp = eventFeature ? { feature: eventFeature } : {};
- const pathProp = path ? { path } : {};
-
- const eventProps = {
- target: 'banner',
- type: 'upgrade',
- current_version: currentVersion,
- ...eventFeatureProp,
- ...pathProp,
- };
-
- analytics.tracks.recordJetpackClick( eventProps );
- }
- };
-
- getIcon() {
- const { icon, plan } = this.props;
-
- if ( plan && ! icon ) {
- return (
-