forked from GitHubMirrors/silverbullet-icalendar
Fix: Final unified naming and permissions (v0.3.17)
All checks were successful
Build SilverBullet Plug / build (push) Successful in 26s
All checks were successful
Build SilverBullet Plug / build (push) Successful in 26s
This commit is contained in:
5
Dockerfile.build
Normal file
5
Dockerfile.build
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM denoland/deno:latest
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN deno run -A https://github.com/silverbulletmd/silverbullet/releases/download/2.4.1/plug-compile.js -c deno.json icalendar.plug.yaml
|
||||
CMD ["cat", "Library/sstent/icalendar.plug.js"]
|
||||
4
PLUG.md
4
PLUG.md
@@ -1,8 +1,8 @@
|
||||
---
|
||||
name: Library/sstent/icalendar
|
||||
version: 0.3.16
|
||||
version: 0.3.17
|
||||
tags: meta/library
|
||||
files:
|
||||
- icalendar.plug.js
|
||||
---
|
||||
iCalendar sync plug for SilverBullet.
|
||||
iCalendar sync plug for SilverBullet.
|
||||
File diff suppressed because one or more lines are too long
@@ -1,8 +1,7 @@
|
||||
name: icalendar
|
||||
version: 0.3.16
|
||||
name: Library/sstent/icalendar
|
||||
version: 0.3.17
|
||||
author: sstent
|
||||
index: icalendar.ts
|
||||
# Include both legacy and modern permission names for fetch
|
||||
permissions:
|
||||
- fetch
|
||||
- http
|
||||
@@ -28,4 +27,4 @@ functions:
|
||||
path: icalendar.ts:showVersion
|
||||
command:
|
||||
name: "iCalendar: Version"
|
||||
priority: -2
|
||||
priority: -2
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { clientStore, config, datastore, editor, index } from "@silverbulletmd/silverbullet/syscalls";
|
||||
import { convertIcsCalendar } from "https://esm.sh/ts-ics@2.4.0";
|
||||
|
||||
const VERSION = "0.3.16";
|
||||
const VERSION = "0.3.17";
|
||||
const CACHE_KEY = "icalendar:lastSync";
|
||||
|
||||
console.log(`[iCalendar] Plug script executing at top level (Version ${VERSION})`);
|
||||
|
||||
const TIMEZONE_OFFSETS: Record<string, number> = {
|
||||
"GMT Standard Time": 0,
|
||||
"W. Europe Standard Time": 1,
|
||||
@@ -104,4 +106,4 @@ export async function clearCache() {
|
||||
|
||||
export async function showVersion() {
|
||||
await editor.flashNotification(`iCalendar Plug ${VERSION}`, "info");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user