-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e2f7f8c
Showing
29 changed files
with
7,166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* eslint-env node */ | ||
require('@rushstack/eslint-patch/modern-module-resolution') | ||
|
||
module.exports = { | ||
root: true, | ||
'extends': [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/eslint-config-typescript', | ||
'@vue/eslint-config-prettier/skip-formatting' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Release and Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version-component: | ||
description: 'Version component to increment (major, minor, or patch)' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release_and_deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
- name: Set git config | ||
run: | | ||
git config --global user.email 'cormoran707@gmail.com' | ||
git config --global user.name 'cormoran' | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Set version to env | ||
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: v${{ env.VERSION }} | ||
files: | | ||
dist/power-mf-me.user.js | ||
dist/power-mf-me.meta.js | ||
generate_release_notes: true | ||
|
||
- name: Increment Version in package.json | ||
run: npm version ${{ github.event.inputs.version-component }} -m "Bump version to %s" | ||
|
||
- name: Push changes to main | ||
run: git push origin main | ||
|
||
- name: Check failure status | ||
if: failure() | ||
run: | | ||
git status | ||
cat /home/runner/.npm/_logs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
coverage | ||
*.local | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
*.tsbuildinfo | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.vscode-typescript-vue-plugin", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# power-mf-me | ||
|
||
Money Forward ME を拡張するユーザースクリプト | ||
|
||
## 使い方 | ||
|
||
### iOS/Mac Safari | ||
|
||
1. safari 拡張機能 [Userscripts](https://apps.apple.com/jp/app/userscripts/id1463298887) をインストール | ||
2. [最新の power-mf-me.user.js](https://github.com/cormoran/power-mf-me/releases/latest/download/power-mf-me.user.js) をダウンロードして Userscripts の設定したディレクトリに保存 | ||
3. https://moneyforward.me にログインして口座タブを開く | ||
4. https://moneyforward.me の家計簿タブを開いて、変更したい項目の power-mf-me 列にある "編集" ボタンをクリック | ||
|
||
### Chrome | ||
|
||
1. chrome 拡張機能 [Tampermonkey](https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) をインストール | ||
2. [最新の power-mf-me.user.js](https://github.com/cormoran/power-mf-me/releases/latest/download/power-mf-me.user.js) にアクセスして、Tampermonkey に追加 | ||
3. https://moneyforward.me にログインして口座タブを開く | ||
4. https://moneyforward.me の家計簿タブを開いて、変更したい項目の power-mf-me 列にある "編集" ボタンをクリック | ||
|
||
## 機能 | ||
|
||
家計簿タブのテーブルに編集ボタンを追加します | ||
|
||
![](docs/image.png) | ||
|
||
編集ボタンを押すと開くモーダルから以下の機能を使えます | ||
|
||
![](docs/change-date.png) | ||
|
||
![](docs/split-expense.png) | ||
|
||
![](docs/change-ratio.png) | ||
|
||
### 仕組み | ||
|
||
全ての機能は以下のように動作します | ||
|
||
1. モーダルから設定する "調整のための財布" に指定した項目を振替登録する | ||
|
||
- 支出項目の場合、"調整のための財布" に支出金額が計算対象外の収入として記録される | ||
- クレジットカードなどに紐づいた元の支出項目は振替として計算対象から外れる | ||
|
||
2. "調整のための財布" に適切な収入/支出を登録する | ||
|
||
間違って操作した内容を消したい場合は以下の2つの操作を行なってください | ||
|
||
1. クレジットカードなどに紐づいた元の項目の振替設定を解除する | ||
2. "調整のための財布" に登録された関連項目を全て削除する |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// <reference types="vite/client" /> | ||
declare const GM: any | ||
|
||
interface Window { | ||
GM_addStyle: typeof GM.addStyle | undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>power-mf-me dev</title> | ||
<script | ||
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js" | ||
integrity="sha512-28e47INXBDaAH0F91T8tup57lcH+iIqq9Fefp6/p+6cgF7RKnqIMSmZqZKceq7WWo9upYMBLMYyMsFq7zHGlug==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
></script> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" | ||
integrity="sha512-dhpxh4AzF050JM736FF+lLVybu28koEYRrSJtTKfA4Z7jKXJNQ5LcxKmHEwruFN2DuOAi9xeKROJ4Z+sttMjqw==" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" | ||
/> | ||
</head> | ||
<body> | ||
<div id="header"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.