ampbin / ampbin Goto Github PK
View Code? Open in Web Editor NEWAMPbin - Create, edit, save, share, and validate your AMP HTML
Home Page: https://ampb.in
License: MIT License
AMPbin - Create, edit, save, share, and validate your AMP HTML
Home Page: https://ampb.in
License: MIT License
Slide login/registration in from the side
Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry
Adjustable viewport size of the preview
/cc @lannka
Create a Cloud Function to remove unused database entries
Use CSS Grid Layout
There is a slight delay between the time the page loads and when the bin loads.
There might be another way to make this happen. Might need to change the order.
Currently users authenticate anonymously
A user may think it automatically saves after they make edits since a lot of editors do these days. So we should add a message somewhere after they make changes, it should come up and tell them they need to save.
Make it prettier
Build out notifications to notify users when actions successfully executed.
Implement a simple toaster popup
Creating another share button for sharing the static link.
Save includes line numbers.
Is your feature request related to a problem? Please describe.
This tool is so helpful to quickly demonstrate an idea or reproduce a bug etc. It will be great if it also support AMPHTML ads? This can be a cool place to craft and share AMPHTML ad creatives.
Describe the solution you'd like
AMPHTML ads is AMP with a different validator setup.
Other good to have feature: adjustable viewport size of the preview.
/cc @jasti
Add a hidden sidebar for a place to put more stuff
Figure out how to protect bins from others writing over them.
Updated database rules broke cloud functions on staging site.
Will continue to use the ID generated by Firebase. Bin name will be saved in the /bins/
location in the database.
Add darkmode
Update user_bins
to reflect:
"user_bins": {
"user_one": {
"bins": {
"one": true,
"two": true
},
"user_two": {
"bins": {
"two": true
}
}
}
Use Cloudflare for assets after they're deployed to production.
If you click two buttons, the second message gets appended to the first message.
Hi there,
First off, thanks so much for the project. I'd love to play with the code and I'm trying to run the app at my end, but some key things are missing.
I see that you're using firebase. Can you put some details on how to integrate my firebase instance to this? (I'd assume changing .firebaserc, but not sure if there are more places that need changing)
Thanks!
Jeff
Use Cloud Function via Hosting
Get a URL for the file you save
Add alerts to let user know something has happened. Show 'saved' somewhere when bin is saved.
Add AMP HTML validation check
db.collection("bins").where("user", "==", "longuserid")
.get()
.then(function(querySnapshot) {
querySnapshot.forEach(function(doc) {
// doc.data() is never undefined for query doc snapshots
console.log(doc.id, " => ", doc.data());
});
})
.catch(function(error) {
console.log("Error getting documents: ", error);
});
Should users be able to save over an existing bin?
Write documentation for everything.
When a new bin is created, have the cloud function write the AMP HTML to cloud storage. It'll also need to write metadata for the content type text/html
.
Then people can share their rendered AMP HTML without having the editor load the code.
Ideally, we can use a CNAME record to shorten the storage URLs. If not, then perhaps we can use Fastly.
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.