New page Stammdaten -> JSON-Editor edits the data files of the selected year
and mandator (default Transactions.json) as plain JSON in Monaco (BlazorMonaco
3.5.0, loaded on demand): highlighting, folding, live syntax errors, search
and replace with regex, format.
RawDataRepository saves only validated text: strict JSON (unknown properties
rejected with line/column), unique non-empty Ids, transactions referencing
existing accounts, accounts still used by transactions not removed. It refuses
if the file changed since loading, backs up the previous version to
backup/{mandator}/{year}/json-{timestamp}/, and saves through BaseRepository
so caches are refreshed.
- Hub MaximumReceiveMessageSize raised to 8 MB (files are several hundred KB)
- unsaved-guard.js asks before leaving with unsaved changes; NavigationLock
doesn't apply because routing between per-page interactive pages is static
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74 lines
1.1 KiB
CSS
74 lines
1.1 KiB
CSS
.json-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.separator {
|
|
width: 1px;
|
|
align-self: stretch;
|
|
background: #e1e0d9;
|
|
margin: 0 4px;
|
|
}
|
|
|
|
.status {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
color: #52514e;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.dirty {
|
|
color: #c50f1f;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.errors {
|
|
margin: 4px 0 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
/* A button, not a link: it only moves the cursor, it must not navigate. */
|
|
.errors .link {
|
|
border: none;
|
|
background: none;
|
|
padding: 0;
|
|
font: inherit;
|
|
color: #0f6cbd;
|
|
text-align: left;
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.editor-frame {
|
|
height: calc(100vh - 290px);
|
|
min-height: 380px;
|
|
border: 1px solid #e1e0d9;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.editor-frame ::deep .monaco-host {
|
|
height: 100%;
|
|
}
|
|
|
|
.hint {
|
|
color: #52514e;
|
|
font-size: 12px;
|
|
}
|