Skip to content
Snippets Groups Projects
Verified Commit 121e1adb authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent 80bf8cdc
No related branches found
No related tags found
No related merge requests found
Showing
with 677 additions and 104 deletions
File added
This diff is collapsed.
File added
File added
File added
File added
This diff is collapsed.
File added
File added
File added
...@@ -8,58 +8,34 @@ ...@@ -8,58 +8,34 @@
<title>404 Monster</title> <title>404 Monster</title>
<style id="" media="all">/* vietnamese */ <style id="" media="all">/* vietnamese */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */ /* maven-pro-regular - latin-ext_latin */
@font-face { @font-face {
font-family: 'Maven Pro'; font-family: 'Maven Pro';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2) format('woff2'); src: url('/assets/maven-pro-v32-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: local(''),
url('/assets/maven-pro-v32-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/maven-pro-v32-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/maven-pro-v32-latin-ext_latin-regular.svg#MavenPro') format('svg'); /* Legacy iOS */
} }
/* maven-pro-900 - latin-ext_latin */
/* vietnamese */
@font-face { @font-face {
font-family: 'Maven Pro'; font-family: 'Maven Pro';
font-style: normal; font-style: normal;
font-weight: 900; font-weight: 900;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2) format('woff2'); src: url('/assets/maven-pro-v32-latin-ext_latin-900.eot'); /* IE9 Compat Modes */
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; src: local(''),
url('/assets/maven-pro-v32-latin-ext_latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/maven-pro-v32-latin-ext_latin-900.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-900.woff') format('woff'), /* Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/maven-pro-v32-latin-ext_latin-900.svg#MavenPro') format('svg'); /* Legacy iOS */
} }
/* latin-ext */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 900;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 900;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style> </style>
<link type="text/css" rel="stylesheet" href="/style.css"> <link type="text/css" rel="stylesheet" href="/style.css">
......
...@@ -9,58 +9,31 @@ ...@@ -9,58 +9,31 @@
<style media="all"> <style media="all">
/* vietnamese */ /* maven-pro-regular - latin-ext_latin */
@font-face { @font-face {
font-family: 'Maven Pro'; font-family: 'Maven Pro';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2) format('woff2'); src: url('/assets/maven-pro-v32-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; src: local(''),
url('/assets/maven-pro-v32-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/maven-pro-v32-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/maven-pro-v32-latin-ext_latin-regular.svg#MavenPro') format('svg'); /* Legacy iOS */
} }
/* maven-pro-900 - latin-ext_latin */
/* latin-ext */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 900;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 900;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face { @font-face {
font-family: 'Maven Pro'; font-family: 'Maven Pro';
font-style: normal; font-style: normal;
font-weight: 900; font-weight: 900;
src: url(https://fonts.gstatic.com/s/mavenpro/v22/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2) format('woff2'); src: url('/assets/maven-pro-v32-latin-ext_latin-900.eot'); /* IE9 Compat Modes */
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: local(''),
url('/assets/maven-pro-v32-latin-ext_latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/assets/maven-pro-v32-latin-ext_latin-900.woff2') format('woff2'), /* Super Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-900.woff') format('woff'), /* Modern Browsers */
url('/assets/maven-pro-v32-latin-ext_latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
url('/assets/maven-pro-v32-latin-ext_latin-900.svg#MavenPro') format('svg'); /* Legacy iOS */
} }
</style> </style>
...@@ -69,8 +42,8 @@ ...@@ -69,8 +42,8 @@
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js" crossorigin="anonymous"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js" crossorigin="anonymous"></script>
<![endif]--> <![endif]-->
<meta name="robots" content="index, follow"> <meta name="robots" content="index, follow">
</head> </head>
......
...@@ -26,3 +26,13 @@ test-browser-monster: create-polyfill-monster ...@@ -26,3 +26,13 @@ test-browser-monster: create-polyfill-monster
$(QUIET) $(SED) -i -E "s_src=\"([\"]*)\.js.*\"_src=\"\1.js?r=$(shell date +"%T")\"_" $(TEST_PATH)web/test.html $(TEST_PATH)web/monster.html $(TEST_PATH)web/monster-dev.html $(QUIET) $(SED) -i -E "s_src=\"([\"]*)\.js.*\"_src=\"\1.js?r=$(shell date +"%T")\"_" $(TEST_PATH)web/test.html $(TEST_PATH)web/monster.html $(TEST_PATH)web/monster-dev.html
$(QUIET) $(SED) -i -E "s_dist/([0-9]+\.[0-9]+\.[0-9]+)*/dist/monster_dist/$(PROJECT_VERSION)/dist/monster_" $(TEST_PATH)web/monster.html $(TEST_PATH)web/monster-dev.html $(QUIET) $(SED) -i -E "s_dist/([0-9]+\.[0-9]+\.[0-9]+)*/dist/monster_dist/$(PROJECT_VERSION)/dist/monster_" $(TEST_PATH)web/monster.html $(TEST_PATH)web/monster-dev.html
#$(QUIET) if $(OPENBROWSER) ; then google-chrome --profile-directory="Default" $(TEST_PATH)web/test.html ; fi #$(QUIET) if $(OPENBROWSER) ; then google-chrome --profile-directory="Default" $(TEST_PATH)web/test.html ; fi
.PHONY: web-to-s3
## transfer web to s3
web-to-s3:
$(ECHOMARKER) "transfer web to s3"
$(QUIET) $(AWS) s3 --recursive --only-show-errors cp $(DEPLOYMENT_PATH)web/assets/ s3://monsterjs.org/assets/
$(QUIET) $(AWS) s3 --only-show-errors cp $(DEPLOYMENT_PATH)web/index.html s3://monsterjs.org/index.html
$(QUIET) $(AWS) s3 --only-show-errors cp $(DEPLOYMENT_PATH)web/error.html s3://monsterjs.org/error.html
...@@ -54,11 +54,6 @@ ...@@ -54,11 +54,6 @@
"add_style_path": [ "add_style_path": [
], ],
"add_script_path": [ "add_script_path": [
{
"src": "https://code.jquery.com/jquery-3.5.1.js",
"integrity": "sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=",
"crossorigin": "anonymous"
}
], ],
"codepen": { "codepen": {
"enable_for": [ "enable_for": [
......
...@@ -22,11 +22,10 @@ index.html. ...@@ -22,11 +22,10 @@ index.html.
</div> </div>
<script type="module"> <script type="module">
import {Version} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/types/version.js'; import {Version} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/types/version.js';
document.getElementById('version').innerText = new Version('1.0.0').toString(); document.getElementById('version').innerText = new Version('1.0.0').toString();
</script> </script>
</body> </body>
</html> </html>
``` ```
...@@ -47,7 +46,7 @@ the `Monster` namespace as a single javascript file. ...@@ -47,7 +46,7 @@ the `Monster` namespace as a single javascript file.
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>awaken the monster in you!</title> <title>awaken the monster in you!</title>
<script src="https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/monster.js"></script> <script src="https://cdn.skypack.dev/@schukai/monster@latest/source/monster.js"></script>
</head> </head>
<body> <body>
...@@ -64,6 +63,7 @@ the `Monster` namespace as a single javascript file. ...@@ -64,6 +63,7 @@ the `Monster` namespace as a single javascript file.
``` ```
Besides the CDN [jsdelivr](https://www.jsdelivr.com/package/npm/@schukai/monster), Besides the CDN [jsdelivr](https://www.jsdelivr.com/package/npm/@schukai/monster),
[skypack](https://cdn.skypack.dev/@schukai/monster@latest),
Monster can also be obtained via [NPM](https://www.npmjs.com/package/@schukai/monster) Monster can also be obtained via [NPM](https://www.npmjs.com/package/@schukai/monster)
or the [git repos](https://gitlab.schukai.com/oss/libraries/javascript/monster). or the [git repos](https://gitlab.schukai.com/oss/libraries/javascript/monster).
......
...@@ -6,7 +6,7 @@ Code is always the most informative. So let's take a look at a complete example ...@@ -6,7 +6,7 @@ Code is always the most informative. So let's take a look at a complete example
``` ```
// The first thing to do is to include the Updater class. // The first thing to do is to include the Updater class.
import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/updater.js'; import {Updater} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/dom/updater.js';
// Now we prepare the html document. // Now we prepare the html document.
// This is done here via script, but can also be inserted into the document as pure html. // This is done here via script, but can also be inserted into the document as pure html.
...@@ -81,7 +81,7 @@ The result is then the following html: ...@@ -81,7 +81,7 @@ The result is then the following html:
A full example looks like this: A full example looks like this:
``` ```
import {Updater} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/updater.js'; import {Updater} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/dom/updater.js';
const body = document.querySelector('body'); const body = document.querySelector('body');
const headline = document.createElement('h1'); const headline = document.createElement('h1');
headline.setAttribute('data-monster-replace','static:hello') headline.setAttribute('data-monster-replace','static:hello')
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<script type="module"> <script type="module">
'use strict'; 'use strict';
import {Updater} from "https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/updater.js"; import {Updater} from "https://cdn.skypack.dev/@schukai/monster@latest/source/dom/updater.js";
document.addEventListener('readystatechange', () => { document.addEventListener('readystatechange', () => {
if (document.readyState == 'complete') { if (document.readyState == 'complete') {
......
...@@ -2,10 +2,10 @@ We need the `Formatter` and `Translations` class and the `parseLocale()` functio ...@@ -2,10 +2,10 @@ We need the `Formatter` and `Translations` class and the `parseLocale()` functio
In the context of the DOM we can also use the `getLocaleOfDocument()` method. In the context of the DOM we can also use the `getLocaleOfDocument()` method.
``` ```
import {Translations} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/translations.js'; import {Translations} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/i18n/translations.js';
import {Formatter} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/text/formatter.js'; import {Formatter} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/text/formatter.js';
import {parseLocale} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/locale.js'; import {parseLocale} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/i18n/locale.js';
import {getLocaleOfDocument} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/dom/locale.js'; import {getLocaleOfDocument} from 'https://cdn.skypack.dev/@schukai/monster@latest/source/dom/locale.js';
``` ```
Let's start with the function `parseLocale()`. This function can create a `Locale` object from a string. Let's start with the function `parseLocale()`. This function can create a `Locale` object from a string.
...@@ -77,7 +77,7 @@ Finally, let's take a look at the formatter class from the i18n module. ...@@ -77,7 +77,7 @@ Finally, let's take a look at the formatter class from the i18n module.
``` ```
import {Formatter} from import {Formatter} from
'https://cdn.jsdelivr.net/npm/@schukai/monster@1.31.0/dist/modules/i18n/formatter.js'; 'https://cdn.skypack.dev/@schukai/monster@latest/source/i18n/formatter.js';
``` ```
A tranlate object can be passed directly to this class. A tranlate object can be passed directly to this class.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment