Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DLXPlugins/simple-comment-editing
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.6.0
Choose a base ref
...
head repository: DLXPlugins/simple-comment-editing
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 23,625 additions and 4,997 deletions.
  1. +11 −0 .eslintignore
  2. +17 −0 .eslintrc
  3. +185 −0 .eslintrc.json
  4. +0 −1 .gitignore
  5. +6 −6 README.md
  6. +0 −54 autoloader.php
  7. +144 −0 blueprint-content.xml
  8. +63 −0 blueprint.json
  9. +21 −0 composer.json
  10. +18 −0 composer.lock
  11. +2 −0 dist/integrations-admin.js
  12. +84 −0 dist/integrations-admin.js.LICENSE.txt
  13. +3 −0 dist/sce-admin.css
  14. +1 −0 dist/sce-admin.css.map
  15. +2 −0 dist/sce-editing.js
  16. +1 −0 dist/sce-editing.js.LICENSE.txt
  17. +3 −0 dist/sce-frontend.css
  18. +1 −0 dist/sce-frontend.css.map
  19. +895 −0 fancybox/jquery.fancybox.css
  20. +5,632 −0 fancybox/jquery.fancybox.js
  21. +1 −0 fancybox/jquery.fancybox.min.css
  22. +13 −0 fancybox/jquery.fancybox.min.js
  23. +3 −2 gruntfile.js
  24. BIN images/comment-edit-base.png
  25. BIN images/logo.png
  26. BIN images/sceoptions.png
  27. BIN images/screenshot-theme-dark.png
  28. BIN images/screenshot-theme-default.png
  29. BIN images/screenshot-theme-light.png
  30. +23 −15 includes/{admin/class-admin-settings.php → Admin/Admin_Settings.php}
  31. +351 −0 includes/Admin/Tabs/Integrations.php
  32. +176 −0 includes/Admin/Tabs/Settings.php
  33. +25 −12 includes/{admin/tabs/class-support.php → Admin/Tabs/Support.php}
  34. +2 −2 includes/{admin/tabs/class-tabs.php → Admin/Tabs/Tabs.php}
  35. +459 −0 includes/Ajax.php
  36. +6 −7 includes/{class-enqueue.php → Enqueue.php}
  37. +217 −3 includes/{class-functions.php → Functions.php}
  38. +136 −0 includes/Mailchimp.php
  39. +28 −4 includes/{admin/class-options.php → Options.php}
  40. +121 −0 includes/WooCommerce.php
  41. +0 −110 includes/admin/tabs/class-settings.php
  42. +22 −15 index.php
  43. +238 −185 js/simple-comment-editing.js
  44. +7 −0 lib/autoload.php
  45. +477 −0 lib/composer/ClassLoader.php
  46. +284 −0 lib/composer/InstalledVersions.php
  47. +21 −0 lib/composer/LICENSE
  48. +10 −0 lib/composer/autoload_classmap.php
  49. +9 −0 lib/composer/autoload_namespaces.php
  50. +10 −0 lib/composer/autoload_psr4.php
  51. +55 −0 lib/composer/autoload_real.php
  52. +36 −0 lib/composer/autoload_static.php
  53. +5 −0 lib/composer/installed.json
  54. +24 −0 lib/composer/installed.php
  55. +9,502 −3,710 package-lock.json
  56. +35 −12 package.json
  57. +20 −0 phpcs.xml.dist
  58. +167 −16 readme.txt
  59. +430 −802 simple-comment-editing.php
  60. +45 −0 src/js/SendCommand.js
  61. +696 −0 src/js/comment-editing/editing.js
  62. +22 −0 src/js/react/components/Alerts/index.js
  63. +66 −0 src/js/react/components/Button/index.js
  64. +55 −0 src/js/react/components/Loader/index.js
  65. +33 −0 src/js/react/components/Loaders/AdminDefaultsLoader.js
  66. +103 −0 src/js/react/components/Loaders/AdminThemeColorsLoader.js
  67. +98 −0 src/js/react/components/Loaders/AdminThemeDefaultsLoader.js
  68. +58 −0 src/js/react/components/Notice/index.js
  69. +61 −0 src/js/react/components/Prompts/index.js
  70. +25 −0 src/js/react/components/Spinner/index.js
  71. +23 −0 src/js/react/components/icons/AlarmExplanation.js
  72. +25 −0 src/js/react/components/icons/ArrowLeft.js
  73. +25 −0 src/js/react/components/icons/ArrowRight.js
  74. +69 −0 src/js/react/components/icons/AuthInterface.js
  75. +31 −0 src/js/react/components/icons/Circle.js
  76. +28 −0 src/js/react/components/icons/CircularExplanation.js
  77. +32 −0 src/js/react/components/icons/CircularInfo.js
  78. +31 −0 src/js/react/components/icons/CircularQuestion.js
  79. +25 −0 src/js/react/components/icons/ClipboardCheck.js
  80. +17 −0 src/js/react/components/icons/ColorPalette.js
  81. +32 −0 src/js/react/components/icons/CopyIcon.js
  82. +34 −0 src/js/react/components/icons/Ellipsis.js
  83. +10 −0 src/js/react/components/icons/Error.js
  84. +25 −0 src/js/react/components/icons/ExternalLink.js
  85. +25 −0 src/js/react/components/icons/EyeRegular.js
  86. +25 −0 src/js/react/components/icons/EyeSlashRegular.js
  87. +32 −0 src/js/react/components/icons/Gear.js
  88. +32 −0 src/js/react/components/icons/Home.js
  89. +28 −0 src/js/react/components/icons/KeyIcon.js
  90. +32 −0 src/js/react/components/icons/LinkIcon.js
  91. +32 −0 src/js/react/components/icons/MenuIcon.js
  92. +32 −0 src/js/react/components/icons/NewWindow.js
  93. +25 −0 src/js/react/components/icons/NotEqual.js
  94. +39 −0 src/js/react/components/icons/Preview.js
  95. +32 −0 src/js/react/components/icons/QuoteIcon.js
  96. +43 −0 src/js/react/components/icons/QuotesIcon.js
  97. +42 −0 src/js/react/components/icons/Spinner.js
  98. +20 −0 src/js/react/components/icons/edit.js
  99. +20 −0 src/js/react/components/icons/paintbrush.js
  100. +20 −0 src/js/react/components/icons/settings.js
  101. +35 −0 src/js/react/components/icons/twitter.js
  102. +523 −0 src/js/react/views/integrations/Mailchimp.js
  103. +11 −0 src/js/react/views/integrations/index.js
  104. +471 −3 src/scss/admin.scss
  105. +347 −0 src/scss/frontend.scss
  106. +4 −4 uninstall.php
  107. +84 −34 webpack.config.js
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**/*.min.js
**/*.build.js
**/node_modules/**
**/vendor/**
build
dist
coverage
cypress
node_modules
vendor
google-fonts.js
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
"parserOptions": {
"ecmaVersion": 2017
},

"globals": {
"$": true,
"wp":true,
"console":true,
"$uifm":true
},
"rules": {
"camelcase": "off",
"no-console": "off"
}
}
185 changes: 185 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"parser": "@babel/eslint-parser",
"globals": {
"wp": true,
"wpApiSettings": true,
"window": true,
"document": true,
"simple_comment_editing": true
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"requireConfigFile": false
},
"extends": ["plugin:@wordpress/eslint-plugin/recommended-with-formatting"],
"plugins": ["react", "jsx-a11y", "jest"],
"settings": {
"react": {
"pragma": "wp"
}
},
"rules": {
"array-bracket-spacing": ["error", "always"],
"brace-style": ["error", "1tbs"],
"camelcase": 0,
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": ["error", "always"],
"constructor-super": "error",
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"jsx-a11y/label-has-for": [
"error",
{
"required": "id"
}
],
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/role-has-required-aria-props": "off",
"jsx-quotes": "error",
"key-spacing": "error",
"keyword-spacing": "error",
"lines-around-comment": "off",
"no-alert": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-console": "error",
"no-const-assign": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-eval": "error",
"no-extra-semi": "error",
"no-fallthrough": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-multi-spaces": "error",
"no-multi-str": "off",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-redeclare": "error",
"no-restricted-syntax": [
"error",
{
"selector": "ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
"message": "Path access on WordPress dependencies is not allowed."
},
{
"selector": "ImportDeclaration[source.value=/^blocks$/]",
"message": "Use @wordpress/blocks as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^components$/]",
"message": "Use @wordpress/components as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^date$/]",
"message": "Use @wordpress/date as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^editor$/]",
"message": "Use @wordpress/editor as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^element$/]",
"message": "Use @wordpress/element as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^i18n$/]",
"message": "Use @wordpress/i18n as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^data$/]",
"message": "Use @wordpress/data as import path instead."
},
{
"selector": "ImportDeclaration[source.value=/^utils$/]",
"message": "Use @wordpress/utils as import path instead."
},
{
"selector": "CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
"message": "Translate function arguments must be string literals."
},
{
"selector": "CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
"message": "Translate function arguments must be string literals."
},
{
"selector": "CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
"message": "Translate function arguments must be string literals."
}
],
"no-shadow": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-unreachable": "error",
"no-unsafe-negation": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-useless-return": "error",
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"padded-blocks": ["error", "never"],
"prefer-const": "error",
"quote-props": ["error", "as-needed"],
"react/display-name": "off",
"react/jsx-curly-spacing": [
"error",
{
"when": "always",
"children": true
}
],
"react/jsx-equals-spacing": "error",
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-key": "error",
"react/jsx-tag-spacing": "error",
"react/no-children-prop": "off",
"react/no-find-dom-node": "warn",
"react/prop-types": "off",
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "always"],
"space-infix-ops": ["error", { "int32Hint": false }],
"space-unary-ops": [
"error",
{
"overrides": {
"!": true
}
}
],
"template-curly-spacing": ["error", "always"],
"valid-jsdoc": ["error", { "requireReturn": false }],
"valid-typeof": "error",
"yoda": "off"
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dist
node_modules
.DS_Store
simple-comment-editing\.zip
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Simple Comment Editing for WordPress
Comment Edit Lite for WordPress
======================

Simple Comment Editing for WordPress 3.5+
Comment Edit Lite for WordPress 3.5+

## Description

Simple Comment Editing is a stripped down version of <a href="http://wordpress.org/plugins/wp-ajax-edit-comments/">Ajax Edit Comments</a>.
Comment Edit Lite is a stripped down version of <a href="http://wordpress.org/plugins/wp-ajax-edit-comments/">Ajax Edit Comments</a>.

The biggest differences:
<ol>
@@ -65,7 +65,7 @@ See "Styles" section.
Example:

```php
//Simple Comment Editing
//Comment Edit Lite
add_filter( 'sce_loading_img', 'edit_sce_loading_img' );
function edit_sce_loading_img( $default_url ) {
return 'http://domain.com/new_loading_image.gif';
@@ -275,7 +275,7 @@ Example: https://gist.github.com/ronalfy/6b4fec8b3ac55bc47f3f
Example:

```php
//Simple Comment Editing
//Comment Edit Lite
add_filter( 'sce_comment_time', 'edit_sce_comment_time' );
function edit_sce_comment_time( $time_in_minutes ) {
return 60;
@@ -297,7 +297,7 @@ function edit_sce_comment_time( $time_in_minutes ) {
Example:

```php
//Simple Comment Editing - Disable the timer
//Comment Edit Lite - Disable the timer
add_filter( 'sce_show_timer', '__return_false' );
```

54 changes: 0 additions & 54 deletions autoloader.php

This file was deleted.

Loading