-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Youssef-ben/develop
Version 1.0.0
- Loading branch information
Showing
62 changed files
with
5,304 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "react"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
module.exports = { | ||
"extends": [ | ||
"airbnb", | ||
"prettier", | ||
"prettier/react" | ||
], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"ecmaFeatures": { | ||
"impliedStrict": true, | ||
"classes": true | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"jquery": true, | ||
"jest": true | ||
}, | ||
"rules": { | ||
"no-debugger": 0, | ||
"no-alert": 0, | ||
"no-await-in-loop": 0, | ||
"no-return-assign": [ | ||
"error", | ||
"except-parens" | ||
], | ||
"no-restricted-syntax": [ | ||
2, | ||
"ForInStatement", | ||
"LabeledStatement", | ||
"WithStatement" | ||
], | ||
"no-unused-vars": [ | ||
1, | ||
{ | ||
"ignoreSiblings": true, | ||
"argsIgnorePattern": "res|next|^err" | ||
} | ||
], | ||
"prefer-const": [ | ||
"error", | ||
{ | ||
"destructuring": "all", | ||
} | ||
], | ||
"arrow-body-style": [ | ||
2, | ||
"as-needed" | ||
], | ||
"no-unused-expressions": [ | ||
2, | ||
{ | ||
"allowTaggedTemplates": true | ||
} | ||
], | ||
"no-param-reassign": [ | ||
2, | ||
{ | ||
"props": false | ||
} | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", {"devDependencies": true} | ||
], | ||
"no-plusplus":0, | ||
"no-console": 0, | ||
"import/prefer-default-export": 0, | ||
"import": 0, | ||
"func-names": 0, | ||
"space-before-function-paren": 0, | ||
"comma-dangle": 0, | ||
"max-len": 0, | ||
"import/extensions": 0, | ||
"no-underscore-dangle": 0, | ||
"consistent-return": 0, | ||
"react/display-name": 1, | ||
"react/no-array-index-key": 0, | ||
"react/react-in-jsx-scope": 0, | ||
"react/prefer-stateless-function": 0, | ||
"react/forbid-prop-types": 0, | ||
"react/no-unescaped-entities": 0, | ||
"jsx-a11y/accessible-emoji": 0, | ||
"react/require-default-props": 0, | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ | ||
"extensions": [ | ||
".js", | ||
".jsx" | ||
] | ||
} | ||
], | ||
"radix": 0, | ||
"no-shadow": [ | ||
2, | ||
{ | ||
"hoist": "all", | ||
"allow": [ | ||
"resolve", | ||
"reject", | ||
"done", | ||
"next", | ||
"err", | ||
"error" | ||
] | ||
} | ||
], | ||
"quotes": [ | ||
2, | ||
"single", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
} | ||
], | ||
"jsx-a11y/href-no-hash": "off", | ||
"jsx-a11y/anchor-is-valid": [ | ||
"warn", | ||
{ | ||
"aspects": [ | ||
"invalidHref" | ||
] | ||
} | ||
], | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn" | ||
}, | ||
"plugins": [ | ||
"html", | ||
"prettier", | ||
"react-hooks" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
|
||
# production | ||
/build | ||
/release-builds | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Debugg localhost", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
// auto-save configs | ||
"editor.formatOnSave": true, | ||
|
||
// turn it off for JS and JSX, we will do this via eslint | ||
"[javascript]": { | ||
"editor.formatOnSave": false | ||
}, | ||
"[javascriptreact]": { | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
// tell the ESLint plugin to run on save | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
|
||
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already | ||
"prettier.disableLanguages": [ | ||
"javascript", | ||
"javascriptreact" | ||
], | ||
"files.eol": "\n" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# MIT License | ||
|
||
Copyright (c) 2017 Lee Robinson | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,72 @@ | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `yarn start` | ||
|
||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
|
||
### `yarn test` | ||
|
||
Launches the test runner in the interactive watch mode.<br /> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `yarn build` | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.<br /> | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `yarn eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
|
||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
|
||
### Deployment | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
|
||
### `yarn build` fails to minify | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify | ||
<p align="center"> | ||
<a href="https://github.com/Youssef-ben"><img src="https://github.com/Youssef-ben/video-converter/blob/develop/src/assets/logo.png" alt="Online Video converter" width="200"></a> | ||
</p> | ||
|
||
# Online video converter | ||
|
||
The idea of this project came from the fact that most of the free tools that exist on the internet have some restrictions like the length of the video, must watch ads, or a confusion UI with a lot of download buttons. With this, the need to create a free tool that has none of the inconvenience or restrictions like the others became stronger. | ||
|
||
The **Online video converter** is a web/desktop application that will allows you to download youtube videos as `MP4s` or convert them to `MP3s` without any restriction. | ||
|
||
## Disclaimer | ||
|
||
This application should be used for **non-copyrighted** and open-source videos only and should be for personal use only. | ||
|
||
If you wish to use any copyrighted videos from Youtube you must obtain expressed permission from the copyright owner. | ||
|
||
## Stack | ||
|
||
- [Create React App](https://create-react-app.dev/docs/getting-started/): Create React App is an officially supported way to create single-page React applications. It offers a modern build setup with no configuration. | ||
- [ReactJS](https://fr.reactjs.org/): JavaScript library for creating user interfaces. | ||
- [Electron](https://www.electronjs.org/): Develop cross-platform desktop applications with JavaScript, HTML and CSS | ||
- [Sass](https://sass-lang.com/): Sass is a stylesheet language that’s compiled to CSS. | ||
- [FFmpeg](https://www.ffmpeg.org/): A complete, cross-platform solution to record, convert and stream audio and video. | ||
|
||
## Dependencies | ||
|
||
- [Electron](https://www.npmjs.com/package/electron). | ||
- [ytdl-core](https://www.npmjs.com/package/ytdl-core). | ||
- [fluent-ffmpeg](https://www.npmjs.com/package/fluent-ffmpeg). | ||
- [ffmpeg-static](https://www.npmjs.com/package/ffmpeg-static). | ||
- [react-bootstrap](https://www.npmjs.com/package/react-bootstrap). | ||
|
||
## Future Improvements | ||
|
||
- [ ] Make the app as a web page. | ||
- [ ] Add multiple videos to download. | ||
|
||
## Getting started | ||
|
||
To start developing or using the application you need to make sure that you have [NodeJs v12.16.x](https://nodejs.org/dist/latest-v12.x/node-v12.16.2-x64.msi) and the package manager [yarn v1.22.x](https://classic.yarnpkg.com/en/docs/install#windows-stable) installed. | ||
|
||
### Useful commands | ||
|
||
```bash | ||
|
||
## Install dependencies | ||
yarn | ||
|
||
## Run the application | ||
yarn run-dev | ||
|
||
or | ||
|
||
yarn start | ||
yarn run-electron | ||
|
||
## Build the application | ||
yarn build | ||
|
||
## Package the application | ||
yarn pack-win-electron or make pack-win | ||
|
||
## Lint the project | ||
yarn lint-fix | ||
|
||
## Clean the project | ||
make clean | ||
``` | ||
|
||
## Preview | ||
|
||
![Preview](src/assets/preview.png) |
Oops, something went wrong.