Giter Site home page Giter Site logo

Allow to hide projects per CDN about api HOT 12 CLOSED

jsdelivr avatar jsdelivr commented on May 23, 2024
Allow to hide projects per CDN

from api.

Comments (12)

bebraw avatar bebraw commented on May 23, 2024

Why do you want to hide projects?

I'll need to think about the implementation a little. Maybe this would be a good time to move to a two-tier architecture where one part deals with syncing data to database and the other depends the same data. Latter represents the current solution except we sync per server.

from api.

jimaek avatar jimaek commented on May 23, 2024

Example jsdelivr/jsdelivr#692
We have some other projects like this one too.
And since we plan using this API for our new website we will need a way to hide them from the frontend.

from api.

bebraw avatar bebraw commented on May 23, 2024

Ah, like that. If you need it now, tweak the generated PHP the API depends upon.

from api.

jimaek avatar jimaek commented on May 23, 2024

Yeah for now its not a problem. But once we switch from the PHP source we will need to remember to add this functionality.

from api.

bebraw avatar bebraw commented on May 23, 2024

True.

I wonder how this will work out with AppFog in a tidy way. I suppose I could have an environment variable there with , delimiter. Then you would set something like JSDELIVR_EXCLUDE = highstocks,foobar. If there are a lot of excludes this could get a little painful.

from api.

jimaek avatar jimaek commented on May 23, 2024

We can hardcode them in the source. They are not going to change and we dont plan adding new ones too often.

from api.

tomByrer avatar tomByrer commented on May 23, 2024

Or add another info.ini field, hide, where the default is no (even is not there), & the manual override hide=true makes for easy filtering?

from api.

jimaek avatar jimaek commented on May 23, 2024

Yeah nice idea. Whatever will be easier for @bebraw

from api.

bebraw avatar bebraw commented on May 23, 2024

Or add another info.ini field, hide, where the default is no (even is not there), & the manual override hide=true makes for easy filtering?

Let's go with that. I was just about to propose the same after I thought through it properly. This approach makes a lot of sense given it's meta information that's useful for others too.

The only gotcha I can see is that this applies only to jsDelivr but that probably isn't much of a problem yet.

from api.

bebraw avatar bebraw commented on May 23, 2024

Did you end up adding some sort of metadata for this at the info.inis? I can take that in count at api-sync now.

from api.

jimaek avatar jimaek commented on May 23, 2024

Not yet.
We can have a hide = "true" parameter, sounds good?

from api.

tomByrer avatar tomByrer commented on May 23, 2024

Could have used this to hide a folder; a version was mistaken as v1.1 where it really was v1.0.4: mailcheck/mailcheck#81

I also can see hiding individual files in a folder useful, that would be phase 2 I assume. Though should the API then be
hide = "all"
hide = "badFileInProduction.js"

from api.

Related Issues (20)

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.