Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull #60

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Pull #60

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

app/.DS_Store
res/.DS_Store
.DS_Store
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
MIT License

Copyright (c) 2016 Minhas Kamal

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<h1> <img src="https://github.com/MinhasKamal/DownGit/raw/master/res/images/downgit.png" width="20" height=auto /> DownGit </h1>
<h1> <img src="https://github.com/MinhasKamal/DownGit/raw/master/res/images/downgit.png" width="25" height=auto /> DownGit </h1>

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate/?business=5KR6BA9MYTM62&no_recurring=0&currency_code=USD)

#### Create GitHub Resource Download Link

With this tool you can directly download or create download link to any GitHub **public directory or file**.

### Website
### Website

[DownGit ↑](https://minhaskamal.github.io/DownGit)

### How to Use?
### Final Release ➦ [Release](https://github.com/chris1111/DownGit/releases/tag/V1)

<table><tr><td> <img src="https://cloud.githubusercontent.com/assets/5456665/17822364/940bded8-6678-11e6-9603-b84d75bccec1.gif" /> </td></tr></table>
### How to use: Video ⬇︎

https://github.com/chris1111/DownGit/assets/6248794/3ef8f158-93cf-4360-aede-c3222af8c6b0

##### Advanced Usage

Expand All @@ -25,4 +27,4 @@ In default, value of `fileName` and `rootDirectory` is set to the name of the do
If you want to download file- **`https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png`** with name- **`DownGitIcon.zip`**, then the link will be- https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png&fileName=DownGitIcon

### License
<a rel="license" href="https://opensource.org/licenses/MIT"><img alt="MIT License" src="https://cloud.githubusercontent.com/assets/5456665/18950087/fbe0681a-865f-11e6-9552-e59d038d5913.png" width="60em" height=auto/></a><br/><a href="https://github.com/MinhasKamal/DownGit">DownGit</a> is licensed under <a rel="license" href="https://opensource.org/licenses/MIT">MIT License</a>.
<a rel="license" href="https://opensource.org/licenses/MIT"><img alt="MIT License" src="https://cloud.githubusercontent.com/assets/5456665/18950087/fbe0681a-865f-11e6-9552-e59d038d5913.png" width="60em" height=auto/></a><br/><a href="https://github.com/MinhasKamal/DownGit">DownGit</a> is licensed under <a rel="license" href="https://opensource.org/licenses/MIT">MIT License</a>. [Images MIT License](https://github.com/MinhasKamal/DownGit/raw/master/res/images/LICENSE)
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-midnight
77 changes: 77 additions & 0 deletions app/Slide.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* Toggle Dark Light by chris1111 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');

body {
margin: 0;
padding: 0;
font-family: "Open Sans", sans-serif;
background: #2d313a;
transition: .6s;
}

#container {
position: sticky;
cursor: pointer;
top: 0;
flex-direction: column;
justify-content: center;
align-items: center;
}

.switch {
position: relative;
display: inline-block;
width: 70px;
height: 38px;
border-radius: 50px;
box-shadow: 0px 0px 4px 4px rgb(0, 0, 0);
}

.switch input {
display: none;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(180deg, #777, #3a3a3a);
border-radius: 34px;
transition: 0.3s;
}

.slider:before {
content: url("../res/images/moon.circle.png");
position: absolute;
height: 30px;
width: 30px;
left: 5px;
bottom: 4px;
border-radius: 50%;
box-shadow: 0px 0px 3px 3px rgba(0, 0, 0, 0.5);
transition: 0.3s;
}

input:checked+.slider {
background: #D3D3D3;
}

input:checked+.slider:before {
transform: translateX(30px);
content: url("../res/images/sun.circle.png");
}

.dark-mode {
background: #DBDFE2;
}

/* toggle */

.dark-mode {
background-color: #DBDFE2;
color: #2d313a;
}

5 changes: 5 additions & 0 deletions app/home/Toggle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

function changeMode() {
var element=document.body;
element.classList.toggle("dark-mode");
}
9 changes: 4 additions & 5 deletions app/home/home.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="home">
<div class="home">
<div class="text-center">

<div class="vertical-space"></div>
<h1><a href="https://minhaskamal.github.io/DownGit">DownGit</a></h1>
<div class="center-row"></div>
<h1><a href="https://github.com/chris1111/DownGit">DownGit</a></h1>
<img class="center-row" src="res/images/logo.png" />
<h4>Create GitHub Resource Download Link</h4>


Expand Down Expand Up @@ -31,9 +31,8 @@ <h4>Create GitHub Resource Download Link</h4>

<div class="vertical-space"></div>
<div class="footer">
<a class="donate-button" target="_blank" href="https://www.paypal.com/donate/?business=5KR6BA9MYTM62&no_recurring=0&currency_code=USD">Donate to The Project</a>
<div class="vertical-space"></div>
<a target="_blank" href="https://github.com/MinhasKamal/DownGit">DownGit</a> by <a target="_blank" href="https://github.com/MinhasKamal">Minhas Kamal</a>
<a target="_blank" href="https://github.com/chris1111/DownGit">DownGit</a> by <a target="_blank" href="https://github.com/MinhasKamal">Minhas Kamal</a> </a> Mod by <a target="_blank" href="https://github.com/chris1111">chris1111</a>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion app/home/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ homeModule.config([

var templateUrl = "https?://github.com/.+/.+";
var downloadUrlInfix = "#/home?url=";
var downloadUrlPrefix = "https://minhaskamal.github.io/DownGit/"+downloadUrlInfix;
var downloadUrlPrefix = "https://chris111.github.io/DownGit/"+downloadUrlInfix;

if ($routeParams.url) {
$scope.url = $routeParams.url;
Expand Down
1 change: 1 addition & 0 deletions app/site.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
body{
font-family: sans-serif, arial;
color: #4A4F64;
background-color: #2d313a;
}

h1, h2, h3, h4, h5, h6, p{
Expand Down
13 changes: 12 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<!DOCTYPE html>
<html ng-app="downGit">
<head>
<br>
<div style="display: flex; justify-content: center">
<label class="switch">
<input type="checkbox" onclick="changeMode()">
<span class="slider"></span>
</label>
</div>
</div>


<!-------------------------------- META -------------------------------->

Expand All @@ -20,6 +29,7 @@
<link href="lib/angular-toastr(2.0.0).min.css" rel="stylesheet"/>

<link href="app/site.css" rel="stylesheet" />
<link href="app/Slide.css" rel="stylesheet" />
</head>
<body>

Expand All @@ -39,5 +49,6 @@
<script src="app/app.js"></script>
<script src="app/home/home.js"></script>
<script src="app/home/down-git.js"></script>
<script src="app/home/Toggle.js"></script>
</body>
</html>
</html>
21 changes: 21 additions & 0 deletions res/images/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 chris1111

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.
Binary file added res/images/MIT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/Readme.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/images/downgit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/moon.circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/images/processing.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/sun.circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/images/warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.