-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add empty chat view * Add UI for chat * Store chat history in localStorage, add button * Change placeholder color * Implement UI for (dummy) AI response * Get chat response from API * Change icon to family tree * Add loading animation, render markdown links * Change type to role, submit history * Update plugin * Error handling in chat * Fix lint error * Add clear button to chat * Add string * Only show chat if authorised to use * lint issues * Add UI to manage chat permissions * Add button group component * Add UI for semantic search * UI for chat quota * Add UI to manage semantic search index
- Loading branch information
1 parent
a1575db
commit f1d53d8
Showing
22 changed files
with
1,241 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import {LitElement, html, css} from 'lit' | ||
|
||
import '@material/mwc-icon-button' | ||
|
||
import {sharedStyles} from '../SharedStyles.js' | ||
import {GrampsjsTranslateMixin} from '../mixins/GrampsjsTranslateMixin.js' | ||
import './GrampsjsTooltip.js' | ||
|
||
export class GrampsjsButtonGroup extends GrampsjsTranslateMixin(LitElement) { | ||
static get styles() { | ||
return [ | ||
sharedStyles, | ||
css` | ||
#button-container { | ||
--mdc-typography-button-font-size: 12px; | ||
margin: 12px 0; | ||
} | ||
#button-container div { | ||
border: 1px solid var(--mdc-theme-primary); | ||
opacity: 0.9; | ||
border-radius: 8px; | ||
display: inline-block; | ||
padding: 4px; | ||
} | ||
`, | ||
] | ||
} | ||
|
||
render() { | ||
return html` | ||
<div id="button-container"> | ||
<div> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
` | ||
} | ||
} | ||
|
||
window.customElements.define('grampsjs-button-group', GrampsjsButtonGroup) |
Oops, something went wrong.