feat: website customization

pull/50/head
RakuJa 1 year ago committed by GitHub
commit d691f0eb80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"
}
}

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",
"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"
}

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
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<string> => {
.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> => {
const city = args.join('+');

@ -11,14 +11,14 @@ export const help = async (args: string[]): Promise<string> => {
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<string> => {
export const about = async (args: string[]): Promise<string> => {
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<string> => {
return 'Opening resume...';
};
export const cv = async (args: string[]): Promise<string> => {
window.open(`${config.resume_url}`);
return 'Opening resume...';
};
// Donate
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:
- <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> => {
window.open(`https://github.com/${config.social.github}/`);
return 'Opening github...';
};
export const linkedin = async (args: string[]): Promise<string> => {
window.open(`https://www.linkedin.com/in/${config.social.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
export const echo = async (args: string[]): Promise<string> => {
return args.join(' ');
@ -101,57 +83,76 @@ export const whoami = async (args: string[]): Promise<string> => {
};
export const ls = async (args: string[]): Promise<string> => {
return `a
bunch
of
fake
directories`;
return `rewrite
your
code
using
Rust`;
};
export const cd = async (args: string[]): Promise<string> => {
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> => {
return new Date().toString();
};
export const vi = async (args: string[]): Promise<string> => {
return `woah, you still use 'vi'? just try 'vim'.`;
};
export const vim = async (args: string[]): Promise<string> => {
return `'vim' is so outdated. how about 'nvim'?`;
export const quote = async (args: string[]): Promise<string> => {
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<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> => {
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 <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 './api_commands';
export { default as sumfetch } from './sumfetch';
export { default as summary } from './sumfetch';

@ -1,46 +1,25 @@
import config from '../../../config.json';
const sumfetch = async (args: string[]): Promise<string> => {
if (config.ascii === 'cveinnt') {
return `
@@@@@@@@@@@@@ sumfetch: summary display
@@@@ @@@@ -----------
@@ @@ ABOUT
@@ @@ ${config.name}
@@ @@ ${config.ps1_hostname}
@@ @@@ @@ <u><a href="${config.resume_url}" target="_blank">resume</a></u>
@@ @@@ @@ <u><a href="${config.repo}" target="_blank">Github repo</a></u>
@@ @@ -----------
@@ .@@@@@@@@@@. @@ 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>
./o. Summary display
./sssso- --------------------
:osssssss+- ABOUT
:+sssssssssso/. ${config.name}
-/ossssssssssssso/. <u><a href="${config.resume_url}" target="_blank">Resume</a></u>
-/+sssssssssssssssso+: <u><a href="${config.repo}" target="_blank">Github repo</a></u>
-:/+sssssssssssssssssso+/. -----------
.://osssssssssssssssssssso++-  CONTACT
.://+ssssssssssssssssssssssso++:  <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u>
.:///ossssssssssssssssssssssssso++:  <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>
-////+ssssssssssssssssssssssssssso++++- -----------
..-+oosssssssssssssssssssssssso+++++/ DONATE
./++++++++++++++++++++++++++++++/:. <u><a href="${config.donate_urls.paypal}" target="_blank">${config.donate_urls.paypal}</a></u>
:::::::::::::::::::::::::------ <u><a href="${config.donate_urls.ko_fi}" target="_blank">${config.donate_urls.ko_fi}</a></u>
My daily driver: EndeavourOS Linux
`;
} 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;
Loading…
Cancel
Save