Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 13, 2024
1 parent 586af70 commit def26cd
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 36 deletions.
45 changes: 41 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@astrolib/seo": "1.0.0-beta.5",
"@astropub/md": "^0.4.0",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@typescript-eslint/parser": "^7.13.1",
Expand Down
4 changes: 4 additions & 0 deletions source/content/apps/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ links:
olderMacOSVersions:
- '12'
- '13'
feedbackNote: |
### If you get a “com.apple.extensionKit.errorDomain error 2” error when running your shortcut or if the actions don't show up in the Shortcuts app, restart your device. This is caused by an iOS bug.
**Some actions that are not possible: orientation lock status, flashlight status, ambient sensor info, flight mode status. Generally, anything related to changing system features/settings or interacting with other apps is not possible.**
---

The app provides lots of powerful extra actions for the Shortcuts app on macOS, iOS, and visionOS. These actions make it significantly easier to create shortcuts.
Expand Down
4 changes: 4 additions & 0 deletions source/content/apps/dato.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ olderMacOSVersions:
- '11'
- '12'
- '13'
feedbackNote: |
**The latest Dato update (5.3.1) triggered a bug in macOS which caused Dato to crash for some users. I have already submitted an update to Apple with a fix. In the meantime, you can use [this build](https://www.dropbox.com/scl/fi/6x5r54zs0kztzaf5441gb/Dato-1720772869.zip?rlkey=w2c27es5c6m7140hsvvgi7huf&raw=1). Sorry about the inconvenience.**
---

**The latest Dato update (5.3.1) triggered a bug in macOS which caused Dato to crash for some users. I have already submitted an update to Apple with a fix (but they are being slow as usual). In the meantime, you can use [this build](https://www.dropbox.com/scl/fi/6x5r54zs0kztzaf5441gb/Dato-1720772869.zip?rlkey=w2c27es5c6m7140hsvvgi7huf&raw=1). Sorry about the inconvenience.**

Dato gives you a local clock, date, and multiple world clocks in the menu bar. When you click Dato in the menu bar, you get a menu with a calendar, calendar events, and world clocks. All of this is highly customizable.

[MacStories review of Dato.](https://www.macstories.net/reviews/dato-review-calendar-events-and-time-zones-from-your-macs-menu-bar/)
Expand Down
4 changes: 2 additions & 2 deletions source/content/apps/online-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ A Wi-Fi connection only means you are connected to a network. The app verifies i

#### The app shows that I'm offline even though I'm not

- Ensure network requests from the app to apple.com and cloudflare.com are not blocked. These domains are used to verify your online status.
- Ensure network requests from the app to apple.com and cloudflare.com are not blocked. These domains are used to verify your online status.

#### How can I run this only when not connected to certain networks?

Use the [Shortery](https://apps.apple.com/app/id1594183810) app. Create a shortcut in the Shortcuts app to launch and quit this app. Then, set up a "Wi-Fi" trigger in Shortery to run the shortcut based on your Wi-Fi connection status. This allows the app to launch or quit when connecting to or disconnecting from specific Wi-Fi networks.

#### How does it work?

Every 20 seconds, it sends a HEAD request to “apple.com”. If that fails, it sends a HEAD request to “cloudflare.com”. If both requests fail, it considers the internet to be offline.
Every 20 seconds and anytime the network changes, it sends a HEAD request to “apple.com”. If that fails, it sends a HEAD request to “cloudflare.com”. If both requests fail, it considers the internet to be offline.

#### Can you make the history persistent?

Expand Down
6 changes: 6 additions & 0 deletions source/content/apps/velja.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ appStoreId: 1607635845
olderMacOSVersions:
- '12'
- '13'
feedbackNote: |
[Can you support Safari profiles?](/velja#safari-profiles)
[Can you support Arc spaces/profiles?](/velja#arc)
**If you're requesting an addition to the “Apps” list, [please read this](https://sindresorhus.com/velja#builtin-apps-requests).**
---

Open links in a specific browser or a matching native app. Easily switch between browsers.
Expand Down
1 change: 1 addition & 0 deletions source/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const appsCollection = defineCollection({
'19',
'20',
])).optional(),
feedbackNote: z.string().optional(),
}).strict(),
});

Expand Down
44 changes: 14 additions & 30 deletions source/pages/feedback.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ const meta = {
};
// eslint-disable-next-line unicorn/no-await-expression-member
const apps = (await fetchApps()).map(({title, url, iconUrl, repoUrl, hasFaqSection}) => ({
const apps = (await fetchApps()).map(({
title,
url,
iconUrl,
repoUrl,
hasFaqSection,
feedbackNote,
}) => ({
title,
url,
iconUrl,
repoUrl,
hasFaqSection,
feedbackNote,
}));
const inputCSS = 'block p-2.5 w-full text-lg text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500';
Expand Down Expand Up @@ -40,7 +48,7 @@ const inputCSS = 'block p-2.5 w-full text-lg text-gray-900 bg-gray-50 rounded-lg
<small>Only used for replying to you.</small>
</div>
<div class="mb-6">
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" class="label" for="email">Attachments</label>
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" class="label" for="attachments">Attachments</label>
<input class={inputCSS} type="file" name="attachments" multiple>
</div>
<br>
Expand Down Expand Up @@ -83,43 +91,19 @@ const inputCSS = 'block p-2.5 w-full text-lg text-gray-900 bg-gray-50 rounded-lg

const url = `${app.repoUrl}/issues/new?${searchParams}`;

$('#additional-info').show().html(`
$('#additional-info').show().append(`
If you have a GitHub account, <a href="${url}">open an issue on the repo</a> instead.
`);
}

if (app?.hasFaqSection) {
$('#additional-info').show().html(`
See the <a href="${app.url}#faq">app's frequently asked questions (FAQs)</a> and the <a href="/apps/faq">general FAQs</a> in case your question has already been answered.\nMake sure you are on the latest version and try to restart your device.
`);
}

// Temporary.
if (product === 'Velja') {
$('#additional-info').show().append(`
<br><br><a href="${app.url}#safari-profiles">Can you support Safari profiles?</a><br><br><a href="${app.url}#arc">Can you support Arc spaces/profiles?</a><br><br><b>If you're requesting an addition to the “Apps” list, <a href="https://sindresorhus.com/velja#builtin-apps-requests">please read this</a>.</b><br><br>
`);
}

if (product === 'Dato') {
$('#additional-info').show().append(`
<br><br><b>The latest Dato update (5.3.1) triggered a bug in macOS which caused Dato to crash for some users. I have already submitted an update to Apple with a fix. In the meantime, you can use <a href="https://www.dropbox.com/scl/fi/6x5r54zs0kztzaf5441gb/Dato-1720772869.zip?rlkey=w2c27es5c6m7140hsvvgi7huf&raw=1">this build</a>. Sorry about the inconvenience.</b><br><br>
`);
}

if (product === 'Actions') {
$('#additional-info').show().append(`
<br><br><h3>If you get a “com.apple.extensionKit.errorDomain error 2” error when running your shortcut or if the actions don't show up in the Shortcuts app, restart your device. This is caused by a iOS bug.</h3>
<br><br><b>Some actions that are not possible: orientation lock status, flashlight status, ambient sensor info, flight mode status. Generally, anything related to changing system features/settings or interacting with other apps is not possible.</b>
<br>
<br>
See the <a href="${app.url}#faq">app's frequently asked questions (FAQs)</a> and the <a href="/apps/faq">general FAQs</a> in case your question has already been answered.\nMake sure you are on the latest version and try to restart your device.
`);
}

if (product === 'AI Actions') {
$('#additional-info').show().append(`
<br><br><h3>Apple is currently blocking updates to this app because they don't like the use of OpenAI keys without in-app purchase (they want their 30% of OpenAI revenue), so until EU forces them to allow side-loading and alternative App Store's, I won't be able to make any improvements to this app...</h3>
`);
if (app?.feedbackNote) {
$('#additional-info').show().append(`<div>${app?.feedbackNote}</div>`);
}
}

Expand Down
4 changes: 4 additions & 0 deletions source/utils/apps.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {markdown} from '@astropub/md';
import {getCollection} from 'astro:content';

const normalizeApps = async app => {
Expand Down Expand Up @@ -58,6 +59,8 @@ const normalizeApps = async app => {
return object;
});

const feedbackNote = await markdown(data.feedbackNote);

return {
...data,
pubDate,
Expand All @@ -77,6 +80,7 @@ const normalizeApps = async app => {
olderVersionsUrl: data.repoUrl ? `${data.repoUrl}#download` : `/${slug}#older-versions`,
...(data.appStoreId && {appStoreUrl: `https://apps.apple.com/app/id${data.appStoreId}`}),
...(data.setappId && {setappUrl: `https://go.setapp.com/stp181?refAppID=${data.setappId}&utm_medium=vendor_program&utm_content=button`}),
feedbackNote,
};
};

Expand Down

0 comments on commit def26cd

Please sign in to comment.