Skip to content

Commit

Permalink
Merge pull request #140 from decaf-dev/dev
Browse files Browse the repository at this point in the history
* feat: keep groups array empty

* fix: don't enable first group

* chore: bump version
  • Loading branch information
decaf-dev committed Jul 3, 2024
2 parents a967f4b + d61b30e commit e535a9b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "vault-explorer",
"name": "Vault Explorer",
"version": "1.18.0",
"version": "1.18.1",
"minAppVersion": "1.4.13",
"description": "Explore your vault in visual format",
"author": "DecafDev",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-vault-explorer",
"version": "1.18.0",
"version": "1.18.1",
"description": "Explore your vault in visual format",
"main": "main.js",
"scripts": {
Expand Down
16 changes: 2 additions & 14 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { LOG_LEVEL_WARN } from "./logger/constants";
import { generateRandomId } from "./svelte/shared/services/random";
import { VaultExplorerPluginSettings, TExplorerView } from "./types";

export const VAULT_EXPLORER_VIEW = "vault-explorer";

export const HOVER_LINK_SOURCE_ID = "vault-explorer-preview";

const randomGroupId = generateRandomId();

export const DEFAULT_SETTINGS: VaultExplorerPluginSettings = {
logLevel: LOG_LEVEL_WARN,
properties: {
Expand Down Expand Up @@ -38,17 +35,8 @@ export const DEFAULT_SETTINGS: VaultExplorerPluginSettings = {
},
custom: {
isEnabled: true,
selectedGroupId: randomGroupId,
groups:
[
{
id: randomGroupId,
name: "Group 1",
rules: [],
isEnabled: true,
isSticky: false
}
]
selectedGroupId: "",
groups: []
}
},
views: {
Expand Down
3 changes: 2 additions & 1 deletion src/svelte/properties-filter-app/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
id: generateRandomId(),
name: `Group ${groups.length + 1}`,
rules: [createPropertyFilter()],
isEnabled: groups.length === 0,
isEnabled: false,
isSticky: false,
};
selectedGroupId = newGroup.id;
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@
"1.17.0": "1.4.13",
"1.17.1": "1.4.13",
"1.17.2": "1.4.13",
"1.18.0": "1.4.13"
"1.18.0": "1.4.13",
"1.18.1": "1.4.13"
}

0 comments on commit e535a9b

Please sign in to comment.