GithubHelp home page GithubHelp logo

lv7777 / githubcommiter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.47 MB

このリポジトリ進捗ダメ

Home Page: https://github.com/lv7777/GithubCommiteratChrome

HTML 13.45% JavaScript 84.07% CSS 2.47%

githubcommiter's People

Contributors

lv7777 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

githubcommiter's Issues

"githubを開く"ボタン

追加したいね。ブラウザアクションのhtmlの中に入れたい。
ボタンはアイコン付きで。

[filename_dispatch function branch]409 conflict

content_scripts.js:272 PUT https://api.github.com/repos/lv7777/translation/contents/www/google/co/jp/filenamefefe.html 409 (Conflict)

{
"message": "Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again.",
"documentation_url": "https://developer.github.com/v3/repos/contents/"
}

contentscript272はgetsha1(username, pass, repo, path, file).then(function ok(shaobj) {
のsend()

path +"/"+fileに変えた時

すでにtranslation/www/google/co/jpというファイルが存在している(translation/www/google/co/はディレクトリ)

なのでjpディレクトリを作れなかったんだと思われる。

[chrome&firefox common]github create repo apiが成功しない。

ファイルの作成をする前にリポジトリを作成しないといけないらしくてやってみたんだけど
Problems parsing JSONとか言われる。

あとココだけなんです。
ファイルのupdateやcommit shaを取ってくるのは出来るんです。

誰かお願いします。

chrome.strage.local can't run

                $ltime = $("#localtime");
                $gtime = $("#githubtime");
                $url = $("#url");
                $repo = $("#repo");
                $pass = $("#pass");
                $username = $("#username");
                let inputarray = [$ltime, $gtime, $url, $repo, $pass, $username];

                //:TODO localstrageが使えるかの確認

                //もしかしたらbackgroundscriptに投げることが必要かも
                for (let i of inputarray) {
                    // localStorage.setItem(i.attr("id"), i.val())
                    let key = i.attr("id");
                    let val = i.val();
                    chrome.storage.local.set({ key: val }, function () {
                        // ここにset終わったあとの処理
                        console.log(key + "    endsetting.js    " + val);
                    });

                    chrome.storage.local.get("username", function (result) {
                        console.log(result.username);
                        // create2(encodesrc,result.username,result.pass,"lastremote.txt");
                        console.log("?ddsetting");

setはできてる

getが出来ない。

[ES6]Mapを使用する

もしかしたらデータ構造の変更を防げるかもしれないって思ったけどあのデータ構造の変更は一回目で今回は2回目だから意味ないかもしれない。。。

ファイル名をurlから取れるようにしたい

先日の某失敗を受けてはてなブログを作る時もgithubcommiter適用したいんだけど確かアレの新しい記事ってurlじゃなくてタイトル名でファイル名を作らないと区別できないよね。
ということでファイル名を作る拡張関数を作りたい。

WebExtension化

もともとwebextension用に作っていたけどchromeextensionに変更した。
まあつまり移植する。

もちろん完成したらだけど

  • manifest.jsonの変更
  • chrome.strageの変更

デバッグがめんどい

もう解決済みだけど
デバッグはChromeでやること

あといちいちアイコンクリックしてデータ設定するのもめんどかった。
多分この場合はwebdriverが良いんだと思う。

CSSLintの使用

npm版がある。VSとecripse orionとかいうやつには拡張機能としてあるらしい。

正規表現とか現在保存しているオプションの表示

欲しい。どこに表示するかが問題。
settinghtmlにこれ以上入れると縦長になってつらい。。。
alertで表示するのが一番いいか。別にユーザーが押したいと思って押すんだし。誤操作とかも無いからね。

update時のAPIエラー

httpstatuscode:422

"message": "Invalid request.\n\n"sha" wasn't supplied.",

だっておwwwwww

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.