From 336f92042aa5e27056607e96ab98a0eda25a50b6 Mon Sep 17 00:00:00 2001 From: Tom Norris Date: Sat, 26 Aug 2023 21:51:45 -0700 Subject: [PATCH] Prepping for a release --- README.md | 61 ++++++++-------------------------------------------- src/block.ts | 3 +-- 2 files changed, 10 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index b08061c..3edf7c1 100644 --- a/README.md +++ b/README.md @@ -9,22 +9,22 @@ #### Example: ##### Main Gallery -![](https://raw.githubusercontent.com/Darakah/obsidian-gallery/main/images/Example_main_gallery_1.gif) +![](https://raw.githubusercontent.com/TomNCatz/obsidian-gallery/main/images/Example_main_gallery_1.gif) ##### Main Gallery Filtering -![](https://raw.githubusercontent.com/Darakah/obsidian-gallery/main/images/Example_main_gallery_2.gif) +![](https://raw.githubusercontent.com/TomNCatz/obsidian-gallery/main/images/Example_main_gallery_2.gif) ##### Display blocks -![](https://raw.githubusercontent.com/Darakah/obsidian-gallery/main/images/Example_Display_Block.gif) +![](https://raw.githubusercontent.com/TomNCatz/obsidian-gallery/main/images/Example_Display_Block.gif) ##### Display Image Info block -![](https://raw.githubusercontent.com/Darakah/obsidian-gallery/main/images/Example_Info_Block.gif) +![](https://raw.githubusercontent.com/TomNCatz/obsidian-gallery/main/images/Example_Info_Block.gif) ##### Old example -![example_1](https://raw.githubusercontent.com/Darakah/obsidian-gallery/main/images/example_1.png) +![example_1](https://raw.githubusercontent.com/TomNCatz/obsidian-gallery/main/images/example_1.png) ## Usage: @@ -52,55 +52,12 @@ Argument Info: ## Settings: -![](https://raw.githubusercontent.com/Darakah/obsidian-gallery/main/images/Gallery_Settings.png) +![](https://raw.githubusercontent.com/TomNCatz/obsidian-gallery/main/images/Gallery_Settings.png) ## Release Notes: -### v0.6.0 **In Progress** +### v0.6.0 - Updated supporting libraries to modern equivilents - Minor visual changes pulled in from other contributers -- BUG: Mobile support for gallery info is broken in this version, still trying to fix that - -### v0.5.8 -- Bug Fix: https://github.com/Darakah/obsidian-gallery/issues/12 - -### v0.5.7 -- `gallery-info` block modified to take arguments `imgPath` and `ignoreInfo` -- `gallery-info` will show all default information + all YAML added to the info MD file. Can ignore any info field by specifying `ignoreInfo` separated by a `;` -- Right-clicking an info block will open the info side panel -- Button to open info file from image info side panel -- Changed info file naming to use same name as img (if already present will apend a counter) -- Comeback now opens the side panel activating the gallery as normal -- Renaming files bug fix -- Bug Fix: https://github.com/Darakah/obsidian-gallery/issues/8 - -### v0.5.3 -- Support for mp4 videos -- Code cleanup - -### v0.5.2 -- Duplicate files hotfix (https://github.com/Darakah/obsidian-gallery/issues/6) - -### v0.5.1 -- Add reverse main gallery display option to Obsidian settings - -### v0.5.0 -- Initial release of updated plugin -- Added main gallery - - View all images in vault - - Filter images by path / name (Regex) - - Add info MD notes to images - - Edit info MD notes directly from gallery side panel - - Focus on image click - - Navigate through images using left / right arrow keys when focused - - Right click image to jump to original file in obsidian vault - - Change width of display images from Obsidian settings -- Modify input format for `image display` blocks -- Add new `grid` display type to `image display` block (supports most functionalities from main gallery display) -- Add options to align and specify div % of display block -- Add new `gallery-info` block to display image info - -### v0.1.2 -- changed block id to `gallery` -- added image name filtering to `/` vault search option -- removed meaningless confusing `column` parameter +- mobile version cannot display collor pallet in this version + diff --git a/src/block.ts b/src/block.ts index 8edff6a..858559c 100644 --- a/src/block.ts +++ b/src/block.ts @@ -14,7 +14,6 @@ import type GalleryPlugin from './main' import ImageGrid from './svelte/ImageGrid.svelte' import Gallery from './svelte/Gallery.svelte' import GalleryInfo from './svelte/GalleryInfo.svelte' -import { platform } from 'os' export class GalleryProcessor { @@ -274,7 +273,7 @@ export class GalleryProcessor }); const frontmatter = imgInfoCache?.frontmatter ?? [] - + var newTag; if (imgTFile instanceof TFile && EXTENSIONS.contains(imgTFile.extension)) { new GalleryInfo({