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
// Domains | |
{ | |
"domains": { | |
"external": "https://google.com", | |
"internal": "google", | |
"domain": "mycloudshop.ru" | |
} | |
} | |
// Products |
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
const Settings = types | |
.model('Settings', { | |
categories: types.array( | |
types.model('Categories', { | |
name: types.string, | |
favorite: types.boolean, | |
description: types.string, | |
}) | |
), | |
products: types.model('Products', { |
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
[ | |
{ | |
"id": "PosNumber", | |
"label": "нумерация позиций", | |
"shortLabel": "Поз.", | |
"allowTotal": false | |
}, | |
{ | |
"id": "Product", | |
"label": "название товара", |
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
/* eslint-disable no-use-before-define */ | |
import React from 'react'; | |
import TextField from '@material-ui/core/TextField'; | |
import Autocomplete from '@material-ui/lab/Autocomplete'; | |
import parse from 'autosuggest-highlight/parse'; | |
import match from 'autosuggest-highlight/match'; | |
export default function Highlights() { | |
return ( | |
<Autocomplete |
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
import React from "react"; | |
import Settings from "@material-ui/icons/Settings"; | |
import IconButton from "@material-ui/core/IconButton"; | |
import Menu from "@material-ui/core/Menu"; | |
import ListItem from "@material-ui/core/ListItem"; | |
import ListItemIcon from "@material-ui/core/ListItemIcon"; | |
import ListItemText from "@material-ui/core/ListItemText"; | |
import ListSubheader from "@material-ui/core/ListSubheader"; | |
import Checkbox from "@material-ui/core/Checkbox"; | |
import {observer} from "mobx-react-lite"; |
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
import blue from "@material-ui/core/colors/blue"; | |
import grey from "@material-ui/core/colors/grey"; | |
import lightGreen from "@material-ui/core/colors/lightGreen"; | |
import { createMuiTheme } from "@material-ui/core/styles"; | |
const background = { | |
dark: { | |
paper: '#282C34', | |
default: '#1c2025' | |
}, |
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
const winax = require('winax'); | |
const sbrf = new winax.Object('SBRFSRV.Server'); | |
let opResultCode; | |
const opPinpadCheckResultCode = sbrf.NFun(7003); | |
console.log(opPinpadCheckResultCode, opPinpadCheckResultCode === 0 ? 'пинпад есть' : 'пинпада нет'); | |
sbrf.clear(); | |
// контрольная лента | |
console.info('[контрольная лента]'); |
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
import React, { Component } from 'react'; | |
import { Keyboard, TextInput } from 'react-native'; | |
class Example extends Component { | |
state = { | |
keyboardOffset: 0, | |
}; | |
componentDidMount() { | |
this.keyboardDidShowListener = Keyboard.addListener( |
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
import React, { Component } from 'react'; | |
import { Keyboard, TextInput } from 'react-native'; | |
class Example extends Component { | |
state = { | |
keyboardOffset: 0, | |
}; | |
componentDidMount() { | |
this.keyboardDidShowListener = Keyboard.addListener( |
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
import React from 'react'; | |
import { connect } from 'react-redux'; | |
import Intercom from 'react-native-intercom'; | |
import CodePush from 'react-native-code-push'; | |
import { | |
AppState, | |
} from 'react-native'; | |
import { | |
websocket, | |
user, |
NewerOlder