Skip to content

Commit

Permalink
リリースのための修正 (#17)
Browse files Browse the repository at this point in the history
* fix: delete permission

* doc: update privacy policy to delete permission

* feat: 5 -> 2 per page

* chore: build

* feat: show pageNumber to option
  • Loading branch information
makinzm authored Jan 3, 2025
1 parent 3620026 commit 68c06d6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 11 deletions.
Binary file removed dist/extension.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "ClipLex",
"version": "1.0.0",
"description": "Improve your English vocabulary with ClipLex",
"permissions": ["storage", "activeTab", "scripting"],
"permissions": ["storage"],
"host_permissions": ["<all_urls>"],
"options_page": "options/options.html",
"content_scripts": [
Expand Down
2 changes: 1 addition & 1 deletion dist/options/options.js

Large diffs are not rendered by default.

Binary file added dist/ui/icon_for_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 3 additions & 7 deletions privacy_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
## 必要な権限
本拡張機能では、以下の権限を利用しています:

1. **`activeTab`**
- **理由**:現在開いているタブの選択されたテキストを処理するために必要です。
2. **`scripting`**
- **理由**:選択されたテキストを保存するためのボタンやUIをページ上に表示するために必要です。
3. **`storage`**
1. **`storage`**
- **理由**:選択したテキストやフィルタ設定をローカルに保存するために必要です。
4. **ホスト権限(`<all_urls>`**
2. **ホスト権限(`<all_urls>`**
- **理由**:ユーザーが訪問する任意のウェブページで動作し、選択したテキストを保存できるようにするために必要です。

これらの権限は、本拡張機能の動作に必要な最小限の範囲に限定されています。
Expand All @@ -45,7 +41,7 @@
## プライバシーポリシーの変更
このプライバシーポリシーは、必要に応じて変更されることがあります。変更があった場合、本ページにて通知します。

**最終更新日**: 2024年12月30日
**最終更新日**: 2025年01月03日

## お問い合わせ
このプライバシーポリシーに関する質問や懸念がある場合は、本GitHubリポジトリのIssueページにてお知らせください。
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "ClipLex",
"version": "1.0.0",
"description": "Improve your English vocabulary with ClipLex",
"permissions": ["storage", "activeTab", "scripting"],
"permissions": ["storage"],
"host_permissions": ["<all_urls>"],
"options_page": "options/options.html",
"content_scripts": [
Expand Down
9 changes: 8 additions & 1 deletion src/options/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const wordsContainer = document.getElementById("wordsContainer") as HTMLDivEleme

/** ページネーション関連 */
let currentPage = 1;
const rowsPerPage = 5; // 1ページあたりの表示数
const rowsPerPage = 2; // 1ページあたりの表示数
const paginationContainer = document.getElementById("pagination") as HTMLDivElement;

/** ========== 単語一覧をロード & フィルタ & ソート ========== */
Expand Down Expand Up @@ -325,6 +325,13 @@ function renderPagination() {
});
paginationContainer.appendChild(prevButton);


// ページ番号
const pageNumbers = document.createElement("span");
pageNumbers.textContent = `${currentPage} / ${totalPages}`;
pageNumbers.style.margin = "0 5px";
paginationContainer.appendChild(pageNumbers);

// 「次へ」ボタン
const nextButton = document.createElement("button");
nextButton.textContent = "次へ";
Expand Down

0 comments on commit 68c06d6

Please sign in to comment.