From 164cfc8910ac096a8b69cec013642a4474b04e63 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Mon, 20 Nov 2023 17:14:07 +0200 Subject: [PATCH 1/7] feat: add twitter up-sell for new limit --- assets/js/build/dashboard.js | 1235 ++++++++++++++--- assets/js/build/dashboard.min.js | 10 +- assets/js/build/exclude.js | 112 +- assets/js/build/exclude.min.js | 2 +- assets/js/build/publish_now.js | 1046 +++++++------- assets/js/build/publish_now.min.js | 2 +- includes/admin/class-rop-admin.php | 137 +- .../services/class-rop-twitter-service.php | 2 + includes/class-rop-i18n.php | 1 + includes/class-rop.php | 3 +- vue/src/models/rop_store.js | 11 + vue/src/vue-elements/accounts-tab-panel.vue | 8 +- vue/src/vue-elements/reusables/popup.vue | 77 + .../reusables/snackbar-notice.vue | 103 ++ vue/src/vue-elements/sign-in-btn.vue | 12 +- .../utils/twitter-notification.vue | 76 + vue/src/vue-elements/utils/upsell-popup.vue | 114 ++ 17 files changed, 2128 insertions(+), 823 deletions(-) create mode 100644 vue/src/vue-elements/reusables/popup.vue create mode 100644 vue/src/vue-elements/reusables/snackbar-notice.vue create mode 100644 vue/src/vue-elements/utils/twitter-notification.vue create mode 100644 vue/src/vue-elements/utils/upsell-popup.vue diff --git a/assets/js/build/dashboard.js b/assets/js/build/dashboard.js index ee2fc3fe5..c4d110132 100644 --- a/assets/js/build/dashboard.js +++ b/assets/js/build/dashboard.js @@ -1919,7 +1919,7 @@ try { oldLocale = globalLocale._abbr; var aliasedRequire = require; - __webpack_require__(284)("./" + name); + __webpack_require__(302)("./" + name); getSetGlobalLocale(oldLocale); } catch (e) {} } @@ -4670,7 +4670,7 @@ }))); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(283)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(301)(module))) /***/ }), /* 1 */ @@ -17945,7 +17945,12 @@ exports.default = new _vuex2.default.Store({ * @category New Cron System */ rop_cron_remote: ropApiSettings.rop_cron_remote, - dom_updated: false + dom_updated: false, + notifications: { + twitter_limit: ropApiSettings.twitter_limit ? ropApiSettings.twitter_limit : false, + twitter_limit_close_url: ropApiSettings.twitter_limit_close ? ropApiSettings.twitter_limit_close : false, + twitter_limit_promotion_close_url: ropApiSettings.twitter_limit_promotion_close ? ropApiSettings.twitter_limit_promotion_close : false + } }, mutations: { setTabView: function setTabView(state, view) { @@ -18091,6 +18096,12 @@ exports.default = new _vuex2.default.Store({ case 'exclude_post': case 'exclude_post_batch': + break; + case 'close_twitter_limit_notification': + state.notifications.twitter_limit = false; + break; + case 'close_twitter_limit_promotion': + state.notifications.twitter_X_limit_promotion_close_url = false; break; default: _vue2.default.$log.error('No state request for ', requestName); @@ -20988,7 +20999,7 @@ if (false) {(function () { module.hot.accept() var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), true) if (!hotAPI.compatible) return - var id = "/var/www/html/codeinwp/wp-content/plugins/tweet-old-post/vue/src/vue-elements/reusables/multiple-select.vue" + var id = "/Users/robert/Desktop/sites/dev/app/public/wp-content/plugins/tweet-old-post/vue/src/vue-elements/reusables/multiple-select.vue" if (!module.hot.data) { hotAPI.createRecord(id, module.exports) } else { @@ -21830,6 +21841,7 @@ module.exports = { } } // + /* generated by vue-loader */ }; @@ -21944,7 +21956,7 @@ if (false) {(function () { module.hot.accept() var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), true) if (!hotAPI.compatible) return - var id = "/var/www/html/codeinwp/wp-content/plugins/tweet-old-post/vue/src/vue-elements/reusables/button-checkbox.vue" + var id = "/Users/robert/Desktop/sites/dev/app/public/wp-content/plugins/tweet-old-post/vue/src/vue-elements/reusables/button-checkbox.vue" if (!module.hot.data) { hotAPI.createRecord(id, module.exports) } else { @@ -21968,8 +21980,8 @@ if(content.locals) module.exports = content.locals; if(false) { // When the styles change, update the "],"sourceRoot":"webpack://"}]); // exports @@ -22065,6 +22077,7 @@ module.exports = { // color: #FFF; // } // + /* generated by vue-loader */ }; @@ -22072,7 +22085,7 @@ module.exports = { /* 79 */ /***/ (function(module, exports) { -module.exports = "\n\t\n"; +module.exports = "\n\t\n"; /***/ }), /* 80 */ @@ -22089,7 +22102,7 @@ if (false) {(function () { module.hot.accept() var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), true) if (!hotAPI.compatible) return - var id = "/var/www/html/codeinwp/wp-content/plugins/tweet-old-post/vue/src/vue-elements/upsell-sidebar.vue" + var id = "/Users/robert/Desktop/sites/dev/app/public/wp-content/plugins/tweet-old-post/vue/src/vue-elements/upsell-sidebar.vue" if (!module.hot.data) { hotAPI.createRecord(id, module.exports) } else { @@ -22113,8 +22126,8 @@ if(content.locals) module.exports = content.locals; if(false) { // When the styles change, update the "],"sourceRoot":"webpack://"}]); // exports @@ -22182,6 +22195,7 @@ module.exports = { // padding: 0; // } // + /* generated by vue-loader */ }; @@ -22189,7 +22203,7 @@ module.exports = { /* 84 */ /***/ (function(module, exports) { -module.exports = "\n\t
\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t
\n"; +module.exports = "\n\t
\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t
\n"; /***/ }), /* 85 */ @@ -22206,7 +22220,7 @@ if (false) {(function () { module.hot.accept() var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), true) if (!hotAPI.compatible) return - var id = "/var/www/html/codeinwp/wp-content/plugins/tweet-old-post/vue/src/vue-elements/sign-in-btn.vue" + var id = "/Users/robert/Desktop/sites/dev/app/public/wp-content/plugins/tweet-old-post/vue/src/vue-elements/sign-in-btn.vue" if (!module.hot.data) { hotAPI.createRecord(id, module.exports) } else { @@ -22219,9 +22233,9 @@ if (false) {(function () { module.hot.accept() /***/ (function(module, exports, __webpack_require__) { var __vue_script__, __vue_template__ -__webpack_require__(252) -__vue_script__ = __webpack_require__(254) -__vue_template__ = __webpack_require__(255) +__webpack_require__(270) +__vue_script__ = __webpack_require__(272) +__vue_template__ = __webpack_require__(273) module.exports = __vue_script__ || {} if (module.exports.__esModule) module.exports = module.exports.default if (__vue_template__) { (typeof module.exports === "function" ? module.exports.options : module.exports).template = __vue_template__ } @@ -22229,7 +22243,7 @@ if (false) {(function () { module.hot.accept() var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), true) if (!hotAPI.compatible) return - var id = "/var/www/html/codeinwp/wp-content/plugins/tweet-old-post/vue/src/vue-elements/reusables/counter-input.vue" + var id = "/Users/robert/Desktop/sites/dev/app/public/wp-content/plugins/tweet-old-post/vue/src/vue-elements/reusables/counter-input.vue" if (!module.hot.data) { hotAPI.createRecord(id, module.exports) } else { @@ -34481,7 +34495,7 @@ window.addEventListener('load', function () { var __vue_script__, __vue_template__ __webpack_require__(216) __vue_script__ = __webpack_require__(218) -__vue_template__ = __webpack_require__(312) +__vue_template__ = __webpack_require__(330) module.exports = __vue_script__ || {} if (module.exports.__esModule) module.exports = module.exports.default if (__vue_template__) { (typeof module.exports === "function" ? module.exports.options : module.exports).template = __vue_template__ } @@ -34489,7 +34503,7 @@ if (false) {(function () { module.hot.accept() var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), true) if (!hotAPI.compatible) return - var id = "/var/www/html/codeinwp/wp-content/plugins/tweet-old-post/vue/src/vue-elements/main-page-panel.vue" + var id = "/Users/robert/Desktop/sites/dev/app/public/wp-content/plugins/tweet-old-post/vue/src/vue-elements/main-page-panel.vue" if (!module.hot.data) { hotAPI.createRecord(id, module.exports) } else { @@ -34513,8 +34527,8 @@ if(content.locals) module.exports = content.locals; if(false) { // When the styles change, update the \n"],"sourceRoot":"webpack://"}]); // exports @@ -34552,27 +34566,27 @@ var _accountsTabPanel = __webpack_require__(219); var _accountsTabPanel2 = _interopRequireDefault(_accountsTabPanel); -var _settingsTabPanel = __webpack_require__(248); +var _settingsTabPanel = __webpack_require__(266); var _settingsTabPanel2 = _interopRequireDefault(_settingsTabPanel); -var _accountsSelectorPanel = __webpack_require__(258); +var _accountsSelectorPanel = __webpack_require__(276); var _accountsSelectorPanel2 = _interopRequireDefault(_accountsSelectorPanel); -var _queueTabPanel = __webpack_require__(287); +var _queueTabPanel = __webpack_require__(305); var _queueTabPanel2 = _interopRequireDefault(_queueTabPanel); -var _logsTabPanel = __webpack_require__(295); +var _logsTabPanel = __webpack_require__(313); var _logsTabPanel2 = _interopRequireDefault(_logsTabPanel); -var _toast = __webpack_require__(300); +var _toast = __webpack_require__(318); var _toast2 = _interopRequireDefault(_toast); -var _countdown = __webpack_require__(305); +var _countdown = __webpack_require__(323); var _countdown2 = _interopRequireDefault(_countdown); @@ -34873,6 +34887,7 @@ module.exports = { // } // // + /* generated by vue-loader */ }; //