MCPcopy Create free account
hub / github.com/error311/FileRise / parseCursorOffset

Function parseCursorOffset

public/js/fileListView.js:1959–1964  ·  view source on GitHub ↗
(cursor)

Source from the content-addressed store, hash-verified

1957}
1958
1959function parseCursorOffset(cursor) {
1960 const text = String(cursor == null ? '' : cursor).trim();
1961 if (!/^\d+$/.test(text)) return 0;
1962 const value = parseInt(text, 10);
1963 return Number.isFinite(value) && value > 0 ? value : 0;
1964}
1965
1966function getSubfoldersForPagingContext(pane, folder, sourceId = '') {
1967 const paneKey = normalizePaneKey(pane);

Callers 3

renderFileTableFunction · 0.85
goToCombinedServerPageFunction · 0.85
fileListView.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected