These are chat archives for reactioncommerce/reaction

1st
Jul 2016
xinmit
@xinmit
Jul 01 2016 00:22

I want to add a couple of introduction page(no product in the page) on navbar, what's a good way to make it and responsive?

one option is to add in navBar.html. but, the responsive js does not pick up it

Kevin Kwon
@kvnkwon
Jul 01 2016 00:27
Hey @zenweasel , so I wanted to try a new project from scratch using the beesknees tutorial, and I just finished the adding fixtures part. When I started reaction and checked out localhost, I noticed that a lot of the site elements were missing but the products were showing. After clicking the product, I could see the URL change up top, but nothing was reflected on the page. When I clicked back on Chrome, all of a sudden I see all the elements correctly placed on the page when they were missing before.. What's happening, I can't seem to figure it out..
Brent Hoover
@zenweasel
Jul 01 2016 00:28
Are you using master?
Kevin Kwon
@kvnkwon
Jul 01 2016 00:28
yep
Brent Hoover
@zenweasel
Jul 01 2016 00:29
Hmm, I’ve never seen that behavior
Kevin Kwon
@kvnkwon
Jul 01 2016 00:29
I also tried running it in incognito mode
xinmit
@xinmit
Jul 01 2016 00:30

@zenweasel I want to add a couple of introduction page(static and no product in the page) on navbar, what's a good way to make it and responsive?

one option is to add in navBar.html. but, the responsive js does not pick up it

Brent Hoover
@zenweasel
Jul 01 2016 00:30
let me update my version of the project and try it
@xinmit I saw your question, unfortunately I don’t actually know the answer off the top of my head. Not super strong at the f/e stuff. May want to ping @mikemurray
xinmit
@xinmit
Jul 01 2016 00:34
@mikemurray hey mike, i have a question regarding customizing navbar, I want to add a couple of introduction page(static and no product in the page) on navbar, what's a good way to make it and responsive?
one option is to add in navBar.html. but, the responsive js does not pick up it
@zenweasel thanks
Kevin Kwon
@kvnkwon
Jul 01 2016 00:34
In the chrome console, I get two errors: Cannot find module 'jquery,' and failed to parse SourceMap.. Do they have anything to do with it?
Brent Hoover
@zenweasel
Jul 01 2016 00:35
Did you do meteor npm install?
Kevin Kwon
@kvnkwon
Jul 01 2016 00:35
Yep
Brent Hoover
@zenweasel
Jul 01 2016 00:35
Hmmm
Still updating my project. At little slow from Asia
I think Atmosphere is running on a Dell 300 under someone’s desk
Kevin Kwon
@kvnkwon
Jul 01 2016 00:36
Wouldn't be surprised lol
This problem is weird because the site works as intended once I click back
Are the other packages perhaps clashing with the one I made?
Brent Hoover
@zenweasel
Jul 01 2016 00:39
Do you have beesknees as the last item in your packages file?
Kevin Kwon
@kvnkwon
Jul 01 2016 00:39
Yup
Brent Hoover
@zenweasel
Jul 01 2016 00:40
Ok, one last check, did you try doing ./reaction reset?
Kevin Kwon
@kvnkwon
Jul 01 2016 00:40
yep
Brent Hoover
@zenweasel
Jul 01 2016 00:40
I just loaded it here, working fine although I am getting the Filed to parse SourceMap error
I realize that’s not super-helpful
Kevin Kwon
@kvnkwon
Jul 01 2016 00:42
Maybe something went wrong in the process of copying all the files in the products folder
I wasn't sure exactly what I would have to change so I just copied all the stuff in the beesknees project file on github, and replaced beesknees with my store name anytime I saw it
Brent Hoover
@zenweasel
Jul 01 2016 00:43
Yeah, I don’t see why that wouldn’t work
I figured a lot of people would do that
Did you update Meteor?
@valorloff You know, I am seeing that issue you were pointing out with cannot read structure of undefined now
Oh, @kvnkwon not sure if this would matter. But did you symlink the main.js file to the top of the application structure?
Kevin Kwon
@kvnkwon
Jul 01 2016 00:47
I just put it at the root reaction folder
Brent Hoover
@zenweasel
Jul 01 2016 00:48
Yeah, that should work
:thinking_face:
Did you delete reaction-sample-data?
Kevin Kwon
@kvnkwon
Jul 01 2016 00:50
Yea the folder and also line in meteor packages
Brent Hoover
@zenweasel
Jul 01 2016 00:53
Then I am sort of stumped. I might try with a fresh clone and incrementally build the file so you can see where it might be broken.
Kevin Kwon
@kvnkwon
Jul 01 2016 00:54
would it help if I pushed my code onto github, maybe you can try forking it to see a closer look?
Brent Hoover
@zenweasel
Jul 01 2016 00:55
Sure
yigubigu
@yigubigu
Jul 01 2016 02:01
how to login into admin ui
yigubigu
@yigubigu
Jul 01 2016 02:12
it takes me long time to restart reactioncommerce every time, the most time is spending in building packages
can I ignore those steps by pre-build packages?
Brent Hoover
@zenweasel
Jul 01 2016 02:13
Every time you make a change you need to rebuild the code
One of the things that Meteor is is a build tool.
yigubigu
@yigubigu
Jul 01 2016 02:14
that's I know, but currently i didn't change code
Brent Hoover
@zenweasel
Jul 01 2016 02:14
You can do meteor build and use that version
yigubigu
@yigubigu
Jul 01 2016 02:45
thanks
Mike Murray
@mikemurray
Jul 01 2016 03:21
@xinmit do you simply want to add things to the current navbar or make your own completly custom one?
hrath2015
@hrath2015
Jul 01 2016 03:49
@zenweasel need 1 quick help. In paypal express checkout getExpressCheckoutToken method for posting on paypal server code is response = HTTP.post(options.url, { question is where this HTTP in CAPS is defined not able to figure it out. Appreciate if u can help
It’s part of Meteor
hrath2015
@hrath2015
Jul 01 2016 03:52
I know http and when I type http in meteor shell it returns functions and response code
but when I do HTTP it says not defined
hence the question
does reaction has something built in for ignoring case
Brent Hoover
@zenweasel
Jul 01 2016 03:54
No, that’s how the docs show to use it. If you look at the example from the page I posted they are also using the all-caps version
HTTP.call("POST", "http://api.twitter.com/xyz",
          {data: {some: "json", stuff: 1}},
          function (error, result) {
            if (!error) {
              Session.set("twizzled", true);
            }
          });
hrath2015
@hrath2015
Jul 01 2016 03:55
thanks
Brent Hoover
@zenweasel
Jul 01 2016 03:55
Not sure how that works with the Meteor shell
Possibly that’s the node http?
Spencer Norman
@spencern
Jul 01 2016 04:12
yeah, I think it’s node
you’d probably have to export the meteor one
hrath2015
@hrath2015
Jul 01 2016 04:19
so in this case it is node? Because there is no import like import { HTTP } from 'meteor/http'
in express.js file
Spencer Norman
@spencern
Jul 01 2016 04:20
Which version of reaction are you on?
Brent Hoover
@zenweasel
Jul 01 2016 04:20
This version of Meteor doesn’t require imports for Meteor-built-ins
hrath2015
@hrath2015
Jul 01 2016 04:20
14
plugin one
dev branch
Spencer Norman
@spencern
Jul 01 2016 04:21
yeah, not sure then. We’ve done a bunch of HTTP stuff but haven’t migrated yet
I do remember having trouble with HTTP in the meteor shell
hrath2015
@hrath2015
Jul 01 2016 04:22
thanks
Brent Hoover
@zenweasel
Jul 01 2016 04:22
This version is the “compatibility” version so you have both Ecmascript modules and Meteor Globals
So it really should be importing HTTP there
We should. I expect that Aaron has aleady corrected it as I think he is working on that module right now
hrath2015
@hrath2015
Jul 01 2016 04:24
should be available as per doc. But as @spencern said he faced http issues in past. May be those are still there.
Brent Hoover
@zenweasel
Jul 01 2016 04:24
What problem are you trying to solve?
hrath2015
@hrath2015
Jul 01 2016 04:25
in a test app was calling http post to another sever from my server.
in method call
no console log on server whatsoever. on browser HTTP is not defined
hence the debug/analysis started
will continue to dig and report back if found something interesting.
doing it in test app outside reaction as it is faster to rebuild
Brent Hoover
@zenweasel
Jul 01 2016 04:30
Yeah, I’ve never had any issue with it. Was pretty straight-ahead
If you want me to look at it let me know
hrath2015
@hrath2015
Jul 01 2016 04:32
sure thanks a lot
Jeremy Shimko
@jshimko
Jul 01 2016 04:55
HTTP is Meteor's wrapper around request.
It’s essentially identical except for using Fibers under the hood.
And you shouldn’t need to import it. Meteor’s package exports a global
definitely all caps HTTP.call(‘GET’, url, options, callback)
difference between these approaches?
Brent Hoover
@zenweasel
Jul 01 2016 06:59
The main.js allows you globally override the layout.
Although that guide needs to be updated for 0.14
We are still in the process of solidifying the approach that will replace packages
"Changing the global layout"
citation "If you need to change the default layout values initial set in /client/config/defaults.js, you can customize the layout creating a file like custom/client/defaults.js"
Brent Hoover
@zenweasel
Jul 01 2016 07:02
So, what is your question?
Valery Orloff
@valorloff
Jul 01 2016 07:03
how to? )
main.js or custom/client/defaults.js?
Brent Hoover
@zenweasel
Jul 01 2016 07:04
If you want to change the global layout, you should follow the instructions there for changing the global layout. That is more up-to-date than the Customization Guide
Valery Orloff
@valorloff
Jul 01 2016 07:06
ok, follow Customization Guide
Brent Hoover
@zenweasel
Jul 01 2016 07:07
No, you should follow the instructions in the link you sent me
Valery Orloff
@valorloff
Jul 01 2016 07:07
oh
Brent Hoover
@zenweasel
Jul 01 2016 07:08
You are sort of moving into uncharted territory trying to follow the customization guide in 14. Some of it may work, some of it may not.
Valery Orloff
@valorloff
Jul 01 2016 07:09
this is featured approach, for future updates?
Brent Hoover
@zenweasel
Jul 01 2016 07:09
As I mentioned, the Customization Guide has not been updated for 14 yet. The new approach is still being solidified
It shouldn’t be radically different, but it will be different.
Valery Orloff
@valorloff
Jul 01 2016 07:11
and when you rewrite CGuide? next week?
Brent Hoover
@zenweasel
Jul 01 2016 07:12
It should be done by the 13th at the latest.
Valery Orloff
@valorloff
Jul 01 2016 07:13
:smile:
Valery Orloff
@valorloff
Jul 01 2016 09:27

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While building for web.browser:
imports/themes/default/styles/fonts.less:3: Unknown import:
{}/node_modules/font-awesome/less/font-awesome.less

Brent Hoover
@zenweasel
Jul 01 2016 10:25
Did you do meteor npm install?
Valery Orloff
@valorloff
Jul 01 2016 10:41
I thought I did....
Brent Hoover
@zenweasel
Jul 01 2016 10:42
Make sure you are running the most current code and give it another try
There was an issue with FA not getting installed but it’s been fixed
Valery Orloff
@valorloff
Jul 01 2016 10:42
how to check "most current code" ?
Brent Hoover
@zenweasel
Jul 01 2016 10:42
git pull
Valery Orloff
@valorloff
Jul 01 2016 10:44
maybe, i broken it by git init
Brent Hoover
@zenweasel
Jul 01 2016 10:47
If you are in the correct direcetory you should not have been able to git init
in the root of the reaction directory is what I mean
Valery Orloff
@valorloff
Jul 01 2016 10:53
started, with wrong icons and login requirement, i also have seen mention about this somewhere here
Valery Orloff
@valorloff
Jul 01 2016 11:00
error: Conflict: Constraint reactioncommerce:core@0.13.0 is not satisfied by
reactioncommerce:core 0.11.0.
change to reactioncommerce:core@0.14.0 ?
Brent Hoover
@zenweasel
Jul 01 2016 11:01
Is that in your package?
Valery Orloff
@valorloff
Jul 01 2016 11:01
in my custom
reactioncommerce:core-theme@2.0.0 remains same?
Brent Hoover
@zenweasel
Jul 01 2016 11:02
I would just remove that line. There is no core package anymore.
There are no packages in v14
Valery Orloff
@valorloff
Jul 01 2016 11:03
api.use("reactioncommerce:core@0.14.0"); remove?
jr
ok
oh, packages need to convert? any docs about it?
Brent Hoover
@zenweasel
Jul 01 2016 11:07
Those would be the docs that will be done by the 13th. I would recommend sticking with v13 and getting your package working, and then convert when v14 is released
If you are building a package similar to what is in the Customization Guide it should be relatively simple to convert
Stuff like register.js will largely stay the same
If you were going to be building a payment provider, then I would be working with v14 right now
I know that’s a little confusing
Valery Orloff
@valorloff
Jul 01 2016 11:12
big thanks for support!
but if i already done git pull and meteor npm install, my package will not work?
Valery Orloff
@valorloff
Jul 01 2016 11:20
git checkout to master v13 should be work? )
Brent Hoover
@zenweasel
Jul 01 2016 11:23
Yep
Valery Orloff
@valorloff
Jul 01 2016 12:02
Session.set("DEFAULT_LAYOUT", ".....Layout"); - don't working in v13?
Valery Orloff
@valorloff
Jul 01 2016 12:13

import { Session } from "meteor/session";

TypeError: Cannot call method 'set' of undefined
Valery Orloff
@valorloff
Jul 01 2016 12:43
ok, back to main.js
Kewerson Hugo
@kewersonhugo
Jul 01 2016 15:05
can someone tell me a website using reaction commerce? i want to see how it looks like
Jeremy Shimko
@jshimko
Jul 01 2016 15:06
getoutfitted.com
hrath2015
@hrath2015
Jul 01 2016 15:06
also hungrypeole.snaxter.ch
sorry it is hungrypeople.snaxter.ch
it is non english so use google translate page option will get an idead
Kewerson Hugo
@kewersonhugo
Jul 01 2016 15:09
thanks. :]
hrath2015
@hrath2015
Jul 01 2016 15:10
getoutfitted.com is at v13 of reaction commerce
Kewerson Hugo
@kewersonhugo
Jul 01 2016 15:10
what it means?
v13 is the lastest?
hrath2015
@hrath2015
Jul 01 2016 15:11
after v13 there is big refactoring happened. ES6 module structure
Inline with meteor 1.3
if u are starting then looking at both sites will give u the idea
Kewerson Hugo
@kewersonhugo
Jul 01 2016 15:14
when i load the page for the first time it seens a bit slow
hrath2015
@hrath2015
Jul 01 2016 15:17
maybe. for me it has been OK whenever tried.
Kewerson Hugo
@kewersonhugo
Jul 01 2016 15:17
ctrl+alt+r?
Valery Orloff
@valorloff
Jul 01 2016 15:18
yes, in first page load noticeable latency
meteor load bunch equipment to client )
Kewerson Hugo
@kewersonhugo
Jul 01 2016 15:19
i liked it