1. 15 Oct, 2020 6 commits
    • peterh-gr's avatar
      Fixed asset path to PayPal image · c215f11c
      peterh-gr authored
      c215f11c
    • peterh-gr's avatar
      Updated to correct lego commit · eac32f8e
      peterh-gr authored
      I didn't have the repositories updated correctly when I did the last
      one.
      eac32f8e
    • peterh-gr's avatar
      Fixed header image URL · b1646559
      peterh-gr authored
      b1646559
    • peterh-gr's avatar
      Use asseturl and relative paths for asset files · f0978e14
      peterh-gr authored
      It wasn't working on staging because it lives in a sub-directory and
      the asset paths were all absolute. This switches to use the asseturl
      filter for all the assets in the template. There's one image asset for
      the credit cards that's hardcoded in the JS, I don't have a good way to
      use asseturl on that right now, so I've just hardcoded it to the path
      asseturl would generate. In the future it would probably be best to
      figure out how to do asseturl for images inside the Javascript.
      f0978e14
    • Hiro's avatar
      Remove .htaccess · d41305df
      Hiro authored
      d41305df
    • peterh-gr's avatar
      Separated JS build from lektor build · 74b257b7
      peterh-gr authored
      Hiro is having problems getting the build machine to work with node
      and/or yard, so this sets things up so we can build the JS on dev
      machines and check that in and then have the lektor build just use the
      JS from the repository instead of trying to build it on the build
      machine.
      74b257b7
  2. 13 Oct, 2020 3 commits
    • peterh-gr's avatar
      Removed .htaccess-membership and lego · 9b4883d3
      peterh-gr authored
      .htaccess-membership was only necessary on the tpo site which this site
      was cloned from.
      
      I rebased the lego branch, so this needed to be updated.
      9b4883d3
    • peterh-gr's avatar
      Updated to latest lego · 4f0a613c
      peterh-gr authored
      This new lego has the packages installed locally.
      4f0a613c
    • peterh-gr's avatar
      Added node_modules · b4e3ec1d
      peterh-gr authored
      We'd like to not download packages from the internet on the build
      machine, so we are including all the packages here.
      b4e3ec1d
  3. 09 Oct, 2020 5 commits
  4. 02 Oct, 2020 1 commit
  5. 30 Sep, 2020 1 commit
  6. 29 Sep, 2020 5 commits
  7. 25 Sep, 2020 1 commit
  8. 24 Sep, 2020 1 commit
  9. 23 Sep, 2020 1 commit
  10. 22 Sep, 2020 1 commit
  11. 21 Sep, 2020 2 commits
    • peterh-gr's avatar
      Refactored campaign counters · a94610ca
      peterh-gr authored
      I wanted to reduce the amount of props passing between the components
      and combine the character component into one, simpler component.
      
      We want the counter to keep updating indefinitely on the page. It should
      check for new totals every 5 seconds.
      
      Issue #48277
      a94610ca
    • peterh-gr's avatar
      Corrected Stripe key for staging · 9aebaac0
      peterh-gr authored
      The staging.donate.torproject.org uses the test key in the
      "torproject.org" account, not the test key in the "Tor Project
      Donations" account (which is the account they use for real donations)
      for some reason.
      9aebaac0
  12. 19 Sep, 2020 2 commits
  13. 18 Sep, 2020 3 commits
  14. 17 Sep, 2020 2 commits
  15. 16 Sep, 2020 2 commits
    • peterh-gr's avatar
      Cleaned up some javascript stuff · 11631615
      peterh-gr authored
      Added 'Accept: application/json' to the fetch headers which causes Slim
      to return errors as JSON so we can output the errors nicely.
      
      Added --no-hmr to the parcel watch because it's not working and I don't
      want to spend time to figure it out right now.
      
      Moved all the Javascript in donate-form out of the div that gets used
      for the React component because that gets entirely replaced by the React
      component which has been working, but I think it's weird and for
      debugging its nicer if you can see the original Javascript in the DOM in
      the browser.
      11631615
    • peterh-gr's avatar
      Added redirect URL field to donate page · b5b85c4f
      peterh-gr authored
      We want to be able to redirect to a different thank you page for some
      donate pages. It will default to /donate-thank-you, but otherwise you
      can put in any full URL.
      
      Issue #48274
      b5b85c4f
  16. 15 Sep, 2020 1 commit
  17. 11 Sep, 2020 1 commit
  18. 09 Sep, 2020 2 commits
    • peterh-gr's avatar
      Fixed PayPal · 0e45020c
      peterh-gr authored
      It needed to be modified to permit cookies in the cross-site requests
      with fetch and also needed to use the donateProccessorBaseUrl for
      calling the endpoints on the donate site.
      
      Also removed some of the pre-react js files that we don't need any more.
      
      Issue #47134
      0e45020c
    • peterh-gr's avatar
      Updated to rebased lego donate branch · bfec50af
      peterh-gr authored
      bfec50af