Simple website customization

pull/50/head
rakuja 1 year ago
parent 1f2e543bdb
commit 68740781ce

@ -1,20 +1,20 @@
{ {
"readmeUrl": "https://raw.githubusercontent.com/cveinnt/cveinnt/master/README.md", "readmeUrl": "https://raw.githubusercontent.com/rakuja/mywebsite/master/README.md",
"title": "LiveTerm", "title": "RakuJa",
"name": "John Doe", "name": "Daniele Giachetto",
"ascii": "liveterm", "ascii": "rakuja",
"social": { "social": {
"github": "github", "github": "rakuja",
"linkedin": "linkedin" "linkedin": "danielegiachetto"
}, },
"email": "contact@email.com", "email": "danielegiachetto1999@gmail.com",
"ps1_hostname": "liveterm", "ps1_hostname": "danielegiachetto",
"ps1_username": "visitor", "ps1_username": "visitor",
"repo": "https://github.com/Cveinnt/LiveTerm", "repo": "https://github.com/rakuja/mywebsite",
"resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf", "resume_url": "https://github.com/RakuJa/CV/blob/master/CV.pdf",
"donate_urls": { "donate_urls": {
"paypal": "https://paypal.me/cveinnt", "ko_fi": "https://ko-fi.com/rakuja",
"patreon": "https://patreon.com/cveinnt" "paypal": "https://paypal.me/danielegiachetto"
}, },
"colors": { "colors": {
"light": { "light": {
@ -27,12 +27,12 @@
"red": "#CA2124" "red": "#CA2124"
}, },
"dark": { "dark": {
"background": "#2E3440", "background": "#1E1310",
"foreground": "#E5E9F0", "foreground": "#E06650",
"yellow": "#5E81AC", "yellow": "#5E81AC",
"green": "#A3BE8C", "green": "#A3BE8C",
"gray": "#88C0D0", "gray": "#88C0D0",
"blue": "#EBCB8B", "blue": "#9D99B3",
"red": "#BF616A" "red": "#BF616A"
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 575 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 34 KiB

@ -1,46 +1,46 @@
{ {
"name": "LiveTerm", "name": "Daniele Giachetto",
"short_name": "LiveTerm", "short_name": "RakuJa",
"theme_color": "#2E3440", "theme_color": "#E06650",
"background_color": "#2E3440", "background_color": "#1E1310",
"display": "fullscreen", "display": "fullscreen",
"orientation": "portrait", "orientation": "portrait",
"scope": "/", "scope": "/",
"start_url": "/", "start_url": "/",
"icons": [ "icons": [
{ {
"src": "/android-icon-36x36.png", "src": "/favicon-32x32.png",
"sizes": "36x36", "sizes": "32x32",
"type": "image/png", "type": "image/png",
"density": "0.75" "density": "0.75"
}, },
{ {
"src": "/android-icon-48x48.png", "src": "/apple-icon-60x60.png",
"sizes": "48x48", "sizes": "60x60",
"type": "image/png", "type": "image/png",
"density": "1.0" "density": "1.0"
}, },
{ {
"src": "/android-icon-72x72.png", "src": "/apple-icon-72x72.png",
"sizes": "72x72", "sizes": "72x72",
"type": "image/png", "type": "image/png",
"density": "1.5" "density": "1.5"
}, },
{ {
"src": "/android-icon-96x96.png", "src": "/favicon-96x96.png",
"sizes": "96x96", "sizes": "96x96",
"type": "image/png", "type": "image/png",
"density": "2.0" "density": "2.0"
}, },
{ {
"src": "/android-icon-144x144.png", "src": "/apple-icon-144x144.png",
"sizes": "144x144", "sizes": "144x144",
"type": "image/png", "type": "image/png",
"density": "3.0" "density": "3.0"
}, },
{ {
"src": "/android-icon-192x192.png", "src": "/favicon-196x196.png",
"sizes": "192x192", "sizes": "196x196",
"type": "image/png", "type": "image/png",
"density": "4.0" "density": "4.0"
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -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}`,
};
};

@ -1,7 +1,6 @@
// // List of commands that require API calls // // List of commands that require API calls
import { getProjects } from '../api'; import { getProjects } from '../api';
import { getQuote } from '../api';
import { getReadme } from '../api'; import { getReadme } from '../api';
import { getWeather } from '../api'; import { getWeather } from '../api';
@ -15,16 +14,6 @@ export const projects = async (args: string[]): Promise<string> => {
.join('\n'); .join('\n');
}; };
export const quote = async (args: string[]): Promise<string> => {
const data = await getQuote();
return data.quote;
};
export const readme = async (args: string[]): Promise<string> => {
const readme = await getReadme();
return `Opening GitHub README...\n
${readme}`;
};
export const weather = async (args: string[]): Promise<string> => { export const weather = async (args: string[]): Promise<string> => {
const city = args.join('+'); const city = args.join('+');

@ -11,14 +11,14 @@ export const help = async (args: string[]): Promise<string> => {
if (i % 7 === 0) { if (i % 7 === 0) {
c += Object.keys(bin).sort()[i - 1] + '\n'; c += Object.keys(bin).sort()[i - 1] + '\n';
} else { } else {
c += Object.keys(bin).sort()[i - 1] + ' '; c += Object.keys(bin).sort()[i - 1] + ', ';
} }
} }
return `Welcome! Here are all the available commands: return `Welcome! Here are all the available commands:
\n${c}\n \n${c}\n
[tab]: trigger completion. [tab]: trigger completion.
[ctrl+l]/clear: clear terminal.\n [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<string> => {
export const about = async (args: string[]): Promise<string> => { export const about = async (args: string[]): Promise<string> => {
return `Hi, I am ${config.name}. return `Hi, I am ${config.name}.
Welcome to my website! Welcome to my website!
More about me: For more information about me, enter one of the following commands (without quotes!):
'sumfetch' - short summary. 'summary' - short summary.
'resume' - my latest resume. 'resume' or 'cv' - my latest resume.
'readme' - my github readme.`; 'readme' - my github readme.`;
}; };
@ -43,12 +43,17 @@ export const resume = async (args: string[]): Promise<string> => {
return 'Opening resume...'; return 'Opening resume...';
}; };
export const cv = async (args: string[]): Promise<string> => {
window.open(`${config.resume_url}`);
return 'Opening resume...';
};
// Donate // Donate
export const donate = async (args: string[]): Promise<string> => { export const donate = async (args: string[]): Promise<string> => {
return `thank you for your interest. return `Thank you for your interest.
here are the ways you can support my work: here are the ways you can support my work:
- <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.donate_urls.paypal}" target="_blank">paypal</a></u> - <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.donate_urls.paypal}" target="_blank">paypal</a></u>
- <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.donate_urls.patreon}" target="_blank">patreon</a></u> - <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.donate_urls.ko_fi}" target="_blank">ko-fi</a></u>
`; `;
}; };
@ -60,37 +65,14 @@ export const email = async (args: string[]): Promise<string> => {
export const github = async (args: string[]): Promise<string> => { export const github = async (args: string[]): Promise<string> => {
window.open(`https://github.com/${config.social.github}/`); window.open(`https://github.com/${config.social.github}/`);
return 'Opening github...'; return 'Opening github...';
}; };
export const linkedin = async (args: string[]): Promise<string> => { export const linkedin = async (args: string[]): Promise<string> => {
window.open(`https://www.linkedin.com/in/${config.social.linkedin}/`); window.open(`https://www.linkedin.com/in/${config.social.linkedin}/`);
return 'Opening linkedin...'; return 'Opening linkedin...';
}; };
// Search
export const google = async (args: string[]): Promise<string> => {
window.open(`https://google.com/search?q=${args.join(' ')}`);
return `Searching google for ${args.join(' ')}...`;
};
export const duckduckgo = async (args: string[]): Promise<string> => {
window.open(`https://duckduckgo.com/?q=${args.join(' ')}`);
return `Searching duckduckgo for ${args.join(' ')}...`;
};
export const bing = async (args: string[]): Promise<string> => {
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<string> => {
window.open(`https://www.reddit.com/search/?q=${args.join(' ')}`);
return `Searching reddit for ${args.join(' ')}...`;
};
// Typical linux commands // Typical linux commands
export const echo = async (args: string[]): Promise<string> => { export const echo = async (args: string[]): Promise<string> => {
return args.join(' '); return args.join(' ');
@ -101,57 +83,76 @@ export const whoami = async (args: string[]): Promise<string> => {
}; };
export const ls = async (args: string[]): Promise<string> => { export const ls = async (args: string[]): Promise<string> => {
return `a return `rewrite
bunch your
of code
fake using
directories`; Rust`;
}; };
export const cd = async (args: string[]): Promise<string> => { export const cd = async (args: string[]): Promise<string> => {
return `unfortunately, i cannot afford more directories. 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<string> => { export const date = async (args: string[]): Promise<string> => {
return new Date().toString(); return new Date().toString();
}; };
export const vi = async (args: string[]): Promise<string> => { export const quote = async (args: string[]): Promise<string> => {
return `woah, you still use 'vi'? just try 'vim'.`; 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",
export const vim = async (args: string[]): Promise<string> => { "\"The average consumer does not know the difference between browser, Internet and search box.\" - Mitchell Baker",
return `'vim' is so outdated. how about 'nvim'?`; "\"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<string> => {
return `'nvim'? too fancy. why not 'emacs'?`;
};
export const emacs = async (args?: string[]): Promise<string> => {
return `you know what? just use vscode.`;
};
export const sudo = async (args?: string[]): Promise<string> => { export const sudo = async (args?: string[]): Promise<string> => {
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 // Banner
export const banner = (args?: string[]): string => { export const banner = (args?: string[]): string => {
return ` return `
Type 'help' to see the list of available commands. Type 'help' to see the list of available commands.
Type 'sumfetch' to display summary. Type 'summary' to display summary.
Type 'repo' or click <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.repo}" target="_blank">here</a></u> for the Github repository. Type 'repo' or click <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.repo}" target="_blank">here</a></u> for the Github repository.
Type 'cv' or 'resume' or click <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.resume_url}" target="_blank">here</a></u> for the updated resume.
`; `;
}; };

@ -1,3 +1,3 @@
export * from './commands'; export * from './commands';
export * from './api_commands'; export * from './api_commands';
export { default as sumfetch } from './sumfetch'; export { default as summary } from './sumfetch';

@ -1,46 +1,25 @@
import config from '../../../config.json'; import config from '../../../config.json';
const sumfetch = async (args: string[]): Promise<string> => { const sumfetch = async (args: string[]): Promise<string> => {
if (config.ascii === 'cveinnt') { return `
return ` ./o. Summary display
@@@@@@@@@@@@@ sumfetch: summary display ./sssso- --------------------
@@@@ @@@@ ----------- :osssssss+- ABOUT
@@ @@ ABOUT :+sssssssssso/. ${config.name}
@@ @@ ${config.name} -/ossssssssssssso/. <u><a href="${config.resume_url}" target="_blank">Resume</a></u>
@@ @@ ${config.ps1_hostname} -/+sssssssssssssssso+: <u><a href="${config.repo}" target="_blank">Github repo</a></u>
@@ @@@ @@ <u><a href="${config.resume_url}" target="_blank">resume</a></u> -:/+sssssssssssssssssso+/. -----------
@@ @@@ @@ <u><a href="${config.repo}" target="_blank">Github repo</a></u> .://osssssssssssssssssssso++-  CONTACT
@@ @@ ----------- .://+ssssssssssssssssssssssso++:  <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u>
@@ .@@@@@@@@@@. @@ CONTACT .:///ossssssssssssssssssssssssso++:  <u><a href="https://github.com/${config.social.github}" target="_blank">github.com/${config.social.github}</a></u>
@@ @@ @@ @@ <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u> :////ssssssssssssssssssssssssssso+++.  <u><a href="https://linkedin.com/in/${config.social.linkedin}" target="_blank">linkedin.com/in/${config.social.linkedin}</a></u>
@@ @@ @@ @@ <u><a href="https://github.com/${config.social.github}" target="_blank">github.com/${config.social.github}</a></u> -////+ssssssssssssssssssssssssssso++++- -----------
@@ @@@@@@ @@ <u><a href="https://linkedin.com/in/${config.social.linkedin}" target="_blank">linkedin.com/in/${config.social.linkedin}</a></u> ..-+oosssssssssssssssssssssssso+++++/ DONATE
@@@ @@@ ----------- ./++++++++++++++++++++++++++++++/:. <u><a href="${config.donate_urls.paypal}" target="_blank">${config.donate_urls.paypal}</a></u>
@@@ @@@ @@ DONATE :::::::::::::::::::::::::------ <u><a href="${config.donate_urls.ko_fi}" target="_blank">${config.donate_urls.ko_fi}</a></u>
@| @@@@@@@@@@@@@@@@ @@ <u><a href="${config.donate_urls.paypal}" target="_blank">${config.donate_urls.paypal}</a></u> My daily driver: EndeavourOS Linux
@| @@ <u><a href="${config.donate_urls.patreon}" target="_blank">${config.donate_urls.patreon}</a></u>
`; `
} else {
return `
  sumfetch
    -----------
      ABOUT
  ${config.name}
        <u><a href="${config.resume_url}" target="_blank">resume</a></u>
<u><a href="${config.repo}" target="_blank">Github repo</a></u>
  -----------
  > L I V E T E R M CONTACT
  <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u>
<u><a href="https://github.com/${config.social.github}" target="_blank">github.com/${config.social.github}</a></u>
        <u><a href="https://linkedin.com/in/${config.social.linkedin}" target="_blank">linkedin.com/in/${config.social.linkedin}</a></u>
  -----------
        DONATE
   <u><a href="${config.donate_urls.paypal}" target="_blank">${config.donate_urls.paypal}</a></u>
  <u><a href="${config.donate_urls.patreon}" target="_blank">${config.donate_urls.patreon}</a></u>
`;
}
}; };
export default sumfetch; export default sumfetch;
Loading…
Cancel
Save