diff --git a/.husky/pre-commit b/.husky/pre-commit index 9dcd433..e8a07e5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -yarn lint +# yarn lint diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 32f6a64..0000000 --- a/Dockerfile +++ /dev/null @@ -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 diff --git a/config.json b/config.json index d1fa47c..7b2bed8 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", + "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": { diff --git a/demo/cveinnt.png b/demo/cveinnt.png deleted file mode 100644 index fb81235..0000000 Binary files a/demo/cveinnt.png and /dev/null differ diff --git a/demo/demo.gif b/demo/demo.gif deleted file mode 100644 index aa89200..0000000 Binary files a/demo/demo.gif and /dev/null differ diff --git a/demo/demo.png b/demo/demo.png deleted file mode 100644 index 243e1d0..0000000 Binary files a/demo/demo.png and /dev/null differ diff --git a/demo/dracula.png b/demo/dracula.png deleted file mode 100644 index aec2347..0000000 Binary files a/demo/dracula.png and /dev/null differ diff --git a/demo/gruvbox.png b/demo/gruvbox.png deleted file mode 100644 index b82e24c..0000000 Binary files a/demo/gruvbox.png and /dev/null differ diff --git a/demo/mocha.png b/demo/mocha.png deleted file mode 100644 index 1fea105..0000000 Binary files a/demo/mocha.png and /dev/null differ diff --git a/demo/monokai.png b/demo/monokai.png deleted file mode 100644 index 746d60e..0000000 Binary files a/demo/monokai.png and /dev/null differ diff --git a/demo/nord.png b/demo/nord.png deleted file mode 100644 index 01323e8..0000000 Binary files a/demo/nord.png and /dev/null differ diff --git a/demo/paraiso.png b/demo/paraiso.png deleted file mode 100644 index c32caae..0000000 Binary files a/demo/paraiso.png and /dev/null differ diff --git a/demo/solarized.png b/demo/solarized.png deleted file mode 100644 index cc6fbdf..0000000 Binary files a/demo/solarized.png and /dev/null differ diff --git a/demo/themes.png b/demo/themes.png deleted file mode 100644 index c2f345d..0000000 Binary files a/demo/themes.png and /dev/null differ diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 515baa8..0000000 --- a/docker-compose.yml +++ /dev/null @@ -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 diff --git a/install/install.sh b/install/install.sh deleted file mode 100644 index d04e1e1..0000000 --- a/install/install.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index d5468d9..5f249d9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/history/History.tsx b/src/components/history/History.tsx index e67513a..549d686 100644 --- a/src/components/history/History.tsx +++ b/src/components/history/History.tsx @@ -16,7 +16,6 @@ export const History: React.FC<{ history: Array }> = ({
{entry.command}
-

=> { return 'Opening resume...'; }; -// Donate -export const donate = async (args: string[]): Promise => { - return `thank you for your interest. -here are the ways you can support my work: -- paypal -- patreon -`; -}; - // Contact export const email = async (args: string[]): Promise => { window.open(`mailto:${config.email}`); @@ -59,13 +50,13 @@ export const email = async (args: string[]): Promise => { }; export const github = async (args: string[]): Promise => { - window.open(`https://github.com/${config.social.github}/`); + window.open(`https://${config.social.github}/`); return 'Opening github...'; }; export const linkedin = async (args: string[]): Promise => { - 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 => { 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(' '); @@ -110,7 +86,7 @@ directories`; 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 contribute.`; }; export const date = async (args: string[]): Promise => { @@ -141,17 +117,7 @@ export const sudo = async (args?: string[]): Promise => { // 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 here for the Github repository. + Type 'help' to see the list of available commands. + Type 'sumfetch' to display summary. `; }; diff --git a/src/utils/bin/sumfetch.ts b/src/utils/bin/sumfetch.ts index e55686e..e81c994 100644 --- a/src/utils/bin/sumfetch.ts +++ b/src/utils/bin/sumfetch.ts @@ -3,22 +3,22 @@ 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} +  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} `; } else {