mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
chore(deprecations): clean out some warnings
This commit is contained in:
@@ -414,14 +414,14 @@ li {
|
|||||||
.donate {
|
.donate {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: start;
|
justify-content: flex-start;
|
||||||
grid-area: donate;
|
grid-area: donate;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
}
|
}
|
||||||
.donate-text {
|
.donate-text {
|
||||||
grid-area: donate-text;
|
grid-area: donate-text;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
font-color: $gray-100;
|
color: $gray-100;
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
@@ -433,7 +433,7 @@ li {
|
|||||||
.social {
|
.social {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: start;
|
justify-content: flex-start;
|
||||||
grid-area: social;
|
grid-area: social;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
}
|
}
|
||||||
@@ -453,7 +453,7 @@ li {
|
|||||||
.privacy-terms {
|
.privacy-terms {
|
||||||
grid-area: privacy-terms;
|
grid-area: privacy-terms;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: flex-end;
|
||||||
line-height: 1.71;
|
line-height: 1.71;
|
||||||
}
|
}
|
||||||
.terms {
|
.terms {
|
||||||
@@ -530,7 +530,7 @@ h3 {
|
|||||||
.terms {
|
.terms {
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.desktop {
|
.desktop {
|
||||||
|
|||||||
@@ -23,15 +23,14 @@ export function getDevelopmentConnectionUrl (originalConnectionUrl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getDefaultConnectionOptions () {
|
export function getDefaultConnectionOptions () {
|
||||||
|
// with keepAlive deprecated, we don't need a separate set of production options
|
||||||
|
// Keeping the structure here in case the distinction is useful later
|
||||||
const commonOptions = {
|
const commonOptions = {
|
||||||
useNewUrlParser: true,
|
useNewUrlParser: true,
|
||||||
useUnifiedTopology: true,
|
useUnifiedTopology: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
return !IS_PROD ? commonOptions : {
|
return !IS_PROD ? commonOptions : {
|
||||||
// See https://mongoosejs.com/docs/connections.html#keepAlive
|
|
||||||
keepAlive: true,
|
|
||||||
keepAliveInitialDelay: 300000,
|
|
||||||
...commonOptions,
|
...commonOptions,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user