Commits (3)
{
"name": "@coscine/login",
"version": "1.0.0",
"version": "1.1.0",
"private": true,
"directories": {
"doc": "docs"
......@@ -13,7 +13,7 @@
},
"dependencies": {
"@itcenter-layout/bootstrap": "^1.4.3",
"@rwth-layout/itcenter-masterpage": "^0.3.0",
"@itcenter-layout/masterpage": "^1.2.5",
"@types/jquery": "^3.3.31",
"bootstrap-vue": "^2.0.0-rc.28",
"jquery": "^3.4.1",
......
......@@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>ts-template</title>
<title>Login</title>
</head>
<body>
<body class="fullwidth">
<noscript>
<strong>We're sorry but ts-template doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but the login app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="loginpage"></div>
<!-- built files will be auto injected -->
......
<template>
<div id="app">
<div class="container-fluid">
<div id="wrap" :style="cssProps">
<header>
<nav id="nav-global" class="navbar rwth-black navbar-dark navbar-expand-md">
<div class="app-header-container">
<div id="DeltaSiteLogo">
<a id="ctl00_onetidProjectPropertyTitleGraphic" title="Team Site" class="ms-siteicon-a" href="/">
<img id="ctl00_onetidHeadbnnr2" class="ms-siteicon-img" name="onetidHeadbnnr0" :src="rwthImage" alt="Team Site" data-themekey="#">
</a>
</div>
</div>
<div id="DeltaCoScInESiteLogo">
<a id="ctl00_SPSimpleSiteLink1" title="Team Site" class="ms-siteicon-a coscineSiteIcon" href="/">
<img id="ctl00_SiteLogoImage1" class="ms-siteicon-img" name="onetidHeadbnnr0" :src="coscineImage" alt="Team Site" data-themekey="#">
</a>
<span class="coscineSiteIconLabel">CoScInE</span>
</div>
<ul id="nav-langsearch" class="navbar-nav ml-auto">
<li id="langToggle" class="next-lang" tabindex="0" aria-label="toggle language">
<a class="nav-link lang" href="#" id="Lang" v-on:click="changeLocale()">
<span id="langBox" class="language-box">{{ $t('otherLocale') }}</span>
</a>
</li>
</ul>
</nav>
</header>
<div class="container-fluid app-content">
<div class="row">
<div class="col-xl-2"></div>
<div class="col-xl-8">
......@@ -52,6 +77,34 @@
</div>
<div class="col-xl-2"></div>
</div>
<footer id="footer">
<div class="row container">
<div id="servicecol" class="col-xs-12 col-sm-6">
<div class="list-group">
<h2>Service</h2>
<a href="http://www.rwth-aachen.de/cms/root/Footer/Services/~cesv/Disclaimer/?lidx=1" class="list-group-item list-group-item-action">{{ $t('help') }}</a>
<a href="https://www.rwth-aachen.de/cms/root/Footer/Services/~cesv/Disclaimer/" class="list-group-item list-group-item-action">{{ $t('disclaimer') }}</a>
<a href="http://www.itc.rwth-aachen.de/cms/IT-Center/Footer/Service/~epvv/Impressum/" class="list-group-item list-group-item-action">{{ $t('imprint') }}</a>
</div>
</div>
<div id="contactcol" class="col-xs-12 col-sm-6">
<div id="contact-list" class="list-group">
<h2 id="footerContact">{{ $t('contact') }}</h2>
<a id="mail" href="mailto:servicedesk@itc.rwth-aachen.de" class="list-group-item list-group-item-action">
servicedesk@itc.rwth-aachen.de
</a>
<span id="phone" class="list-group-item">
+49 241 / 80-24680
</span>
<span id="fax" class="list-group-item">
+49 241 / 80-22981
</span>
</div>
</div>
</div>
</footer>
</div>
</template>
......@@ -60,7 +113,12 @@ import Vue from 'vue';
import LoginMain from './components/LoginMain.vue';
import LoginForm from './components/LoginForm.vue';
import imagePath from './assets/RWTH_Piktogramm_Ich_statt_man.png';
import coscineImagePath from './assets/logo-coscine.png';
import rwthImagePath from './assets/logo-rwth.png';
import linkWhitePath from './assets/link_white.svg';
import mailGreyPath from './assets/mail_grey.svg';
import phoneGreyPath from './assets/phone_grey.svg';
import faxGreyPath from './assets/fax_grey.svg';
let scriptPath = '';
let imageEnabled = false;
......@@ -94,9 +152,20 @@ export default Vue.extend({
LoginMain,
LoginForm,
},
computed: {
cssProps() {
return {
'--linkWhite': 'url(' + scriptUrl + linkWhitePath + ') 1px 9px no-repeat',
'--mailGrey': 'url(' + scriptUrl + mailGreyPath + ') 0px 6px no-repeat',
'--phoneGrey': 'url(' + scriptUrl + phoneGreyPath + ') 0px 6px no-repeat',
'--faxGrey': 'url(' + scriptUrl + faxGreyPath + ') 0px 6px no-repeat',
};
},
},
data() {
return {
coscineImage: scriptUrl + imagePath.substring(1),
coscineImage: scriptUrl + coscineImagePath,
rwthImage: scriptUrl + rwthImagePath,
imageEnabled,
returnUrl: getReturnUrl(),
orcidUrl: getORCiDUrl(),
......@@ -113,11 +182,70 @@ export default Vue.extend({
getORCiDForm() {
window.location.href = this.orcidUrl;
},
changeLocale() {
if (this.$root.$i18n.locale === 'en') {
this.$root.$i18n.locale = 'de';
} else {
this.$root.$i18n.locale = 'en';
}
},
},
});
</script>
<style>
.list-group-item-action {
background: var(--linkWhite)!important;
}
#mail.list-group-item-action{
background: var(--mailGrey)!important;
}
#phone.list-group-item {
background: var(--phoneGrey)!important;
}
#fax.list-group-item {
background: var(--faxGrey)!important;
}
#wrap .navbar .lang {
padding-top: .5rem!important;
}
.siteIcon {
height: 0px;
width: 0px;
overflow: visible;
margin-left: 150px;
line-height: 0px;
margin-top: -20px;
}
.coscineSiteIcon {
height: 0px;
width: 0px;
overflow: visible;
line-height: 0px;
}
.coscineSiteIcon img {
margin-left: 8px;
height: 36px;
width: 36px;
}
.coscineSiteIconLabel {
margin-left: 8px;
vertical-align: middle;
color: white;
font-size: 22px;
}
.navbar .app-header-container a img.ms-siteicon-img {
border: 0px;
}
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
fill="#000000"
height="24"
viewBox="0 0 24 24"
width="24"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="caret.svg">
<metadata
id="metadata12">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview8"
showgrid="false"
inkscape:zoom="5.41"
inkscape:cx="11.629935"
inkscape:cy="8.6626026"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<ellipse
style="opacity:1;fill:#646567;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4151"
cx="12.134771"
cy="12.134771"
rx="12.0255"
ry="12.025395" />
<path
d="m 0.13477151,0.13477152 23.99999949,0 0,23.99999948 -23.99999949,0 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:none" />
<path
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:15;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 5.6473445,9.9269526 -0.038294,0.0383 6.5225295,6.5289114 6.528912,-6.5289114 -0.03829,-0.0383 -12.9748554,0 z"
id="rect4135"
inkscape:connector-curvature="0" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
fill="#000000"
height="24"
viewBox="0 0 24 24"
width="24"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="caret_hover.svg">
<metadata
id="metadata12">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview8"
showgrid="false"
inkscape:zoom="5.41"
inkscape:cx="11.629935"
inkscape:cy="8.6626026"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<ellipse
style="opacity:1;fill:#cfd1d2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4151"
cx="12.134771"
cy="12.134771"
rx="12.0255"
ry="12.025395" />
<path
d="m 0.13477151,0.13477152 23.99999949,0 0,23.99999948 -23.99999949,0 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:none" />
<path
style="opacity:1;fill:#333333;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:15;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 5.6473445,9.9269526 -0.038294,0.0383 6.5225295,6.5289114 6.528912,-6.5289114 -0.03829,-0.0383 -12.9748554,0 z"
id="rect4135"
inkscape:connector-curvature="0" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
fill="#000000"
height="24"
viewBox="0 0 24 24"
width="24"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="fax_grey.svg">
<metadata
id="metadata12">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview8"
showgrid="false"
inkscape:zoom="41.414175"
inkscape:cx="20.540644"
inkscape:cy="16.415743"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<ellipse
style="opacity:1;fill:#515151;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4151"
cx="12.134771"
cy="12.134771"
rx="12.0255"
ry="12.025395" />
<path
d="m 0.13477151,0.13477161 23.99999949,0 0,23.99999939 -23.99999949,0 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:none" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:9.95478821px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="2.3841343"
y="15.75359"
id="text4135"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan4137"
x="2.3841343"
y="15.75359">FAX</tspan></text>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="4.5155559mm"
height="4.5155559mm"
viewBox="0 0 16.000001 16.000001"
id="svg4169"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="link_white.svg">
<defs
id="defs4171" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="7.94"
inkscape:cx="-41.425691"
inkscape:cy="-3.0604993"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata4174">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-302.56015,-459.72845)">
<circle
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4152"
cx="310.56015"
cy="467.72845"
r="8" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 309.13087,461.94688 -1.66481,1.37701 4.60385,4.40456 -4.60386,4.28755 1.66482,1.49403 c 1.93862,-1.93986 4.44629,-3.92187 6.08688,-5.85858 z"
id="path4135"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
fill="#000000"
height="24"
viewBox="0 0 24 24"
width="24"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="mail_grey.svg">
<metadata
id="metadata12">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview8"
showgrid="false"
inkscape:zoom="41.414175"
inkscape:cx="11.629935"
inkscape:cy="11.560161"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<ellipse
style="opacity:1;fill:#646567;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4151"
cx="12.134771"
cy="12.134771"
rx="12.0255"
ry="12.025395" />
<path
d="m 18.408859,5.8606802 -12.5481811,0 c -0.8626875,0 -1.5606801,0.7058352 -1.5606801,1.5685228 l -0.00784,9.411137 c 0,0.862687 0.7058352,1.568522 1.5685227,1.568522 l 12.5481815,0 c 0.862688,0 1.568523,-0.705835 1.568523,-1.568522 l 0,-9.411137 c 0,-0.8626876 -0.705835,-1.5685228 -1.568523,-1.5685228 z m 0,3.1370455 -6.27409,3.9213063 -6.2740911,-3.9213063 0,-1.5685227 6.2740911,3.921307 6.27409,-3.921307 0,1.5685227 z"
id="path4"
style="fill:#ffffff;fill-opacity:1"
inkscape:connector-curvature="0" />
<path
d="m 0.13477096,0.13477135 24.00000004,0 0,23.99999965 -24.00000004,0 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:none" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="23.999792"
viewBox="0 0 24 23.999792"
width="24"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="phone_grey.svg"
style="fill:#000000">
<metadata
id="metadata12">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs10" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview8"
showgrid="false"
inkscape:zoom="4.7109302"
inkscape:cx="-26.231347"
inkscape:cy="25.601069"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg2"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<ellipse
style="opacity:1;fill:#646567;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4151"
cx="12"
cy="11.999896"
rx="12"
ry="11.999896"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<path
d="m 0.02544624,0.02534174 23.94910776,0 0,23.94910726 -23.94910776,0 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:none"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<path
inkscape:connector-curvature="0"
d="m 7.9499054,11.089001 c 1.0840402,2.130441 2.8305486,3.869422 4.9609896,4.96099 l 1.656172,-1.656172 c 0.203258,-0.203258 0.504381,-0.271011 0.767862,-0.180674 0.843142,0.278538 1.754037,0.4291 2.687517,0.4291 0.414043,0 0.752805,0.338763 0.752805,0.752805 l 0,2.627292 c 0,0.414043 -0.338762,0.752805 -0.752805,0.752805 -7.068846,0 -12.7976975,-5.728851 -12.7976975,-12.7976973 0,-0.414043 0.3387629,-0.752806 0.7528057,-0.752806 l 2.63482,0 c 0.4140435,0 0.7528058,0.338763 0.7528058,0.752806 0,0.941007 0.1505611,1.844374 0.4290991,2.687517 0.082809,0.263482 0.022582,0.557076 -0.1882017,0.767862 l -1.656172,1.6561723 z"
id="path6-8"
style="fill:#ffffff;fill-opacity:1"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
</svg>
......@@ -16,4 +16,10 @@ export default {
login_form_headline: 'Login mit Nutzer-ID',
login_form_submit: 'Senden',
login_form_id_required: 'Das UserId-Feld wird benötigt.',
localeValue: 'De',
help: 'Hilfe',
disclaimer: 'Datenschutz',
imprint: 'Impressum',
contact: 'Kontakt',
otherLocale: 'En',
};
......@@ -16,4 +16,10 @@ export default {
login_form_headline: 'Login with user ID',
login_form_submit: 'Submit',
login_form_id_required: 'The UserId field is required.',
localeValue: 'En',
help: 'Help',
disclaimer: 'Disclaimer',
imprint: 'Imprint',
contact: 'Contact',
otherLocale: 'De',
};
......@@ -4,6 +4,7 @@ import jQuery from 'jquery';
import BootstrapVue from 'bootstrap-vue';
import '@itcenter-layout/bootstrap/dist/css/rwth-theme.css';
import '@itcenter-layout/bootstrap/dist/css/material-icons.css';
import '@itcenter-layout/masterpage/dist/css/itcenter-masterdesign-masterpage.css';
import locales from './locale/locales';
import VueI18n from 'vue-i18n';
......@@ -12,9 +13,16 @@ Vue.config.productionTip = false;
Vue.use(BootstrapVue);
Vue.use(VueI18n);
let localeValue = ((navigator as any).language || (navigator as any).userLanguage) as string;
if (localeValue.indexOf('de') !== -1) {
localeValue = 'de';
} else {
localeValue = 'en';
}
jQuery(() => {
const i18n = new VueI18n({
locale: 'en', // set locale
locale: localeValue, // set locale
messages: locales, // set locale messages
silentFallbackWarn: true,
});
......
......@@ -7,4 +7,8 @@ declare module '@itcenter-layout/bootstrap'
declare module "*.png" {
const value: any;
export default value;
}
declare module "*.svg" {
const value: any;
export default value;
}
\ No newline at end of file
......@@ -2,10 +2,18 @@ module.exports = {
devServer: {
disableHostCheck: true,
},
publicPath: './',
configureWebpack: {
devtool: 'source-map',
devServer: {
port: 9432,
}
},
filenameHashing: false,
chainWebpack: config => {
config.optimization.delete('splitChunks')
},
css: {
extract: false,
},
}
\ No newline at end of file