dev
textPage 6 of 208
50 messages on this page
Friday, January 27, 2023
User 6ceaf4
Yes, please
User bddf69
Yeah possible :p
You're lookign to do some math with Dates if I understand the final question correctly?
User 6ceaf4
@User 22055452 can you add this function along with a timePassed inverting the >= to =< in this line:
Also, is this a thing?
https://futurestud.io/tutorials/get-number-of-seconds-since-epoch-in-javascript
https://futurestud.io/tutorials/add-seconds-to-a-date-in-node-js-and-javascript
if (ms >= 0) {?Also, is this a thing?
https://futurestud.io/tutorials/get-number-of-seconds-since-epoch-in-javascript
https://futurestud.io/tutorials/add-seconds-to-a-date-in-node-js-and-javascript
Saturday, January 7, 2023
User 6ceaf4
Glad to help.
User bddf69
Merged, it'll be on docs.csmm.app in a few minutes
User bddf69
Wee! Thanks for the contribution :D
User 6ceaf4
Ready to go @User 22055452
User 6ceaf4
found a
players progress instead of player's progress. Fixing it.User bddf69
Wanna do a final check before I merge @User 59898394 ?
https://deploy-preview-415--csmm-docs.netlify.app/en/CSMM/advanced-feature-guide-scoreboard.html#reacting-to-an-animal-kill-in-game
https://deploy-preview-415--csmm-docs.netlify.app/en/CSMM/advanced-feature-guide-scoreboard.html#reacting-to-an-animal-kill-in-game
User bddf69
Other than that, looks great!
User bddf69
Fixed a small issue with templating :p Documenting handlebars with Vuepress is.. interesting haha
Friday, January 6, 2023
User 6ceaf4
And I managed to edit the pr file without making a new fork! So proud of myself...
User 6ceaf4
Made it a little more beginner friendly explaining that the block of code can be added as a custom command, since the hook has a command section and that could lead to mistake as where to add those 4 lines.
User 6ceaf4
The page needs some clarifying, so hold your horses ๐
Thursday, January 5, 2023
User bddf69
@User 59898394 continuing here...
I think I found the issue. The docs file didn't have any extension, should be
.md. There was also a weird thing with how the website generator handles the {{ }}. I added a commit that fixes it.Locally, on my pc, it works. Let's see how it does in CI ๐
https://github.com/CatalysmsServerManager/docs/pull/415
https://github.com/CatalysmsServerManager/docs/pull/415
Monday, October 24, 2022
User 081ce1
love it
Sunday, October 23, 2022
User bddf69
Thanks again @User 17128172
User bddf69
Will be live somewhere later today I think :)
Friday, October 21, 2022
User bddf69
Thanks! That definitly helps :) I'll try and take a look at integrating this soon
User 079bc6
OK, but bear with me i m but a noob at this, i only edited the classes and added a div, and bootstrap did the rest
First i changed
Then added a div that contains the cards, every card item is inside a
Inside the card i added a classes so its change from this
At the end just added the class
Again i m a noob, i only added some classes from boostrap, i edited the shop.sejs but i don-t know if this is the file that generate the card hope this helps u.u
<div class="card-columns"> to <div class="rows"> this way the items are on row and have the same heightThen added a div that contains the cards, every card item is inside a
<div class="col-md-3 col-12 p-0"> </div> this make the card responsive and can add margin to cards so they look nice, can change the class col-md-3 (โฅ768px) to col-sm-3 (โฅ576px)Inside the card i added a classes so its change from this
<div style="text-align: center" class="card"> to this <div style="text-align: center" class="card mb-2 mx-1 border-secondary"> the classes add margin and border to the cards so they look nice on Mobil and pcAt the end just added the class
mx-auto to the card img class so it centers on the card <img class="card-img-top" to <img class="card-img-top mx-auto"Again i m a noob, i only added some classes from boostrap, i edited the shop.sejs but i don-t know if this is the file that generate the card hope this helps u.u
shop.sejs
SEJS โข 24.7 KB
User bddf69
Looks great!
i wanted to put it on suggestion but i don't have permission to put it there
See the last message in that channel :)
if you want ti can share the changes
That would be great! CSMM is open source, would you like to make a PR in the main repo with these changes? I can help you with this if you want
User 079bc6
and on phones
User 079bc6
Hello i wanted to put it on suggestion but i don't have permission to put it there so i m asking here if we can suggest a change in the html of the shop, i checked and you are using bootsrap, i change some classes to change the shop gallery window to make it look in orden, if you want ti can share the changes, there are some fast changes and make the shop look in order and is responsive to mobil phones
Saturday, September 24, 2022
User 6ceaf4
I can do math. Doing helpers is beyond me lol
User 882420
I started off by doing that and was like stuff that time to make another helper.
User 882420
Yeah I never got around to committing it sorry.
User 6ceaf4
No worries, I'm converting YYMMDDhhmm to integer by hand now lol
User 6ceaf4
Missing helper: "fromNow"
User 882420
Oh and then use datePassed to check if the date has passed as well.
User 882420
I have not committed it yet though.
User 882420
@User 59898394 Just had a look at my old messages and found the helper.
fromNow <ms> It adds ms to the current time and date then returns it as a string. So you would use it to get the future date and time then save it straight away.User 882420
I'll have to get my server back up and take a look.
User 6ceaf4
msToDHMSUser 6ceaf4
No problem Expostech. It seems like you used a couple of helpers "of your own", like one to convert dates to HMSS
User bddf69
Hmm no doesn't look like it's included, datePassed is though
https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/worker/util/Handlebars.js#L186
https://github.com/CatalysmsServerManager/7-days-to-die-server-manager/blob/master/worker/util/Handlebars.js#L186
User 882420
I'm pretty sure I didn't get around to committing that.
User 6ceaf4
was timeLeft added @User 22055452 ?
User 882420
@User 59898394 Hey mate, it's been ages since I've worked on the server manager and have forgotten how I went about storing the dates.
User 6ceaf4
Thanks, Cata. I think I have to ask @User 37515946 ... how do you store a future date, mate? I've been having no luck doing math with dates
User bddf69
Oh what I meant is that the
datepassed helper, internally calls Date.parse which is a Javascript function. There's no explicit date parsing in handlebars I think.You can pass a lot of things to
datepassed and it'll understand it thoughUser 6ceaf4
How do I use date parse? I'm getting missing helper for both dateparse and date.parse
Friday, September 9, 2022
User bddf69
Cheers @User 28294624 ! The Docker CI is failing but that's because you're an outside contributor and the secrets don't load then. It's not an issue because the build worked ^^
I'll merge it as soon as the rest of CI passes, will probably be live tonight somewhere
User a12f6e
FREE HAT!
User a12f6e
๐
User bddf69
But yeah totally, as time permits!
