torus-tools / content Goto Github PK
View Code? Open in Web Editor NEWoperations related to content and dns cache
License: MIT License
operations related to content and dns cache
License: MIT License
When deploying a dev/test bucket, add a robots.txt to tell google to crawl none.
User-agent: *
Disallow: /
When deploying a production bucket change robots.txt to:
User-agent: *
Allow: /
Only add a robots.txt file if one doesnt already exist.
Add a in the upload method that will allow/disallow user agents depending if its prod/test
UPDATE
Make the update method (in the content module) recieve the file in params instead of using fs to get the file. The user might wanna get the file from somewhere else e.g. a github repo..
This should be moved from deploy into the deployCommand in a function called upload all files.
another module called uploadChangedFIles
let ext = filePath.substring(filePath.lastIndexOf('.') + 1);
let content_type = '';
let keyPath = filePath;
//this split might cause an issue if a child dir has the same name as parent
if(dir) keyPath = keyPath.split(dir+'/', 2)[1];
if(ext =='svg') content_type = 'image/svg+xml'
else if(ext =='jpg' || ext =='jpeg') content_type = 'image/jpeg'
use substr(0,indexOf) instead of split
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.