changes in config

pull/53/head
Devanxh 5 months ago
parent 1f2e543bdb
commit 1bc289ac34

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint
# yarn lint

@ -1,13 +0,0 @@
FROM node:18-alpine as base
WORKDIR /home/node/app
COPY package.json ./
RUN npm install -g npm-check-updates
RUN ncu -u
RUN npm install
COPY . ./
FROM base as production
ENV NODE_PATH=./build
RUN npm run build

@ -1,20 +1,20 @@
{
"readmeUrl": "https://raw.githubusercontent.com/cveinnt/cveinnt/master/README.md",
"title": "LiveTerm",
"name": "John Doe",
"ascii": "liveterm",
"title": "Devansh's portfolio",
"name": "Devansh",
"ascii": "DEVANSH",
"social": {
"github": "github",
"linkedin": "linkedin"
"github": "github.com/Devanxh",
"linkedin": "www.linkedin.com/in/devanshh"
},
"email": "contact@email.com",
"ps1_hostname": "liveterm",
"email": "devanshbhardwaj999@gmail.com",
"ps1_hostname": "devansh",
"ps1_username": "visitor",
"repo": "https://github.com/Cveinnt/LiveTerm",
"resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf",
"donate_urls": {
"paypal": "https://paypal.me/cveinnt",
"patreon": "https://patreon.com/cveinnt"
"paypal": null,
"patreon": null
},
"colors": {
"light": {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

@ -1,14 +0,0 @@
version: "3.7"
services:
liveterm:
build:
context: .
dockerfile: Dockerfile
target: base
expose:
- '3000'
ports:
- '3000:3000'
volumes:
- ./src/:/home/node/app/src
command: npm run dev

@ -1,59 +0,0 @@
#!/bin/sh
# This script installs LiveTerm.
#
# Found a bug? Report it here: https://github.com/Cveinnt/LiveTerm/issues
set -e -u
eval "git clone 'https://github.com/Cveinnt/LiveTerm.git'"
cd LiveTerm
echo "LiveTerm cloned! Installing dependencies..."
if command -v yarn >/dev/null 2>&1 ; then
yarn install
else
cat 1>&2 << 'EOA'
/=====================================\\
| COMMAND NOT FOUND: 'yarn' |
\\=====================================/
Uh oh! We couldn't find 'yarn' installed on your system.
You should first install 'yarn' on your system.
For more information, visit yarn's installation page:
https://classic.yarnpkg.com/lang/en/docs/install/
EOA
exit 1
fi
cat <<-'EOM'
█████ ███ ███████████
░░███ ░░░ ░█░░░███░░░█
░███ ████ █████ █████ ██████ ░ ░███ ░ ██████ ████████ █████████████
░███ ░░███ ░░███ ░░███ ███░░███ ░███ ███░░███░░███░░███░░███░░███░░███
░███ ░███ ░███ ░███ ░███████ ░███ ░███████ ░███ ░░░ ░███ ░███ ░███
░███ █ ░███ ░░███ ███ ░███░░░ ░███ ░███░░░ ░███ ░███ ░███ ░███
███████████ █████ ░░█████ ░░██████ █████ ░░██████ █████ █████░███ █████
░░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░ ░░░░░
LiveTerm has been downloaded to the current directory.
You can start developing it with:
cd LiveTerm && yarn dev
This will open a local port at http://localhost:3000,
where you can preview your website. To apply changes, edit:
config.json
And the changes should be applied upon saves!
EOM

@ -2,11 +2,6 @@
"name": "liveterm",
"version": "0.1.0",
"license": "MIT",
"author": {
"name": "Vincent Wu",
"url": "https://cveinnt.com",
"email": "contact@wensenwu.com"
},
"scripts": {
"dev": "next dev",
"build": "next build",

@ -16,7 +16,6 @@ export const History: React.FC<{ history: Array<HistoryInterface> }> = ({
<div className="flex-grow">{entry.command}</div>
</div>
<p
className="whitespace-pre-wrap mb-2"
style={{ lineHeight: 'normal' }}

@ -43,15 +43,6 @@ export const resume = async (args: string[]): Promise<string> => {
return 'Opening resume...';
};
// Donate
export const donate = async (args: string[]): Promise<string> => {
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>
`;
};
// Contact
export const email = async (args: string[]): Promise<string> => {
window.open(`mailto:${config.email}`);
@ -59,13 +50,13 @@ export const email = async (args: string[]): Promise<string> => {
};
export const github = async (args: string[]): Promise<string> => {
window.open(`https://github.com/${config.social.github}/`);
window.open(`https://${config.social.github}/`);
return 'Opening github...';
};
export const linkedin = async (args: string[]): Promise<string> => {
window.open(`https://www.linkedin.com/in/${config.social.linkedin}/`);
window.open(`https://${config.social.linkedin}/`);
return 'Opening linkedin...';
};
@ -76,21 +67,6 @@ export const google = async (args: string[]): Promise<string> => {
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(' ');
@ -110,7 +86,7 @@ directories`;
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 contribute.`;
};
export const date = async (args: string[]): Promise<string> => {
@ -141,17 +117,7 @@ export const sudo = async (args?: string[]): Promise<string> => {
// Banner
export const banner = (args?: string[]): string => {
return `
Type 'help' to see the list of available commands.
Type 'sumfetch' 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 'help' to see the list of available commands.
Type 'sumfetch' to display summary.
`;
};

@ -3,22 +3,22 @@ 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>
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>
`;
} else {

Loading…
Cancel
Save