-
Notifications
You must be signed in to change notification settings - Fork 502
issue/10107 #3025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue/10107 #3025
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,6 +32,7 @@ Entry.EXPANSION_BLOCK.weather = { | |||||||||||||||
| return; | ||||||||||||||||
| } | ||||||||||||||||
| Entry.EXPANSION_BLOCK.weather.date = new Date(); | ||||||||||||||||
| Entry.EXPANSION_BLOCK.weather.localDate = new Date().toLocaleDateString().replaceAll('.', '').replaceAll(' ', '') | ||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
| Entry.EXPANSION_BLOCK.weather.getData('week', 'Seoul', 'today'); | ||||||||||||||||
| Entry.EXPANSION_BLOCK.weather.getData('hour', 'Seoul', '00'); | ||||||||||||||||
| Entry.EXPANSION_BLOCK.weather.getData('now', 'Seoul'); | ||||||||||||||||
|
|
@@ -169,10 +170,7 @@ Entry.EXPANSION_BLOCK.weather = { | |||||||||||||||
| default: | ||||||||||||||||
| break; | ||||||||||||||||
| } | ||||||||||||||||
| return date | ||||||||||||||||
| .toISOString() | ||||||||||||||||
| .slice(0, 10) | ||||||||||||||||
| .replace(/-/g, ''); | ||||||||||||||||
| return date.toLocaleDateString().replaceAll('.', '').replaceAll(' ', ''); | ||||||||||||||||
| }, | ||||||||||||||||
| locationMap: { | ||||||||||||||||
| Seoul: { | ||||||||||||||||
|
|
@@ -1205,10 +1203,7 @@ Entry.EXPANSION_BLOCK.weather.getBlocks = function() { | |||||||||||||||
| parent: script.getField('LOCATION', script), | ||||||||||||||||
| sub: script.getField('SUBLOCATION', script), | ||||||||||||||||
| }; | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.date | ||||||||||||||||
| .toISOString() | ||||||||||||||||
| .slice(0, 10) | ||||||||||||||||
| .replace(/-/g, ''); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.localDate; | ||||||||||||||||
| let time = script.getField('TIME', script); | ||||||||||||||||
| // db에 저장하지 않으면서 00시가 없어져서 03시부터 가능.. | ||||||||||||||||
| if (time == '00') { | ||||||||||||||||
|
|
@@ -1589,10 +1584,7 @@ Entry.EXPANSION_BLOCK.weather.getBlocks = function() { | |||||||||||||||
| class: 'weather_legacy', | ||||||||||||||||
| isNotFor: ['weather_legacy'], | ||||||||||||||||
| async func(sprite, script) { | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.date | ||||||||||||||||
| .toISOString() | ||||||||||||||||
| .slice(0, 10) | ||||||||||||||||
| .replace(/-/g, ''); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.localDate; | ||||||||||||||||
| let time = script.getField('TIME', script); | ||||||||||||||||
| // db에 저장하지 않으면서 00시가 없어져서 03시부터 가능.. | ||||||||||||||||
| if (time == '00') { | ||||||||||||||||
|
|
@@ -2050,10 +2042,7 @@ Entry.EXPANSION_BLOCK.weather.getBlocks = function() { | |||||||||||||||
| isNotFor: ['weather'], | ||||||||||||||||
| async func(sprite, script) { | ||||||||||||||||
| const location = script.getValue('LOCATION', script); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.date | ||||||||||||||||
| .toISOString() | ||||||||||||||||
| .slice(0, 10) | ||||||||||||||||
| .replace(/-/g, ''); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.localDate; | ||||||||||||||||
| let time = script.getField('TIME', script); | ||||||||||||||||
| // db에 저장하지 않으면서 00시가 없어져서 03시부터 가능.. | ||||||||||||||||
| if (time == '00') { | ||||||||||||||||
|
|
@@ -2112,10 +2101,7 @@ Entry.EXPANSION_BLOCK.weather.getBlocks = function() { | |||||||||||||||
| const location = script.getValue('LOCATION', script); | ||||||||||||||||
| const type = | ||||||||||||||||
| Entry.EXPANSION_BLOCK.weather.propertyHourMap[script.getField('TYPE', script)]; | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.date | ||||||||||||||||
| .toISOString() | ||||||||||||||||
| .slice(0, 10) | ||||||||||||||||
| .replace(/-/g, ''); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.localDate; | ||||||||||||||||
| let time = script.getField('TIME', script); | ||||||||||||||||
| // db에 저장하지 않으면서 00시가 없어져서 03시부터 가능.. | ||||||||||||||||
| if (time == '00') { | ||||||||||||||||
|
|
@@ -2172,10 +2158,7 @@ Entry.EXPANSION_BLOCK.weather.getBlocks = function() { | |||||||||||||||
| isNotFor: ['weather'], | ||||||||||||||||
| async func(sprite, script) { | ||||||||||||||||
| const location = script.getValue('LOCATION', script); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.date | ||||||||||||||||
| .toISOString() | ||||||||||||||||
| .slice(0, 10) | ||||||||||||||||
| .replace(/-/g, ''); | ||||||||||||||||
| const date = Entry.EXPANSION_BLOCK.weather.localDate; | ||||||||||||||||
| let time = script.getField('TIME', script); | ||||||||||||||||
| // db에 저장하지 않으면서 00시가 없어져서 03시부터 가능.. | ||||||||||||||||
| if (time == '00') { | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line has a length of 121. Maximum allowed is 100.