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
export function validateEmail(email) { | |
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | |
return re.test(email); | |
} | |
export function validateWebsiteName(url) { | |
const re = /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g; | |
return re.test(url); | |
} |
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
module.exports = { | |
entry: 'src/lib/index.js', | |
output: { | |
path: __dirname + '/src/lib/index.js', | |
filename: 'bundle.js' | |
}, | |
resolve: { | |
extensions: ['', '.js', '.jsx'] | |
}, | |
module: { |
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
{ | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"@ava/babel-plugin-throws-helper": { | |
"version": "2.0.0", | |
"resolved": "https://registry.npmjs.org/@ava/babel-plugin-throws-helper/-/babel-plugin-throws-helper-2.0.0.tgz", | |
"integrity": "sha1-L8H+PCEacQcaTsp7j3r1hCzRrnw=", | |
"dev": 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
ERROR in ./node_modules/css-loader??ref--11-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--11-4!./node_modules/sass-loader/lib/loader.js??ref--11-5!./resources/assets/sass/client/pages/index.scss | |
Module build failed: | |
$transition: 100ms;1b1d1e | |
^ | |
Invalid CSS after "...nsition: 100ms;": expected 1 selector or at-rule, was "1b1d1e" | |
in /Users/positron/Projects/stamax-website/resources/assets/sass/client/_variables.scss (line 10, column 19) | |
@ ./resources/assets/sass/client/pages/index.scss 4:14-295 | |
@ multi ./resources/assets/js/client/pages/index.js ./resources/assets/sass/client/core.scss ./resources/assets/sass/admin/core.scss ./resources/assets/sass/client/pages/about.scss ./resources/assets/sass/client/pages/index.scss ./resources/assets/sass/client/pages/progress.scss ./resources/assets/sass/client/pages/project.scss ./resources/assets/sass/client/pages/services.scss ./resources/assets/sass/admin/pages/index.scss ./resources/assets/sass/admi |
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
import Codebase from '../codebase'; | |
import '../plugins/datatables/jquery.dataTables'; | |
import 'datatables.net-select'; // eslint-disable-line | |
import '../plugins/datatables/dataTables.bootstrap4'; | |
import swal from '../plugins/sweetalert2/sweetalert2'; | |
import '../plugins/select2/select2.full'; | |
import '../plugins/jquery-validation/jquery.validate'; | |
import '../plugins/jquery-validation/additional-methods'; | |
import '../plugins/masked-inputs/jquery.maskedinput'; | |
import dtSettings from './shared/dataTables.settings'; |
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
// В деректории resources/assets/js/admin/Api я создал файл Services.js | |
import '../core'; | |
import Router from '../../common/Router'; | |
import makeForm from './shared/jsonFromJqueryForm'; | |
export default class Services { | |
static index() { | |
return $.get(Router.name('service.index')); | |
} |
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
--- | |
ip: "192.168.10.10" | |
memory: 2048 | |
cpus: 1 | |
provider: virtualbox | |
authorize: ~/.ssh/id_rsa.pub | |
keys: | |
- ~/.ssh/id_rsa |
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
<script> | |
const api = 'https://api.themoviedb.org/3/discover/movie?api_key=5874acfd11651a28c55771624f7021f4&language=en-US&primary_release_date.gte=2014-09-15&primary_release_date.lte=2017-10-22'; | |
export default { | |
mounted: () => { | |
fetch(api) | |
.then((res) => { | |
return res.json(); | |
}) | |
.then((jsonRes) => { | |
console.log('jsonRes', jsonRes); |
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
const api = 'https://www.bnm.md/ro/official_exchange_rates?get_xml=1&date=17.07.2017'; | |
componentDidMount() { | |
fetch(api, { | |
mode: 'no-cors', | |
}) | |
.then((res) => { | |
return res.text().then((text) => { | |
return text ? JSON.parse(text) : {} | |
}) |