diff --git a/README.md b/README.md index d7500e4..0bbe2b2 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,25 @@ [![action status badge](https://github.com/Niweera/niwder/actions/workflows/firebase-hosting-merge.yml/badge.svg)](https://github.com/Niweera/niwder/actions) [![action status badge](https://github.com/Niweera/niwder/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Niweera/niwder/actions) -# Niwder +``` + __ __ __ __ __ +| \ | \| \ | \ | \ +| $$\ | $$ \$$ __ __ __ ____| $$ ______ ______ \$$ ______ +| $$$\| $$| \| \ | \ | \ / $$ / \ / \ | \ / \ +| $$$$\ $$| $$| $$ | $$ | $$| $$$$$$$| $$$$$$\| $$$$$$\| $$| $$$$$$\ +| $$\$$ $$| $$| $$ | $$ | $$| $$ | $$| $$ $$| $$ \$$| $$| $$ | $$ +| $$ \$$$$| $$| $$_/ $$_/ $$| $$__| $$| $$$$$$$$| $$ __ | $$| $$__/ $$ +| $$ \$$$| $$ \$$ $$ $$ \$$ $$ \$$ \| $$| \ | $$ \$$ $$ +\$$ \$$ \$$ \$$$$$\$$$$ \$$$$$$$ \$$$$$$$ \$$ \$$ \$$ \$$$$$$ +``` ![image](src/helpers/cover_3.png) -Niwder (a combo of words, [NIWeera](https://github.com/Niweera), DownloadER) is a long time dream of mine (actually I got this idea around 2017, thanks to [nisalb](https://github.com/nisalb)), and I tried to realize this dream for years but to no avail until now. +# Niwder + +Niwder (a combo of words, [NIWeera](https://github.com/Niweera), DownloadER) is a long time dream of mine (actually I +got this idea around 2017, thanks to [nisalb](https://github.com/nisalb)), and I tried to realize this dream for years +but to no avail until now. Niwder is a system in three parts where, @@ -15,9 +29,17 @@ Niwder is a system in three parts where, ![image](src/helpers/system.jpg) -Currently, a user can add a [Mega.nz](https://mega.nz) file link, and get it converted to a [Google Drive](https://drive.google.com) file link. Since handling a public faced Google Drive app authentication is a big hassle (you need to get the Drive app verified), I have used a dummy Google Drive account for storing the transferred Mega.nz file. In a future release, I will try to add a feature so that anyone can get their files straight into their Google Drive. +Currently, a user can add a [Mega.nz](https://mega.nz) file link, and get it converted to +a [Google Drive](https://drive.google.com) file link. Since handling a public faced Google Drive app authentication is a +big hassle (you need to get the Drive app verified), I have used a dummy Google Drive account for storing the +transferred Mega.nz file. In a future release, I will try to add a feature so that anyone can get their files straight +into their Google Drive. -When a user add a Mega.nz file, the [Niwder-API](https://github.com/Niweera/niwder-api) will queue the transfer job using [Niwder-Worker](https://github.com/Niweera/niwder-api/tree/main/src/worker) and the Niwder-Worker will handle the transfer job and transfer the Mega.nz file to a pre-determined Google Drive. The [Google Drive SDK](https://developers.google.com/drive) will provide the pre-shared download link for the transferred file, and it will be visible in the [Niwder-UI](https://github.com/Niweera/niwder). +When a user add a Mega.nz file, the [Niwder-API](https://github.com/Niweera/niwder-api) will queue the transfer job +using [Niwder-Worker](https://github.com/Niweera/niwder-api/tree/main/src/worker) and the Niwder-Worker will handle the +transfer job and transfer the Mega.nz file to a pre-determined Google Drive. +The [Google Drive SDK](https://developers.google.com/drive) will provide the pre-shared download link for the +transferred file, and it will be visible in the [Niwder-UI](https://github.com/Niweera/niwder). Niwder-UI and Niwder-API use [Firebase](https://firebase.google.com/) for hosting and authentication. @@ -25,7 +47,8 @@ Niwder-UI and Niwder-API use [Firebase](https://firebase.google.com/) for hostin __🔥 Niwder.io uses [WebTorrent](https://github.com/webtorrent/webtorrent) for transferring torrents.__ -__🍭 Niwder.io uses [FingerPrintJS](https://fingerprintjs.com) for anonymizing the user agents for storing Firebase Cloud Messaging keys.__ +__🍭 Niwder.io uses [FingerPrintJS](https://fingerprintjs.com) for anonymizing the user agents for storing Firebase +Cloud Messaging keys.__ ![image](src/helpers/torrents-download-demo.gif) diff --git a/package-lock.json b/package-lock.json index 76d4985..ba3814d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,6 @@ "@testing-library/user-event": "^13.5.0", "axios": "^0.26.1", "buffer": "^6.0.3", - "figlet": "^1.5.2", "firebase": "^9.8.1", "https-browserify": "^1.0.0", "javascript-time-ago": "^2.3.13", @@ -9095,14 +9094,6 @@ "bser": "2.1.1" } }, - "node_modules/figlet": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.5.2.tgz", - "integrity": "sha512-WOn21V8AhyE1QqVfPIVxe3tupJacq1xGkPTB4iagT6o+P2cAgEOOwIxMftr4+ZCTI6d551ij9j61DFr0nsP2uQ==", - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -9557,6 +9548,19 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -25586,11 +25590,6 @@ "bser": "2.1.1" } }, - "figlet": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.5.2.tgz", - "integrity": "sha512-WOn21V8AhyE1QqVfPIVxe3tupJacq1xGkPTB4iagT6o+P2cAgEOOwIxMftr4+ZCTI6d551ij9j61DFr0nsP2uQ==" - }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -25914,6 +25913,12 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "optional": true + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", diff --git a/package.json b/package.json index 2930d92..bfcf311 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "@testing-library/user-event": "^13.5.0", "axios": "^0.26.1", "buffer": "^6.0.3", - "figlet": "^1.5.2", "firebase": "^9.8.1", "https-browserify": "^1.0.0", "javascript-time-ago": "^2.3.13", diff --git a/src/index.js b/src/index.js index bd58cdb..1f8a89f 100644 --- a/src/index.js +++ b/src/index.js @@ -10,15 +10,8 @@ import store, { rrfProps } from "./store"; import { ReactReduxFirebaseProvider } from "react-redux-firebase"; import TimeAgo from "javascript-time-ago"; import en from "javascript-time-ago/locale/en.json"; -import figlet from "figlet"; -import one from "figlet/importable-fonts/Big Money-se"; -import two from "figlet/importable-fonts/Bigfig"; -import three from "figlet/importable-fonts/Sweet"; TimeAgo.addDefaultLocale(en); -figlet.parseFont("One", one); -figlet.parseFont("Two", two); -figlet.parseFont("Three", three); ReactDOM.render( @@ -39,18 +32,35 @@ if ("serviceWorker" in navigator) { }); } -console.log( - figlet.textSync("Niwder.io", { - font: "One", - }), - figlet.textSync("Want to contribute?", { - font: "Two", - }), - "\n\n", - figlet.textSync("Fork", { - font: "Three", - }), - `\n . +console.log(` __ __ __ __ __ +| \\ | \\| \\ | \\ | \\ +| $$\\ | $$ \\$$ __ __ __ ____| $$ ______ ______ \\$$ ______ +| $$$\\| $$| \\| \\ | \\ | \\ / $$ / \\ / \\ | \\ / \\ +| $$$$\\ $$| $$| $$ | $$ | $$| $$$$$$$| $$$$$$\\| $$$$$$\\| $$| $$$$$$\\ +| $$\\$$ $$| $$| $$ | $$ | $$| $$ | $$| $$ $$| $$ \\$$| $$| $$ | $$ +| $$ \\$$$$| $$| $$_/ $$_/ $$| $$__| $$| $$$$$$$$| $$ __ | $$| $$__/ $$ +| $$ \\$$$| $$ \\$$ $$ $$ \\$$ $$ \\$$ \\| $$| \\ | $$ \\$$ $$ + \\$$ \\$$ \\$$ \\$$$$$\\$$$$ \\$$$$$$$ \\$$$$$$$ \\$$ \\$$ \\$$ \\$$$$$$ + + + +| | _ __ _|_ _|_ _ _ _ __ _|_ __ o |_ _|_ _ ) +|^|(_|| | |_ |_(_) (_ (_)| | |_ | | |_)|_| |_(/_ o + + .-. ___ + / \\ ( ) + | .\`. ; .--. ___ .-. | | ___ + | |(___) / \\ ( ) \\ | | ( ) + | |_ | .-. ; | ' .-. ; | | ' / +( __) | | | | | / (___) | |,' / + | | | | | | | | | . '. + | | | | | | | | | | \`. \\ + | | | ' | | | | | | \\ \\ + | | ' \`-' / | | | | \\ . +(___) \`.__.' (___) (___ ) (___) + + + . . . ;. .; @@ -64,9 +74,7 @@ console.log( ;;;;; ..;;;;;.. ':::::' - ':\` -` -); + ':\``); console.log( "%c https://github.com/Niweera/niwder.git",