changes in config

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

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.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", "readmeUrl": "https://raw.githubusercontent.com/cveinnt/cveinnt/master/README.md",
"title": "LiveTerm", "title": "Devansh's portfolio",
"name": "John Doe", "name": "Devansh",
"ascii": "liveterm", "ascii": "DEVANSH",
"social": { "social": {
"github": "github", "github": "github.com/Devanxh",
"linkedin": "linkedin" "linkedin": "www.linkedin.com/in/devanshh"
}, },
"email": "contact@email.com", "email": "devanshbhardwaj999@gmail.com",
"ps1_hostname": "liveterm", "ps1_hostname": "devansh",
"ps1_username": "visitor", "ps1_username": "visitor",
"repo": "https://github.com/Cveinnt/LiveTerm", "repo": "https://github.com/Cveinnt/LiveTerm",
"resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf", "resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf",
"donate_urls": { "donate_urls": {
"paypal": "https://paypal.me/cveinnt", "paypal": null,
"patreon": "https://patreon.com/cveinnt" "patreon": null
}, },
"colors": { "colors": {
"light": { "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", "name": "liveterm",
"version": "0.1.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"author": {
"name": "Vincent Wu",
"url": "https://cveinnt.com",
"email": "contact@wensenwu.com"
},
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",

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

@ -43,15 +43,6 @@ export const resume = async (args: string[]): Promise<string> => {
return 'Opening resume...'; 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 // Contact
export const email = async (args: string[]): Promise<string> => { export const email = async (args: string[]): Promise<string> => {
window.open(`mailto:${config.email}`); 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> => { 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...'; 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://${config.social.linkedin}/`);
return 'Opening linkedin...'; return 'Opening linkedin...';
}; };
@ -76,21 +67,6 @@ export const google = async (args: string[]): Promise<string> => {
return `Searching google for ${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(' ');
@ -110,7 +86,7 @@ directories`;
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 contribute.`;
}; };
export const date = async (args: string[]): Promise<string> => { export const date = async (args: string[]): Promise<string> => {
@ -141,17 +117,7 @@ export const sudo = async (args?: string[]): Promise<string> => {
// 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 '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.
`; `;
}; };

@ -3,22 +3,22 @@ import config from '../../../config.json';
const sumfetch = async (args: string[]): Promise<string> => { const sumfetch = async (args: string[]): Promise<string> => {
if (config.ascii === 'cveinnt') { if (config.ascii === 'cveinnt') {
return ` return `
@@@@@@@@@@@@@ sumfetch: summary display sumfetch: summary display
@@@@ @@@@ ----------- -----------
@@ @@ ABOUT ABOUT
@@ @@ ${config.name} ${config.name}
@@ @@ ${config.ps1_hostname} ${config.ps1_hostname}
@@ @@@ @@ <u><a href="${config.resume_url}" target="_blank">resume</a></u> <u><a href="${config.resume_url}" target="_blank">resume</a></u>
@@ @@@ @@ <u><a href="${config.repo}" target="_blank">Github repo</a></u> <u><a href="${config.repo}" target="_blank">Github repo</a></u>
@@ @@ ----------- -----------
@@ .@@@@@@@@@@. @@ CONTACT CONTACT
@@ @@ @@ @@ <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u> <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://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> <u><a href="https://linkedin.com/in/${config.social.linkedin}" target="_blank">linkedin.com/in/${config.social.linkedin}</a></u>
@@@ @@@ ----------- -----------
@@@ @@@ @@ DONATE DONATE
@| @@@@@@@@@@@@@@@@ @@ <u><a href="${config.donate_urls.paypal}" target="_blank">${config.donate_urls.paypal}</a></u> <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> <u><a href="${config.donate_urls.patreon}" target="_blank">${config.donate_urls.patreon}</a></u>
`; `;
} else { } else {

Loading…
Cancel
Save