Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
Start First version of the project
  • Loading branch information
HeribertoKubuntu committed Feb 8, 2020
1 parent 6056127 commit a5f5044
Show file tree
Hide file tree
Showing 19 changed files with 4,181 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
release-builds
75 changes: 75 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Show My IP

## Description to Use

Easy way to get your Public IP and Local IP

<hr>

Made With ❤️ by Heriberto Delgado

🎉️ Feel free to use.

## Icon

![](icon.png)

## Know Issues

* In some Linux system need install xsel to copy your network details.

<code>$ apt install xsel</code>



## How to install

* Copy the repository

<code>$ git clone https://github.com/HeribertoKubuntu/Show-MyIP.git</code>

+ Download and start

<code>npm start</code>



## Screenshot

![](assets/screenshot.gif)



### Feedback and Fixes

* If you notice something's missing feel free to make a pull request.

* If you have no time to fix it please open an issue.



### Supporting and maintaining the project

help me maintain it and keep adding more improves, my daughter and I would be grateful 🎉️!!!



**I Want Support** ❤️

<a href='https://www.paypal.me/heriberto1717'>
<img src='https://www.paypalobjects.com/en_US/MX/i/btn/btn_donateCC_LG.gif' alt='PayPal Me' width='140' />
</a>



### License

>The [MIT license](https://opensource.org/licenses/MIT) (MIT)
>
>Copyright (c) 2020 **Heriberto Delgado** <AbraHery@gmail.com>
>
>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 assets/screenshot.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 build/icon.icns
Binary file not shown.
Binary file added build/icon.ico
Binary file not shown.
Binary file added build/png/128x128.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 build/png/16x16.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 build/png/24x24.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 build/png/256x256.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 build/png/32x32.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 build/png/48x48.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 build/png/512x512.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 build/png/64x64.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 build/png/96x96.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 icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
const electron = require('electron');
const {
app,
Tray,
Menu,
BrowserWindow
} = electron;
const path = require('path');
const iconPath = path.join(__dirname, 'icon.png');
let appIcon = null;
let win = null;

const ip = require('ip');
const publicIp = require('public-ip');
var ExternalIP;
var ncp = require('clipboardy');

app.on('ready', () => {
publicIp.v4().then(eip => {
ExternalIP = eip;
win = new BrowserWindow({
show: false
});
appIcon = new Tray(iconPath);
var contextMenu = Menu.buildFromTemplate([{
label: "Copy LAN IP: " + ip.address("public"),
click: function () {
ncp.writeSync(ip.address("public"));
}
},
{
label: "Copy Public IP: " + ExternalIP,
click: function () {
ncp.writeSync(ExternalIP);
}
},
{
type: 'separator'
},
{
label: 'Reload',
role: 'reload',
accelerator: 'CommandOrControl+Alt+R',
click: function () {
app.relaunch();
app.exit();
}
},
{
label: 'Quit',
accelerator: 'CommandOrControl+Q',
selector: 'terminate:',
click: function () {
app.quit();
app.exit();
}
}
]);
appIcon.setToolTip('View your Network information');
appIcon.setContextMenu(contextMenu);
});
})
app.on('quit', () => {
app.quit();
app.exit();
})
Loading

0 comments on commit a5f5044

Please sign in to comment.