- Добавляем новую ветку
- Добавляем класс Organization в types
- Делаем API списка организаций по сваггеру
- Меняем API пользователя с учетом привязки к организациям
- Добавляем список организаций пользователю
- Добавляем в организацию список привязанных веток
- UI списка групп
- UI привязки веток к организации
Временная мёртвая зона (TDZ) обеспечивается на нескольких уровнях работы JavaScript-движка. Вот как это реализовано технически:
На этапе компиляции движок JavaScript выполняет:
- Анализ лексического окружения (LexicalEnvironment):
- Для каждого блока создаётся отдельное лексическое окружение
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 bindHandler = (e) => { | |
if (pause) { | |
dispatch(setBind(e.code)); | |
dispatch(setPause(false)); | |
e.preventDefault(); | |
e.stopPropagation(); | |
} | |
} |
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
setBind: (state, action) => { | |
const code = action.payload; | |
if (state.direction) { | |
state.bindings[state.direction] = code; | |
state.direction = null; | |
} | |
}, |
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
useEffect(() => { | |
if (row) { | |
nameRef.current?.value = name; | |
cityRef.current?.value = city; | |
} | |
}, [row]); |
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 displayWidth = 8; | |
const maxInt = parseInt("9".repeat(displayWidth)); | |
const minInt = parseInt("-" + "9".repeat(displayWidth - 1)); | |
const wrongValue = new RuntimeError('некорректное значение'); | |
const wrongOperation = new RuntimeErr('некорректная операция (переполнение)') | |
const createInteger = (string) => { | |
const value = parseInt(string); |
Installing ibus
on Debian has a tendency to stop the keyboard working, particularly in KDE system dialogue boxes and search feilds. ibus
is not really required, so patching the deb to prevent the install from also installing ibus
as a required dependecy solves the problem:
S=$(mktemp -d)
dpkg -x zoom_amd64.deb $S
dpkg -e zoom_amd64.deb $S/DEBIAN
sed -i -E 's/(ibus, |, ibus)//' $S/DEBIAN/control
dpkg -b $S zoom_amd64-no-ibus.deb
- Создаем новое реакт-приложение. Нет, старое не подойдет, мне нужно проверить способность создавать приложение самостоятельно
- Добавляем react-router и react-router-dom
- Добавляем react-redux и @reduxjs/toolkit
- Делаем роутинг с использование react-router, так чтобы было, как минимум, две страницы
- Плюсом будет добавление ссылок для навигации между страницами
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 './App.css' | |
import { store } from './store/index' | |
import { Provider } from 'react-redux' | |
import { Row } from './components/row' | |
import { Cell } from './components/cell' | |
function App() { | |
return ( | |
<Provider store={ store }> |
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 authUrl = (path: string): string => { | |
return ( | |
__APPLICATION__.__APPLICATION__CONFIG__.services.auth_server_service | |
+ path | |
); | |
} |
NewerOlder