Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jparkerweb committed Jan 6, 2025
1 parent a152686 commit 92ba2c3
Show file tree
Hide file tree
Showing 24 changed files with 2,497 additions and 1,544 deletions.
24 changes: 15 additions & 9 deletions .env
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
ONNX_EMBEDDING_MODEL="Xenova/all-MiniLM-L6-v2"
ONNX_EMBEDDING_MODEL_PRECISION=q8
# | Model | Precision | Size |
# | -------------------------------------------- | -------------- | ---------------------- |
# | Xenova/all-MiniLM-L6-v2 | fp32, fp16, q8 | 90 MB, 45 MB, 23 MB |
# | Xenova/all-MiniLM-L12-v2 | fp32, fp16, q8 | 133 MB, 67 MB, 34 MB |
# | Xenova/paraphrase-multilingual-MiniLM-L12-v2 | fp32, fp16, q8 | 470 MB, 235 MB, 118 MB |
# | Xenova/all-distilroberta-v1 | fp32, fp16, q8 | 326 MB, 163 MB, 82 MB |
# | BAAI/bge-small-en-v1.5 | fp32 | 133 MB |
ONNX_EMBEDDING_MODEL="Xenova/all-MiniLM-L12-v2"
ONNX_EMBEDDING_MODEL_PRECISION=fp32
# | Model | Precision | Size | Requires Prefix | Data Prefix | Search Prefix |
# | -------------------------------------------- | -------------- | ---------------------- | --------------- | --------------- | ------------- |
# | Xenova/all-MiniLM-L6-v2 | fp32, fp16, q8 | 90 MB, 45 MB, 23 MB | false | null | null |
# | Xenova/all-MiniLM-L12-v2 | fp32, fp16, q8 | 133 MB, 67 MB, 34 MB | false | null | null |
# | Xenova/paraphrase-multilingual-MiniLM-L12-v2 | fp32, fp16, q8 | 470 MB, 235 MB, 118 MB | false | null | null |
# | nomic-ai/modernbert-embed-base | fp32, fp16, q8 | 568 MB, 284 MB, 146 MB | true | search_document | search_query |
# | Xenova/all-distilroberta-v1 | fp32, fp16, q8 | 326 MB, 163 MB, 82 MB | false | null | null |
# | BAAI/bge-small-en-v1.5 | fp32 | 133 MB | false | null | null |

ONNX_EMBEDDING_MODEL_REQUIRES_PREFIX=false
# ONNX_EMBEDDING_MODEL_REQUIRES_PREFIX=true
ONNX_EMBEDDING_MODEL_DOCUMENT_PREFIX="search_document: "
ONNX_EMBEDDING_MODEL_QUERY_PREFIX="search_query: "

ALLOW_REMOTE_MODELS=true
LOCAL_MODEL_PATH=models/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,17 @@
"showPinIcon": true,
"pinnedImageFolder": "pixel-banner-images",
"showReleaseNotes": true,
"lastVersion": "2.13.2",
"lastVersion": "2.18.2",
"showRefreshIcon": true,
"showViewImageIcon": false,
"hidePixelBannerFields": true,
"hidePropertiesSectionIfOnlyBanner": true,
"titleColor": "#000000",
"enableImageShuffle": false
"enableImageShuffle": false,
"hideEmbeddedNoteTitles": false,
"hideEmbeddedNoteBanners": false,
"showSelectImageIcon": true,
"defaultSelectImagePath": "",
"useShortPath": true,
"bannerGap": 12
}
906 changes: 804 additions & 102 deletions .vault/fast-topic-analysis/.obsidian/plugins/pexels-banner/main.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
{"id":"pexels-banner","name":"Pixel Banner","version":"2.13.2","minAppVersion":"1.6.0","description":"Apply an image from various sources as a banner to your notes.","author":"Justin Parker (eQui\\\\ Labs)","authorUrl":"https://www.equilllabs.com","fundingUrl":"https://ko-fi.com/jparkerweb","isDesktopOnly":false}
{
"id": "pexels-banner",
"name": "Pixel Banner",
"version": "2.18.2",
"minAppVersion": "1.6.0",
"description": "Apply an image from various sources as a banner to your notes.",
"author": "Justin Parker (eQui\\\\ Labs)",
"authorUrl": "https://www.equilllabs.com",
"fundingUrl": "https://ko-fi.com/jparkerweb",
"isDesktopOnly": false
}
162 changes: 151 additions & 11 deletions .vault/fast-topic-analysis/.obsidian/plugins/pexels-banner/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
.pixel-banner-image {
position: absolute;
top: 0;
/* left: 0; */
left: var(--pixel-banner-scrollbar-width, 0);
right: 0;
width: var(--pixel-banner-width, 100vw) !important; /* fix banner width with some themes */
max-width: var(--pixel-banner-width, 100vw) !important; /* fix banner width with some themes */
/* left: 0; */
/* right: 0; */
/* width: var(--pixel-banner-width, 100vw) !important; */
/* max-width: var(--pixel-banner-width, 100vw) !important; */
left: var(--pixel-banner-banner-gap, 0);
right: var(--pixel-banner-banner-gap, 0);
background-size: cover;
background-position: 50% 50%;
overflow: hidden;
Expand All @@ -28,9 +29,22 @@
z-index: -1;
}

/* for embedded notes, do not override the width */
.markdown-embed .pixel-banner-image {
width: inherit !important;
/* for embedded notes, set width and left position */
.markdown-embed-content .pixel-banner-image {
position: absolute !important;
left: 0 !important;
width: 100vw !important;
z-index: unset !important;
}
.markdown-embed-content .pixel-banner-image ~ div {
position: relative;
z-index: 1;
}

/* collapse scrollbar gutter when no scrollbar is present */
.pixel-banner .markdown-preview-view,
.pixel-banner .markdown-source-view .cm-scroller {
scrollbar-gutter: auto !important;
}

/* Apply title color to both reading and editing mode */
Expand Down Expand Up @@ -82,9 +96,9 @@
transform: scale(1.2);
}

/* ------------------------------------------------------------------ */
/* -- push frontmatter container down to give room to banner image -- */
/* ------------------------------------------------------------------ */
/* ----------------------------------------------------- */
/* -- content start (push frontmatter container down) -- */
/* ----------------------------------------------------- */
.pixel-banner .cm-sizer:first-of-type,
.pixel-banner .markdown-preview-sizer:first-of-type {
padding-top: var(--pixel-banner-content-start, 150px);
Expand All @@ -95,6 +109,10 @@
.internal-embed > .markdown-embed-content .markdown-preview-sizer:first-of-type {
padding-top: unset !important;
}
.internal-embed > .markdown-embed-content .cm-sizer:first-of-type > .pixel-banner-image + .markdown-preview-pusher,
.internal-embed > .markdown-embed-content .markdown-preview-sizer:first-of-type > .pixel-banner-image + .markdown-preview-pusher {
height: var(--pixel-banner-content-start, 0.1px) !important;
}

/* -------------------------- */
/* -- Settings Page Styles -- */
Expand Down Expand Up @@ -482,3 +500,125 @@
.pixel-banner-image-modal {
width: var(--dialog-max-width);
}

.pixel-banner-image-select-modal {
width: var(--dialog-max-width);
max-width: 1100px;
}

.pixel-banner-image-select-description {
margin-top: -15px;
font-size: 0.8em;
word-break: break-all;
color: var(--text-muted);
margin-bottom: 15px;
}

.pixel-banner-search-container {
margin-bottom: 1rem;
}

.pixel-banner-search-container input {
width: 100%;
padding: 8px;
border-radius: 4px;
border: 1px solid var(--background-modifier-border);
}

.pixel-banner-search-container .search-row {
flex: 1;
display: flex;
gap: 8px;
margin: 0;
}
.pixel-banner-search-container .controls-row {
flex: 0 auto;
display: flex;
gap: 8px;
margin: 0;
}

.pixel-banner-image-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
padding: 1rem;
overflow-y: auto;
max-height: 60vh;
}

.pixel-banner-image-container {
position: relative;
cursor: pointer;
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
padding: 8px;
transition: all 0.2s ease;
}

.pixel-banner-image-container:hover {
transform: translateY(-2px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
background-color: var(--background-modifier-hover);
}

.pixel-banner-image-thumbnail {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 2px;
}

.pixel-banner-image-path {
margin-top: 8px;
font-size: 0.8em;
word-break: break-all;
color: var(--text-muted);
}

.pixel-banner-image-error {
height: 150px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--background-modifier-error);
color: var(--text-error);
border-radius: 2px;
}

.select-image-icon {
z-index: var(--layer-modal);
opacity: 0.2;
transition: all 0.3s ease-in-out;
}
.select-image-icon:hover {
opacity: 1;
cursor: pointer;
transform: scale(1.2);
}

/* mobile layout */
@media screen and (max-width: 775px) {
.pixel-banner-search-container {
flex-direction: column !important;
gap: 8px !important;
}

.pixel-banner-search-container .search-row {
display: flex;
width: 100%;
gap: 8px;
}

.pixel-banner-search-container .controls-row {
display: flex;
width: 100%;
gap: 8px;
justify-content: space-between;
align-items: center;
}

.pixel-banner-search-container input[type="text"] {
flex: 1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"updateDelay": 3000,
"excludedParentSelectors": [],
"frontmatterExclusionField": "",
"lastVersion": "1.10.3"
"lastVersion": "1.10.5"
}
Loading

0 comments on commit 92ba2c3

Please sign in to comment.