Skip to content

Commit

Permalink
update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Nov 18, 2024
1 parent a2d887f commit a83dcb6
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--color-text-subtle: #888;
--color-text: #ddd;
--font-family: -apple-system, Helvetica, sans-serif;
--font-size: clamp(16px, 1.6vw, 18px);
--font-size: clamp(16px, 1.3vw, 18px);
--font-weight-bold: 700;
--font-weight-normal: 400;
--space: 1rem;
Expand All @@ -39,26 +39,27 @@

// prettier-ignore
const COMMANDS = new Map([
['a', { name: 'Alphabet', searchTemplate: '/search?q={}', suggestions: ['a/drive', 'a/cal'], url: 'https://google.com' }],
['a/cal', { url: 'https://calendar.google.com' }],
['a/drive', { url: 'https://drive.google.com/drive/u/0/my-drive' }],
['c', { name: 'Cloudflare', url: 'https://dash.cloudflare.com' }],
['a', { name: 'Chat', searchTemplate: '?q={}', url: 'https://chatgpt.com' }],
['c', { name: 'Cloud', url: 'https://dash.cloudflare.com' }],
['d', { name: 'Drive', url: 'https://drive.google.com/drive/u/0/my-drive' }],
['e', { name: 'Resend', url: 'https://resend.com/emails?time=all&page=1' }],
['f', { name: 'Figma', url: 'https://www.figma.com' }],
['g', { name: 'GitHub', searchTemplate: '/search?q={}', suggestions: ['g/copilot', 'g/trending'], url: 'https://github.com' }],
['g', { name: 'Git', searchTemplate: '/search?q={}', suggestions: ['g/copilot', 'g/trending'], url: 'https://github.com' }],
['i', { name: 'Intuit', url: 'https://selfemployed.intuit.com/home' }],
['o', { name: 'OpenAI', searchTemplate: '?q={}', url: 'https://chatgpt.com' }],
['p', { name: 'Proton', searchTemplate: '/u/0/all-mail#keyword={}', suggestions: ['p/pass', 'p/drive'], url: 'https://mail.proton.me/u/0/inbox' }],
['p/drive', { url: 'https://drive.proton.me/u/0/' }],
['p/pass', { url: 'https://pass.proton.me/u/0/' }],
['s', { name: 'Supabase', url: 'https://supabase.com/dashboard/projects' }],
['t', { name: 'TickTick', suggestions: ['t/habits', 't/pomo'], url: 'https://ticktick.com/webapp/#q/today/tasks' }],
['k', { name: 'Khan', url: 'https://www.khanacademy.org' }],
['m', { name: 'Mail', searchTemplate: '/u/0/all-mail#keyword={}', url: 'https://mail.proton.me/u/0/inbox' }],
['o', { name: 'Ocean', url: 'https://cloud.digitalocean.com/projects/50ffcff7-ad65-40e3-af88-3cbc5a38cf99/resources' }],
['p', { name: 'Pass', url: 'https://pass.proton.me/u/0/' }],
['r', { name: 'Reddit', searchTemplate: '/search/?q={}', url: 'https://www.reddit.com' }],
['s', { name: 'Data', url: 'https://supabase.com/dashboard/projects' }],
['t', { name: 'Tick', suggestions: ['t/inbox', 't/work', 't/habits', 't/focus'], url: 'https://ticktick.com/webapp/#q/today/tasks' }],
['t/focus', { url: 'https://ticktick.com/webapp/#focus' }],
['t/habits', { url: 'https://ticktick.com/webapp/#q/all/habit' }],
['t/pomo', { url: 'https://ticktick.com/webapp/#focus' }],
['t/inbox', { url: 'https://ticktick.com/webapp/#p/inbox/tasks' }],
['t/work', { url: 'https://ticktick.com/webapp/#p/66ec8e538f081710b4e85e52/tasks' }],
['v', { name: 'Vercel', url: 'https://vercel.com/dashboard' }],
['x', { name: 'xvvvyz', suggestions: ['x/torrent', 'x/proxy', 'x/droplet'], url: 'https://xvvvyz.xyz' }],
['x/droplet', { url: 'https://cloud.digitalocean.com/projects/50ffcff7-ad65-40e3-af88-3cbc5a38cf99/resources' }],
['x/proxy', { url: 'https://proxy.xvvvyz.xyz' }],
['x/torrent', { url: 'https://torrent.xvvvyz.xyz' }],
['x', { name: 'Torrent', url: 'https://torrent.xvvvyz.xyz' }],
['y', { name: 'Tube', searchTemplate: '/results?search_query={}', url: 'https://www.youtube.com/feed/subscriptions' }],
['0', { name: 'local', suggestions: ['0:54323', '0:54324'], url: 'http://localhost:3000' }],
['0:54323', { url: 'http://localhost:54323' }],
['0:54324', { url: 'http://localhost:54324' }],
Expand All @@ -68,6 +69,7 @@
<template id="commands-template">
<style>
.commands {
border-radius: var(--border-radius);
column-gap: 0;
columns: 2;
list-style: none;
Expand Down Expand Up @@ -116,16 +118,17 @@
color: var(--color-text);
}

@media (min-width: 23rem) {
@media (min-width: 40rem) {
.commands {
border-radius: var(--border-radius);
columns: 3;
max-width: 30rem;
}
}

@media (min-width: 62rem) {
@media (min-width: 70rem) {
.commands {
columns: 4;
max-width: 44rem;
columns: 6;
max-width: 60rem;
}
}
</style>
Expand Down

0 comments on commit a83dcb6

Please sign in to comment.