Add search
This commit is contained in:
parent
3c97a2eab1
commit
4e09a7b831
1 changed files with 36 additions and 30 deletions
|
|
@ -119,13 +119,14 @@ rRVj04/uQmY6Cf8=
|
||||||
|
|
||||||
$('body').terminal({
|
$('body').terminal({
|
||||||
help: function() {
|
help: function() {
|
||||||
this.echo("Some commands to get you started:\n"+
|
this.echo("Some commands to get you started:\n" +
|
||||||
"• about: show about info\n"+
|
"• about: show about info\n" +
|
||||||
"• services: links to all the services i host, run 'services help' to get a full list\n"+
|
"• services: links to all the services i host, run 'services help' to get a full list\n" +
|
||||||
"• pgp: import my pgp public key\n"+
|
`• search: search the internet using my searxng, run 'search "<query>"'\n`+
|
||||||
"• meow: mrow\n"+
|
"• pgp: import my pgp public key\n" +
|
||||||
"\n "+
|
"• meow: mrow\n" +
|
||||||
"\n"+
|
"\n " +
|
||||||
|
"\n" +
|
||||||
"...Thats it for now, sorgy");
|
"...Thats it for now, sorgy");
|
||||||
},
|
},
|
||||||
about: function() {
|
about: function() {
|
||||||
|
|
@ -184,23 +185,23 @@ I help moderate the linuxposting community across its many locations, including
|
||||||
open('https://sonarr.ceressees.dev', '_self')
|
open('https://sonarr.ceressees.dev', '_self')
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.echo("List of services I host. Services marked with a * are public, so you can use them too!\n"+
|
this.echo("List of services I host. Services marked with a * are public, so you can use them too!\n" +
|
||||||
"Run 'services <service>' to launch the specified option!"+
|
"Run 'services <service>' to launch the specified option!" +
|
||||||
"\n\n•Audiobookshelf\n"+
|
"\n\n•Audiobookshelf\n" +
|
||||||
"*Cinny\n"+
|
"*Cinny\n" +
|
||||||
"*Element\n"+
|
"*Element\n" +
|
||||||
"*Forgejo\n"+
|
"*Forgejo\n" +
|
||||||
"•Immich\n"+
|
"•Immich\n" +
|
||||||
"•Jellyfin\n"+
|
"•Jellyfin\n" +
|
||||||
"•Komodo\n"+
|
"•Komodo\n" +
|
||||||
"•Lidarr\n"+
|
"•Lidarr\n" +
|
||||||
"•Navidrome\n"+
|
"•Navidrome\n" +
|
||||||
"•Outline\n"+
|
"•Outline\n" +
|
||||||
"•Paperless\n"+
|
"•Paperless\n" +
|
||||||
"*Piped\n"+
|
"*Piped\n" +
|
||||||
"•Radarr\n"+
|
"•Radarr\n" +
|
||||||
"*Searxng\n"+
|
"*Searxng\n" +
|
||||||
"•Soulseek\n"+
|
"•Soulseek\n" +
|
||||||
"•Sonarr")
|
"•Sonarr")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -216,17 +217,22 @@ I help moderate the linuxposting community across its many locations, including
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
meow: function() {
|
meow: function() {
|
||||||
let meows = ['meow','mrrrp','mrow','mrreow','miao','mraa']
|
let meows = ['meow', 'mrrrp', 'mrow', 'mrreow', 'miao', 'mraa']
|
||||||
let random = Math.floor(Math.random() * meows.length);
|
let random = Math.floor(Math.random() * meows.length);
|
||||||
this.echo(meows[random])
|
this.echo(meows[random])
|
||||||
|
},
|
||||||
|
search: function(query) {
|
||||||
|
let uri = "https://search.ceressees.dev/search?q="+query;
|
||||||
|
let encodedUri = encodeURI(uri);
|
||||||
|
open(encodedUri, '_self')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
greetings: "[[; #f5c2e7;]"+
|
greetings: "[[; #f5c2e7;]" +
|
||||||
"▄▖ ▄▖ ▄▖▜ ▜\n"+
|
"▄▖ ▄▖ ▄▖▜ ▜\n" +
|
||||||
"▌ █▌▛▘█▌▛▘▄▖▚ █▌█▌▛▘▄▖▌▌▐ ▐ \n"+
|
"▌ █▌▛▘█▌▛▘▄▖▚ █▌█▌▛▘▄▖▌▌▐ ▐ \n" +
|
||||||
"▙▖▙▖▌ ▙▖▄▌ ▄▌▙▖▙▖▄▌ ▛▌▐▖▐▖\n"+
|
"▙▖▙▖▌ ▙▖▄▌ ▄▌▙▖▙▖▄▌ ▛▌▐▖▐▖\n" +
|
||||||
"I'm watching you...]\n"+
|
"I'm watching you...]\n" +
|
||||||
"Run 'help' to get started",
|
"Run 'help' to get started",
|
||||||
prompt: "[[;#f5c2e7;]:3] > ",
|
prompt: "[[;#f5c2e7;]:3] > ",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue