If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).
Example below explains implications for different implementations.
| <?php | |
| add_action( 'jet-engine/register-macros', function(){ | |
| class Current_Meta_User_Roles extends \Jet_Engine_Base_Macros { | |
| public function macros_tag() { | |
| return 'get_array_keys'; | |
| } |
| <?php | |
| add_action( 'jet-engine/register-macros', function(){ | |
| //class My_JE_Macros extends \Jet_Engine_Base_Macros { | |
| class My_JE_Macros extends \Jet_Engine_Base_Macros { | |
| /** | |
| * Returns macros tag | |
| * |
| <?php | |
| // like import file | |
| require_once('lib/ripcord.php'); | |
| // define variables to use in future | |
| $url = "http://localhost:8015"; | |
| $db = "o14_api"; | |
| $username = "admin"; | |
| $password = "admin"; |
| <?php | |
| add_action( 'jet-engine/register-macros', function(){ | |
| class Current_Meta_Array_Keys extends \Jet_Engine_Base_Macros { | |
| public function macros_tag() { | |
| return 'get_array_keys'; | |
| } |
| "workbench.colorCustomizations": { | |
| // Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
| "contrastActiveBorder": "", | |
| "contrastBorder": "", | |
| // Base Colors | |
| "focusBorder": "", | |
| "foreground": "", | |
| "widget.shadow": "", | |
| "selection.background": "", | |
| "descriptionForeground": "", |
| // there's a sandbox to try this out on the react-dropzone website: | |
| // https://react-dropzone.js.org/ | |
| import React from 'react'; | |
| import {useDropzone} from 'react-dropzone'; | |
| function Basic(props) { | |
| const {acceptedFiles, getRootProps, getInputProps} = useDropzone(); | |
| const files = acceptedFiles.map(file => ( |
Errors from Laravel logs:
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
ERR Error running script (call to f_1af8e79ebe56ad4d7910f2e116e2555983099baf): @user_script:8: @user_script: 8: -MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
Errors from Redis logs (/var/log/redis/redis-server.log):
* 1 changes in 900 seconds. Saving...
| Nokia : | |
| http://{s}.maptile.maps.svc.ovi.com/maptiler/v2/maptile/newest/normal.day/{z}/{x}/{y}/256/png8 | |
| MapQuest : | |
| http://a.tile.openstreetmap.org/{z}/{x}/{y}.jpg | |
| http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg | |
| http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg |