GithubHelp home page GithubHelp logo

gaiama / coding4gaiama Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 8.0 9.69 MB

🌱Source of Coding4.GaiAma.org as well as its packages

Home Page: https://coding4.gaiama.org/

License: MIT License

JavaScript 53.22% CSS 2.57% TypeScript 25.00% HTML 19.21%

coding4gaiama's Introduction

Coding4GaiAma

Build & Deploy

All Contributors

Sites

Packages

Not yet implemented

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Can Rau

💻 📖 🔌

MoSattler

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT GaiAma

coding4gaiama's People

Contributors

allcontributors[bot] avatar canrau avatar mosattler avatar muescha avatar peixian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

coding4gaiama's Issues

remark@next (13)

Hi!

remark is switching to a new parser internally (micromark, see remarkjs/remark#536 for more info).
From a quick glance at the code, it seems this plugin should be fine. However, it would be good to check that in the future (there is 13.0.0-alpha.0 published now, and one or two more will come before the release)

Error with Self-Hosting

I keep getting the following error when using self-hosting instead of the hosted goatcounter. Any ideas how to get rid of this?

error The GoatCounter plugin requires a page code. Did you mean to add it?

Thanks in advance!

gatsby-transformer-leasot: Allow other file types than "File"

I have created a plugin to parse directories only once which is adapted from gatsby-plugin-filesystem. Unofrtunatelly you have explicity set the source.internal.type to file, so I have no chance to pass them to gatsby-transformer-leasot.

I expect something like you did with sourceInstanceName, e.g.: internalType

Improve handling of referrer

It looks like right now aside from the configuration options, the referrer is only being set from document.referrer which works when the user gets to the site from an external source but not when they are navigating around the site. Also document.referrer doesn't change when navigating within Gatsby so if a user visits multiple pages they will all show the same external referrer. I don't think this is the behavior we want and it's not how it would behave on a traditional non SPA website.

Fortunately, I think an easy fix is we use the prevLocation parameter of onRouteUpdate. If it's not null then we send that as the referrer otherwise we send document.referrrer. (https://www.gatsbyjs.com/docs/browser-apis/#onRouteUpdate)

Something like:

settings.referrer = () =>
      window.goatcounter?.get_query?.('ref') ??
      window.goatcounter?.get_query?.('utm_source') ??
      prevLocation?.pathname ??
      document.referrer;

I'd be happy to submit a PR but wanted to get your thoughts on it first.

Thanks for this handy plugin!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.