-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(main): adding sign-in and sponsor to main menu
- Loading branch information
1 parent
1bb3246
commit f96af50
Showing
13 changed files
with
169 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Sign in with GitHub | ||
|
||
## Unlock Community Features | ||
|
||
- Share Scripts | ||
- Create Gists | ||
- Discord Server Invite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<div class="flex flex-col items-center justify-start mt-0"> | ||
<h2 class="pb-1 text-xl mt-0">⭐️ Unlock Script Kit Pro ⭐️</h2> | ||
<a href="submit:kit-sponsor" class="shadow-xl shadow-primary/25 text-bg-base font-bold px-3 py-2 no-underline rounded bg-primary bg-opacity-100 hover:opacity-80" style="width: fit-content">Sponsor Script Kit ($7/m.)</a> | ||
|
||
<div class="py-1"></div> | ||
<div class="flex justify-evenly"> | ||
|
||
<div class="list-inside"> | ||
|
||
<h2 class="text-base">Pro Features</h2> | ||
|
||
<ul class="text-xs"> | ||
<li>Debugger</li> | ||
<li>Script Log Window</li> | ||
<li>Audio Recording</li> | ||
<li>Support through Discord</li> | ||
<ul> | ||
</div> | ||
|
||
<div> | ||
|
||
|
||
<h2 class="text-base">Upcoming Pro Features</h2> | ||
|
||
<ul class="text-xs"> | ||
<li>Sync Scripts to GitHub Repo</li> | ||
<li>Run Script Remotely as GitHub Actions</li> | ||
<li>Advanced Widgets</li> | ||
<li>Screenshots</li> | ||
<li>Screen Recording</li> | ||
<li>Webcam Capture</li> | ||
<li>Desktop Color Picker</li> | ||
<li>Measure Tool</li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
await cli("set-env-var", "KIT_LOGIN", await arg()) | ||
|
||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
await cli("set-env-var", "KIT_PRO", await arg()) | ||
|
||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Name: Sign In to GitHub | ||
// Description: Authenticate with GitHub to Enable Features | ||
// Enter: View Account | ||
// PreviewPath: $KIT/SIGN_IN.md | ||
|
||
import { authenticate } from "../api/kit.js" | ||
|
||
hide() | ||
|
||
await authenticate() | ||
|
||
await mainScript() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Name: Unlock Script Kit Pro | ||
// Description: Add Debugger, Logger, and Support Development | ||
// Enter: Open Sponsorship Page | ||
// PreviewPath: $KIT/SPONSOR.md | ||
|
||
let sponsorUrl = `https://github.com/sponsors/johnlindquist/sponsorships?sponsor=johnlindquist&tier_id=235205` | ||
try { | ||
sponsorUrl = ( | ||
await readFile( | ||
kitPath("data", "sponsor-url.txt"), | ||
"utf-8" | ||
) | ||
).trim() | ||
} catch (error) { | ||
warn(`Failed to read sponsor-url.txt`) | ||
} | ||
try { | ||
sponsorUrl = ( | ||
await readFile( | ||
kitPath("data", "sponsor-url.txt"), | ||
"utf-8" | ||
) | ||
).trim() | ||
} catch (error) { | ||
warn(`Failed to read sponsor-url.txt`) | ||
} | ||
|
||
open(sponsorUrl) | ||
|
||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters