iamdanfox / ghupdate Goto Github PK
View Code? Open in Web Editor NEWUpdate GitHub pages with wysiwyg and no git commands
Home Page: https://iamdanfox.github.io/ghupdate
Update GitHub pages with wysiwyg and no git commands
Home Page: https://iamdanfox.github.io/ghupdate
Hopefully this will get round some of the auth problems
https://github.com/github/fetch
It looks smaller and more reliable.
https://developer.github.com/v3/git/commits/#create-a-commit
Using the manual API, it seems like we'd need to create and save a blob, then update the tree, then create a commit...
It may be worth using an API wrapping library like Octokit.js instead.
Should check that the regex generated from the pattern
behaves correctly.
Use webpack to run loaders: http://webpack.github.io/docs/testing.html#compile-and-test
Maybe store the access token in localstorage?
start by getting rid of moment.js and spinkit
Simplest solution: some kind of config file.
CushyCMS mapped human-readable names paths. (e.g. 'Homepage' <-> index.html
)
Maybe ghupdate.json
?
Super cool but difficult solution... git attributes. Looks a bit too complex (lots of precedence options, walking through directory structure seems tiresome)
This button works, but users can't tell!
GH pages is very fast, but Heroku scales back the dynos and makes the first visitor slow.
Unfortunately GH pages doesn't have TLS (Heroku does...)
Need a good way to display the editable regions of the selected HTML page. At a first approximation, we can just parse out class='cushycms'
and display a new wysiwyg box for them.
Few react compatible editors exist already...
It would be nice to use a super lightweight router (maybe like the one from ampersand?).
Essentially the routes /:user/:repo/:path
should always match the values of the UserStore
, RepoStore
and FileStore
.
How hard can it be???
<div class='ghu-editable'>
<p>Real content</p>
</div>
<!-- other stuff ... -->
<Navigation />
https://github.com/petehunt/webpack-howto#9-async-loading
require.ensure([], function(){
var something = require('something');
// use something
});
Currently assumes all qwest requests work.
After logging in, I type in my username and select the repo just to be greeted with "Error loading file list".
Is there something I'm doing wrong?
Thanks
All api calls should be encapsulated somehow - perhaps we could ditch qwest
and use a dedicated GitHub api library? (see Octokit.js)
This will also make the styling problem (#1) easier
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.