mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
Merge branch 'main' of github.com:modrinth/code into chyz/comark
# Conflicts: # pnpm-lock.yaml
This commit is contained in:
@@ -132,6 +132,15 @@ const keybinds: { [id: string]: KeybindListener } = {
|
||||
globalThis.open(ctx.officialUrl, '_blank', 'noopener,noreferrer')
|
||||
},
|
||||
},
|
||||
'open-localhost': {
|
||||
keybind: [],
|
||||
description: 'Open current page on localhost',
|
||||
scope: 'global',
|
||||
enabled: () => !isLocalhost(),
|
||||
action: (ctx) => {
|
||||
globalThis.open(ctx.localhostUrl, '_blank', 'noopener,noreferrer')
|
||||
},
|
||||
},
|
||||
'copy-official-site': {
|
||||
keybind: 'Ctrl+Shift+O',
|
||||
description: 'Copy production/staging URL (localhost only)',
|
||||
|
||||
@@ -58,6 +58,7 @@ export type ModerationTechReviewContext = {
|
||||
export type ModerationGlobalContext = {
|
||||
scope: 'global'
|
||||
officialUrl: string
|
||||
localhostUrl: string
|
||||
notifyCopied: (value: string, title: string) => void
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user