From 9461041e2e530b5cd2208240000e51a2d40c4236 Mon Sep 17 00:00:00 2001 From: "Greg K." Date: Mon, 9 Dec 2024 11:10:36 -0800 Subject: [PATCH] First release --- LICENSE | 21 +++++++++++++++++++++ manifest.json | 6 +++--- src/ClipperCatalog.tsx | 5 ----- 3 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5283e98 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Jens M Gleditsch + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/manifest.json b/manifest.json index fd275a6..1dc5693 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { - "id": "Clipper Catalog", + "id": "clipper-catalog", "name": "Clipper Catalog", - "version": "0.10.1", + "version": "1.0.0", "minAppVersion": "0.15.0", - "description": "This provides any Obsidian vault with a catalog of all the clippings gathered with a common source property.", + "description": "A catalog view of all the clippings gathered with a common source property.", "author": "Obsidian", "authorUrl": "https://github.com/soundslikeinfo", "fundingUrl": { diff --git a/src/ClipperCatalog.tsx b/src/ClipperCatalog.tsx index 20d2b41..01e36b9 100644 --- a/src/ClipperCatalog.tsx +++ b/src/ClipperCatalog.tsx @@ -95,14 +95,12 @@ const ClipperCatalog: React.FC = ({ app, plugin }) => { }; const loadArticles = useCallback(async () => { - console.log("Starting to load articles..."); setIsRefreshing(true); setError(null); try { const articleFiles: Article[] = []; const files = app.vault.getMarkdownFiles(); - console.log(`Found ${files.length} markdown files`); for (const file of files) { try { @@ -120,7 +118,6 @@ const ClipperCatalog: React.FC = ({ app, plugin }) => { const sourceMatch = frontmatter.match(sourcePropertyRegex); if (sourceMatch) { - console.log(`Processing file: ${file.path}`); const content = await app.vault.read(file); const title = file.basename; @@ -154,10 +151,8 @@ const ClipperCatalog: React.FC = ({ app, plugin }) => { } } - console.log(`Processed ${articleFiles.length} articles`); setArticles(articleFiles); } catch (error) { - console.error("Error loading articles:", error); setError("Failed to load articles"); } finally { setIsRefreshing(false);