diff --git a/config.json b/config.json index d1fa47c..c6c9600 100644 --- a/config.json +++ b/config.json @@ -1,20 +1,20 @@ { - "readmeUrl": "https://raw.githubusercontent.com/cveinnt/cveinnt/master/README.md", - "title": "LiveTerm", - "name": "John Doe", - "ascii": "liveterm", + "readmeUrl": "https://raw.githubusercontent.com/rakuja/mywebsite/master/README.md", + "title": "RakuJa", + "name": "Daniele Giachetto", + "ascii": "rakuja", "social": { - "github": "github", - "linkedin": "linkedin" + "github": "rakuja", + "linkedin": "danielegiachetto" }, - "email": "contact@email.com", - "ps1_hostname": "liveterm", + "email": "danielegiachetto1999@gmail.com", + "ps1_hostname": "danielegiachetto", "ps1_username": "visitor", - "repo": "https://github.com/Cveinnt/LiveTerm", - "resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf", + "repo": "https://github.com/rakuja/mywebsite", + "resume_url": "https://github.com/RakuJa/CV/blob/master/CV.pdf", "donate_urls": { - "paypal": "https://paypal.me/cveinnt", - "patreon": "https://patreon.com/cveinnt" + "ko_fi": "https://ko-fi.com/rakuja", + "paypal": "https://paypal.me/danielegiachetto" }, "colors": { "light": { @@ -27,12 +27,12 @@ "red": "#CA2124" }, "dark": { - "background": "#2E3440", - "foreground": "#E5E9F0", + "background": "#1E1310", + "foreground": "#E06650", "yellow": "#5E81AC", "green": "#A3BE8C", "gray": "#88C0D0", - "blue": "#EBCB8B", + "blue": "#9D99B3", "red": "#BF616A" } } diff --git a/public/android-icon-144x144.png b/public/android-icon-144x144.png deleted file mode 100644 index 416c466..0000000 Binary files a/public/android-icon-144x144.png and /dev/null differ diff --git a/public/android-icon-192x192.png b/public/android-icon-192x192.png deleted file mode 100644 index 42e5086..0000000 Binary files a/public/android-icon-192x192.png and /dev/null differ diff --git a/public/android-icon-36x36.png b/public/android-icon-36x36.png deleted file mode 100644 index 8979a7a..0000000 Binary files a/public/android-icon-36x36.png and /dev/null differ diff --git a/public/android-icon-48x48.png b/public/android-icon-48x48.png deleted file mode 100644 index da345cf..0000000 Binary files a/public/android-icon-48x48.png and /dev/null differ diff --git a/public/android-icon-72x72.png b/public/android-icon-72x72.png deleted file mode 100644 index 4323ce9..0000000 Binary files a/public/android-icon-72x72.png and /dev/null differ diff --git a/public/android-icon-96x96.png b/public/android-icon-96x96.png deleted file mode 100644 index 4f11a59..0000000 Binary files a/public/android-icon-96x96.png and /dev/null differ diff --git a/public/apple-icon-114x114.png b/public/apple-icon-114x114.png index 61f712d..d5ad0c3 100644 Binary files a/public/apple-icon-114x114.png and b/public/apple-icon-114x114.png differ diff --git a/public/apple-icon-120x120.png b/public/apple-icon-120x120.png index f39d9dc..20e0b22 100644 Binary files a/public/apple-icon-120x120.png and b/public/apple-icon-120x120.png differ diff --git a/public/apple-icon-144x144.png b/public/apple-icon-144x144.png index 416c466..3674b90 100644 Binary files a/public/apple-icon-144x144.png and b/public/apple-icon-144x144.png differ diff --git a/public/apple-icon-152x152.png b/public/apple-icon-152x152.png index b6b86f1..84e475c 100644 Binary files a/public/apple-icon-152x152.png and b/public/apple-icon-152x152.png differ diff --git a/public/apple-icon-180x180.png b/public/apple-icon-180x180.png deleted file mode 100644 index c974a99..0000000 Binary files a/public/apple-icon-180x180.png and /dev/null differ diff --git a/public/apple-icon-57x57.png b/public/apple-icon-57x57.png index 331e1cb..c45eba3 100644 Binary files a/public/apple-icon-57x57.png and b/public/apple-icon-57x57.png differ diff --git a/public/apple-icon-60x60.png b/public/apple-icon-60x60.png index 6f04429..2314a0c 100644 Binary files a/public/apple-icon-60x60.png and b/public/apple-icon-60x60.png differ diff --git a/public/apple-icon-72x72.png b/public/apple-icon-72x72.png index 4323ce9..8dd29f9 100644 Binary files a/public/apple-icon-72x72.png and b/public/apple-icon-72x72.png differ diff --git a/public/apple-icon-76x76.png b/public/apple-icon-76x76.png index 1c1ee69..0bd00ee 100644 Binary files a/public/apple-icon-76x76.png and b/public/apple-icon-76x76.png differ diff --git a/public/apple-icon-precomposed.png b/public/apple-icon-precomposed.png deleted file mode 100644 index 0956ebc..0000000 Binary files a/public/apple-icon-precomposed.png and /dev/null differ diff --git a/public/apple-icon.png b/public/apple-icon.png deleted file mode 100644 index 0956ebc..0000000 Binary files a/public/apple-icon.png and /dev/null differ diff --git a/public/favicon-128x128.png b/public/favicon-128x128.png new file mode 100644 index 0000000..5c5cdaf Binary files /dev/null and b/public/favicon-128x128.png differ diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png index 5bb932c..309133b 100644 Binary files a/public/favicon-16x16.png and b/public/favicon-16x16.png differ diff --git a/public/favicon-196x196.png b/public/favicon-196x196.png new file mode 100644 index 0000000..be9a30d Binary files /dev/null and b/public/favicon-196x196.png differ diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png index 8424468..42246d3 100644 Binary files a/public/favicon-32x32.png and b/public/favicon-32x32.png differ diff --git a/public/favicon-96x96.png b/public/favicon-96x96.png index 4f11a59..fb53eef 100644 Binary files a/public/favicon-96x96.png and b/public/favicon-96x96.png differ diff --git a/public/favicon.ico b/public/favicon.ico index 9721edf..71f47e3 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/manifest.json b/public/manifest.json index fc9ea63..1add753 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,46 +1,46 @@ { - "name": "LiveTerm", - "short_name": "LiveTerm", - "theme_color": "#2E3440", - "background_color": "#2E3440", + "name": "Daniele Giachetto", + "short_name": "RakuJa", + "theme_color": "#E06650", + "background_color": "#1E1310", "display": "fullscreen", "orientation": "portrait", "scope": "/", "start_url": "/", "icons": [ { - "src": "/android-icon-36x36.png", - "sizes": "36x36", + "src": "/favicon-32x32.png", + "sizes": "32x32", "type": "image/png", "density": "0.75" }, { - "src": "/android-icon-48x48.png", - "sizes": "48x48", + "src": "/apple-icon-60x60.png", + "sizes": "60x60", "type": "image/png", "density": "1.0" }, { - "src": "/android-icon-72x72.png", + "src": "/apple-icon-72x72.png", "sizes": "72x72", "type": "image/png", "density": "1.5" }, { - "src": "/android-icon-96x96.png", + "src": "/favicon-96x96.png", "sizes": "96x96", "type": "image/png", "density": "2.0" }, { - "src": "/android-icon-144x144.png", + "src": "/apple-icon-144x144.png", "sizes": "144x144", "type": "image/png", "density": "3.0" }, { - "src": "/android-icon-192x192.png", - "sizes": "192x192", + "src": "/favicon-196x196.png", + "sizes": "196x196", "type": "image/png", "density": "4.0" } diff --git a/public/ms-icon-144x144.png b/public/ms-icon-144x144.png index 416c466..3674b90 100644 Binary files a/public/ms-icon-144x144.png and b/public/ms-icon-144x144.png differ diff --git a/public/ms-icon-150x150.png b/public/ms-icon-150x150.png index e6dcde8..aec8b52 100644 Binary files a/public/ms-icon-150x150.png and b/public/ms-icon-150x150.png differ diff --git a/public/ms-icon-310x150.png b/public/ms-icon-310x150.png new file mode 100644 index 0000000..06c1a25 Binary files /dev/null and b/public/ms-icon-310x150.png differ diff --git a/public/ms-icon-310x310.png b/public/ms-icon-310x310.png index a60d877..a12f38e 100644 Binary files a/public/ms-icon-310x310.png and b/public/ms-icon-310x310.png differ diff --git a/public/ms-icon-70x70.png b/public/ms-icon-70x70.png index e3ead03..5c5cdaf 100644 Binary files a/public/ms-icon-70x70.png and b/public/ms-icon-70x70.png differ diff --git a/src/utils/api.ts b/src/utils/api.ts index 6840cac..e33062c 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -22,9 +22,3 @@ export const getWeather = async (city: string) => { } }; -export const getQuote = async () => { - const { data } = await axios.get('https://api.quotable.io/random'); - return { - quote: `“${data.content}” — ${data.author}`, - }; -}; diff --git a/src/utils/bin/api_commands.ts b/src/utils/bin/api_commands.ts index ce4d487..94098f5 100644 --- a/src/utils/bin/api_commands.ts +++ b/src/utils/bin/api_commands.ts @@ -1,7 +1,6 @@ // // List of commands that require API calls import { getProjects } from '../api'; -import { getQuote } from '../api'; import { getReadme } from '../api'; import { getWeather } from '../api'; @@ -15,16 +14,6 @@ export const projects = async (args: string[]): Promise => { .join('\n'); }; -export const quote = async (args: string[]): Promise => { - const data = await getQuote(); - return data.quote; -}; - -export const readme = async (args: string[]): Promise => { - const readme = await getReadme(); - return `Opening GitHub README...\n - ${readme}`; -}; export const weather = async (args: string[]): Promise => { const city = args.join('+'); diff --git a/src/utils/bin/commands.ts b/src/utils/bin/commands.ts index 338c9f8..8f296a8 100644 --- a/src/utils/bin/commands.ts +++ b/src/utils/bin/commands.ts @@ -11,14 +11,14 @@ export const help = async (args: string[]): Promise => { if (i % 7 === 0) { c += Object.keys(bin).sort()[i - 1] + '\n'; } else { - c += Object.keys(bin).sort()[i - 1] + ' '; + c += Object.keys(bin).sort()[i - 1] + ', '; } } return `Welcome! Here are all the available commands: \n${c}\n [tab]: trigger completion. [ctrl+l]/clear: clear terminal.\n -Type 'sumfetch' to display summary. +Type 'summary' to display summary. `; }; @@ -32,9 +32,9 @@ export const repo = async (args: string[]): Promise => { export const about = async (args: string[]): Promise => { return `Hi, I am ${config.name}. Welcome to my website! -More about me: -'sumfetch' - short summary. -'resume' - my latest resume. +For more information about me, enter one of the following commands (without quotes!): +'summary' - short summary. +'resume' or 'cv' - my latest resume. 'readme' - my github readme.`; }; @@ -43,12 +43,17 @@ export const resume = async (args: string[]): Promise => { return 'Opening resume...'; }; +export const cv = async (args: string[]): Promise => { + window.open(`${config.resume_url}`); + return 'Opening resume...'; +}; + // Donate export const donate = async (args: string[]): Promise => { - return `thank you for your interest. + return `Thank you for your interest. here are the ways you can support my work: - paypal -- patreon +- ko-fi `; }; @@ -60,37 +65,14 @@ export const email = async (args: string[]): Promise => { export const github = async (args: string[]): Promise => { window.open(`https://github.com/${config.social.github}/`); - return 'Opening github...'; }; export const linkedin = async (args: string[]): Promise => { window.open(`https://www.linkedin.com/in/${config.social.linkedin}/`); - return 'Opening linkedin...'; }; -// Search -export const google = async (args: string[]): Promise => { - window.open(`https://google.com/search?q=${args.join(' ')}`); - return `Searching google for ${args.join(' ')}...`; -}; - -export const duckduckgo = async (args: string[]): Promise => { - window.open(`https://duckduckgo.com/?q=${args.join(' ')}`); - return `Searching duckduckgo for ${args.join(' ')}...`; -}; - -export const bing = async (args: string[]): Promise => { - window.open(`https://bing.com/search?q=${args.join(' ')}`); - return `Wow, really? You are using bing for ${args.join(' ')}?`; -}; - -export const reddit = async (args: string[]): Promise => { - window.open(`https://www.reddit.com/search/?q=${args.join(' ')}`); - return `Searching reddit for ${args.join(' ')}...`; -}; - // Typical linux commands export const echo = async (args: string[]): Promise => { return args.join(' '); @@ -101,57 +83,76 @@ export const whoami = async (args: string[]): Promise => { }; export const ls = async (args: string[]): Promise => { - return `a -bunch -of -fake -directories`; + return `rewrite +your +code +using +Rust`; }; export const cd = async (args: string[]): Promise => { return `unfortunately, i cannot afford more directories. -if you want to help, you can type 'donate'.`; +if you want to help, you can type 'donate' (Also, I won't allow path traversal attacks).`; }; export const date = async (args: string[]): Promise => { return new Date().toString(); }; -export const vi = async (args: string[]): Promise => { - return `woah, you still use 'vi'? just try 'vim'.`; -}; - -export const vim = async (args: string[]): Promise => { - return `'vim' is so outdated. how about 'nvim'?`; +export const quote = async (args: string[]): Promise => { + const quotes = [ + "\"Victory belongs to the most persevering.\" - Napoleon Bonaparte", + "\"Sharing knowledge is the most fundamental act of friendship. Because it is a way you can give something without loosing something.\" - Richard Stallman", + "\"The average consumer does not know the difference between browser, Internet and search box.\" - Mitchell Baker", + "\"Never confuse a single defeat with a final defeat\" - F. Scott Fitzgerald", + "\"I mean, if 10 years from now, when you are doing something quick and dirty, you suddenly visualize that I am looking over your shoulders and say to yourself \"Dijkstra would not have liked this\", well, that would be enough immortality for me.\" - Edsger W. Dijkstra", + "\"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim.\" - Edsger W. Dijkstra", + "\"The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense.\" - Edsger W. Dijkstra", + "\"The most important property of a program is whether it accomplishes the intention of its user.\" - Graydon Hoare", + "\"I think, fundamentally, open source does tend to be more stable software. It's the right way to do things.\" - Linus Torvalds", + "\"Fully secure systems don't exist today and they won't exist in the future.\" - Adi Shamir", + "\"Information is the resolution of uncertainty.\" - Claude Shannon", + "\"Weak typing is a devil plaguing software correctness. It tempts you with ease of development, while secretly hiding undefined behaviour in the code.\" - Daniele Giachetto" + ]; + var quote = quotes[quotes.length * Math.random() | 0]; + return quote; }; -export const nvim = async (args: string[]): Promise => { - return `'nvim'? too fancy. why not 'emacs'?`; -}; - -export const emacs = async (args?: string[]): Promise => { - return `you know what? just use vscode.`; -}; export const sudo = async (args?: string[]): Promise => { - window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // ...I'm sorry - return `Permission denied: with little power comes... no responsibility? `; + + const rick_rolls = [ + "https://www.youtube.com/watch?v=aXOChLn5ZdQ", + "https://www.youtube.com/watch?v=dQw4w9WgXcQ", + "https://www.youtube.com/watch?v=ZzI9JE0i6Lc", + "https://www.youtube.com/watch?v=m4-HM_sCvtQ", // let's increase the prob of java + "https://www.youtube.com/watch?v=m4-HM_sCvtQ", + "https://www.youtube.com/watch?v=m4-HM_sCvtQ", + "https://www.youtube.com/watch?v=HyWYpM_S-2c", + ] + var chosen_rick_roll = rick_rolls[rick_rolls.length * Math.random() | 0] + window.open(chosen_rick_roll, '_blank'); // ...I'm sorry + return `Permission denied: you may pwn me... but not THIS easily.`; }; // Banner export const banner = (args?: string[]): string => { return ` -█████ ███ ███████████ -░░███ ░░░ ░█░░░███░░░█ - ░███ ████ █████ █████ ██████ ░ ░███ ░ ██████ ████████ █████████████ - ░███ ░░███ ░░███ ░░███ ███░░███ ░███ ███░░███░░███░░███░░███░░███░░███ - ░███ ░███ ░███ ░███ ░███████ ░███ ░███████ ░███ ░░░ ░███ ░███ ░███ - ░███ █ ░███ ░░███ ███ ░███░░░ ░███ ░███░░░ ░███ ░███ ░███ ░███ - ███████████ █████ ░░█████ ░░██████ █████ ░░██████ █████ █████░███ █████ -░░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ + ███████████ █████ ███ +░░███░░░░░███ ░░███ ░░░ + ░███ ░███ ██████ ░███ █████ █████ ████ █████ ██████ + ░██████████ ░░░░░███ ░███░░███ ░░███ ░███ ░░███ ░░░░░███ + ░███░░░░░███ ███████ ░██████░ ░███ ░███ ░███ ███████ + ░███ ░███ ███░░███ ░███░░███ ░███ ░███ ░███ ███░░███ + █████ █████░░████████ ████ █████ ░░████████ ░███ ░░████████ +░░░░░ ░░░░░ ░░░░░░░░ ░░░░ ░░░░░ ░░░░░░░░ ░███ ░░░░░░░░ + ███ ░███ + ░░██████ + ░░░░░░ Type 'help' to see the list of available commands. -Type 'sumfetch' to display summary. +Type 'summary' to display summary. Type 'repo' or click here for the Github repository. +Type 'cv' or 'resume' or click here for the updated resume. `; }; diff --git a/src/utils/bin/index.ts b/src/utils/bin/index.ts index 0d55ba1..724daad 100644 --- a/src/utils/bin/index.ts +++ b/src/utils/bin/index.ts @@ -1,3 +1,3 @@ export * from './commands'; export * from './api_commands'; -export { default as sumfetch } from './sumfetch'; +export { default as summary } from './sumfetch'; diff --git a/src/utils/bin/sumfetch.ts b/src/utils/bin/sumfetch.ts index e55686e..675a3fd 100644 --- a/src/utils/bin/sumfetch.ts +++ b/src/utils/bin/sumfetch.ts @@ -1,46 +1,25 @@ import config from '../../../config.json'; const sumfetch = async (args: string[]): Promise => { - if (config.ascii === 'cveinnt') { - return ` - @@@@@@@@@@@@@  sumfetch: summary display - @@@@ @@@@ ----------- - @@ @@  ABOUT - @@ @@  ${config.name} - @@ @@ ﰩ ${config.ps1_hostname} - @@ @@@ @@  resume -@@ @@@ @@ 爵 Github repo -@@ @@ ----------- -@@ .@@@@@@@@@@. @@  CONTACT - @@ @@ @@ @@  ${config.email} - @@ @@ @@ @@  github.com/${config.social.github} - @@ @@@@@@ @@  linkedin.com/in/${config.social.linkedin} - @@@ @@@ ----------- - @@@ @@@ @@  DONATE - @| @@@@@@@@@@@@@@@@ @@  ${config.donate_urls.paypal} - @| @@  ${config.donate_urls.patreon} + return ` + ./o.  Summary display + ./sssso- -------------------- + :osssssss+-  ABOUT + :+sssssssssso/.  ${config.name} + -/ossssssssssssso/.  Resume + -/+sssssssssssssssso+: 爵 Github repo + -:/+sssssssssssssssssso+/. ----------- + .://osssssssssssssssssssso++-  CONTACT + .://+ssssssssssssssssssssssso++:  ${config.email} + .:///ossssssssssssssssssssssssso++:  github.com/${config.social.github} + :////ssssssssssssssssssssssssssso+++.  linkedin.com/in/${config.social.linkedin} + -////+ssssssssssssssssssssssssssso++++- ----------- + ..-+oosssssssssssssssssssssssso+++++/  DONATE + ./++++++++++++++++++++++++++++++/:.  ${config.donate_urls.paypal} + :::::::::::::::::::::::::------  ${config.donate_urls.ko_fi} +  My daily driver: EndeavourOS Linux -`; - } else { - return ` - ▄▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄   sumfetch - ▄▓▓▀ ▄▓▓▀▓▓▓▀▓▓▄ ▀▀▓▓▄  ----------- - ▓▓▀ ▄▓▀  ▐▓▓ ▀▓▓  ▓▓▄   ABOUT - ▄▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓   ${config.name} - ▓▓ ▓▓▓  ▐▓▓  ▐▓▓  ▓▓   resume -▐▓▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▓ 爵 Github repo -▐▓  ▐▓ ----------- -▐▓  > L I V E T E R M ▐▓  CONTACT -▐▓  ▐▓  ${config.email} -▐▓▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▓  github.com/${config.social.github} - ▓▓ ▐▓▓  ▓▓  ▐▓▓  ▓▓   linkedin.com/in/${config.social.linkedin} - ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  ----------- - ▓▓▓  ▐▓▓  ▓▓  ▓▓▓ ▓▓▀   DONATE - ▀▓▓▄▄ ▀▓▓▄▓▓▄▓▓▓▄▄▓▓▀   ${config.donate_urls.paypal} - ▀▓▓▓▓▓▓▓▓▓▓▓▀▀   ${config.donate_urls.patreon} - -`; - } +` }; -export default sumfetch; +export default sumfetch; \ No newline at end of file