Conversation
Notices
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:37:17 JST meso hello @FloatingGhost @p @nekofag @alex @Moon @lain @lanodan what witchcraft does Pleromer do in order to display this? i have replaced literally every instance of this text in the Akkoma from-source install but my version only shows up on the first load and then when reloaded or opened again it shows the default again :hopeless_feelz: is there a setting for this? whats up with it -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 24-Jan-2023 10:37:09 JST Alex Gleason @meso @mergan @SuperDicq Modern JS is chunked, and loads multiple pieces of code into the browser on an as-needed basis.
Most likely the English language chunk gets loaded after the page is displayed, and overrides whatever is in the application code. So you can probably find and edit that chunk.
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:37:10 JST meso @mergan @SuperDicq i don't understand if the frontend is javascript in the end why can't i just edit the final javascript and have it work where is it hiding this information is it a binary or what??? -
Embed this notice
Mergan (mergan@pleroma.viridianpatriots.com)'s status on Tuesday, 24-Jan-2023 10:37:11 JST Mergan @meso @SuperDicq
Basically
git clone → modify → build → upload front-end
Make it yers mate :cat_si: -
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:37:12 JST meso @SuperDicq @mergan :wojak_hell: -
Embed this notice
SuperDicq (superdicq@minidisc.tokyo)'s status on Tuesday, 24-Jan-2023 10:37:13 JST SuperDicq @meso@asbestos.cafe @mergan@pleroma.viridianpatriots.com Yes, the language files are compiled into the frontend's javascript. You have to edit the language strings and rebuild the frontend to modify it.
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:37:14 JST meso @mergan src? oh damn I have to modify the source code? -
Embed this notice
Mergan (mergan@pleroma.viridianpatriots.com)'s status on Tuesday, 24-Jan-2023 10:37:15 JST Mergan @meso src/i18n/en.json -
Embed this notice
Mergan (mergan@pleroma.viridianpatriots.com)'s status on Tuesday, 24-Jan-2023 10:37:16 JST Mergan @meso Have ye checked the languages? I usually change mine there on the English one -
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:37:16 JST meso @mergan where's that? -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 24-Jan-2023 10:39:44 JST Alex Gleason @meso @SuperDicq @mergan That sounds like you have a Service Worker cache problem.
Edit sw-pleroma.js and add // yolo to the bottom of it. Your problem will be fixed.
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:39:45 JST meso @alex @SuperDicq @mergan I edited all the chunk files that contain the string, the change gets reversed to default somehow (how? where is it stored?) on reload, it only works if you reload without cache (Ctrl+Shift+R) -
Embed this notice
SuperDicq (superdicq@minidisc.tokyo)'s status on Tuesday, 24-Jan-2023 10:41:15 JST SuperDicq @alex@gleasonator.com @meso@asbestos.cafe @mergan@pleroma.viridianpatriots.com Really hacky but because we're editing compiled files anyway I approve.
Alex Gleason likes this. -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 24-Jan-2023 10:41:50 JST Alex Gleason @meso @SuperDicq @mergan He meant Transpiled ?️⚧️
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:41:51 JST meso @SuperDicq @alex @mergan compiled? they're javascript :over: -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 24-Jan-2023 10:46:16 JST Alex Gleason @meso @SuperDicq @mergan So when you Shift+Ctrl+R you get the updated version? And only after refresh you get the old version.
This is 100% a Service Worker cache problem. You can try to Shift+Ctrl+i and then click this:
(or just log in with a different browser you haven’t used before)
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:46:17 JST meso @alex @SuperDicq @mergan didn't work :/ -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 24-Jan-2023 10:47:40 JST Alex Gleason @meso @SuperDicq @mergan The other way to restart a Service Worker is to refresh an active tab, wait a few seconds, then close ALL tabs of the website. Then open a new tab for the website again.
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:47:41 JST meso @alex @SuperDicq @mergan yes but i added // yolo at the end of the sw pleroma js file and it still has this -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 24-Jan-2023 10:48:34 JST Alex Gleason @meso @SuperDicq @mergan That technically should be enough, unless there’s a sw-akkoma.js or something I don’t know about.
-
Embed this notice
meso (meso@asbestos.cafe)'s status on Tuesday, 24-Jan-2023 10:48:35 JST meso @alex @SuperDicq @mergan see
-
Embed this notice