Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 6276930

Browse files
committed
new minor version
1 parent b5063b4 commit 6276930

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

docs/docs/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 3.0.1
2+
### Shiny new things
3+
- (experimental) new options for the footer including a menu to select those options:
4+
- Percentage of empty cells
5+
- Percentage of cells with a value
6+
- Count of empty cells
7+
- Count of cells with a value
8+
- Count of unique values
9+
- Formula
10+
- Sum of number columns
11+
### No longer broken
12+
- message when dv is not loaded not spammed anymore [ISSUE#642](https://github.com/RafaelGB/obsidian-db-folder/issues/642)
13+
- Correct tooltrip for export button [ISSUE#641](https://github.com/RafaelGB/obsidian-db-folder/issues/641)
114
## 3.0.0
215
### Shiny new things
316
- A new design for the plugin [ISSUE#577](https://github.com/RafaelGB/obsidian-db-folder/issues/577)

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"minAppVersion": "0.16.3",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"minAppVersion": "0.16.3",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/DatabaseView.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ import {
3535
WorkspaceLeaf,
3636
TFile,
3737
Menu,
38+
Notice,
3839
} from "obsidian";
3940
import { createRoot, Root } from "react-dom/client";
4041
import DatabaseInfo from "services/DatabaseInfo";
42+
import { DataviewService } from "services/DataviewService";
4143
import { LOGGER } from "services/Logger";
4244
import { SettingsModal } from "Settings";
4345
import StateManager from "StateManager";
@@ -145,6 +147,7 @@ export class DatabaseView extends TextFileView implements HoverParent {
145147
async initDatabase(): Promise<void> {
146148
try {
147149
LOGGER.info(`=>initDatabase ${this.file.path}`);
150+
this.checkRequiredLibraries();
148151
// Load the database file
149152
this.diskConfig = new DatabaseInfo(this.file);
150153
await this.diskConfig.initDatabaseconfigYaml(
@@ -347,4 +350,15 @@ export class DatabaseView extends TextFileView implements HoverParent {
347350
openFilters() {
348351
this.emitter.emit(EMITTERS_GROUPS.SHORTCUT, EMITTERS_SHORTCUT.OPEN_FILTERS);
349352
}
353+
/****************************************************************
354+
* VIEW VALIDATIONS
355+
* **************************************************************/
356+
private checkRequiredLibraries(): void {
357+
if (!DataviewService.indexIsLoaded) {
358+
new Notice(
359+
`Dataview plugin is not loaded yet. Please wait a few seconds and refresh the page.`,
360+
1000
361+
);
362+
}
363+
}
350364
}

src/services/DataviewService.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ class DataviewProxy {
1717
new Notice(`Dataview plugin is not installed. Please install it to load Databases.`);
1818
throw new Error('Dataview plugin is not installed');
1919
}
20-
if (!this.indexIsLoaded) {
21-
new Notice(`Dataview plugin is not loaded yet. Please wait a few seconds and refresh the page.`);
22-
this.indexIsLoaded = true;
23-
}
24-
2520
return getAPI(app);
2621
}
2722

0 commit comments

Comments
 (0)