Various AT Protocol integrations with obsidian
20
fork

Configure Feed

Select the types of activity you want to include in your feed.

better settings layout

+8 -20
+2 -8
.github/workflows/deploy_static.yml
··· 1 - # Simple workflow for deploying static content to GitHub Pages 2 1 name: Deploy static content to Pages 3 2 4 3 on: 5 - # Runs on pushes targeting the default branch 6 4 push: 7 - # branches: ["main"] 8 - branches: ["**"] 5 + tags: 6 + - "*" 9 7 10 8 # Allows you to run this workflow manually from the Actions tab 11 9 workflow_dispatch: 12 10 13 - # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 14 11 permissions: 15 12 contents: read 16 13 pages: write 17 14 id-token: write 18 15 19 - # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 20 - # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 21 16 concurrency: 22 17 group: "pages" 23 18 cancel-in-progress: false 24 19 25 20 jobs: 26 - # Single deploy job since we're just deploying 27 21 deploy: 28 22 environment: 29 23 name: github-pages
+2 -3
esbuild.config.mjs
··· 3 3 import { builtinModules } from 'node:module'; 4 4 5 5 const banner = 6 - `/* 6 + `/* 7 7 THIS IS A GENERATED/BUNDLED FILE BY ESBUILD 8 8 if you want to view the source, please visit the github repository of this plugin 9 9 */ ··· 31 31 "@lezer/common", 32 32 "@lezer/highlight", 33 33 "@lezer/lr", 34 - ...builtinModules, 35 - ...builtinModules.map(m => `node:${m}`)], 34 + ...builtinModules], 36 35 format: "cjs", 37 36 target: "es2018", 38 37 logLevel: "info",
+1 -2
src/lib/oauth/oauth.ts
··· 47 47 }); 48 48 await new Promise((resolve) => setTimeout(resolve, 200)); 49 49 50 - // Create promise for callback 51 50 const waitForCallback = new Promise<URLSearchParams>((resolve, reject) => { 52 51 this.callbackResolver = resolve; 53 52 this.callbackRejecter = reject; 54 53 55 - // Timeout after 5 minutes 54 + // timeout after 5 minutes 56 55 this.callbackTimeout = setTimeout(() => { 57 56 if (this.callbackRejecter) { 58 57 this.callbackRejecter(new Error('OAuth callback timed out after 5 minutes'));
-1
src/main.ts
··· 91 91 return true 92 92 } catch (e) { 93 93 console.error("Failed to restore session:", e); 94 - // Clear invalid session data 95 94 this.settings.did = undefined; 96 95 await this.saveSettings(); 97 96 new Notice("Session expired. Please login by opening settings");
+3 -6
src/settings.ts
··· 31 31 const { containerEl } = this; 32 32 containerEl.empty(); 33 33 34 - if (this.plugin.settings.did) { 34 + if (this.plugin.client.loggedIn) { 35 35 const displayName = this.plugin.client.actor?.handle || this.plugin.settings.did; 36 36 37 37 new Setting(containerEl) 38 - .setName("Logged in") 39 - .setDesc(displayName); 40 - 41 - new Setting(containerEl) 42 - .setName("Log out") 38 + .setName("Logged in as @" + displayName) 39 + .setDesc(this.plugin.client.actor?.did as string || "") 43 40 .addButton((button) => 44 41 button 45 42 .setButtonText("Log out")