Comments (12)
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.
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.
Ah, like that. If you need it now, tweak the generated PHP the API depends upon.
from api.
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.
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.
We can hardcode them in the source. They are not going to change and we dont plan adding new ones too often.
from api.
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.
Yeah nice idea. Whatever will be easier for @bebraw
from api.
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.
Did you end up adding some sort of metadata for this at the info.ini
s? I can take that in count at api-sync now.
from api.
Not yet.
We can have a hide = "true"
parameter, sounds good?
from api.
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)
- Version sorting HOT 10
- API returns no versions (urgent) HOT 5
- Move the API away from AppFog HOT 8
- Am I right to assume that I cannot get data for multiple librarys with one api call? HOT 4
- Searching by URL HOT 1
- jQuery failed to update latest beta1 HOT 2
- File paths HOT 14
- Incorrect author format for some CDNJS projects HOT 3
- pagination need? HOT 3
- The result order is not right HOT 3
- Default filename for specified version HOT 8
- API is not detecting new projects HOT 2
- Specify Content Security Policy? HOT 1
- API future HOT 3
- Add SRI to API HOT 1
- Add a download/hit count to the API HOT 7
- API endpoint down? HOT 2
- "bootstrap" alias is gone in v1 HOT 7
- Remove X-Requested-With
- Make sure logentries is utilized HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.