View BaseTable.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
const BaseTable = { | |
props: { | |
fields: { | |
type: Array, | |
default: [], | |
validator(fields) { | |
return fields.find(field => field?.key === undefined || field?.label === undefined) === undefined | |
}, | |
}, |
View serve-side-block.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { __ } = wp.i18n; | |
const { registerBlockType } = wp.blocks; | |
const el = wp.element.createElement; | |
registerBlockType( 'hiRoy/serverSide', { | |
title: __( 'Server Side Block', 'text-domain' ), | |
icon: 'networking', | |
category: 'common', | |
attributes: { |
View nvmCommands.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
View Vagrantfile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Vagrantfile b/Vagrantfile | |
index ec02352..235e0b1 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -107,9 +107,9 @@ Vagrant.configure("2") do |config| | |
# plugin is installed. | |
if File.exists?(File.join(vagrant_dir,'database/data/mysql_upgrade_info')) then | |
if vagrant_version >= "1.3.0" | |
- config.vm.synced_folder "database/data/", "/var/lib/mysql", :mount_options => [ "dmode=777", "fmode=777" ] | |
+ config.vm.synced_folder "database/data/", "/var/lib/mysql-synced", :mount_options => [ "dmode=777", "fmode=777" ] |