Added cookies
This commit is contained in:
parent
56775d645d
commit
e83be9c69f
5 changed files with 74 additions and 2 deletions
|
|
@ -33,3 +33,5 @@ ddp-rate-limiter@1.0.7
|
||||||
dynamic-import@0.1.1
|
dynamic-import@0.1.1
|
||||||
static-html
|
static-html
|
||||||
alexwine:bootstrap-4
|
alexwine:bootstrap-4
|
||||||
|
selaias:cookie-consent
|
||||||
|
gadicc:blaze-react-component
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ facebook-oauth@1.3.2
|
||||||
fastclick@1.0.13
|
fastclick@1.0.13
|
||||||
fortawesome:fontawesome@4.7.0
|
fortawesome:fontawesome@4.7.0
|
||||||
fourseven:scss@4.5.4
|
fourseven:scss@4.5.4
|
||||||
|
gadicc:blaze-react-component@1.4.0
|
||||||
geojson-utils@1.0.10
|
geojson-utils@1.0.10
|
||||||
github-oauth@1.2.0
|
github-oauth@1.2.0
|
||||||
google-oauth@1.2.4
|
google-oauth@1.2.4
|
||||||
|
|
@ -71,6 +72,7 @@ oauth@1.1.13
|
||||||
oauth2@1.1.11
|
oauth2@1.1.11
|
||||||
observe-sequence@1.0.16
|
observe-sequence@1.0.16
|
||||||
ordered-dict@1.0.9
|
ordered-dict@1.0.9
|
||||||
|
ostrio:cookies@2.1.3
|
||||||
promise@0.9.0
|
promise@0.9.0
|
||||||
raix:eventemitter@0.1.3
|
raix:eventemitter@0.1.3
|
||||||
random@1.0.10
|
random@1.0.10
|
||||||
|
|
@ -81,6 +83,7 @@ reactive-var@1.0.11
|
||||||
reload@1.1.11
|
reload@1.1.11
|
||||||
retry@1.0.9
|
retry@1.0.9
|
||||||
routepolicy@1.0.12
|
routepolicy@1.0.12
|
||||||
|
selaias:cookie-consent@0.4.0
|
||||||
service-configuration@1.0.11
|
service-configuration@1.0.11
|
||||||
session@1.1.7
|
session@1.1.7
|
||||||
sha@1.0.9
|
sha@1.0.9
|
||||||
|
|
|
||||||
|
|
@ -85,10 +85,30 @@ i18n.use(backend)
|
||||||
}, function(err, t) {
|
}, function(err, t) {
|
||||||
// initialized and ready to
|
// initialized and ready to
|
||||||
document.title = t("AppName");
|
document.title = t("AppName");
|
||||||
|
|
||||||
|
// Accounts translation
|
||||||
// https://github.com/softwarerero/meteor-accounts-t9n
|
// https://github.com/softwarerero/meteor-accounts-t9n
|
||||||
console.log("Language: " + i18n.language);
|
// console.log("Language: " + i18n.language);
|
||||||
T9n.setLanguage(i18n.language);
|
T9n.setLanguage(i18n.language);
|
||||||
console.log(T9n.get('error.accounts.User not found'));
|
// console.log(T9n.get('error.accounts.User not found'));
|
||||||
|
|
||||||
|
// cookies eu consent
|
||||||
|
var cookiesOpt = {
|
||||||
|
cookieTitle: t('Uso de Cookies'),
|
||||||
|
cookieMessage: t('Utilizamos cookies para asegurar un mejor uso de nuestra web. Si continúas navegando, consideramos que aceptas su uso'),
|
||||||
|
/* cookieMessage: t('Uso de Cookies'),
|
||||||
|
cookieMessageImply: t('Utilizamos cookies para asegurar un mejor uso de nuestra web. Si continúas navegando, consideramos que aceptas su uso'),*/
|
||||||
|
showLink: false,
|
||||||
|
position: 'bottom',
|
||||||
|
linkText: 'Lee más',
|
||||||
|
linkRouteName: '/',
|
||||||
|
acceptButtonText: 'Aceptar',
|
||||||
|
html: false,
|
||||||
|
expirationInDays: 70,
|
||||||
|
forceShow: false
|
||||||
|
};
|
||||||
|
|
||||||
|
CookieConsent.init(cookiesOpt);
|
||||||
});
|
});
|
||||||
|
|
||||||
export default i18n;
|
export default i18n;
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@ import ReSendEmail from '../../components/ReSendEmail/ReSendEmail';
|
||||||
// i18n
|
// i18n
|
||||||
import { I18nextProvider } from 'react-i18next';
|
import { I18nextProvider } from 'react-i18next';
|
||||||
import i18n from '/imports/startup/client/i18n';
|
import i18n from '/imports/startup/client/i18n';
|
||||||
|
// https://github.com/gadicc/meteor-blaze-react-component/
|
||||||
|
import Blaze from 'meteor/gadicc:blaze-react-component';
|
||||||
|
|
||||||
//https://react.i18next.com/components/i18nextprovider.html
|
//https://react.i18next.com/components/i18nextprovider.html
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -64,6 +67,8 @@ const App = props => (
|
||||||
</Switch>
|
</Switch>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
<Blaze template="cookieConsent" />
|
||||||
|
{/* <Blaze template="cookieConsentImply" /> */}
|
||||||
</div> : ''}
|
</div> : ''}
|
||||||
</Router>
|
</Router>
|
||||||
</I18nextProvider>
|
</I18nextProvider>
|
||||||
|
|
|
||||||
|
|
@ -9,3 +9,45 @@ a, a:hover {
|
||||||
h4.page-header {
|
h4.page-header {
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#js-cookie-policy-default {
|
||||||
|
background-color: lighten($todos-palette3, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookie-policy {
|
||||||
|
position: fixed;
|
||||||
|
text-align: rigth;
|
||||||
|
vertical-align: baseline;
|
||||||
|
padding-top: 10px;
|
||||||
|
border-radius: 0px;
|
||||||
|
z-index: 2500;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
top: auto;
|
||||||
|
margin:0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookie-policy__header {
|
||||||
|
/* float: left; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookie-policy__action {
|
||||||
|
float: right;
|
||||||
|
position: absolute;
|
||||||
|
top: 5px;
|
||||||
|
right: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookie-policy > p {
|
||||||
|
margin-bottom: -5px;
|
||||||
|
color: #fff
|
||||||
|
}
|
||||||
|
|
||||||
|
.cookie-policy__header{
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 5px
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue