├── icon.ico ├── public ├── favicon.ico ├── card-image.png ├── card-image-clear.png └── index.html ├── src ├── img │ └── setting.png ├── Redux │ ├── store.js │ ├── actions.js │ └── reducers.js ├── App.css ├── App.js ├── index.js ├── Body.jsx ├── Setting │ ├── Setting.jsx │ ├── Language.jsx │ ├── Usage.jsx │ ├── MessageRegister.jsx │ └── Register.jsx ├── Generator │ ├── Generator.jsx │ ├── Emoji.jsx │ ├── Reason.jsx │ ├── Modifier.jsx │ ├── Template.jsx │ ├── Result.jsx │ ├── Verb.jsx │ └── Object.jsx ├── electron-starter.js ├── util │ ├── util.js │ └── aws.js ├── data │ ├── emoji.json │ └── template.json ├── serviceWorker.js └── bootstrap.min.css ├── .env.production ├── .env.development ├── .gitignore ├── docs ├── Function.md └── README.md ├── LICENSE └── package.json /icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akatsuki105/git-commenter/HEAD/icon.ico -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akatsuki105/git-commenter/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/card-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akatsuki105/git-commenter/HEAD/public/card-image.png -------------------------------------------------------------------------------- /src/img/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akatsuki105/git-commenter/HEAD/src/img/setting.png -------------------------------------------------------------------------------- /public/card-image-clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akatsuki105/git-commenter/HEAD/public/card-image-clear.png -------------------------------------------------------------------------------- /.env.production: -------------------------------------------------------------------------------- 1 | # production 2 | REACT_APP_AWS_API_URL="https://r97kh36jm8.execute-api.ap-northeast-1.amazonaws.com/git-commenter-v1" 3 | -------------------------------------------------------------------------------- /.env.development: -------------------------------------------------------------------------------- 1 | # development 2 | REACT_APP_AWS_API_URL="https://r97kh36jm8.execute-api.ap-northeast-1.amazonaws.com/git-commenter-v1" 3 | -------------------------------------------------------------------------------- /src/Redux/store.js: -------------------------------------------------------------------------------- 1 | import { createStore } from "redux"; 2 | import reducers from "./reducers"; 3 | 4 | const store = createStore(reducers); 5 | 6 | export default store; -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | #root { 2 | background-color: #303030; 3 | color: aliceblue; 4 | min-height: 100vh; 5 | } 6 | 7 | #setting-icon { 8 | position: fixed; 9 | bottom: 10px; 10 | right: 10px; 11 | } 12 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import Body from "./Body"; 3 | import { BrowserRouter as Router } from "react-router-dom"; 4 | import "./App.css"; 5 | 6 | class App extends Component { 7 | 8 | render() { 9 | return ( 10 | 11 | 12 | 13 | ); 14 | } 15 | } 16 | 17 | export default App; 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .lock 8 | 9 | # testing 10 | /coverage 11 | 12 | # production 13 | /build 14 | /deploy.bat 15 | /deploy.sh 16 | 17 | # misc 18 | .DS_Store 19 | .env.local 20 | .env.development.local 21 | .env.test.local 22 | .env.production.local 23 | 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | import "./bootstrap.min.css"; 5 | import { Provider } from 'react-redux'; 6 | import store from './Redux/store'; 7 | 8 | import * as serviceWorker from './serviceWorker'; 9 | 10 | ReactDOM.render( 11 | 12 | 13 | , 14 | document.getElementById("root")); 15 | 16 | serviceWorker.unregister(); 17 | -------------------------------------------------------------------------------- /docs/Function.md: -------------------------------------------------------------------------------- 1 | # 1.2.0 2 | 3 | ### 予定(Desktop版) 4 | - Setting画面のUIの改善 5 | - dynamoからの待ち時間中にロゴ画面でも用意しておきたい 6 | - 選んだ動詞でコミット文章の文法がだいたい決まっている気がする テンプレの動詞を選んだら小さく例文を表示することで英語が苦手な人にも対応したい 7 | - VSCodeの拡張機能とかも作りたい 8 | - なるべく画面内の情報量を多くする 9 | - 文字をもう少し小さくしても大丈夫そう 10 | - modifierの欄にテンプレ選択肢を作り選んだ動詞によって前置詞のテンプレを作りたい 例: add => into A 11 | 12 | #### まだ & 優先順位低い 13 | - [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.3/)の規格に対応したい 14 | - template.txtを出力する機能を作ってもいいかも 15 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # Git Commenter 2 | 3 | ## 📋 Abstraction 📋 4 | This is a Desktop App that helps to create Git's Commit Message. 5 | 6 | If you write an Commit Message that is easy to understand, others can easily understand the contents of the commit. 7 | 8 | In addition, the Commit Message created here can be easily copied and pasted. 9 | 10 | Please visit the following URL where this repository is hosted. 11 | 12 | ![sample](https://i.imgur.com/BRGuWAM.gif, "サンプル") 13 | 14 | ## Release 15 | 16 | #### Web App 17 | http://git-commenter.com/ 18 | 19 | #### Desktop App 20 | 2019/6/5 [v1.3](https://github.com/Akatsuki-py/git-commenter/releases/tag/v1.3) released. 21 | -------------------------------------------------------------------------------- /src/Redux/actions.js: -------------------------------------------------------------------------------- 1 | export function addElement(key, value) { 2 | return ({ 3 | type: "WRITE_ELEMENT", 4 | key, 5 | value 6 | }); 7 | } 8 | 9 | export function overwrite({ emoji, verb, adjective, object, modifier, reason}) { 10 | return ({ 11 | type: "OVERWRITE", 12 | emoji, verb, adjective, object, modifier, reason 13 | }); 14 | } 15 | 16 | export function addPhrase(phrases) { 17 | return ({ 18 | type: "WRITE_PHRASES", 19 | phrases 20 | }); 21 | } 22 | 23 | export function switchLang(lang) { 24 | localStorage.setItem("lang", lang); 25 | return ({ 26 | type: "SWITCH_LANGUAGE", 27 | lang 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /src/Body.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Container } from "reactstrap"; 3 | import Generator from "./Generator/Generator"; 4 | import Setting from "./Setting/Setting"; 5 | import { Route, Switch } from "react-router-dom"; 6 | 7 | class Body extends Component { 8 | render() { 9 | return ( 10 | 11 | 12 | 13 | 14 | {/* 設定ページ */} 15 | 16 | 17 | 18 | 19 | 20 | ); 21 | } 22 | } 23 | 24 | export default Body; 25 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Git Commenter 21 | 22 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /src/Setting/Setting.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { connect } from "react-redux"; 3 | import { Row, Col } from "reactstrap"; 4 | import Usage from "./Usage"; 5 | import Register from "./Register"; 6 | import MessageRegister from "./MessageRegister"; 7 | import { Link } from "react-router-dom"; 8 | import setting from "../img/setting.png"; 9 | import Language from "./Language"; 10 | 11 | class Setting extends Component { 12 | 13 | render() { 14 | return ( 15 | 16 |

⚒ Setting 🛠

17 | 18 | 19 | {/* */} 20 | 21 | setting 22 |
23 | ); 24 | } 25 | } 26 | 27 | const mapStateToProps = (state) => { 28 | return { 29 | }; 30 | }; 31 | 32 | export default connect(mapStateToProps)(Setting); -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Akihiro Otomo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /src/Generator/Generator.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { Form } from 'reactstrap'; 3 | import { connect } from "react-redux"; 4 | import Emoji from "./Emoji"; 5 | import Verb from "./Verb"; 6 | import Object from "./Object"; 7 | import Modifier from "./Modifier"; 8 | import Result from "./Result"; 9 | import Reason from "./Reason"; 10 | import Template from "./Template"; 11 | import { Link } from "react-router-dom"; 12 | import setting from "../img/setting.png"; 13 | 14 | class Generator extends Component { 15 | 16 | render() { 17 | return ( 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |