mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 17:19:30 -07:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52487319fa | ||
|
|
6a1e2da11e | ||
|
|
1cf9f41ca0 |
2
dist/index.html
vendored
2
dist/index.html
vendored
File diff suppressed because one or more lines are too long
2
dist/resources/ws.min.css
vendored
2
dist/resources/ws.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/resources/ws.min.js
vendored
2
dist/resources/ws.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -142,6 +142,18 @@ gulp.task('upload', () => gulp.src(uploadSources, { base: './dist' })
|
|||||||
},
|
},
|
||||||
})));
|
})));
|
||||||
|
|
||||||
|
const imageSources = [
|
||||||
|
'server/fonts/**',
|
||||||
|
'server/images/**',
|
||||||
|
];
|
||||||
|
gulp.task('upload_images', () => gulp.src(imageSources, { base: './server' })
|
||||||
|
.pipe(
|
||||||
|
s3({
|
||||||
|
Bucket: 'weatherstar',
|
||||||
|
StorageClass: 'STANDARD',
|
||||||
|
}),
|
||||||
|
));
|
||||||
|
|
||||||
gulp.task('invalidate', async () => cloudfront.createInvalidation({
|
gulp.task('invalidate', async () => cloudfront.createInvalidation({
|
||||||
DistributionId: 'E9171A4KV8KCW',
|
DistributionId: 'E9171A4KV8KCW',
|
||||||
InvalidationBatch: {
|
InvalidationBatch: {
|
||||||
@@ -153,4 +165,4 @@ gulp.task('invalidate', async () => cloudfront.createInvalidation({
|
|||||||
},
|
},
|
||||||
}).promise());
|
}).promise());
|
||||||
|
|
||||||
module.exports = gulp.series(clean, gulp.parallel('build_js', 'compress_js_data', 'compress_js_vendor', 'copy_css', 'compress_html', 'copy_other_files'), 'upload', 'invalidate');
|
module.exports = gulp.series(clean, gulp.parallel('build_js', 'compress_js_data', 'compress_js_vendor', 'copy_css', 'compress_html', 'copy_other_files'), gulp.parallel('upload', 'upload_images'), 'invalidate');
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ws4kp",
|
"name": "ws4kp",
|
||||||
"version": "5.4.0",
|
"version": "5.4.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ws4kp",
|
"name": "ws4kp",
|
||||||
"version": "5.4.0",
|
"version": "5.4.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint": "^8.21.0",
|
"eslint": "^8.21.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ws4kp",
|
"name": "ws4kp",
|
||||||
"version": "5.4.0",
|
"version": "5.4.1",
|
||||||
"description": "Welcome to the WeatherStar 4000+ project page!",
|
"description": "Welcome to the WeatherStar 4000+ project page!",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -252,11 +252,11 @@ const getDisplay = (index) => displays[index];
|
|||||||
|
|
||||||
// resize the container on a page resize
|
// resize the container on a page resize
|
||||||
const resize = () => {
|
const resize = () => {
|
||||||
const widthZoomPercent = window.innerWidth / 640;
|
const widthZoomPercent = document.body.clientWidth / 640;
|
||||||
const heightZoomPercent = window.innerHeight / 480;
|
const heightZoomPercent = document.body.clientHeight / 480;
|
||||||
|
|
||||||
const scale = Math.min(widthZoomPercent, heightZoomPercent);
|
const scale = Math.min(widthZoomPercent, heightZoomPercent);
|
||||||
|
console.log(scale, document.body.clientWidth);
|
||||||
if (scale < 1.0 || document.fullscreenElement) {
|
if (scale < 1.0 || document.fullscreenElement) {
|
||||||
document.getElementById('container').style.zoom = scale;
|
document.getElementById('container').style.zoom = scale;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -31,6 +31,7 @@ button {
|
|||||||
#txtAddress {
|
#txtAddress {
|
||||||
width: 490px;
|
width: 490px;
|
||||||
font-size: 16pt;
|
font-size: 16pt;
|
||||||
|
max-width: calc(100% - 8px);
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
background-color: #000000;
|
background-color: #000000;
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
<meta name="keywords" content="WeatherStar 4000+" />
|
<meta name="keywords" content="WeatherStar 4000+" />
|
||||||
<meta name="author" content="Matt Walsh" />
|
<meta name="author" content="Matt Walsh" />
|
||||||
<meta name="application-name" content="WeatherStar 4000+" />
|
<meta name="application-name" content="WeatherStar 4000+" />
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1;maximum-scale=1;minimum-scale=1">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<link rel="manifest" href="manifest.json" />
|
<link rel="manifest" href="manifest.json" />
|
||||||
|
|||||||
Reference in New Issue
Block a user