dev

textPage 6 of 208
50 messages on this page
Friday, January 27, 2023
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Yes, please
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Yeah possible :p
You're lookign to do some math with Dates if I understand the final question correctly?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
@User 22055452 can you add this function along with a timePassed inverting the >= to =< in this line:
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
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Glad to help.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Merged, it'll be on docs.csmm.app in a few minutes
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Wee! Thanks for the contribution :D
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Ready to go @User 22055452
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
found a
players progress
instead of
player's progress
. Fixing it.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Other than that, looks great!
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Fixed a small issue with templating :p Documenting handlebars with Vuepress is.. interesting haha
Friday, January 6, 2023
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
And I managed to edit the pr file without making a new fork! So proud of myself...
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
The page needs some clarifying, so hold your horses ๐Ÿ™‚
Thursday, January 5, 2023
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Monday, October 24, 2022
Avatar for 081ce1ff2c6cdf482dbdf501d1dc14949ee188181953cd26246fff94828a74ef
User 081ce1
love it
Sunday, October 23, 2022
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Thanks again @User 17128172
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Friday, October 21, 2022
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Thanks! That definitly helps :) I'll try and take a look at integrating this soon
Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
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
<div class="card-columns">
to
<div class="rows">
this way the items are on row and have the same height
Then 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 pc
At 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

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
User 079bc6
No content
shop4.PNG

shop4.PNG

PNG โ€ข 76.0 KB

Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
User 079bc6
No content
shop3.PNG

shop3.PNG

PNG โ€ข 48.8 KB

Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
User 079bc6
and on phones
Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
User 079bc6
to this
shop2.PNG

shop2.PNG

PNG โ€ข 184.9 KB

Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
User 079bc6
it change shop from this
shop1.PNG

shop1.PNG

PNG โ€ข 225.6 KB

Avatar for 079bc617d06c4596b8dd6e2eb15a4e863a713fff014c4e777072084a5b48b2f4
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
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
I can do math. Doing helpers is beyond me lol
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
User 882420
I started off by doing that and was like stuff that time to make another helper.
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
User 882420
Yeah I never got around to committing it sorry.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No worries, I'm converting YYMMDDhhmm to integer by hand now lol
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Missing helper: "fromNow"
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
User 882420
Oh and then use datePassed to check if the date has passed as well.
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
User 882420
I have not committed it yet though.
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
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.
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
User 882420
I'll have to get my server back up and take a look.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
msToDHMS
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No problem Expostech. It seems like you used a couple of helpers "of your own", like one to convert dates to HMSS
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
User 882420
I'm pretty sure I didn't get around to committing that.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No content
unknown.png

unknown.png

PNG โ€ข 1.5 KB

Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
was timeLeft added @User 22055452 ?
Avatar for 8824204d34fee76f1f051c762fb24388fc6c1d4a38e0210fd1a6c9e5a0c1572e
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.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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 though
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
How do I use date parse? I'm getting missing helper for both dateparse and date.parse
Friday, September 9, 2022
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
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
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
FREE HAT!
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
๐Ÿ˜†
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
But yeah totally, as time permits!