- Install Git for Windows
- Install Node
- Install Python 2.7.3
- Install Microsoft Visual Studio 2015 Community
- Open the command prompt as Administrator, run the following commands, then close the command prompt (a new prompt is required before the new environment variables will be available)
- npm install -g npm
- (Upgrades to npm v3, which no longer nests dependencies indefinitely. No more "maximum path length exceeded" errors due to the 260 character path limit in Windows, or needing to delete node_modules with rimraf.)
- setx PYTHON C:\Python27\python.exe /m
- (May need to change path to your custom install directory.)
- npm install -g npm
- Open a new command prompt and run the following commands. If these install without errors, you have bypasse
This file contains hidden or 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
tar --exclude='*node_modules*' --directory=@ -zcvf @.tar.gz . |
This file contains hidden or 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 | |
setlocal | |
title Install Additional Tools for Node.js | |
cls | |
echo ==================================================== | |
echo Tools for Node.js Native Modules Installation Script | |
echo ==================================================== |
This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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
autoKeyboardLang : function(str) | |
{ | |
var s = [ | |
"й","ц","у","к","е","н","г","ш","щ","з","х","ъ", | |
"ф","ы","в","а","п","р","о","л","д","ж","э", | |
"я","ч","с","м","и","т","ь","б","ю" | |
]; | |
var r = [ | |
"q","w","e","r","t","y","u","i","o","p","\\[","\\]", |
This file contains hidden or 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
В fields.yaml отдельно прописать my_field@update - то есть состояние кнопки при update. | |
Пример: | |
my_field: | |
type: text | |
... | |
my_field@update: | |
type: text | |
disabled: true | |
... |
This file contains hidden or 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
Если нужна связь типа "Запись имеет комментарий(ии)", то есть без pivot таблицы, | |
а просто таблица комментариев имеет доп. столбец с id записи, то: | |
1. модели Запись прописываем: | |
public $hasMany = [ | |
'comments' => 'author\myplugin\Models\Comment' | |
]; | |
2. Контроллеру Записи прописываем: | |
public $implement = ['Backend\Behaviors\RelationController'] и public $relationConfig = 'config_relation.yaml'; |
This file contains hidden or 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
<vac :left-time="9999999000"> | |
<div | |
slot="prev" | |
slot-scope="vac"> | |
<button type="button" | |
@click="() => { | |
vac.startCountdown() | |
}" | |
:disabled="vac.state === 'process' || vac.state === 'finished'">Start</button> | |
<button type="button" |
This file contains hidden or 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
<!-- https://vac.js.org/ --> | |
<template> | |
<form action="/reg" method="post"> | |
Phone Number: <input type="text" name="phoneNumber" v-model="formData.phoneNumber"> | |
<vac | |
ref="sendSMSCode" | |
tag="button" | |
type="button" | |
:autoStart="false" | |
:left-time="60000" |
This file contains hidden or 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
class SingletonDefaultExportInstance { | |
constructor() { | |
this._type = 'SingletonDefaultExportInstance'; | |
} | |
singletonMethod() { | |
return 'singletonMethod'; | |
} | |
static staticMethod() { |
NewerOlder