npm install --save-dev ftps
- Add
deploy.js
to theme/plugin root - Add
deploy.config.js
to theme/plugin root - Modify config.
- Set up Circle CI with
SFTP_HOST SFTP_PASS SFTP_USER
environmental variables
#!/usr/bin/python | |
# The MIT License | |
# | |
# Copyright 2017 Ashung.hung@gmail.com | |
# | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, |
Прописываем в VirtualHost: | |
php_admin_value mbstring.func_overload 2 | |
php_admin_value mbstring.internal_encoding utf-8 |
# Requirements | |
* Python 2.7 | |
* Google Chrome | |
* ChromeDriver - WebDriver for Chrome | |
- Download the latest chromedrive which is 2.28 from here - https://sites.google.com/a/chromium.org/chromedriver/downloads | |
- Extract and move `chromedriver` file to `/usr/local/bin/chromedriver` | |
- git clone https://github.com/li-xinyang/OS_FrontendMaster-dl | |
- cd OS_FrontendMaster-dl |
<div id="app"></div> | |
<script type="text/x-template" id="example"> | |
<div> | |
<textarea v-model="test" rows="10" style="width: 900px"> | |
</textarea> | |
<textarea v-model="comp" rows="10" style="width: 900px"> | |
</textarea> |
<div id="app"></div> | |
<script type="text/x-template" id="example"> | |
<div> | |
<textarea v-model="test" rows="10" style="width: 900px"> | |
</textarea> | |
<div> |
const marky = require('marky') | |
const render = Vue.prototype._render | |
const update = Vue.prototype._update | |
const camelize = str => str && Vue.util.camelize(str) | |
function getName (vm) { | |
if (!vm.$parent) return 'root' | |
return ( | |
camelize(vm.$options.name) || | |
camelize(vm.$options._componentTag) || |
<?php | |
/** | |
* Простой прокси-сервер на PHP для изучения и модификации данных, | |
* передаваемых между браузером и сторонним сервером. | |
* | |
* Запуск: | |
* | |
* указать URL сайта в $base | |
* php -S 127.0.0.1:9001 proxy.php | |
* |
/** | |
* Axios Request Wrapper | |
* --------------------- | |
* | |
* @author Sheharyar Naseer (@sheharyarn) | |
* @license MIT | |
* | |
*/ | |
import axios from 'axios' |
/* | |
TODO: | |
X Maybe account for defaults: color: var(--header-color, blue); | |
- Verify cross domain working or not (it is working from dropbox) | |
- Option to wait to apply anything until all <link>s are parsed or inject what we have and update as each <link> returns | |
- Need to test on a more complex CSS file | |
- Option to save parsed file in local/session storage so there isn't a delay on additional page loads. Could only do it for links (with URLs to use as keys) and style blocks with IDs of some sort | |
- Need to test more complex values like rgba(255,0,0,0.5); and something with !important | |
- Try multiple links | |
- Local links |