Install dependencies and build the library from the terminal
yarn install
yarn build
This will generate some files in the dist
folder.
To use the map import dist/main.js
script and initialize it with window.initMapApp(element)
<php | |
add_filter('template_include', function ($template) { | |
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) { | |
return apply_filters("sage/template/{$class}/data", $data, $template); | |
}, []); | |
$url_path = trim(parse_url(add_query_arg(array()), PHP_URL_PATH), '/'); | |
if(strpos($url_path, "inventory/category/") !== false){ | |
$template = get_stylesheet_directory().'/views/virtual-category.blade.php'; | |
echo template($template, $data); |
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import "babel-polyfill"; | |
const App = ()=> { | |
return <h1>I'm an app</h1> | |
} | |
const init = () => { | |
ReactDOM.render(<App />, document.getElementById("reactApp")); |
# ---------------------- | |
# Git Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add -A' | |
alias gb='git branch' | |
alias gf='git fetch' | |
alias gplo='git pull origin' | |
alias gbd='git branch -d ' |
.lq-choices { | |
display:flex; | |
} |