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
| git update-index --assume-unchanged web/src/index.tsx | |
| git update-index --assume-unchanged web/public/env-config.js |
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 setPartialSettingsParameters = useCallback( | |
| (settings) => { | |
| setSettings((prevState: Partial<SettingsRequest>) => ({ | |
| ...prevState, | |
| ...settings, | |
| })); | |
| }, | |
| [setSettings] |
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
| interface hashtable { | |
| [key: string]: string; | |
| } |
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
| @mixin ellipsis { | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } |
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
| @mixin scrollbar() { | |
| $color: $silver; | |
| $background-color: $white; | |
| $margin: 0; | |
| $margin2: 0; | |
| scrollbar-width: thin; | |
| scrollbar-color: $color $background-color; |
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 usePersistFn(fn: Function) { | |
| const fnRef = useRef<Function>(fn); | |
| fnRef.current = fn; | |
| const persistFn = useRef<Function>(); | |
| if (!persistFn.current) { | |
| persistFn.current = function (...args: any) { | |
| return fnRef.current.apply(this, args); | |
| }; | |
| } | |
| return persistFn.current; |
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
| Person person = new Person { Name = "Tom", Age = 33 }; | |
| (string name, int age) = person; | |
| Console.WriteLine(name); // Tom | |
| Console.WriteLine(age); // 33 |
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
| &__menu-noselect { | |
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; | |
| -khtml-user-select: none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| -webkit-tap-highlight-color: transparent; | |
| } |
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
| Оператор ?? - оператором null-объединения. | |
| оператор ?. - условного null | |
| Индексаторы позволяют индексировать объекты и обращаться к данным по индексу. | |
| возвращаемый_тип this [Тип параметр1, ...] |
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
| interface IPerson { | |
| name: string; | |
| } | |
| class Person { | |
| name: string; | |
| constructor(userName: string) { | |
| this.name = userName; | |
| } |