Skip to content

Commit

Permalink
Update November 2021 Part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
navidmafi committed Nov 10, 2021
1 parent b887b4d commit de51904
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 77 deletions.
87 changes: 53 additions & 34 deletions neutralino.config.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,55 @@
{
"applicationId": "ir.NavidMafi.SimpleIP",
"port": 0,
"defaultMode": "window",
"enableHTTPServer": true,
"enableNativeAPI": true,
"url": "/resources/",
"nativeBlockList": [],
"globalVariables": {
"TEST": "Test Value"
},
"modes": {
"window": {
"title": "SimpleIP",
"width": 250,
"height": 200,
"minWidth": 250,
"minHeight": 200,
"fullScreen": false,
"alwaysOnTop": false,
"icon": "/resources/icons/appIcon.png",
"enableInspector": true,
"borderless": false,
"maximize": false
"applicationId": "ir.NavidMafi.SimpleIP",
"defaultMode": "window",
"port": 8585,
"url": "/resources/",
"enableServer": true,
"enableNativeAPI": true,
"logging": {
"enabled": true,
"writeToLogFile": false
},
"browser": {},
"cloud": {}
},
"cli": {
"binaryName": "SimpleIP",
"resourcesPath": "/resources/",
"clientLibrary": "/resources/js/neutralino.js",
"binaryVersion": "2.8.0",
"clientVersion": "1.5.0"
}
}
"nativeBlockList": [],
"globalVariables": {
"TEST": "Test Value"
},
"modes": {
"window": {
"title": "SimpleIP",
"width": 250,
"height": 220,
"minWidth": 250,
"minHeight": 220,
"fullScreen": false,
"alwaysOnTop": false,
"icon": "/resources/icons/appIcon.png",
"enableInspector": true,
"borderless": false,
"maximize": false,
"hidden": false,
"resizable": true,
"exitProcessOnClose": true
},
"browser": {
"globalVariables": {
"TEST": "Test value browser"
},
"nativeBlockList": [
"filesystem.*"
]
},
"cloud": {
"url": "/resources/#cloud",
"nativeAllowList": [
"app.*"
]
}
},
"cli": {
"binaryName": "SimpleIP",
"resourcesPath": "/resources/",
"clientLibrary": "/resources/js/neutralino.js",
"binaryVersion": "3.0.0",
"clientVersion": "2.0.0"
}
}
39 changes: 27 additions & 12 deletions resources/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@
Licensed under the GPLv3 Licence.
See the LICENCE file in the repository root for full licence text.
*/
@font-face {
font-family: SvnSegit;
src: url(../fonts/DSEG7Classic-Italic.woff2);
}
@font-face {
font-family: Poppins;
src: url(../fonts/Poppins-Regular.ttf);
}
@font-face {
font-family: SvnSeg;
src: url(../fonts/DSEG7Classic-Regular.woff2);
}
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
scroll-behavior: smooth;
user-select: none;
}
:root {
--GPrim: #1b64c4;
Expand All @@ -31,9 +23,10 @@ html {
}

body {
background-color: var(--GGray2);
background-color: var(--GGray1);
color: var(--GLight);
font-family: "Poppins";
font-weight: lighter;
height: 100%;
}
* {
Expand All @@ -52,14 +45,36 @@ body {
#refreshIP {
background-color: var(--GLight);
color: var(--GGray1);
padding: 5% 10%;
margin: 4%;
padding: 8px 20px;
border: none;
font-family: "Poppins";
border-radius: 5px;
cursor: pointer;
transition: 100ms;
}
#refreshIP:hover {
background-color: var(--GGray1);
color: var(--GLight);
}

.ip {
position: relative;
}
#sc1 {
padding: 5px;
transition: 100ms;
cursor: default;
}
#sc2 {
font-size: 1rem;
}
.tooltip {
position: absolute;
transition: 100ms;
pointer-events: none;
margin: auto auto;
z-index: 5;
top:3px;
width: 100%;
padding: 10px;
}
Binary file removed resources/fonts/DSEG7Classic-Italic.woff2
Binary file not shown.
Binary file removed resources/fonts/DSEG7Classic-Regular.woff2
Binary file not shown.
36 changes: 21 additions & 15 deletions resources/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>SimpleIP</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body onload="runCurl()">
<div class="centertext">
<div>

<head>
<meta charset="UTF-8" />
<title>SimpleIP</title>
<link rel="stylesheet" href="css/main.css" />
</head>

<body onload="Load()">
<div class="centertext">
<div>
<div class="ip" id="ip">
<h2 id="sc1">Loading...</h2>
<span id="CF"></span>
<h2 id="sc2"></h2>
<button id="refreshIP" onclick="runCurl()">Refresh</button>
<div class="tooltip" id="tooltip" style="opacity: 0;">Hold click to show</div>
</div>
<span id="CF"></span>
<h2 id="sc2"></h2> <br>
<button id="refreshIP" onclick="Load()">Refresh</button>
</div>
<script src="js/neutralino.js"></script>
<script src="js/main.js"></script>
</body>
</html>
</div>
<script src="js/neutralino.js"></script>
<script src="js/main.js"></script>
</body>

</html>
16 changes: 0 additions & 16 deletions resources/styles.css

This file was deleted.

0 comments on commit de51904

Please sign in to comment.