Skip to content

Commit

Permalink
Merge branch 'raycast:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
onlysunjun authored Jul 7, 2024
2 parents d30afc6 + adda091 commit c725181
Show file tree
Hide file tree
Showing 156 changed files with 9,728 additions and 5,776 deletions.
12 changes: 7 additions & 5 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/extensions/alpaca-trading @jfkisafk @srikirank
/extensions/alpinejs-doc-search @aurawindsurfing
/extensions/alt-text-generator @JackCasica
/extensions/amazon-aws @victor-falcon @Hodglim @JonathanWbn @gebeto @momme-rtf @duboiss @hexpl0it @crisboarna @sidhant92 @DorukAkinci @frese @nagauta @vineus @jfkisafk @srikirank @b0lle
/extensions/amazon-aws @victor-falcon @Hodglim @gebeto @momme-rtf @duboiss @hexpl0it @crisboarna @sidhant92 @DorukAkinci @frese @nagauta @vineus @jfkisafk @srikirank @b0lle
/extensions/amazon-search @xilopaint
/extensions/amphetamine @gstvds
/extensions/android @MohamedISoliman @3llomi
Expand Down Expand Up @@ -232,7 +232,7 @@
/extensions/collected-notes @txemaleon
/extensions/color-casket @slavarazum @fe9lix @pernielsentikaer @fengtianze
/extensions/color-hunt @bxb100
/extensions/color-picker @thomaspaulmann @otakustay @EmersonEmerson @pernielsentikaer @arronhunt @kvdo2 @thomaslombart @LitoMore @samuelkraft
/extensions/color-picker @thomaspaulmann @otakustay @EmersonEmerson @pernielsentikaer @arronhunt @kvdo2 @thomaslombart @LitoMore @samuelkraft @ridemountainpig
/extensions/color-shades @qeude
/extensions/color-studio-picker @sejas
/extensions/colorify @EvanZhouDev
Expand Down Expand Up @@ -534,7 +534,7 @@
/extensions/google-meet @vitoorgomes @hughlaw @iwex
/extensions/google-search @mblode
/extensions/google-tasks @elliotdes @pernielsentikaer
/extensions/google-translate @gebeto @FezVrasta @ickas @metakirby5 @tangerine1202 @nirtamir2 @pernielsentikaer @rasitayaz @Popalay
/extensions/google-translate @gebeto @FezVrasta @ickas @metakirby5 @tangerine1202 @nirtamir2 @pernielsentikaer @rasitayaz @Popalay @LitoMore
/extensions/google-trends @kkange
/extensions/google-workspace @thomaslombart @mathieudutour @marcmagn1 @mepearso @jbjanot
/extensions/gopass @bake @buchanan
Expand Down Expand Up @@ -777,6 +777,7 @@
/extensions/mailwip @xmok
/extensions/mamp-utility @SuoweiHu
/extensions/man-pages @SKaplanOfficial
/extensions/mandarin-chinese-dictionary @CofCat456
/extensions/manga-calendar @MrOlivo
/extensions/mantine @EmilMalanczak
/extensions/maplestory-gg @LitoMore @pernielsentikaer
Expand Down Expand Up @@ -927,6 +928,7 @@
/extensions/ohmyzsh-git-alias @yufeikang
/extensions/ohmyzsh-plugins @k8scat
/extensions/ok-json @francisfeng
/extensions/oktasearch @zachmian
/extensions/omg-lol @danpalmer @rknightuk
/extensions/omni-news @danielkastberg
/extensions/omnivore @KarolusD
Expand Down Expand Up @@ -1540,7 +1542,7 @@
/extensions/wifi-password-reveal @louishuyng
/extensions/wifi-share @robinsrk
/extensions/wiggle-text @PineappleRind
/extensions/wikipedia @vimtor @shubzkothekar @JonathanWbn @NikosEfthias @menahishayan @pernielsentikaer @igor9silva @Ek2100 @sergiivelykodnyi @j3lte
/extensions/wikipedia @vimtor @shubzkothekar @NikosEfthias @menahishayan @pernielsentikaer @igor9silva @Ek2100 @sergiivelykodnyi @j3lte
/extensions/windmill @emiliobool
/extensions/wireguard @sbugzu
/extensions/wise-accounts @robsel118
Expand Down Expand Up @@ -1582,7 +1584,7 @@
/extensions/youtrack @tiulpin @skoch13 @GrimbiXcode
/extensions/youtube @tonka3000 @SKaplanOfficial @madza91 @xilopaint
/extensions/youtube-companion @sasivarnan
/extensions/youtube-downloader @vimtor @pernielsentikaer @darmiel
/extensions/youtube-downloader @vimtor @pernielsentikaer @darmiel @ridemountainpig
/extensions/youtube-music @danieldbird @AlexStrNik @zach-fuller @gnosticdev
/extensions/youtube-shorts-to-normal-video-page @b6pzeusbc54tvhw5jgpyw8pwz2x6gs
/extensions/youtube-subscriber-count @imaNNeo
Expand Down
2 changes: 2 additions & 0 deletions .github/extensionName2Folder.json
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@
"xmok/mailwip": "mailwip",
"SuoweiHu/mamp-utility": "mamp-utility",
"HelloImSteven/man-pages": "man-pages",
"CofCat/mandarin-chinese-dictionary": "mandarin-chinese-dictionary",
"mrolivo/manga-calendar": "manga-calendar",
"EmilMalanczak/mantine-documentation": "mantine",
"litomore/maplestory-gg": "maplestory-gg",
Expand Down Expand Up @@ -926,6 +927,7 @@
"yufeikang/oh-my-zsh-git-alias": "ohmyzsh-git-alias",
"k8scat/ohmyzsh-plugins": "ohmyzsh-plugins",
"anybox/ok-json": "ok-json",
"damian_zachwieja/oktasearch": "oktasearch",
"danpalmer/omg-lol": "omg-lol",
"MacRayCast/omni-news": "omni-news",
"karolusd/omnivore": "omnivore",
Expand Down
4 changes: 3 additions & 1 deletion .github/raycast2github.json
Original file line number Diff line number Diff line change
Expand Up @@ -1478,5 +1478,7 @@
"Undolog": "gfazioli",
"connorforsyth": "connorwforsyth",
"tkowalski29": "tkowalski29",
"rubentsirunyan": "rubentsirunyan"
"rubentsirunyan": "rubentsirunyan",
"CofCat": "CofCat456",
"damian_zachwieja": "zachmian"
}
2 changes: 1 addition & 1 deletion docs/.config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.78.0"
"version": "1.78.1"
}
8 changes: 8 additions & 0 deletions extensions/amazon-aws/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Amazon AWS Changelog

## [Improvements] - 2024-07-05

- Adds copy option to s3 command

## [Contributor maintenance] - 2024-07-04

- Move @JonathanWbn to list of past contributors

## [Fixes] - 2024-07-03

- Reverts back to rendering all pipelines at once. We can add wait later if this causes issues
Expand Down
4 changes: 3 additions & 1 deletion extensions/amazon-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"author": "Falcon",
"contributors": [
"Hodglim",
"JonathanWbn",
"gebeto",
"mommertf",
"duboiss",
Expand All @@ -22,6 +21,9 @@
"srikirank",
"b0lle"
],
"pastContributors": [
"JonathanWbn"
],
"categories": [
"Developer Tools",
"Productivity"
Expand Down
1 change: 1 addition & 0 deletions extensions/amazon-aws/src/s3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function S3Bucket({ bucket }: { bucket: Bucket }) {
<Action.Push target={<S3BucketObjects bucket={bucket} />} title="List Objects" />
<AwsAction.Console url={resourceToConsoleLink(bucket.Name, "AWS::S3::Bucket")} />
<Action.CopyToClipboard title="Copy Name" content={bucket.Name || ""} />
<Action.CopyToClipboard title="Copy ARN" content={"arn:aws:s3:::" + bucket.Name || ""} />
</ActionPanel>
}
/>
Expand Down
4 changes: 4 additions & 0 deletions extensions/color-picker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Color Picker Changelog

## [Enhancement] - 2024-06-30

- Add "Color Wheel" command

## [Enhancement] - 2024-06-07

- Fix bug with OKLCH/LCH conversion
Expand Down
Binary file not shown.
9 changes: 8 additions & 1 deletion extensions/color-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"kvdo2",
"thomaslombart",
"litomore",
"samuelkraft"
"samuelkraft",
"ridemountainpig"
],
"categories": [
"Design Tools"
Expand Down Expand Up @@ -72,6 +73,12 @@
}
]
},
{
"name": "color-wheel",
"title": "Color Wheel",
"description": "Pick a color with color wheel",
"mode": "view"
},
{
"name": "convert-color",
"title": "Convert Color",
Expand Down
39 changes: 39 additions & 0 deletions extensions/color-picker/src/color-wheel.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { Detail, showHUD, Clipboard, popToRoot, closeMainWindow } from "@raycast/api";
import { useEffect } from "react";
import { addToHistory } from "./history";
import { Color } from "./types";
import { getFormattedColor } from "./utils";
import { pickColor } from "swift:../swift/color-picker";

export default function Command() {
useEffect(() => {
async function pickAndHandleColor() {
try {
const pickedColor = (await pickColor()) as Color | undefined;
if (!pickedColor) {
return;
}

addToHistory(pickedColor);

const hex = getFormattedColor(pickedColor);
if (!hex) {
throw new Error("Failed to format color");
}

await Clipboard.copy(hex);
await showHUD(`Copied color ${hex} to clipboard`);

await closeMainWindow();
await popToRoot();
} catch (e) {
console.error(e);
await showHUD("❌ Failed picking color");
}
}

pickAndHandleColor();
}, []);

return <Detail markdown={`![RGB Color Wheel](rgb-color-wheel.webp?raycast-width=350&raycast-height=350)`} />;
}
4 changes: 4 additions & 0 deletions extensions/connect-to-vpn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Connect to VPN Changelog

## [New Additions] - 2024-06-30

- Menu bar icon reflects current connection status

## [New Additions] - 2024-06-23

- Menu bar command
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions extensions/connect-to-vpn/src/menu-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MenuBarExtra, Icon, showToast, Toast } from "@raycast/api";
import { MenuBarExtra, showToast, Toast } from "@raycast/api";
import { NetworkService, normalizeHardwarePort, openNetworkSettings, useNetworkServices } from "./network-services";

export default function Command() {
Expand All @@ -16,8 +16,16 @@ export default function Command() {
showToast(Toast.Style.Failure, "Something went wrong", error.message);
}

const isConnected = [...favoriteServices, ...otherServices, ...(!hideInvalidDevices ? invalidServices : [])].some(
(s) => s.status === "connected",
);

return (
<MenuBarExtra icon={Icon.Network} tooltip="Network Services" isLoading={isLoading}>
<MenuBarExtra
icon={isConnected ? "network-connected.png" : "network-disconnected.png"}
tooltip="Network Services"
isLoading={isLoading}
>
{favoriteServices.length > 0 && (
<MenuBarExtra.Section title="Favorites">
{favoriteServices.map((service) => (
Expand Down
54 changes: 35 additions & 19 deletions extensions/connect-to-vpn/src/network-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,27 @@ export function useNetworkServices() {
loadData();
}, []);

const updateServiceStatus = (service: NetworkService, status: NetworkServiceStatus) => {
const updateServiceStatus = async (service: NetworkService, status: NetworkServiceStatus) => {
const networkServiceName = service.name.replace(/"/g, '\\"');
const command =
status === "connecting"
? `/usr/sbin/networksetup -connectpppoeservice "${networkServiceName}"`
: `/usr/sbin/networksetup -disconnectpppoeservice "${networkServiceName}"`;

execPromise(command)
.then(() => {
setNetworkServices((currentServices) => ({
...currentServices,
[service.id]: { ...service, status },
}));
})
.catch((err) => setError(err));
try {
await execPromise(command);
setNetworkServices((currentServices) => ({
...currentServices,
[service.id]: { ...service, status },
}));
const updatedStatus = await waitForFinalServiceStatus(service);
setNetworkServices((currentServices) => ({
...currentServices,
[service.id]: { ...service, status: updatedStatus },
}));
} catch (err) {
setError(err as Error);
}
};

const fetchServiceStatus = async (service: NetworkService) => {
Expand All @@ -68,6 +74,26 @@ export function useNetworkServices() {
}
};

const waitForFinalServiceStatus = (service: NetworkService) =>
new Promise<NetworkServiceStatus>((resolve) => {
const checkStatus = async () => {
try {
const status = await showPPPoEStatus(service.name);

if (status === "connected" || status === "disconnected") {
resolve(status);
} else {
setTimeout(checkStatus, 500);
}
} catch (err) {
// If there's an error, we'll continue polling
setTimeout(checkStatus, 500);
}
};

checkStatus();
});

const addToFavorites = async (service: NetworkService) => {
const updatedFavorites = { ...favorites, [service.id]: true };
setFavorites(updatedFavorites);
Expand Down Expand Up @@ -186,16 +212,6 @@ export function useNetworkServices() {
invalid: { actionName: undefined, action: undefined, icon: Icon.XMarkCircle },
})[service.status] || { icon: Icon.XMarkCircle };

useEffect(() => {
const needsUpdate = Object.values(networkServices).some(
(service) => service.status === "connecting" || service.status === "disconnecting",
);
if (!isLoading && needsUpdate) {
const intervalId = setInterval(() => fetchDataWithFavorites(favorites, favoriteOrder), 500);
return () => clearInterval(intervalId);
}
}, [isLoading, networkServices, favorites, favoriteOrder]);

const favoriteServices = useMemo(
() =>
sortNetworkServices(
Expand Down
8 changes: 1 addition & 7 deletions extensions/copy-path/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"root": true,
"env": {
"es2020": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"]
"extends": ["@raycast"]
}
6 changes: 6 additions & 0 deletions extensions/copy-path/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Copy Path Changelog

## [Support More Browsers] - 2024-07-04

- Now that there is no browser restriction, you can try to copy the URL in any Webkit or Chromium-based browser
- Copy the name, path or bundle identifier of the current window by setting the preference
- Other detail optimisation

## [Support More Browsers] - 2024-06-25

- Support Safari Web App and Firefox browser by using an alternative method
Expand Down
Binary file modified extensions/copy-path/metadata/copy-path-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c725181

Please sign in to comment.