Tile titles are consistent

This commit is contained in:
Logan Allen 2019-06-21 16:07:04 -07:00 committed by Isaac Visintainer
parent 6edc1c86a3
commit ad32e9f92b
2 changed files with 24 additions and 20 deletions

View File

@ -19332,28 +19332,24 @@
let numbers = {};
state.numbers.forEach((num) => {
console.log(num);
numbers[num.circle] = num.length;
if (num.circle === inviteCircle) {
inviteNum = inviteNum + num.length;
} else {
msgNum = msgNum + num.length;
}
console.log(msgNum, inviteNum);
});
Object.keys(state.configs).forEach((key) => {
let host = key.split('/')[0];
if (host !== `~${window.ship}`) { return; }
if (!state.configs[key]) { return; }
console.log(state.configs[key]);
let red = state.configs[key].red;
if (key === inviteCircle) {
inviteNum = inviteNum - red;
} else {
msgNum = msgNum - red;
}
console.log(msgNum, inviteNum);
});
}
@ -19362,9 +19358,13 @@
}
return (
react.createElement('div', { className: "w-100 h-100 relative" , style: { background: '#1a1a1a' }, __self: this, __source: {fileName: _jsxFileName, lineNumber: 74}}
, react.createElement('a', { className: "w-100 h-100 db pa2 no-underline" , href: "/~chat", __self: this, __source: {fileName: _jsxFileName, lineNumber: 75}}
, react.createElement('p', { className: "gray", __self: this, __source: {fileName: _jsxFileName, lineNumber: 76}}, "Chat")
react.createElement('div', { className: "w-100 h-100 relative" , style: { background: '#1a1a1a' }, __self: this, __source: {fileName: _jsxFileName, lineNumber: 70}}
, react.createElement('a', { className: "w-100 h-100 db pa2 no-underline" , href: "/~chat", __self: this, __source: {fileName: _jsxFileName, lineNumber: 71}}
, react.createElement('p', { className: "gray", style: {
fontWeight: 'bold',
fontSize: 14,
lineHeight: '24px'
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 72}}, "Chat")
, react.createElement('img', {
className: "absolute",
style: { left: 68, top: 65 },

View File

@ -6879,44 +6879,48 @@
return this.renderWrapper((
react.createElement('div', {__self: this, __source: {fileName: _jsxFileName, lineNumber: 74}}
, react.createElement('p', { className: "white", __self: this, __source: {fileName: _jsxFileName, lineNumber: 75}}, "Weather")
, react.createElement('div', { className: "w-100 mb2 mt2" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 76}}
, react.createElement('p', { className: "gray", style: {
fontWeight: 'bold',
fontSize: 14,
lineHeight: '24px'
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 75}}, "Weather")
, react.createElement('div', { className: "w-100 mb2 mt2" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 80}}
, react.createElement('img', {
src: '/~weather/img/' + c.icon + '.png',
width: 64,
height: 64,
className: "dib", __self: this, __source: {fileName: _jsxFileName, lineNumber: 77}} )
className: "dib", __self: this, __source: {fileName: _jsxFileName, lineNumber: 81}} )
, react.createElement('h2', {
className: "dib ml2 white" ,
style: {
fontSize: 72,
lineHeight: '64px',
fontWeight: 400
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 82}}
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 86}}
, Math.round(c.temperature), "°")
)
, react.createElement('div', { className: "w-100 cf" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 91}}
, react.createElement('div', { className: "fl w-50" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 92}}
, react.createElement('div', { className: "w-100 cf" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 95}}
, react.createElement('div', { className: "fl w-50" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 96}}
, react.createElement(IconWithData, {
icon: "winddirection",
text: c.windBearing + '°', __self: this, __source: {fileName: _jsxFileName, lineNumber: 93}} )
text: c.windBearing + '°', __self: this, __source: {fileName: _jsxFileName, lineNumber: 97}} )
, react.createElement(IconWithData, {
icon: "chancerain",
text: c.precipProbability + '%', __self: this, __source: {fileName: _jsxFileName, lineNumber: 96}} )
text: c.precipProbability + '%', __self: this, __source: {fileName: _jsxFileName, lineNumber: 100}} )
, react.createElement(IconWithData, {
icon: "windspeed",
text: Math.round(c.windSpeed) + ' mph', __self: this, __source: {fileName: _jsxFileName, lineNumber: 99}} )
text: Math.round(c.windSpeed) + ' mph', __self: this, __source: {fileName: _jsxFileName, lineNumber: 103}} )
)
, react.createElement('div', { className: "fr w-50" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 103}}
, react.createElement('div', { className: "fr w-50" , __self: this, __source: {fileName: _jsxFileName, lineNumber: 107}}
, react.createElement(IconWithData, {
icon: "sunset",
text: da, __self: this, __source: {fileName: _jsxFileName, lineNumber: 104}} )
text: da, __self: this, __source: {fileName: _jsxFileName, lineNumber: 108}} )
, react.createElement(IconWithData, {
icon: "low",
text: Math.round(d.temperatureLow) + '°', __self: this, __source: {fileName: _jsxFileName, lineNumber: 107}} )
text: Math.round(d.temperatureLow) + '°', __self: this, __source: {fileName: _jsxFileName, lineNumber: 111}} )
, react.createElement(IconWithData, {
icon: "high",
text: Math.round(d.temperatureHigh) + '°', __self: this, __source: {fileName: _jsxFileName, lineNumber: 110}} )
text: Math.round(d.temperatureHigh) + '°', __self: this, __source: {fileName: _jsxFileName, lineNumber: 114}} )
)
)
)