/
vshmidt
/
cloudbeaver
Обзор
Документация
Войти
/
vshmidt
/
cloudbeaver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
webapp/packages/plugin-sql-editor/src/SqlDataSource/SqlDataSourceHistory/createSqlDataSourceHistoryInitialState.ts
15 строк
540 B
sergeyteleshev
[CB] SQL editor - ctrl+z during autosave scrolls the script to the top #5645 (#3470)
23 июн 2025, 14:44
Не верифицирован
23 июн 2025, 14:44
beecc84
Код
Авторство
О чём код?
/* * CloudBeaver - Cloud Database Manager * Copyright (C) 2020-2025 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import type { ISqlDataSourceHistoryState } from './ISqlDataSourceHistoryState.js'; export function createSqlDataSourceHistoryInitialState(value = ''): ISqlDataSourceHistoryState { return { history: [{ value, source: 'initial', timestamp: Date.now(), cursor: { anchor: 0, head: 0 } }], historyIndex: 0, }; }