egg is now known as egg|zzz|egg
NathanKell|AWAY is now known as NathanKell
<RockyTV> one thing we need to consider when making the new frontend: https://spacedock.info/mod/1016/Tradu%c3%a7%c3%a3o%20para%20Portugu%c3%aas%20Brasileiro
<RockyTV> missing that ê
NathanKell is now known as NathanKell|Twitch
NathanKell|Twitch is now known as NathanKell
NathanKell is now known as NathanKell|NOMZ
NathanKell|NOMZ is now known as NathanKell
NathanKell is now known as NathanKell|Twitch
aradapilot has quit [Remote host closed the connection]
aradapilot has joined #spacedock
<Thomas> RockyTV: What do you mean with "save variables"?
NathanKell|Twitch is now known as NathanKell|AWAY
<VITAS> does steam workshop mods have different licenses and if not what kind of license are they using?
Snoozee has quit [Quit: CUT THE HARDLINES!!]
Snoozee has joined #spacedock
Snoozee is now known as Majiir
<RockyTV> VITAS, pretty sure you have to read the workshop agreements
* VITAS is lazy and hoped to someone tell him :D
<VITAS> crowdsourcing :D
<RockyTV> o/ btw
<Thomas> Well, the php vars are set through twig, and we add the js vars with jquery / vue
<Thomas> so {{ mod.name }} on {{ site_name }} becomes {{ mod.name }} on SpaceDock first, and DarkMultiPlayer on SpaceDock later
<RockyTV> what?
<Thomas> So you want to know how we would handle something like {{ mod.name }} on {{ site_name }}, where one var is a php var and the other one is a js var, right?
<RockyTV> yeah
<RockyTV> because previously {{ mod }} was a coffeescript var
<Thomas> Well, we parse {{ site_name }} with twig, and add the mod name later with java script
<Thomas> We could change the title to "on {{ site_name }}"
<Thomas> and later we set the title to mod.name + " " + currentTitle
<Thomas> with js
<VITAS> if you continue youre close to understanding my old frontend code :D
<VITAS> (old new)
<VITAS> i had similar problems where the php backend is unaware of vars and sessions
<VITAS> so it cant handle stuff
<VITAS> i was thinking about letting the php backend do the http req to the backend and forward it to the js frontend but that would result in another hop in the chain
<VITAS> and there are allready 3: db,sdb,reverse-proxy,js frontend
<Thomas> And it would screw sessions I think
<VITAS> no problem
<VITAS> the php stuff could mediate sessions
<VITAS> and you rarly travel between geolocations while using spacedock
<VITAS> andd if you do youll get logged out
<VITAS> i would have requested another api design if i had opted for it
<VITAS> the upside of such an design would also have been that we wouldnt have had any problems with cross site axaj requests
<VITAS> ajax
<RockyTV> why ajax when you can vue
<VITAS> vue does ajax or websockets
<RockyTV> why not websockets?
<VITAS> vue is no means of transfer
<VITAS> because of ports and proxys
<VITAS> websockets demand another prot to be accesable
<VITAS> so unless you controll the enviroment (e.g. lan) you should have ajax fallback for the core functions
* VITAS is a big fan of websockets
<VITAS> btw: now vue next stop angular? ;)
<RockyTV> nah
<RockyTV> vue is lightweight angular
<RockyTV> also, angular is messed up, take a look at their versioning!
<VITAS> i know
<VITAS> but you can do mobile apps with it?
<VITAS> but who would need spacedock mobile unlesss...
<VITAS> ...mobile games mods :D
<RockyTV> VITAS, let's do spacedock videos!
<RockyTV> check this out https://www.youphptube.com/
<VITAS> about or for?
<VITAS> im allready involved with that
<RockyTV> let's do a youtube for ksp
<VITAS> or just start by having a better spacedock where you COULD post videos
<VITAS> like letsplays or mod reviews
<VITAS> ....as im talkign about for a year now
<VITAS> :D
<VITAS> but all plans are well and good if there isnt the manpower for it
<VITAS> and atm there is hardly enough to keep it running as is
<RockyTV> I wish I could help with some bandwidth
<VITAS> bandwidth isnt the problem
<VITAS> developers and general help is needed
<RockyTV> we need to migrate to the new db
<RockyTV> backend*
<RockyTV> but we keep delaying it
<VITAS> we need to build the frontend
<Thomas> Without a frontend we cannot use the backend
<RockyTV> yeah
<RockyTV> then lets work on the frontend :)
<VITAS> RockyTV i want as much as you to have new features and a more stable code base that is actualy maintained
<VITAS> its up to you two to make that happen
<VITAS> i keep spacedock running and financed
<Thomas> RockyTV: I almost got the index page working with vue
<RockyTV> what went wrong?
<Thomas> Nothing directly, probably just bad english. I wanted to say that it is almost finished
<RockyTV> was it hard?
<Thomas> Not really, just a bit tedious
<RockyTV> why?
<Thomas> Because I also messed with twig a bit. and of course I had to rewrite the whole js we already had for that page
<RockyTV> okay
<RockyTV> push the changes when you're done so I can get a base to work with it
<RockyTV> Thomas, you know some python, right?
<Thomas> yeah
<RockyTV> okay
<RockyTV> I'm writing a telegram bot in python and I wanted to make it modular
<RockyTV> kinda like your qboid bot
<RockyTV> it's hard to explain, let me see if I can get something done
<SpaceDock> [OpenDock] StollD pushed 1 new commit to master: https://git.io/vQduF
<SpaceDock> OpenDock/master 2337418 Dorian Stoll: index.html vue.js edition...
<Thomas> Qboid is too modular.. It generates C# code at runtime because I refused to hardcode settings xD
<RockyTV> how can I pass a class/module as an argument?
<Thomas> in python?
<RockyTV> yeah
<RockyTV> right now I'm having trouble with this
<RockyTV> from mariachipy.commands import Ping
<RockyTV> ImportError: No module named 'mariachipy'
<Lartza> you pass classes just like everything else
<Lartza> pip install mariachipy?
<Lartza> :P
<RockyTV> it's my bot's module
<RockyTV> this is the dir structure:
<RockyTV> mariachipy
<RockyTV> commands/
<RockyTV> __init__.py
<RockyTV> ping.py
<RockyTV> __init__.py
<RockyTV> app.py
<Thomas> from mariachipy.commands.ping import Ping maybe?
<RockyTV> this worked: from commands.ping import Ping
<RockyTV> yay, got modularity to work!
<Thomas> If you want to go full qboid you could iterate over all .py files in a folder and load them dynamically :D
<Lartza> Or be sane and use a plugin library
<Lartza> Well depends I guess
<RockyTV> this regex is insane ^/(add|list|del)(?:@%s)?\s?([\w]+)?\s?([\w]+)?\s?(.+)?$
<Thomas> ^(?:(\S+)[:,]\s+)?s/((?:\\/|[^/])+)/((?:\\/|[^/])*)(?:/(\S+)?)?$
<VITAS> [what]{3}?(no|yes),it is!
egg|zzz|egg is now known as egg|nomz|egg
<SpaceDock> [OpenDock] StollD pushed 1 new commit to master: https://git.io/vQdXd
<SpaceDock> OpenDock/master 9dfedd4 Dorian Stoll: browse-list and other stuff vue-ified
egg|nomz|egg is now known as egg
NathanKell|AWAY is now known as NathanKell
Majiir is now known as Snoozee
pizzaoverhead has quit [Ping timeout: 201 seconds]
NathanKell is now known as NathanKell|Twitch
NathanKell|Twitch is now known as NathanKell|AFK
oeuf has joined #spacedock
egg has quit [Ping timeout: 204 seconds]
oeuf is now known as egg