Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/biome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- name: Setup Biome
uses: biomejs/setup-biome@v2.6.0
with:
version: latest
version: "2.1.1"
- name: Run Biome
run: biome lint
run: biome lint
1 change: 1 addition & 0 deletions packages/chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "vite build --mode development",
"build:watch": "vite build --mode development --watch",
"build:prod": "vite build --mode production",
"prepare:publish": "pnpm build:prod &&zip -r nihongo-speech-chrome-extension.zip dist/ -x \"*.map\" -x \"*/.DS_Store\"",
"preview": "vite preview",
"test": "vitest",
"test:ui": "vitest --ui"
Expand Down
12 changes: 4 additions & 8 deletions packages/chrome/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Nihongo Speech",
"version": "1.1.0",
"name": "Hanashi",
"version": "1.2.0",
"description": "Convert Japanese sentences to realistic male and female speech using advanced TTS APIs.",
"icons": {
"16": "icon-16.png",
Expand All @@ -19,12 +19,8 @@
"background": {
"service_worker": "background.js"
},
"permissions": ["storage", "contextMenus", "activeTab", "scripting"],
"host_permissions": [
"https://api.elevenlabs.io/*",
"http://localhost:*/*",
"http://127.0.0.1:*/*"
],
"permissions": ["storage", "scripting"],
"host_permissions": ["https://hanshi-server.adelekekehinde06.workers.dev/*"],
"content_scripts": [
{
"matches": ["<all_urls>"],
Expand Down
16 changes: 8 additions & 8 deletions packages/chrome/src/background/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ chrome.runtime.onMessage.addListener((message, _sender, sendResponse) => {
}
});

const ID = "nihongo-speech";
chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
id: ID,
title: "Generate Speech in nihongo-speech",
contexts: ["selection"],
});
});
// const ID = "nihongo-speech";
// chrome.runtime.onInstalled.addListener(() => {
// chrome.contextMenus.create({
// id: ID,
// title: "Generate Speech in nihongo-speech",
// contexts: ["selection"],
// });
// });
Loading