Contents:
- show full path for the item
- show tree in ol li
- show tree in dropdown select
- one item
<template> | |
<div id="app"> | |
<p>{{ message }}</p> | |
</div> | |
</template> | |
<script> | |
export default { | |
data: function () { | |
return { |
:plain | |
var existingModal = document.querySelector("[data-controller='modal']"); | |
if (existingModal) { | |
document.body.removeChild(existingModal); | |
} | |
document.body.insertAdjacentHTML("beforeend", "#{j render partial: template.to_s}"); |
<div class="w-2/6 p-5"> | |
<%= render partial: 'shared/global/logo' %> | |
<div class="flex w-full justify-center my-4"> | |
<p class="text-center w-full body-font text-2xl font-semibold text-primary-700">Free 14 Day Trial Registration</p> | |
</div> | |
<div class="w-full mt-4"> | |
<%= form_for(@account, html: { class: 'w-full p-3' }) do |f| %> | |
<% if @account.errors.any? %> | |
<div id="error_explanation"> |
{ | |
getters: { | |
brandIcon() { | |
return (text, defaultIcon) => { | |
const isBrand = brandIcons.includes(text.toLowerCase()); | |
if (isBrand) { | |
return `fa-${text.toLowerCase()}`; | |
} | |
return `fa-${defaultIcon}`; | |
}; |
def create | |
@room = Room.find(params[:room_id]) | |
@event = @room.events.create(event_params) | |
@event.create_recurring_events | |
end |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.zshrc | |
source ~/.zshrc | |
sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev | |
rbenv install -v 2.3.1 | |
rbenv global 2.3.1 |
<template> | |
<div :id="uppyId"> | |
<div class="ThumbnailContainer" v-if="collection === 'thumbnail'"> | |
<button id="open-thumbnail-modal" class="button">Select file</button> | |
</div> | |
<div class="DashboardContainer" v-else></div> | |
</div> | |
</template> |