Skip to content

Commit

Permalink
v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jparkerweb committed Dec 1, 2024
1 parent 2cc1efd commit 203cf53
Show file tree
Hide file tree
Showing 20 changed files with 2,747 additions and 426 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

All notable changes to Rich Foot will be documented in this file.

## [1.8.1] - 2024-11-30
## [1.9.0] - 2024-11-30
### ✨ Added
- Option to combine `Outlinks` / `Backlinks` in one view called `Links`
- Directional arrows for `Links`
- Outlinks for `footnote` internal links

### 🐛 Fixed
Expand Down
12 changes: 5 additions & 7 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
## 🫣 Page Preview Support
## 🥙 Stuffed Links

### [1.8.1] - 2024-11-30
### [1.9.0] - 2024-11-30
#### ✨ Added
- Option to combine `Outlinks` / `Backlinks` in one view called `Links`
- Directional arrows for `Links`
- Outlinks for `footnote` internal links

#### 🐛 Fixed
- `Page Preview` not displaying properly in `editing mode`

### [1.8.0] - 2024-11-29
#### ✨ Added
- Support for `Page Preview` core plugin for `Outlinks` & `Backlinks`

[![screenshot](https://raw.githubusercontent.com/jparkerweb/rich-foot/refs/heads/main/img/releases/rich-foot-v1.8.0.jpg)](https://raw.githubusercontent.com/jparkerweb/rich-foot/refs/heads/main/img/releases/rich-foot-v1.8.0.jpg)
[![screenshot](https://raw.githubusercontent.com/jparkerweb/ref/refs/heads/main/equill-labs/rich-foot/rich-foot-v1.9.0.jpg)](https://raw.githubusercontent.com/jparkerweb/ref/refs/heads/main/equill-labs/rich-foot/rich-foot-v1.9.0.jpg)
Binary file modified example-vault.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"showPinIcon": true,
"pinnedImageFolder": "pixel-banner-images",
"showReleaseNotes": true,
"lastVersion": "2.10.2",
"lastVersion": "2.11.0",
"showRefreshIcon": true,
"hidePixelBannerFields": true,
"hidePropertiesSectionIfOnlyBanner": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ var ReleaseNotesModal = class extends import_obsidian2.Modal {
};

// virtual-module:virtual:release-notes
var releaseNotes = "<h2>\u{1F389} What&#39;s New</h2>\n<h3>v2.10.2</h3>\n<h4>\u{1F41B} Fixed</h4>\n<ul>\n<li>Banners were being applied to the background of embedded media (images, videos, etc.)</li>\n</ul>\n<h4>\u{1F4E6} Updated</h4>\n<ul>\n<li>Improved Pexels API key validation</li>\n</ul>\n<h3>v2.10.1</h3>\n<h4>\u2728 Added</h4>\n<ul>\n<li>Color Picker Reset button for Folder Images tab (only applies if Inline Titles are enabled in Obsidian Settings)</li>\n</ul>\n<h4>\u{1F41B} Fixed</h4>\n<ul>\n<li>Display the correct color in the Color Picker for Inline Titles when the control is reset</li>\n</ul>\n<h3>v2.10.0</h3>\n<h4>\u2728 Added</h4>\n<ul>\n<li>Color Picker for Inline Titles<ul>\n<li>Only applied if Inline Titles are enabled in Obsidian Settings:<ul>\n<li><code>Appearance</code> &gt; <code>Show inline title</code></li>\n</ul>\n</li>\n<li>Can be defined on the General, Custom Field Names, and Folder Images tabs</li>\n</ul>\n</li>\n</ul>\n";
var releaseNotes = '<h2>\u{1F389} What&#39;s New</h2>\n<h3>v2.11.0</h3>\n<h4>\u2728 Added</h4>\n<ul>\n<li><p>Ability to \u{1F4CC} Pin URL banners</p>\n<p><em>Great for when you find a URL for an image you want to use in Pixel Banner, you can quickly save it by adding the URL and then &quot;Pinning&quot; it.</em></p>\n</li>\n</ul>\n<p><a href="https://raw.githubusercontent.com/jparkerweb/pixel-banner/refs/heads/main/img/releases/pixel-banner-v2.11.0.jpg"><img src="https://raw.githubusercontent.com/jparkerweb/pixel-banner/refs/heads/main/img/releases/pixel-banner-v2.11.0.jpg" alt="screenshot"></a></p>\n';

// src/main.js
module.exports = class PixelBannerPlugin extends import_obsidian3.Plugin {
Expand Down Expand Up @@ -1281,7 +1281,7 @@ module.exports = class PixelBannerPlugin extends import_obsidian3.Plugin {
}
}
const inputType = this.getInputType(bannerImage);
const canPin = imageUrl && inputType === "keyword" && this.settings.showPinIcon;
const canPin = imageUrl && (inputType === "keyword" || inputType === "url") && this.settings.showPinIcon;
if (checking) return canPin;
if (canPin) {
setTimeout(() => handlePinIconClick(imageUrl, this, usedField), 0);
Expand Down Expand Up @@ -2144,7 +2144,7 @@ module.exports = class PixelBannerPlugin extends import_obsidian3.Plugin {
const frontmatterContentStart = getFrontmatterValue(frontmatter, this.settings.customContentStartField);
const effectiveContentStart = (_b = frontmatterContentStart != null ? frontmatterContentStart : folderSpecific == null ? void 0 : folderSpecific.contentStartPosition) != null ? _b : this.settings.contentStartPosition;
this.applyContentStartPosition(viewContent, effectiveContentStart);
if (!isEmbedded && inputType === "keyword" && this.settings.showPinIcon) {
if (!isEmbedded && (inputType === "keyword" || inputType === "url") && this.settings.showPinIcon) {
const refreshIcon = container.querySelector(":scope > .refresh-icon");
if (pinIcon) {
pinIcon.style.display = "block";
Expand All @@ -2164,7 +2164,7 @@ module.exports = class PixelBannerPlugin extends import_obsidian3.Plugin {
}
};
}
if (refreshIcon && this.settings.showRefreshIcon) {
if (refreshIcon && inputType === "keyword" && this.settings.showRefreshIcon) {
refreshIcon.style.display = "block";
refreshIcon.onclick = async () => {
try {
Expand All @@ -2177,6 +2177,8 @@ module.exports = class PixelBannerPlugin extends import_obsidian3.Plugin {
new import_obsidian3.Notice("\u{1F62D} Failed to refresh image");
}
};
} else if (refreshIcon) {
refreshIcon.style.display = "none";
}
} else {
if (pinIcon) pinIcon.style.display = "none";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "pexels-banner",
"name": "Pixel Banner",
"version": "2.10.2",
"version": "2.11.0",
"minAppVersion": "1.6.0",
"description": "Apply an image from various sources as a banner to your notes.",
"author": "Justin Parker (eQui\\\\ Labs)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"linksOpacity": 1,
"showReleaseNotes": true,
"excludedFolders": [
"exclude"
"exclude",
"misc-notes"
],
"dateColor": "var(--text-accent)",
"borderColor": "var(--text-accent)",
Expand All @@ -17,8 +18,9 @@
"customCreatedDateProp": "created",
"customModifiedDateProp": "modified",
"dateDisplayFormat": "mmmm dd, yyyy",
"showBacklinks": true,
"showOutlinks": true,
"showBacklinks": false,
"showOutlinks": false,
"showDates": true,
"combineLinks": true,
"lastVersion": "1.8.0"
}
Loading

0 comments on commit 203cf53

Please sign in to comment.