mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
chore: update GitHub Actions workflows to use Node.js 22.x and enhance connection indicator styling in SurfSense plugin
This commit is contained in:
parent
3b38daaca5
commit
3b7f27cff9
4 changed files with 10 additions and 10 deletions
7
.github/workflows/obsidian-plugin-lint.yml
vendored
7
.github/workflows/obsidian-plugin-lint.yml
vendored
|
|
@ -25,17 +25,12 @@ jobs:
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: surfsense_obsidian
|
working-directory: surfsense_obsidian
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
node-version: [20.x, 22.x]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: 22.x
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: surfsense_obsidian/package-lock.json
|
cache-dependency-path: surfsense_obsidian/package-lock.json
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 22.x
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: surfsense_obsidian/package-lock.json
|
cache-dependency-path: surfsense_obsidian/package-lock.json
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ export class SurfSenseSettingTab extends PluginSettingTab {
|
||||||
if (this.plugin.settings.searchSpaceId !== null) {
|
if (this.plugin.settings.searchSpaceId !== null) {
|
||||||
try {
|
try {
|
||||||
await this.plugin.engine.ensureConnected();
|
await this.plugin.engine.ensureConnected();
|
||||||
await this.plugin.engine.flushQueue();
|
await this.plugin.engine.maybeReconcile(true);
|
||||||
new Notice("Surfsense: vault connected.");
|
new Notice("Surfsense: vault connected.");
|
||||||
this.display();
|
this.display();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
@ -267,6 +267,7 @@ export class SurfSenseSettingTab extends PluginSettingTab {
|
||||||
|
|
||||||
private renderConnectionHeading(containerEl: HTMLElement): void {
|
private renderConnectionHeading(containerEl: HTMLElement): void {
|
||||||
const heading = new Setting(containerEl).setName("Connection").setHeading();
|
const heading = new Setting(containerEl).setName("Connection").setHeading();
|
||||||
|
heading.nameEl.addClass("surfsense-connection-heading");
|
||||||
const indicator = heading.nameEl.createSpan({
|
const indicator = heading.nameEl.createSpan({
|
||||||
cls: "surfsense-connection-indicator",
|
cls: "surfsense-connection-indicator",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,16 @@
|
||||||
|
|
||||||
.surfsense-connection-indicator {
|
.surfsense-connection-indicator {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
margin-left: 8px;
|
|
||||||
vertical-align: middle;
|
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.surfsense-connection-heading {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.surfsense-connection-indicator svg {
|
.surfsense-connection-indicator svg {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue