Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66bed8c89f | ||
|
|
07e85b6f32 | ||
|
|
50c17ab504 |
+1
-1
@@ -30,7 +30,7 @@ plugins.withType(JavaPlugin) {
|
||||
allprojects {
|
||||
// set version for our project
|
||||
group = 'com.mowesta'
|
||||
version = '1.1.0'
|
||||
version = '1.1.1'
|
||||
|
||||
// set versions for our libraries
|
||||
ext {
|
||||
|
||||
@@ -12,18 +12,21 @@ let outputDir;
|
||||
let inputDir;
|
||||
|
||||
/**
|
||||
* Builds the web component through concatenating all javascript files.
|
||||
*/
|
||||
async function buildElement() {
|
||||
const files = [
|
||||
`${inputDir}/polyfills.js`,
|
||||
`${inputDir}/main.js`,
|
||||
];
|
||||
await concat(files, `${outputDir}/${elementName}.js`);
|
||||
* Copy the polyfills.
|
||||
*/
|
||||
async function copyPolyfillsJs() {
|
||||
await fs.copySync( `${inputDir}/polyfills.js`, `${outputDir}/polyfills.js`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copying and renaming the global styles.css file of the main web app.
|
||||
* Copy and rename the main.js file of the element.
|
||||
*/
|
||||
async function copyMainJs() {
|
||||
await fs.copySync( `${inputDir}/main.js`, `${outputDir}/${elementName}.js`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy and rename the element style.
|
||||
*/
|
||||
async function copyStylesCss() {
|
||||
await fs.copySync( `${inputDir}/styles.css`, `${outputDir}/${elementName}.css`);
|
||||
@@ -37,7 +40,8 @@ async function copyStylesCss() {
|
||||
if (!fs.pathExistsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir);
|
||||
}
|
||||
buildElement();
|
||||
copyPolyfillsJs();
|
||||
copyMainJs();
|
||||
copyStylesCss();
|
||||
console.log(`Finished building ${elementName}.`);
|
||||
})();
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
</li>
|
||||
<li class="bottom-gap">{{ res.strings('city_code_dialog_scripts') }}
|
||||
<div class="fx-row code-box">
|
||||
<code class="code-snippet">
|
||||
<span class="tag"><script</span>
|
||||
<span class="attr"> src=</span>
|
||||
<span class="attr-value">"https://www.mowesta.com/app/polyfills.js"</span>
|
||||
<span class="tag">></script></span>
|
||||
</code>
|
||||
<code class="code-snippet">
|
||||
<span class="tag"><script</span>
|
||||
<span class="attr"> src=</span>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<mat-toolbar class="bg-secondary" style="height: auto; display: flex; flex-flow:row wrap;justify-content: center; gap: 10px">
|
||||
<mat-toolbar class="bg-secondary font" style="height: auto; display: flex; flex-flow:row wrap;justify-content: center; gap: 10px">
|
||||
<a class="fg-primary mat-caption font" href="https://www.nes.uni-due.de" target="_blank"><span class="full">Networked Embedded Systems</span><span class="short">NES</span></a>
|
||||
<a class="fg-primary mat-caption font" href="https://www.uni-due.de" target="_blank"><span class="full">Universität Duisburg-Essen</span><span class="short">UDE</span></a>
|
||||
<a class="fg-primary mat-caption font" href="assets/texts/licenses.txt" target="_blank">{{ res.strings('footer_licenses')}}</a>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
display: none;
|
||||
}
|
||||
.font{
|
||||
font:500 18px/20px Montserrat !important;;
|
||||
font:500 16px/20px Montserrat !important;;
|
||||
}
|
||||
@media only screen and (max-width: 925px){
|
||||
.short {
|
||||
|
||||
Reference in New Issue
Block a user