Farmbot-Web-App/app/views/pages/farm_designer.html.erb

19 lines
445 B
Plaintext

<div id="root">
</div>
<script type="text/javascript">
window.initialState = {
leftMenu: {
component: 'PlantInventory',
tab: 'Plants'
},
global: {
plants: <%= raw(current_user.device.plants.to_json) %>,
planting_area: <%= raw PlantingArea.find_or_create_by(device: current_user.device).to_json %>,
selectedPlant: {}
}
};
</script>
<%= javascript_include_tag "/build/farm-designer.js" %>