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
{ | |
"window.zoomLevel": 1, | |
"workbench.editor.showTabs": true, | |
"editor.tabSize": 2, | |
"workbench.statusBar.feedback.visible": false, | |
"window.menuBarVisibility": "toggle", | |
"workbench.activityBar.visible": false, | |
"editor.minimap.enabled": false, | |
"files.defaultLanguage": "html", | |
"workbench.editor.tabSizing": "shrink", |
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
ValidationModule = (function() { | |
function validate(inputElement, validationsArray) { | |
const validations = validationsArray; | |
let messages = []; | |
function isNumber(input) { | |
return !isNaN(parseFloat(input.value)) && isFinite(input.value); | |
} | |
function isEmail(input) { |
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
@mixin arrow($direction: down, $size: 5px, $color: #555) { | |
width: 0; | |
height: 0; | |
@if ($direction == left) { | |
border-top: $size solid transparent; | |
border-bottom: $size solid transparent; | |
border-right: $size solid $color; | |
} | |
@else if ($direction == right) { | |
border-top: $size solid transparent; |
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
@mixin center($position) { | |
position: absolute; | |
@if $position == 'vertical' { | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
@else if $position == 'horizontal' { |
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
@mixin font-face($font-name, $file-name, $weight: normal, $style: normal) { | |
@font-face { | |
font-family: quote($font-name); | |
src: url($file-name + '.eot'); | |
src: url($file-name + '.eot?#iefix') format('embedded-opentype'), | |
url($file-name + '.woff') format('woff'), | |
url($file-name + '.ttf') format('truetype'), | |
url($file-name + '.svg##{$font-name}') format('svg'); | |
font-weight: $weight; | |
font-style: $style; |
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
@mixin aspect-ratio($width, $height) { | |
position: relative; | |
&:before { | |
display: block; | |
content: ""; | |
width: 100%; | |
padding-top: ($height / $width) * 100%; | |
} | |
> .inner-box { | |
position: absolute; |
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
@mixin text-shorten { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} |
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
/* begin mixin grid */ | |
$columns: 12; | |
$atom: (100% / $columns); | |
$break_xs: 576px; | |
$break_sm: 720px; | |
$break_md: 992px; | |
$break_lg: 1200px; | |
$offset: 15px; |
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
APP_NAME=Poputi | |
APP_ENV=local | |
APP_KEY=base64:59fCCVQ2O9v4Znp86koSAuXg2N2lTuVj1m+ApJ91lS8= | |
APP_DEBUG=true | |
APP_URL=http://localhost | |
LOG_CHANNEL=stack | |
DB_CONNECTION=mysql | |
DB_HOST=localhost |
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
1. Добавить каталог в html | |
2. Прописать ip в etc/hosts | |
3. Добавить conf файл в etc/apache2/sites-available (sudo cp /etc/apache2/sites-available/energy.full.conf /etc/apache2/sites-available/technostock.loc.conf) | |
4. Добавить conf файл в etc/apache2/sites-enabled (sudo a2ensite caps.full.conf) | |
5. Перезапустить апач (sudo service apache2 restart) | |
6. Настроить .env, .htaccess | |
7. Создать БД http://localhost/phpmyadmin/ | |
8. Уточнить права доступа в определенной директории (sudo chmod -R 777 *) | |
9. Установить пакеты (composer install) | |
10. Сгенерировать ключ для приложения (php artisan key:generate) |
OlderNewer