1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-24 09:04:30 +00:00
This commit is contained in:
Steffo 2020-06-30 19:13:48 +02:00
parent 91aae18943
commit 59fe28a2f6
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
37 changed files with 179 additions and 8 deletions

View file

@ -1,3 +1,3 @@
[defaults]
org=stefano-pigozzi
project=example
project=steffoeu

View file

@ -1,3 +1,3 @@
# [`bluelib-app-template`](https://github.com/Steffo99/bluelib-app-template)
# [`steffo.eu`](https://steffo.eu)
A [Preact](https://preactjs.com/) website template.
My personal website in [Preact](https://preactjs.com/).

0
docs/.nojekyll vendored Normal file
View file

1
docs/CNAME vendored Normal file
View file

@ -0,0 +1 @@
example.org

BIN
docs/assets/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

3
docs/bundle.23994.js vendored Normal file

File diff suppressed because one or more lines are too long

16
docs/bundle.23994.js.LICENSE.txt vendored Normal file
View file

@ -0,0 +1,16 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/*! showdown v 1.9.1 - 02-11-2019 */

1
docs/bundle.23994.js.map vendored Normal file

File diff suppressed because one or more lines are too long

3
docs/bundle.9206d.esm.js vendored Normal file

File diff suppressed because one or more lines are too long

1
docs/bundle.9206d.esm.js.LICENSE.txt vendored Normal file
View file

@ -0,0 +1 @@
/*! For license information please see bundle.9206d.esm.js.LICENSE.txt */

1
docs/bundle.9206d.esm.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.9206d.esm.js","sourceRoot":""}

1
docs/bundle.fd797.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
docs/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

1
docs/index.html vendored Normal file
View file

@ -0,0 +1 @@
<!DOCTYPE html><html lang="it"><head><meta charset="utf-8"><title>Steffo's website</title><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico" type="image/x-icon"><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"><style>body{background-color:#0d193b}</style><link rel="manifest" href="/manifest.json"><link href="/bundle.fd797.css" rel="preload" as="style"></head><body><script type="__PREACT_CLI_DATA__">{"preRenderData":{"url":"/"}}</script><script nomodule="">!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script><script crossorigin="anonymous" src="/bundle.9206d.esm.js" type="module"></script><script nomodule="" src="/polyfills.5a9ad.js"></script><script nomodule="" defer="defer" src="/bundle.23994.js"></script><link rel="stylesheet" href="/bundle.fd797.css"></body></html>

14
docs/manifest.json vendored Normal file
View file

@ -0,0 +1,14 @@
{
"name": "preact-cli app",
"start_url": "/",
"display": "standalone",
"background_color": "#fff",
"theme_color": "#673ab8",
"icons": [
{
"src": "/assets/icon.png",
"type": "image/png",
"sizes": "512x512"
}
]
}

2
docs/polyfills.5a9ad.js vendored Normal file

File diff suppressed because one or more lines are too long

1
docs/polyfills.5a9ad.js.map vendored Normal file

File diff suppressed because one or more lines are too long

2
docs/polyfills.e99f0.esm.js vendored Normal file

File diff suppressed because one or more lines are too long

1
docs/polyfills.e99f0.esm.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"polyfills.e99f0.esm.js","sourceRoot":""}

1
docs/preact_prerender_data.json vendored Normal file
View file

@ -0,0 +1 @@
{"url":"/"}

View file

@ -0,0 +1,38 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "cf3fdf7af60a294d6d3f48cb7ad82488",
"url": "/assets/icon.png"
},
{
"revision": "2399453f511e9ff23318",
"url": "/bundle.23994.js"
},
{
"revision": "2399453f511e9ff23318",
"url": "/bundle.fd797.css"
},
{
"revision": "6f8a495a1dba8bff0ac6d2355299ebd3",
"url": "/index.html"
},
{
"revision": "5a9ad60b5323da83d533",
"url": "/polyfills.5a9ad.js"
},
{
"revision": "654b01afadba275f9ca4",
"url": "/route-Home.chunk.654b0.js"
},
{
"revision": "144c6ff1323d2d15182a7d2af08d027e",
"url": "/sw-debug.js"
},
{
"revision": "a2f4fee8fe3b73a5ce46a04e82495fe4",
"url": "/sw-esm.js"
},
{
"revision": "bfc5bd18885255982238f3628770f48d",
"url": "/sw.js"
}
]);

View file

@ -0,0 +1,26 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "cf3fdf7af60a294d6d3f48cb7ad82488",
"url": "/assets/icon.png"
},
{
"revision": "2399453f511e9ff23318",
"url": "/bundle.9206d.esm.js"
},
{
"revision": "2399453f511e9ff23318",
"url": "/bundle.fd797.css"
},
{
"revision": "6f8a495a1dba8bff0ac6d2355299ebd3",
"url": "/index.html"
},
{
"revision": "5a9ad60b5323da83d533",
"url": "/polyfills.e99f0.esm.js"
},
{
"revision": "654b01afadba275f9ca4",
"url": "/route-Home.chunk.654b0.esm.js"
}
]);

1
docs/push-manifest.json vendored Normal file
View file

@ -0,0 +1 @@
{"/":{"bundle.fd797.css":{"type":"style","weight":1},"bundle.9206d.esm.js":{"type":"script","weight":1}},"/Home":{"bundle.fd797.css":{"type":"style","weight":1},"bundle.9206d.esm.js":{"type":"script","weight":1},"route-Home.chunk.654b0.esm.js":{"type":"script","weight":0.9}}}

2
docs/route-Home.chunk.654b0.esm.js vendored Normal file
View file

@ -0,0 +1,2 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{bJge:function(e,t,n){"use strict";n.r(t),function(e){var i=n("mbOI");t.default=function(){return e("div",null,e("h1",null,"Steffo",e("small",null,"'s website")),e(i.a,{title:"Hello there!"},"Hi! Welcome to my website!"),e(i.a,{title:"Under construction"},"This website is currently under (re)construction. Come back another time!"))}}.call(this,n("hosL").h)}}]);
//# sourceMappingURL=route-Home.chunk.654b0.esm.js.map

View file

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"route-Home.chunk.654b0.esm.js","sourceRoot":""}

2
docs/route-Home.chunk.654b0.js vendored Normal file
View file

@ -0,0 +1,2 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{bJge:function(e,t,n){"use strict";n.r(t),function(e){var i=n("mbOI");t.default=function(){return e("div",null,e("h1",null,"Steffo",e("small",null,"'s website")),e(i.a,{title:"Hello there!"},"Hi! Welcome to my website!"),e(i.a,{title:"Under construction"},"This website is currently under (re)construction. Come back another time!"))}}.call(this,n("hosL").h)}}]);
//# sourceMappingURL=route-Home.chunk.654b0.js.map

1
docs/route-Home.chunk.654b0.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":["webpack:///./routes/Home.js"],"names":["title"],"mappings":"2FAAA,mCAEe,qBACX,OACI,aACI,qBACU,8BAEV,EAAC,IAAD,CAAOA,MAAO,gBAAd,8BAGA,EAAC,IAAD,CAAOA,MAAO,sBAAd,gF","file":"route-Home.chunk.654b0.js","sourcesContent":["import {Panel, Section} from \"bluelib\";\r\n\r\nexport default function (props) {\r\n return (\r\n <div>\r\n <h1>\r\n Steffo<small>'s website</small>\r\n </h1>\r\n <Panel title={\"Hello there!\"}>\r\n Hi! Welcome to my website!\r\n </Panel>\r\n <Panel title={\"Under construction\"}>\r\n This website is currently under (re)construction. Come back another time!\r\n </Panel>\r\n </div>\r\n );\r\n}\r\n"],"sourceRoot":""}

21
docs/sw-debug.js vendored Normal file
View file

@ -0,0 +1,21 @@
self.addEventListener('fetch', function(event) {
var isPostRequest = event.request.method === 'POST';
event.respondWith(
fetch(event.request).catch(function(err) {
if (err instanceof TypeError) {
if (isPostRequest) {
// eslint-disable-next-line
console.log(
'⚛Preact CLI development tip: A POST request just failed. This might fail for your users as well due to a network error. It may be worth exploring the backgroundSync API.'
);
} else {
// eslint-disable-next-line
console.log(
'⚛Preact CLI development tip: A GET request just failed. This might fail for your users as well due to a network error. It may be worth adding runtimeCaching to your Service Worker.'
);
}
}
return err;
})
);
});

4
docs/sw-esm.js vendored Normal file
View file

@ -0,0 +1,4 @@
importScripts("/precache-manifest.f212e29b7d46ccb55e80f1fdeb03e6fa.esm.js", "https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="idKB")}({idKB:function(){self.__precacheManifest=[].concat(self.__precacheManifest||[]);const e=e=>"navigate"===e.request.mode;workbox.routing.registerRoute(({event:t})=>e(t),new workbox.strategies.NetworkFirst({cacheName:workbox.core.cacheNames.precache,networkTimeoutSeconds:5,plugins:[new workbox.cacheableResponse.Plugin({statuses:[200]})]})),workbox.precaching.precacheAndRoute(self.__precacheManifest,{}),workbox.routing.setCatchHandler(({event:t})=>e(t)?caches.match(workbox.precaching.getCacheKeyForURL("/index.html")):Response.error())}});
//# sourceMappingURL=sw-esm.js.map

1
docs/sw-esm.js.map vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","file":"sw-esm.js","sourceRoot":""}

4
docs/sw.js vendored Normal file
View file

@ -0,0 +1,4 @@
importScripts("/precache-manifest.459e3df35ab74bd13d446e642a1391e6.js", "https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="idKB")}({idKB:function(){self.__precacheManifest=[].concat(self.__precacheManifest||[]);const e=e=>"navigate"===e.request.mode;workbox.routing.registerRoute(({event:t})=>e(t),new workbox.strategies.NetworkFirst({cacheName:workbox.core.cacheNames.precache,networkTimeoutSeconds:5,plugins:[new workbox.cacheableResponse.Plugin({statuses:[200]})]})),workbox.precaching.precacheAndRoute(self.__precacheManifest,{}),workbox.routing.setCatchHandler(({event:t})=>e(t)?caches.match(workbox.precaching.getCacheKeyForURL("/index.html")):Response.error())}});
//# sourceMappingURL=sw.js.map

1
docs/sw.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"private": true,
"name": "example",
"name": "steffoweb",
"version": "0.1.0",
"license": "AGPL-3.0-or-later",
"scripts": {
@ -11,7 +11,7 @@
"devDependencies": {
"@sentry/webpack-plugin": "^1.11.1",
"cross-env": "^7.0.2",
"preact-cli": "^3.0.0-rc.14"
"preact-cli": "^3.0.0-rc.16"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.28",

1
size-plugin.json Normal file
View file

@ -0,0 +1 @@
[{"timestamp":1593537127919,"files":[{"filename":"sw-esm.js","previous":0,"size":741,"diff":741},{"filename":"sw.js","previous":0,"size":738,"diff":738},{"filename":"bundle.fd797.css","previous":0,"size":1854,"diff":1854},{"filename":"bundle.9206d.esm.js","previous":0,"size":365849,"diff":365849},{"filename":"polyfills.e99f0.esm.js","previous":0,"size":2090,"diff":2090},{"filename":"route-Home.chunk.654b0.esm.js","previous":0,"size":332,"diff":332},{"filename":"bundle.23994.js","previous":0,"size":365998,"diff":365998},{"filename":"polyfills.5a9ad.js","previous":0,"size":2091,"diff":2091},{"filename":"route-Home.chunk.654b0.js","previous":0,"size":330,"diff":330}]}]

View file

@ -11,7 +11,7 @@ else if(process.env.NODE_ENV === "production") {
// noinspection JSUnresolvedVariable
Sentry.init({
// TODO: Sentry DSN goes here
dsn: "",
dsn: "https://05965b0d953049f493ddca387c1e4c90@o40131.ingest.sentry.io/5300173",
release: process.env.RELEASE,
environment: "production",
beforeSend(event, hint) {
@ -23,6 +23,8 @@ else if(process.env.NODE_ENV === "production") {
});
}
import Home from "./routes/Home";
// noinspection ES6UnusedImports
import "bluelib/dist/index.css";
import {theme} from "bluelib";
@ -39,7 +41,7 @@ export default function(props) {
return (
<div id="app" class={theme.bluelib}>
<Router history={createHashHistory()}>
<Home path={"/"}/>
</Router>
</div>
);

17
src/routes/Home.js Normal file
View file

@ -0,0 +1,17 @@
import {Panel, Section} from "bluelib";
export default function (props) {
return (
<div>
<h1>
Steffo<small>'s website</small>
</h1>
<Panel title={"Hello there!"}>
Hi! Welcome to my website!
</Panel>
<Panel title={"Under construction"}>
This website is currently under (re)construction. Come back another time!
</Panel>
</div>
);
}

View file

@ -2,7 +2,7 @@
<html lang="it">
<head>
<meta charset="utf-8">
<title><% preact.title %></title>
<title>Steffo's website</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>