Skip to content

Commit

Permalink
Merge pull request #100 from takanotume24/feature/99__update_design
Browse files Browse the repository at this point in the history
Vue.jsベースの実装に変更
  • Loading branch information
takanotume24 authored Dec 6, 2024
2 parents 1717313 + f991645 commit a80251b
Show file tree
Hide file tree
Showing 19 changed files with 1,428 additions and 784 deletions.
83 changes: 42 additions & 41 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,70 @@ name: CI
on:
push:
branches:
- '**' # すべてのブランチでテストを実行
- "**" # すべてのブランチでテストを実行

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: install dependencies
run: |
npm install
- name: run test
run: |
npm run test
- name: install dependencies
run: |
npm install
- name: run test
run: |
npm run test
build:
if: github.ref == 'refs/heads/master' # masterブランチのときのみ実行
if: github.ref == 'refs/heads/master' # masterブランチのときのみ実行
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: install dependencies
run: |
npm install
- name: build
run: |
npm run build
- name: install dependencies
run: |
npm install
- name: build
run: |
npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: ./dist
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: ./dist

deploy:
if: github.ref == 'refs/heads/master' # masterブランチのときのみ実行
if: github.ref == 'refs/heads/master' # masterブランチのときのみ実行
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Download build artifacts
uses: actions/download-artifact@v4.1.7
with:
name: build
path: ./dist
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build
path: ./dist

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,4 @@ crashlytics-build.properties
/lib
/.cache/
/dist/
diff.txt
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.15.1
22
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"editor.formatOnSave": true,
"cSpell.words": [
"Elian",
"nvmrc",
"uuidv"
],
}
56 changes: 3 additions & 53 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,7 @@
<title>Paper Translation Helper</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a href="#" class="navbar-brand">📄📚 Paper Translation Helper 📚📄</a>
<div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto"></ul>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://github.com/takanotume24/paper-translation-helper/wiki/%E4%BD%BF%E3%81%84%E6%96%B9">
使い方
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/takanotume24/paper-translation-helper/issues">
ご意見・ご要望
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/takanotume24/paper-translation-helper/">
Repository
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/takanotume24/">
@takanotume24
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container">
<div class="form-group">
<label for="original">Input / 入力</label>
<textarea id="original" class="form-control" placeholder="Paste Here. / ここに貼り付けてください。"></textarea>
</div>
<div class="list-group">
<label id="converted">Output / 出力</label>
</div>
<div class="container">
<label for="char_limit">Option / オプション</label>
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">Character limit / 文字数制限</span>
</div>
<input type="number" min="1000" class="form-control" id="char_limit" value="4500"
placeholder="More than 1000 / 1000以上を入力してください">
</div>
</div>
</main>
<script type="module" src="./src/index.ts"></script>
<div id="app"></div>
<script type="module" src="/src/index.ts"></script>
</body>
</html>
</html>
Loading

0 comments on commit a80251b

Please sign in to comment.