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

Update packages and many small fixes #34

Merged
merged 36 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8daffef
Update most packages
DeionSi Jan 11, 2023
308a4dc
Package name must be lowercase
DeionSi Jan 11, 2023
c737cad
Disable context isolation
DeionSi Jan 11, 2023
9e8b0d8
Fix version in title update
DeionSi Jan 11, 2023
a688e48
Another version fix
DeionSi Jan 11, 2023
ce30a00
Fix serialport listing
DeionSi Jan 11, 2023
e650a08
Function is not available
DeionSi Jan 12, 2023
90e9613
IE is deprecated and not used
DeionSi Jan 12, 2023
0243454
Add breakpoints
DeionSi Jan 12, 2023
025098d
Fix firmware details
DeionSi Jan 12, 2023
f69dd3a
Remove duplicate firmware details
DeionSi Jan 12, 2023
ba85ce2
Firmware details was highlighted at startup. Hide it instead.
DeionSi Jan 12, 2023
6fe5f6d
Smooth page switches
DeionSi Jan 12, 2023
bed363d
Increase scrolling speed
DeionSi Jan 12, 2023
f1aa431
Make all links smooth
DeionSi Jan 12, 2023
07caef4
Also remove the last entry of the select
DeionSi Jan 12, 2023
0d8a13a
Make all pages fit
DeionSi Jan 12, 2023
47138e6
Matching page headings
DeionSi Jan 12, 2023
5f7a20f
Neutral select options background color
DeionSi Jan 12, 2023
5559f81
Make sidebar not dissappear as easily
DeionSi Jan 12, 2023
c710b5c
Reimplement warning message as a page
DeionSi Jan 13, 2023
d3f76d2
Fix quit button
DeionSi Jan 13, 2023
1a809c3
Replace two uses of deprecated request
DeionSi Jan 13, 2023
d6d77b9
Replace request and JSON5
DeionSi Jan 13, 2023
f067f0f
Remove logging
DeionSi Jan 13, 2023
3f75e15
Open links in default browser
DeionSi Jan 13, 2023
d809f5f
Use npm jquery
DeionSi Jan 13, 2023
8836674
Move button handlers from template to renderer
DeionSi Jan 13, 2023
a2800ec
Minor fixes
DeionSi Jan 15, 2023
39ffc65
Remove remote modules usage
DeionSi Jan 15, 2023
f60ca07
Unused
DeionSi Jan 15, 2023
f3a7568
Use platform specific delimiter to make it work on Windows. Move show…
DeionSi Jan 15, 2023
08bfa6a
Integrate sponsor bar more cleanly
DeionSi Jan 15, 2023
e4a9997
Move sponsor bar higher
DeionSi Jan 15, 2023
89c6dc7
Security update
DeionSi Feb 22, 2023
2b05e5f
Merge branch 'master' into update-packages
noisymime Mar 10, 2023
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
64 changes: 6 additions & 58 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2346,20 +2346,15 @@ input, select, textarea {
}

select {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='rgba(255, 255, 255, 0.15)' /%3E%3C/svg%3E");
background-size: 1.25rem;
background-repeat: no-repeat;
background-position: calc(100% - 1rem) center;
height: 20.75em;
padding-right: 2.75em;
padding-top: 0.75em;
padding-bottom: 0.75em;
text-overflow: ellipsis;
}

select option {
color: #ffffff;
background: #312450;
background: none;
}

select:focus::-ms-value {
Expand All @@ -2375,13 +2370,6 @@ input, select, textarea {
background: #022b3a;
}

.select5 option {
color: #ffffff;
background: #022b3a;
padding-top: 4px;
padding-left: 4px;
}

.select1 {
height: 1.75em;
width: 12em;
Expand Down Expand Up @@ -3221,40 +3209,20 @@ input, select, textarea {

/* Wrapper */

div.wrapper {
padding-top: 3.5em;
}

.wrapper {
position: relative;
}

.wrapper > .inner {
padding: 5em 5em 3em 5em ;
padding: 1em 3em;
max-width: 100%;
width: 75em;
}

@media screen and (max-width: 1680px) {

.wrapper > .inner {
padding: 4em 4em 2em 4em ;
}

}

@media screen and (max-width: 1280px) {

.wrapper > .inner {
width: 100%;
}

}

@media screen and (max-width: 736px) {

.wrapper > .inner {
padding: 3em 2em 1em 2em ;
}

}

.wrapper.alt {
background-color: #261c3e;
}
Expand Down Expand Up @@ -3898,33 +3866,13 @@ input, select, textarea {

}

@media screen and (max-width: 736px) {

#sidebar {
display: none;
}

}

/* Sponsor bar */
#sponsor {
padding: 2.5em 2.5em 0.5em 2.5em ;
background: #EE6C4D;
color: #FFFFFF;
cursor: default;
height: 7em;
height: 0;
left: 0;
overflow-x: auto;
overflow-y: auto;
position: relative;
text-align: center;
top: 3.5em;
width: 18em;
z-index: 10000;
width: 100%;
padding: 0;
line-height: 3.5em;
transition-property:height;
transition-duration:1s;
}
Expand Down
2 changes: 0 additions & 2 deletions assets/js/jquery.min.js

This file was deleted.

6 changes: 1 addition & 5 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
xsmall: [ null, '480px' ]
});

// Hack: Enable IE flexbox workarounds.
if (browser.name == 'ie')
$body.addClass('is-ie');

// Play initial animations on page load.
$window.on('load', function() {
window.setTimeout(function() {
Expand Down Expand Up @@ -115,7 +111,7 @@

// Scrolly.
$('.scrolly').scrolly({
speed: 1000,
speed: 200,
offset: function() {

// If <=large, >small, and sidebar is present, use its height as the offset.
Expand Down
115 changes: 67 additions & 48 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/main.css" />

<script src="renderer.js" ></script>
</head>
<body>

Expand All @@ -21,10 +20,11 @@
<nav>
<ul>
<li><a href="#loader">Choose Firmware</a></li>
<li><a href="#details">Firmware Details</a></li>
<li style="display: none;"><a href="#details">Firmware Details</a></li>
<li><a href="#port">Choose Port</a></li>
<li><a href="#progress">Progress</a></li>
<li><a href="#basetunes">Base Tunes</a></li>
<li style="display: none;"><a href="#basetunewarning">Base Tunes</a></li>
</ul>
</nav>
</div>
Expand All @@ -34,7 +34,7 @@
<div class="wrapper">

<!-- Choose Version -->
<section id="loader" class="wrapper style1 fullscreen fade-up" style="height: 100vh;">
<section id="loader" class="wrapper style1" style="height: 100vh;">
<div class="inner">
<div style="display: none; text-align: center;" id="update_text"><a href="" id="update_url" target="_blank">A new version is available. Click here to download</a></div>
<center><img src="assets/speeduino logo_white.png" width="235"/></center>
Expand All @@ -44,12 +44,12 @@
<span class="icon fa-spinner" style="position: absolute; left: 48%; top: 42%;" id="fwVersionsSpinner"></span>
<select name="firmwares" class="select" id="versionsSelect" size="10" width="20" onClick="refreshBasetunes();"></select>
<ul class="actions">
<li><input type='button' id="btnChoosePort" value="Choose Port" onclick="window.location.href='#port';" /></li>
<li><input type='button' id="btnChoosePort" value="Choose Port" /></li>
</ul>
<p>Other actions:</p>
<ul class="actions">
<li><input type='button' id="btnDetails" value="View Firmware Notes" onclick="refreshDetails();" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" onclick="window.location.href='#basetunes';" /></li>
<li><input type='button' id="btnDetails" value="View Firmware Notes" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" /></li>
</ul>
</p>
<div id="error"></div>
Expand All @@ -58,32 +58,32 @@
</section>

<!-- Firmware details -->
<section id="details" class="wrapper style1-alt spotlights" style="display: none; height: 100vh;">
<section id="details" class="wrapper style1-alt" style="height: 100vh;">
<div class="inner">
<h1>Firmware Notes</h1>
<h2>Firmware Notes</h2>

<div class="features major" >
<h2><div id="detailsHeading" style="padding-left: 0.55em;" ></div></h2>
<div id="detailsText" style="padding-left: 0.9em; padding-right: 0.9em; overflow-y: scroll; height: 50vh;"></div>
</div>
<ul class="actions">
<li><input type='button' value="Get Base Tune" id="btnBasetune" onclick="window.location.href='#basetunes';" /></li>
<li><input type='button' id="btnDetails" value="Change Version" onclick="window.location.href='#loader';" /></li>
<li><input type='button' id="btnChoosePort" value="Install" onclick="window.location.href='#port';" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" /></li>
<li><input type='button' id="btnLoader" value="Change Version" /></li>
<li><input type='button' id="btnChoosePort" value="Install" /></li>
</ul>
</div>
</section>

<!-- Choose Port -->
<section id="port" class="wrapper style2 fullscreen fade-up" style="height: 100vh;">
<section id="port" class="wrapper style2" style="height: 100vh;">
<div class="inner">
<h1>Select Serial Port</h1>
<h2>Select Serial Port</h2>
<p>Available Ports:
<select name="ports" class="select" id="portsSelect" size="10" width="20"></select>
<ul class="actions">
<!-- <li><input type='button' value="Install Serial Drivers" onclick="installDrivers();" /></li> -->
<li><input type='button' value="Refresh" onclick="refreshSerialPorts();" /></li>
<li><input type='button' value="Upload" id="btnInstall" onclick="uploadFW();" /></li>
<li><input type='button' value="Upload" id="btnInstall" /></li>
</ul>
</p>
</div>
Expand All @@ -92,22 +92,30 @@ <h1>Select Serial Port</h1>
</section>

<!-- Progress -->
<section id="progress" class="wrapper style3 fade-up" style="height: 100vh;">
<!-- Sponsor bar -->
<section id="progress" class="wrapper style3" style="height: 100vh;">

<!-- Sponsor bar -->
<div class="features" id="sponsorbox" style="display: none;">
<section id="sponsor">
<div class="inner">
<p><center><a href="https://github.com/sponsors/noisymime" target="_blank">Speeduino is a volunteer run project. Click here if you're interested in supporting Speeduino's development</a><br /><span class="icon major fa-heart"></span></center></p>
</div>
<span class="icon major fa-heart"></span>
<p><center>
<a href="https://github.com/sponsors/noisymime" target="_blank">Speeduino is a volunteer run project. Click here if you're interested in supporting Speeduino's development</a>
</center>
</p>
</section>
</div>

<div class="inner">

<h2>Progress</h2>

<div class="features">
<section>
<span class="icon major fa-pause" id="progressSpinner"></span>
<p>
<strong>Current Status:</strong>
<span id="statusText"></span><span id="burnPercent"></span><br />
<span id="iniFileText" style="display: none;">TunerStudio definition file: <a id="iniFileLink" onClick="openFileMgr();" ><span id="iniFileLocation"></span></a></span></span>
<span id="iniFileText" style="display: none;">TunerStudio definition file: <a id="iniFileLink"><span id="iniFileLocation"></span></a></span></span>
</p>
</section>
<section id="terminalSection" style="display: none;">
Expand All @@ -117,36 +125,20 @@ <h3>Terminal Output:</h3>
</section>
</div>
<ul class="actions">
<li><input type='button' id="btnChoosePort" value="Choose Port" onclick="window.location.href='#port';" /></li>
<li><input type='button' value="Burn again" id="btnReinstall" onclick="uploadFW();" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" onclick="window.location.href='#basetunes';" /></li>
<li><input type='button' id="btnChoosePort" value="Choose Port" /></li>
<li><input type='button' value="Burn again" id="btnReinstall" /></li>
<li><input type='button' value="Get Base Tune" id="btnBasetune" /></li>
</ul>
<ul class="actions">
<li><input type='button' value="Exit" id="btnExit" onclick="quit();" /></li>
<li><input type='button' value="Exit" id="btnExit" /></li>
</ul>
</div>
</section>

<!-- Firmware details -->
<section id="details" class="wrapper style1-alt spotlights" style="display: none; height: 100vh;">
<div class="inner">
<h1>Firmware Notes</h1>

<div class="features major" >
<h2><div id="detailsHeading" style="padding-left: 0.55em;" ></div></h2>
<div id="detailsText" style="padding-left: 0.9em; padding-right: 0.9em; overflow-y: auto; height: 50vh;"></div>
</div>
<ul class="actions">
<li><input type='button' id="btnDetails" value="Change Version" onclick="window.location.href='#loader';" /></li>
<li><input type='button' id="btnChoosePort" value="Install" onclick="window.location.href='#port';" /></li>
</ul>
</div>
</section>

<!-- Base Tune download -->
<section id="basetunes" class="wrapper style4 fullscreen fade-up" style="height: 100vh;">
<section id="basetunes" class="wrapper style4" style="height: 100vh;">
<div class="inner">
<h2 style="margin: 0;">Base Tunes</h1>
<h2 style="margin: 0;">Base Tunes</h2>
<p style="font-size: 12px;">
Tune Author: <select id="basetunesAuthor" class="select1" onChange="refreshBasetunesFilters()" ></select>
Make: <select id="basetunesMake" class="select1" onChange="refreshBasetunesFilters()" ></select>
Expand All @@ -155,35 +147,62 @@ <h2 style="margin: 0;">Base Tunes</h1>
<p>
Available Tunes
<span class="icon fa-spinner" style="position: absolute; left: 48%; top: 42%;" id="baseTuneSpinner"></span>
<select name="basetunes" class="select5" id="basetunesSelect" size="10" width="20" onChange="refreshBasetunesDescription()"></select>
<select name="basetunes" id="basetunesSelect" size="10" width="20" onChange="refreshBasetunesDescription()"></select>
<div class="features major" >
<div id="tuneDetailsText" style="padding-left: 0.9em; padding-right: 0.9em; padding-top: 0.1em; overflow-y: auto; height: 17vh; font-size: 14px;"></div>
</div>
<ul class="actions">
<li><input type='button' id="btnDownloadBasetune" value="Download tune" onclick="showBasetuneWarning();" /></li>
<li><input type='button' value="Exit" id="btnExit" onclick="quit();" /></li>
<li><input type='button' id="btnDownloadBasetune" value="Download tune" /></li>
<li><input type='button' value="Exit" id="btnExit" /></li>
</ul>
</p>
</div>
</section>

</div>
<!-- Base tune warning -->
<section id="basetunewarning" class="wrapper style5" style="height: 100vh;">
<div class="inner">

<h1 style="text-align: center; width: 100%;">WARNING</h1>
<div class="features major">

<p style="text-align: center; width: 100%;">Base tunes are intended as a starting point ONLY. They will require changes in order to work correctly with your engine!</p>
<center><span class="icon fa-exclamation major" id="warningIcon"></span></center>
<p style="text-align: center; width: 100%;">Take note of the board that has been used in this tune. If you are not using this board you need to change this setting immediately:</p>
<p style="text-align: center; width: 100%;">
<span class="icon fa-arrow-right" id="emphasisIcon"></span>
<span style="font-weight: bold;" id="tuneBoard"></span>
<span class="icon fa-arrow-left" id="emphasisIcon"></span>
</p>
</div>

<ul class="actions modal">
<li><input type='button' id="btnDownloadConfirm" value="Download" onclick="downloadBasetune();" /></li>
<li><input type='button' id="btnDownloadCancel" value="Cancel" /></li>
</ul>

</div>
</section>



<!-- Footer -->
<footer id="footer" class="wrapper style1-alt">
<div class="inner">
<ul class="menu">
<li>&copy; Josh Stewart. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li><li>Version: 0.0.3</li>
<li>&copy; Josh Stewart. All rights reserved.</li><li>Design: <a href="http://html5up.net" target="_blank">HTML5 UP</a></li><li>Version: 0.0.3</li>
</ul>
</div>
</footer>

<!-- Scripts -->
<script>window.$ = window.jQuery = require('./assets/js/jquery.min.js');</script>
<script>window.$ = window.jQuery = require('jquery');</script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="renderer.js"></script>
</body>
</html>
Loading