Commit Graph

351 Commits

Author SHA1 Message Date
Matt Isenhower
fdeabe535a Display the current Shifty Stations 2019-07-17 17:16:54 -07:00
Matt Isenhower
353558f9d3 Add FinalFest Shifty Station schedules 2019-07-17 13:46:41 -07:00
Matt Isenhower
3f25df1a21 Improve the appearance of tweet images by doubling the image scale factor 2019-05-12 13:22:17 -07:00
Matt Isenhower
325ff1c9a2 Fix weapon tweet getting cut off when Sheldon gets a little overzealous
This now dynamically increases the size of the generated screenshot and cuts off the tweet text to fit within 280 characters.
2019-04-03 10:48:11 -07:00
Matt Isenhower
527542d4cc Publish generated Twitter images for the schedule and gear tweets
#21
2019-01-07 11:25:22 -08:00
Matt Isenhower
61271483fb Update gear abilities from Inkipedia
This also fixes an issue with the gear updater script.
2019-01-03 09:21:08 -08:00
Matt Isenhower
776e3107f2 Fix some translation issues
Fixes #19.
2018-12-17 10:18:06 -08:00
Matt Isenhower
64c973349a Update gear data from Inkipedia 2018-10-12 17:07:20 -07:00
Matt Isenhower
f76ab3d732 Modify the schedule tweet when a global Splatfest is open in all regions
It would have been better to check this on the back end by using the same Vuex data store as on the front end, but there are currently some complications with bringing that in to Node (because of issues with ES modules) so we have to perform the check twice.
2018-10-09 13:54:37 -07:00
Matt Isenhower
1dff97bd46 Retrieve Splatfest ranking data for each region
This isn't currently displayed in the UI anywhere, but it will be useful for other people who wish to use it.
2018-10-04 15:13:50 -07:00
Matt Isenhower
927012572d Fix some issues with multi-region Splatfests
When restructuring Splatfests to handle an "all regions" display (by combining the list of Splatfests from each region) I had forgotten to account for Splatfests that have different times in each region. This change adds specific regional data (times and current state) as necessary.
2018-09-23 14:07:29 -07:00
Matt Isenhower
5743b6d1d8 Fix results banner in the Twitter screenshot 2018-09-23 14:59:54 -04:00
Matt Isenhower
6e1574a617 Fix v4 Splatfest results number formatting 2018-09-23 14:56:40 -04:00
Matt Isenhower
621b2bbe20 Fix idol results display 2018-09-20 16:49:50 -04:00
Matt Isenhower
d0f8f72f7f Add translations for new Splatfest results 2018-09-20 16:47:39 -04:00
Matt Isenhower
063dbb2b65 Add support for the new v4 Splatfest results format 2018-09-15 11:19:34 -07:00
Matt Isenhower
00d1fd94a7 Fix issues with buttons overlapping the dropdowns on the Calendars dialog
I think this was added to fix an issue on the Splatfests dialog but I can't reproduce that issue right now, so just disabling this for now.
2018-09-15 11:03:44 -07:00
Matt Isenhower
ac68376194 Fix Splatfest hero win count when there are unfinished Splatfests
Previously these were displaying as NaN when there was a Splatfest that was missing its results.
2018-09-15 10:27:51 -07:00
Matt Isenhower
7dccc723ae Improve new weapon display when there are a lot of new weapons 2018-09-13 23:29:30 -07:00
Matt Isenhower
ecf725034f Track Vue Router page views with GA 2018-09-07 18:09:53 -07:00
Matt Isenhower
6ccafde6e8 Revert "Fix a mistake, this should use the specified tweet time"
This reverts commit 25d711124e.
2018-09-07 17:03:51 -07:00
Matt Isenhower
e002322189 Add a 24-hour reminder tweet for Splatfests 2018-09-07 15:17:54 -07:00
Matt Isenhower
25d711124e Fix a mistake, this should use the specified tweet time 2018-09-07 15:17:27 -07:00
Matt Isenhower
d1f08f4271 Tweak wording in Salmon Run gear tweet 2018-09-07 15:01:47 -07:00
Matt Isenhower
5552a244e3 Set the default active class for router links
This makes the selected region in the Splatfest history dropdown appear correctly.
2018-08-31 10:47:46 -07:00
Matt Isenhower
00a9f68654 Add idol results to the Splatfest history dialog 2018-08-31 10:41:31 -07:00
Matt Isenhower
1a3e9f1d56 Fix the results banners in the Splatfest history dialog 2018-08-30 16:57:16 -07:00
Matt Isenhower
3917fa0e0c Fix a mistake 2018-08-30 16:42:35 -07:00
Matt Isenhower
90aef2ee47 Add flag icons to the Splatfest region indicators 2018-08-30 16:37:53 -07:00
Matt Isenhower
c83619108a Show a list of regions for each Splatfest 2018-08-30 16:02:23 -07:00
Matt Isenhower
5ece45a457 Add an option to view Splatfest history for all regions
This also changes the region selector so it's based on routes.
2018-08-30 15:46:01 -07:00
Matt Isenhower
fa037453fc Switch to fetch() to remove axios dependency
This saves 15kb in the modern build.
2018-08-26 11:01:57 -07:00
Matt Isenhower
a468fa0ece Update other JS dependencies 2018-08-26 10:36:03 -07:00
Matt Isenhower
51c7d71724 Add routes for the schedule popups
This also switches to using absolute links for Splatnet images to fix issues with deep links (e.g., /schedules/regular). It's not a problem for screenshots anymore since we're using an actual HTTP server to server those now.
2018-08-26 09:48:10 -07:00
Matt Isenhower
d2c1d2b527 Convert site to use Vuex to manage its state
This puts all the SplatNet data and other parameters in a centralized store (rather than passing down everything from a top-level component via props).
2018-08-25 14:22:02 -07:00
Matt Isenhower
0088442e7a Fix an issue with the Salmon Run box border 2018-08-01 14:44:50 -07:00
Matt Isenhower
2149043204 Fix issues with test Splatfest image generation
This is a bit hacky but it works for now.
2018-08-01 13:06:20 -07:00
Matt Isenhower
37ced57d0e Use a local HTTP server for Chrome screenshots instead of file:// URLs
After switching to Vue CLI, script/style URLs in generated HTML files are now absolute instead of relative. This is generally a good thing, but it causes issues when trying to view pages with file:// URLs. Starting up a local HTTP server just makes everything easier here.
2018-07-31 17:23:06 -07:00
Matt Isenhower
940bf64ddc Reorganize some files 2018-07-31 15:58:20 -07:00
Matt Isenhower
44bc51f0a0 Disable language chunks to fix build issues
We don't need to prefetch all the languages on every page load, but there are currently some issues with modifying webpack plugin configs when using the --modern build option.
2018-07-31 14:10:05 -07:00
Matt Isenhower
3cfec6d8f2 Use Vue CLI to build assets 2018-07-31 12:14:27 -07:00
Matt Isenhower
acdf589d52 Fix occasional issues when loading Splatnet data for the first time
This now uses the synchronous version of mkdirp everywhere.
2018-07-27 11:42:42 -07:00
Matt Isenhower
8f2bc6d5cd Reorganize source files in preparation for transition to vue-cli
The biggest changes here include splitting the server-side JS into multiple directories (under /src/app), moving all web content to /src/web, and compiling the web app to /dist instead of /public. This layout makes more sense overall, and more closely mirrors what is used for vue-cli v3 projects.
2018-07-27 11:40:27 -07:00
Matt Isenhower
50460e8fa4 Fix issues with clicking calendar links on iOS 2018-07-01 18:08:56 -07:00
Matt Isenhower
27620ba647 Add a calendar dialog with links to the calendar feeds
#14
2018-07-01 13:21:26 -07:00
Matt Isenhower
61a20d9a0d Add a tweet for when a Splatfest closes 2018-07-01 11:10:30 -07:00
Matt Isenhower
7b3905da61 Fix Salmon Run tweet mystery weapon detection 2018-07-01 10:39:07 -07:00
Matt Isenhower
cfb0a03a5a Fix display issue with weapons being cut off when 4 are released at once 2018-07-01 10:35:13 -07:00
Matt Isenhower
a858fdde05 Add a 404 page 2018-06-16 13:23:51 -07:00
Matt Isenhower
43455d888f Use Vue Router for the different homepage views
This enables links like /about, /splatnet, and /splatfests. I'm going to have to decouple some things from the main app view in order to use router components properly, but this handles the basic needs for now.
2018-06-16 12:53:27 -07:00
Matt Isenhower
2f94dfe23e Add support for potential new Salmon Run special weapons
Nintendo changed the way "random" weapons appear for Salmon Run. Previously, these were just listed as "null" values, but now they have a new "coop_special_weapon" key with an image and name. This change adds support for downloading images and localized names for these weapons just in case any special weapons appear here in the future.
2018-06-16 11:40:03 -07:00
Matt Isenhower
d914bb2f61 Fix some issues with the Salmon Run updater caused by JSON changes 2018-06-14 09:18:13 -07:00
Matt Isenhower
b3f39bfdce Fix a potential issue with Salmon Run mystery weapons
I'm not sure how mystery weapons will appear with the new JSON format, but this should prevent issues in case the base weapon object is set to null.
2018-06-14 08:58:10 -07:00
Matt Isenhower
452fb89e00 Update Salmon Run weapons for new JSON format 2018-06-14 08:56:29 -07:00
Matt Isenhower
ad70899e8e Move iCal code to the main updater and add Splatfest calendar files 2018-06-07 13:59:04 -07:00
Matt Isenhower
0275c83c22 Merge remote-tracking branch 'ticky/icalendar-schedules' 2018-06-07 11:28:29 -07:00
Matt Isenhower
73c0670907 Update original gear data from Inkipedia (again) 2018-06-07 11:26:30 -07:00
Matt Isenhower
c1bc1b4bea Update original gear data from Inkipedia 2018-05-03 09:40:57 -07:00
Matt Isenhower
cef292c424 Fix Splatfest result display with new precision
Splatfest result values are now reported with two decimal points. A value of "5427" means 54.27%.
2018-04-24 19:36:30 -07:00
Matt Isenhower
c8710b2baa Revert "Temporary: Use smaller weapon boxes for the announcement of 4 new weapons"
This reverts commit 4684e8d940.
2018-04-24 19:30:30 -07:00
Matt Isenhower
4684e8d940 Temporary: Use smaller weapon boxes for the announcement of 4 new weapons 2018-04-24 19:24:20 -07:00
Jessica Stokes
a9e15b596b
Add functionality to export co-op schedules in iCalendar format 2018-04-04 18:15:54 -07:00
Matt Isenhower
3f1ca22eaf Fix Chicken vs. Egg Splatfest images 2018-03-13 09:31:51 -07:00
Matt Isenhower
19bc5081d7 Modify Splatfest tweets to better handle multi-region Splatfests
I had previously updated this to handle global Splatfests, but the current Splatfest is only in NA/EU (and not JP) so it wasn't detected with the previous code.
2018-03-09 18:40:16 -08:00
Matt Isenhower
712dac874f Fix a bug with the short time format 2018-03-04 19:32:38 -08:00
Matt Isenhower
0025c5b319 Change Salmon Run tweet wording when the rotation includes mystery weapons 2018-03-02 18:52:12 -08:00
Matt Isenhower
b14ded81b8 Update wording on "new stage" tweets 2018-03-02 18:47:58 -08:00
Matt Isenhower
783b2ed7b4 Display a message in the "previous Splatfests" dialog when results aren't available yet 2018-03-02 18:46:49 -08:00
Matt Isenhower
f62f20f08f Improve German translations
Closes #12.
2018-03-02 18:45:33 -08:00
Matt Isenhower
57a65b77a7 Use short Splatfest team names on mobile 2018-02-04 11:48:26 -08:00
Matt Isenhower
fecded07d6 Splatfest box: Fix an issue with the team name labels when displaying results
Bulma adds a margin on .columns:not(:last-child).
2018-02-04 11:48:11 -08:00
Matt Isenhower
d3e464e7cd Include the team names in the Splatfest announcement tweet 2018-02-04 11:39:15 -08:00
Matt Isenhower
79dd022159 Use the long name for Splatfest teams 2018-02-04 11:35:05 -08:00
Matt Isenhower
1249643445 Splatfest history dialog: scroll to the top when changing regions 2018-02-03 11:53:56 -08:00
Matt Isenhower
3f9d65f308 Fix a mistake 2018-02-03 11:53:35 -08:00
Matt Isenhower
8a22193bda Add Splatfest history dialog
Closes #11.
2018-02-03 10:44:40 -08:00
Matt Isenhower
4fe925752f Add some padding around the name of Salmon Run gear 2018-02-01 09:02:07 -08:00
Matt Isenhower
2f0cfcfb8e Re-enable the blur on the Splatfest image when showing results
The Chrome bug in issue #6 appears to be fixed now.
This reverts commit 0b2ea67dac.
This also disables the blur in screenshot mode.
Closes #6.
2018-01-30 17:00:10 -08:00
Matt Isenhower
6086f2c1f3 Show Splatfest results for 3 days (instead of just 2) 2018-01-30 16:51:19 -08:00
Matt Isenhower
cb6faef647 Fix issues with missing Splatfest vote/win numbers
Unfortunately, Nintendo has removed this data from SplatNet. I'm leaving this in here for now though in case it comes back.
2018-01-30 16:50:18 -08:00
Matt Isenhower
83fed268e2 Revert "Force cache busting on the Splatfest image"
This reverts commit 8b0c1641f4.
The relevant issue was fixed a while ago so we don't need this anymore.
2018-01-24 08:45:09 -08:00
Matt Isenhower
479bf4cfba Fix an issue where some gear displayed the wrong name
The "Annaki Blue Cuff" and "Moist Ghillie Helmet" both share the same ID (7010), but they are of different kinds. I didn't realize gear of different kinds could share the same ID, so the localization code didn't take this into account.
This change also makes the localization code work with multi-part IDs.
2018-01-12 16:26:43 -08:00
Matt Isenhower
da59394901 Update original gear data 2018-01-12 11:25:44 -08:00
Matt Isenhower
2bfc784a84 Improve tweets for global Splatfests 2018-01-12 11:17:59 -08:00
Matt Isenhower
3bd1e688f1 Tweak wording on the "new stage" tweet 2018-01-12 11:17:53 -08:00
Matt Isenhower
12fc03f55e Tweak wording in "new weapon" tweet 2018-01-07 12:07:31 -08:00
Matt Isenhower
f0ebdb8db1 Add some more German translations
#9
2017-12-13 10:54:36 -08:00
Matt Isenhower
9105888ea2 Localize "original gear" text 2017-12-12 18:18:47 -08:00
Matt Isenhower
0069ed622c Add German translations (provided by GitHub user lolametro)
#9
2017-12-12 18:16:22 -08:00
Matt Isenhower
2f4947690c Continue trying other requests even if one fails 2017-12-12 18:12:56 -08:00
Matt Isenhower
31470f5cc1 Add monthly Salmon Run gear tweet
Closes #7.
2017-12-10 17:43:51 -08:00
Matt Isenhower
a9d46c1600 Add total number of votes/wins for each team in the Splatfest results 2017-12-10 17:16:48 -08:00
Matt Isenhower
9c92314a36 Simplify Splatfest winner determination
We don't actually need to calculate this because it's included in the data retrieved from SplatNet.
This also renames the "splatfest.results.votes" translation key to make it consistent with the other keys.
2017-12-10 17:06:45 -08:00
Matt Isenhower
146dad3554 Add a shadow to the winner marks in the Splatfest results 2017-12-10 16:53:27 -08:00
Matt Isenhower
c430074885 Add winner info to the Splatfest results tweet 2017-12-09 13:19:31 -08:00
Matt Isenhower
d0c8a41400 Simplify the Splatfest results box HTML and display the winner name 2017-12-09 12:48:40 -08:00
Matt Isenhower
8b0c1641f4 Force cache busting on the Splatfest image
There was an issue with the NA Splatfest image download, adding this in for now just to make sure nobody has a cached version of the old one.
2017-12-09 09:31:27 -08:00
Matt Isenhower
cb11dbfda1 Fix issues that prevented the Splatfest images from downloading
It was trying to encode the images as JSON and errors were being discarded silently.
2017-12-09 09:21:25 -08:00
Matt Isenhower
bd2b60ddf2 Fix some issues with the Russian translations
There should actually be three plural forms.
2017-12-06 21:08:01 -08:00
Matt Isenhower
370fd0a1dc Fix issues with the dropdowns on mobile
v-click-outside uses the "touchstart" event to detect clicks/touches outside of the specified element on mobile. Since touchstart occurs at the beginning of the touch and "click" occurs at the end, the menu was being hidden before the click event could go through.
This actually may have still worked if I had used "touchend" but it looks better for the menu to stay open until the touch ends, so @touchstart.stop prevents the event from propagating up to v-touch-outside.
2017-12-06 21:00:05 -08:00