- Add deploy.sh and releases_clear.php to project folder
- Set variables in deploy.sh:
repo, branch, path_user, path_composer, path_main
- Set variables in releases_clear.php:
$path_releases
- Run bash script in folder project for deploy:
bash deploy.sh
- Run php script for clear releases folders:
php releases_clear.php
Inertia.js ships with a fantastic form helper but it falls short when also using API/Axios calls in your project.
Here's a composable, built on top of the Inertia's form helper that hooks into it to replace the API calls with Axios.
To use, just replace useForm
with useAPIForm
.
const form = useAPIForm({
title: '',
});
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
# Example how to add rich editor capabilities to your models in admin. | |
from django.contrib.admin import site, ModelAdmin | |
import models | |
# we define our resources to add to admin pages | |
class CommonMedia: | |
js = ( | |
'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.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
# Example how to add rich editor capabilities to your models in admin. | |
from django.contrib.admin import site, ModelAdmin | |
import models | |
# we define our resources to add to admin pages | |
class CommonMedia: | |
js = ( | |
'https://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js', |
- Bambulab printer
- Home Assistant with experience how to use it.
- Google account (i.e. Gmail)
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
<template> | |
<div | |
class="virtual-scroll" | |
ref="root" | |
:style="rootStyle" | |
@scroll="onScroll"> | |
<div | |
class="virtual-scroll__viewport" | |
:style="viewportStyle"> | |
<div |
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
/* ============================================ | |
* bootstrap-infiniteScroll.js | |
* ============================================ */ | |
!function ($) { | |
'use strict'; | |
var InfiniteScroll = function (el, options) { | |
this.$element = $(el); | |
this.$data = $(el).data(); | |
this.$options = options; |
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
<?php | |
/** | |
* Class Container | |
*/ | |
class Container | |
{ | |
/** | |
* @var array | |
*/ |
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
<?php | |
namespace Sensio\Bridge\Phpmig; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** | |
* The ContainerAdapter allows the Symfony DIC to be used with phpmig. Phpmig is the tool that's used for executing | |
* migrations on the application and expects a service container that implements \ArrayAccess. This is achieved by | |
* wrapping Symfony's DIC with an adapter that implements \ArrayAccess and proxies to the DIC. |
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
@echo off | |
::where do we store the messages | |
SET mailpath=c:\xampp\tmp\mail\ | |
if not exist %mailpath% mkdir %mailpath% | |
::create filename | |
echo %date:~0,11% | |
SET filename=%date:~11,4%-%date:~7,2%-%date:~3,2%_%hours%-%time:~3,2%-%time:~6,2%_%time:~9,2% |
NewerOlder