mirror of
https://github.com/svemagie/obsidian-micropub.git
synced 2026-05-15 03:48:52 +02:00
2b2e5f33bf
- Add IndieAuth.ts: full PKCE sign-in flow via GitHub Pages relay - Add docs/index.html: client_id page fetched by IndieKit for app info - Add docs/callback/index.html: relay that forwards to obsidian:// URI - Update SettingsTab.ts: signed-in/signed-out UI, Sign In button - Update types.ts: authorizationEndpoint, tokenEndpoint, me fields - Update main.ts: register obsidian://micropub-auth protocol handler
17 lines
439 B
TypeScript
17 lines
439 B
TypeScript
export class StyleModule {
|
|
constructor(spec: {[selector: string]: StyleSpec}, options?: {
|
|
finish?(sel: string): string
|
|
})
|
|
getRules(): string
|
|
static mount(
|
|
root: Document | ShadowRoot | DocumentOrShadowRoot,
|
|
module: StyleModule | ReadonlyArray<StyleModule>,
|
|
options?: {nonce?: string}
|
|
): void
|
|
static newName(): string
|
|
}
|
|
|
|
export type StyleSpec = {
|
|
[propOrSelector: string]: string | number | StyleSpec | null
|
|
}
|