File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Simple workflow for deploying static content to GitHub Pages
21name : Deploy static content to Pages
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
7- # branches: ["main"]
8- branches : ["**"]
5+ tags :
6+ - " * "
97
108 # Allows you to run this workflow manually from the Actions tab
119 workflow_dispatch :
1210
13- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1411permissions :
1512 contents : read
1613 pages : write
1714 id-token : write
1815
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.
2116concurrency :
2217 group : " pages"
2318 cancel-in-progress : false
2419
2520jobs :
26- # Single deploy job since we're just deploying
2721 deploy :
2822 environment :
2923 name : github-pages
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import process from "process";
33import { builtinModules } from 'node:module' ;
44
55const banner =
6- `/*
6+ `/*
77THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
88if you want to view the source, please visit the github repository of this plugin
99*/
@@ -31,8 +31,7 @@ const context = await esbuild.context({
3131 "@lezer/common" ,
3232 "@lezer/highlight" ,
3333 "@lezer/lr" ,
34- ...builtinModules ,
35- ...builtinModules . map ( m => `node:${ m } ` ) ] ,
34+ ...builtinModules ] ,
3635 format : "cjs" ,
3736 target : "es2018" ,
3837 logLevel : "info" ,
Original file line number Diff line number Diff line change @@ -47,12 +47,11 @@ export class OAuthHandler {
4747 } ) ;
4848 await new Promise ( ( resolve ) => setTimeout ( resolve , 200 ) ) ;
4949
50- // Create promise for callback
5150 const waitForCallback = new Promise < URLSearchParams > ( ( resolve , reject ) => {
5251 this . callbackResolver = resolve ;
5352 this . callbackRejecter = reject ;
5453
55- // Timeout after 5 minutes
54+ // timeout after 5 minutes
5655 this . callbackTimeout = setTimeout ( ( ) => {
5756 if ( this . callbackRejecter ) {
5857 this . callbackRejecter ( new Error ( 'OAuth callback timed out after 5 minutes' ) ) ;
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ export default class AtmospherePlugin extends Plugin {
9191 return true
9292 } catch ( e ) {
9393 console . error ( "Failed to restore session:" , e ) ;
94- // Clear invalid session data
9594 this . settings . did = undefined ;
9695 await this . saveSettings ( ) ;
9796 new Notice ( "Session expired. Please login by opening settings" ) ;
Original file line number Diff line number Diff line change @@ -31,15 +31,12 @@ export class SettingTab extends PluginSettingTab {
3131 const { containerEl } = this ;
3232 containerEl . empty ( ) ;
3333
34- if ( this . plugin . settings . did ) {
34+ if ( this . plugin . client . loggedIn ) {
3535 const displayName = this . plugin . client . actor ?. handle || this . plugin . settings . did ;
3636
3737 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 || "" )
4340 . addButton ( ( button ) =>
4441 button
4542 . setButtonText ( "Log out" )
You can’t perform that action at this time.
0 commit comments