mirror of
https://github.com/arsenije/Uru.git
synced 2026-07-22 08:28:21 +00:00
Replaces the imperative display()/hide() rendering with getSettingDefinitions() (Obsidian 1.13), so Uru's settings appear in the app-wide settings search and the deprecated display() path is gone. - Static controls (Index on startup, Include frontmatter, Ignore patterns) become declarative control definitions; getControlValue/ setControlValue handle the string[] <-> newline mapping for ignoreGlobs, persist via saveSettings(), and keep the immediate applyIgnorePatterns() side effect - Live rows (backend status, index action + progress bar, uninstall preflight) stay imperative via render definitions; each render's returned cleanup replaces the old hide() subscription bookkeeping - The collapsed <details> sections (Advanced, Models, Danger zone) become navigable sub-pages, making their settings searchable; the now-unused .uru-advanced CSS is removed - Post-action refreshes (Repair, uninstall) call update() instead of the deprecated display() npm run lint is now fully clean (was 5 settings-tab warnings). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
243 lines
4.8 KiB
CSS
243 lines
4.8 KiB
CSS
/* Uru recall view */
|
|
.uru-recall {
|
|
padding: 0.5rem;
|
|
}
|
|
.uru-recall-bar {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
.uru-recall-input {
|
|
flex: 1;
|
|
}
|
|
.uru-recall-status {
|
|
color: var(--text-muted);
|
|
padding: 0.5rem 0;
|
|
}
|
|
.uru-recall-item {
|
|
padding: 0.5rem 0;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
.uru-recall-item-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
}
|
|
.uru-recall-title {
|
|
cursor: pointer;
|
|
font-weight: var(--font-semibold);
|
|
}
|
|
.uru-recall-title:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.uru-recall-snippet {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
margin-top: 0.2rem;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Uru chat view */
|
|
.uru-chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
padding: 0.5rem;
|
|
}
|
|
.uru-chat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-weight: var(--font-semibold);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.uru-chat-new {
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
.uru-chat-scope {
|
|
display: inline-flex;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
overflow: hidden;
|
|
}
|
|
.uru-scope-btn {
|
|
font-size: var(--font-ui-smaller);
|
|
padding: 0.15rem 0.55rem;
|
|
border: none;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
background: var(--background-secondary);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
}
|
|
.uru-scope-btn.is-active {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
.uru-chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.6rem;
|
|
}
|
|
.uru-chat-msg {
|
|
display: flex;
|
|
}
|
|
.uru-chat-user {
|
|
justify-content: flex-end;
|
|
}
|
|
.uru-chat-body {
|
|
max-width: 85%;
|
|
padding: 0.45rem 0.7rem;
|
|
border-radius: var(--radius-m);
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
.uru-chat-user .uru-chat-body {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
.uru-chat-assistant .uru-chat-body {
|
|
background: var(--background-modifier-hover);
|
|
white-space: normal;
|
|
}
|
|
.uru-chat-sources {
|
|
margin-top: 0.5rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.3rem;
|
|
}
|
|
.uru-chat-cite {
|
|
cursor: pointer;
|
|
font-size: var(--font-ui-smaller);
|
|
background: var(--background-secondary);
|
|
border-radius: var(--radius-s);
|
|
padding: 0.1rem 0.4rem;
|
|
}
|
|
.uru-chat-cite:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.uru-chat-bar {
|
|
display: flex;
|
|
gap: 0.4rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
.uru-chat-input {
|
|
flex: 1;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* Uru chat — first-run empty state */
|
|
.uru-empty {
|
|
margin: auto;
|
|
max-width: 22rem;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.6rem;
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
.uru-empty-title {
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-normal);
|
|
}
|
|
.uru-empty-copy {
|
|
margin: 0;
|
|
font-size: var(--font-ui-small);
|
|
line-height: 1.5;
|
|
color: var(--text-muted);
|
|
}
|
|
.uru-empty-action {
|
|
margin-top: 0.4rem;
|
|
}
|
|
.uru-empty-btn {
|
|
cursor: pointer;
|
|
}
|
|
.uru-progress {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
.uru-progress-track {
|
|
height: 6px;
|
|
border-radius: var(--radius-s);
|
|
background: var(--background-modifier-border);
|
|
overflow: hidden;
|
|
}
|
|
.uru-progress-fill {
|
|
height: 100%;
|
|
/* Driven by JS via a custom property (no inline width styles). */
|
|
width: var(--uru-progress, 0%);
|
|
background: var(--interactive-accent);
|
|
transition: width 0.2s ease;
|
|
}
|
|
.uru-progress-track.is-indeterminate .uru-progress-fill {
|
|
width: 40%;
|
|
animation: uru-indeterminate 1.1s ease-in-out infinite;
|
|
}
|
|
@keyframes uru-indeterminate {
|
|
0% { margin-left: -40%; }
|
|
100% { margin-left: 100%; }
|
|
}
|
|
.uru-progress-label {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Uru settings — indexing progress */
|
|
.uru-index-progress {
|
|
margin: 0.2rem 0 1rem;
|
|
}
|
|
.uru-index-progress-track {
|
|
height: 6px;
|
|
border-radius: 3px;
|
|
background: var(--background-modifier-border);
|
|
overflow: hidden;
|
|
}
|
|
.uru-index-progress-fill {
|
|
height: 100%;
|
|
/* Driven by JS via a custom property (no inline width styles). */
|
|
width: var(--uru-progress, 0%);
|
|
background: var(--interactive-accent);
|
|
transition: width 0.2s ease;
|
|
}
|
|
.uru-index-progress-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
margin-top: 0.35rem;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
}
|
|
.uru-index-progress-current {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.uru-index-progress-hint {
|
|
margin-top: 0.4rem;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-faint);
|
|
line-height: 1.4;
|
|
}
|
|
.uru-index-interrupted {
|
|
margin: 0 0 0.8rem;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-warning);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Uru setup modal */
|
|
.uru-setup-log {
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
font-size: var(--font-ui-smaller);
|
|
background: var(--background-secondary);
|
|
padding: 0.5rem;
|
|
border-radius: var(--radius-s);
|
|
white-space: pre-wrap;
|
|
margin-top: 0.5rem;
|
|
}
|