diff --git a/js/commands.js b/js/commands.js index 1330ff9..a4f3b88 100644 --- a/js/commands.js +++ b/js/commands.js @@ -128,32 +128,6 @@ const COMMANDS = [ .map(([name, url]) => `${name}`) .join('\n') }, - { - name: 'curl', - description: 'open website in new tab', - usage: '', - usage_examples: ['curl https://google.com'], - arguments: [ - { - name: 'url', - description: 'URL to open', - required: true, - multiword: true, - check: (url) => URL_REGEX.test(url) - ? null - : "invalid URL or missing protocol" - } - ], - output: (url) => { - Object.assign(document.createElement('a'), { - target: '_blank', - rel: 'noopener noreferrer', - href: url, - }).click(); - - return '' - } - }, { name: 'desktop', description: 'Show some desktop screenshots', diff --git a/js/data.js b/js/data.js index 28df565..eb6b616 100644 --- a/js/data.js +++ b/js/data.js @@ -1,11 +1,8 @@ -const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g; - const LINKS = { 'gitea': 'https://git.sador.me/sadorowo', 'instagram': 'https://instagram.com/sadorowo', - 'immich (self-hosted photo hosting)': 'https://photos.sador.me/', + 'matrix': 'https://matrix.sador.me', 'email': 'mailto:contact@sador.me', - 'matrix': 'matrix.sador.me' } const MUSIC_METADATA = [