Skip to content

Commit

Permalink
Merge pull request #41 from n4ze3m/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
n4ze3m committed Apr 16, 2024
2 parents 9a7b4f4 + 49d7f33 commit 50d4ae4
Show file tree
Hide file tree
Showing 97 changed files with 3,988 additions and 634 deletions.
Binary file added bun.lockb
Binary file not shown.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@
"antd": "^5.13.3",
"axios": "^1.6.7",
"cheerio": "^1.0.0-rc.12",
"d3-dsv": "2",
"dayjs": "^1.11.10",
"html-to-text": "^9.0.5",
"i18next": "^23.10.1",
"i18next-browser-languagedetector": "^7.2.0",
"langchain": "^0.1.28",
"lucide-react": "^0.350.0",
"ml-distance": "^4.0.1",
"pdfjs-dist": "^4.0.379",
"property-information": "^6.4.1",
"pubsub-js": "^1.9.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-i18next": "^14.1.0",
Expand All @@ -47,17 +50,21 @@
"rehype-mathjax": "4.0.3",
"remark-gfm": "3.0.1",
"remark-math": "5.1.1",
"turndown": "^7.1.3",
"yt-transcript": "^0.0.2",
"zustand": "^4.5.0"
},
"devDependencies": {
"@plasmohq/prettier-plugin-sort-imports": "4.0.1",
"@types/chrome": "0.0.259",
"@types/d3-dsv": "^3.0.7",
"@types/html-to-text": "^9.0.4",
"@types/node": "20.11.9",
"@types/pubsub-js": "^1.8.6",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"@types/react-syntax-highlighter": "^15.5.11",
"@types/turndown": "^5.0.4",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.33",
"prettier": "3.2.4",
Expand All @@ -69,4 +76,4 @@
"resolutions": {
"@langchain/core": "0.1.45"
}
}
}
4 changes: 3 additions & 1 deletion src/assets/locale/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@
"submit": "Submit",
"noData": "No data",
"noHistory": "No chat history",
"chatWithCurrentPage": "Chat with current page"
"chatWithCurrentPage": "Chat with current page",
"beta": "Beta",
"tts": "Read aloud"
}
42 changes: 42 additions & 0 deletions src/assets/locale/en/knowledge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"addBtn": "Add New Knowledge",
"columns": {
"title": "Title",
"status": "Status",
"embeddings": "Embedding Model",
"createdAt": "Created At",
"action": "Actions"
},
"expandedColumns": {
"name": "Name"
},
"tooltip": {
"delete": "Delete"
},
"confirm": {
"delete": "Are you sure you want to delete this knowledge?"
},
"deleteSuccess": "Knowledge deleted successfully",
"status": {
"pending": "Pending",
"finished": "Finished",
"processing": "Processing"
},
"addKnowledge": "Add Knowledge",
"form": {
"title": {
"label": "Knowledge Title",
"placeholder": "Enter knowledge title",
"required": "Knowledge title is required"
},
"uploadFile": {
"label": "Upload File",
"uploadText": "Drag and drop a file here or click to upload",
"uploadHint": "Supported file types: .pdf, .csv, .txt, .md",
"required": "File is required"
},
"submit": "Submit",
"success": "Knowledge added successfully"
},
"noEmbeddingModel": "Please add an embedding model first from the Ollama settings page"
}
3 changes: 2 additions & 1 deletion src/assets/locale/en/playground.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"searchInternet": "Search Internet",
"speechToText": "Speech to Text",
"uploadImage": "Upload Image",
"stopStreaming": "Stop Streaming"
"stopStreaming": "Stop Streaming",
"knowledge": "Knowledge"
},
"sendWhenEnter": "Send when Enter pressed"
}
21 changes: 21 additions & 0 deletions src/assets/locale/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@
"success": "Import Success",
"error": "Import Error"
}
},
"tts": {
"heading": "Text-to-Speech Settings",
"ttsEnabled": {
"label": "Enable Text-to-Speech"
},
"ttsProvider": {
"label": "Text-to-Speech Provider",
"placeholder": "Select a provider"
},
"ttsVoice": {
"label": "Text-to-Speech Voice",
"placeholder": "Select a voice"
},
"ssmlEnabled": {
"label": "Enable SSML (Speech Synthesis Markup Language)"
}
}
},
"manageModels": {
Expand Down Expand Up @@ -242,5 +259,9 @@
"koFi": "Support on Ko-fi",
"githubSponsor": "Sponsor on GitHub",
"githubRepo": "GitHub Repository"
},
"manageKnowledge": {
"title": "Manage Knowledge",
"heading": "Configure Knowledge Base"
}
}
4 changes: 3 additions & 1 deletion src/assets/locale/en/sidepanel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"tooltip": {
"embed": "It may take a few minutes to embed the page. Please wait..."
"embed": "It may take a few minutes to embed the page. Please wait...",
"clear": "Erase chat history",
"history": "Chat history"
}
}
4 changes: 3 additions & 1 deletion src/assets/locale/ja-JP/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@
"submit": "送信",
"noData": "データがありません",
"noHistory": "チャット履歴がありません",
"chatWithCurrentPage": "現在のページでチャット"
"chatWithCurrentPage": "現在のページでチャット",
"beta": "ベータ",
"tts": "読み上げ"
}
42 changes: 42 additions & 0 deletions src/assets/locale/ja-JP/knowledge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"addBtn": "新しい知識を追加",
"columns": {
"title": "タイトル",
"status": "ステータス",
"embeddings": "埋め込みモデル",
"createdAt": "作成日",
"action": "アクション"
},
"expandedColumns": {
"name": "名前"
},
"tooltip": {
"delete": "削除"
},
"confirm": {
"delete": "この知識を削除してもよろしいですか?"
},
"deleteSuccess": "知識が正常に削除されました",
"status": {
"pending": "保留中",
"finished": "完了",
"processing": "処理中"
},
"addKnowledge": "知識を追加",
"form": {
"title": {
"label": "知識タイトル",
"placeholder": "知識のタイトルを入力してください",
"required": "知識のタイトルは必須です"
},
"uploadFile": {
"label": "ファイルをアップロード",
"uploadText": "ファイルをここにドラッグアンドドロップするか、クリックしてアップロード",
"uploadHint": "サポートされているファイルタイプ: .pdf、.csv、.txt",
"required": "ファイルは必須です"
},
"submit": "送信",
"success": "知識が正常に追加されました"
},
"noEmbeddingModel": "最初にOllamaの設定ページから埋め込みモデルを追加してください"
}
3 changes: 2 additions & 1 deletion src/assets/locale/ja-JP/playground.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"searchInternet": "インターネットを検索",
"speechToText": "音声入力",
"uploadImage": "画像をアップロード",
"stopStreaming": "ストリーミングを停止"
"stopStreaming": "ストリーミングを停止",
"knowledge": "知識"
},
"sendWhenEnter": "Enterキーを押すと送信"
}
23 changes: 22 additions & 1 deletion src/assets/locale/ja-JP/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@
"success": "インポート成功",
"error": "インポートエラー"
}
},
"tts": {
"heading": "テキスト読み上げ設定",
"ttsEnabled": {
"label": "テキスト読み上げを有効にする"
},
"ttsProvider": {
"label": "テキスト読み上げプロバイダー",
"placeholder": "プロバイダーを選択"
},
"ttsVoice": {
"label": "テキスト読み上げの音声",
"placeholder": "音声を選択"
},
"ssmlEnabled": {
"label": "SSML (Speech Synthesis Markup Language) を有効にする"
}
}
},
"manageModels": {
Expand Down Expand Up @@ -245,5 +262,9 @@
"koFi": "Ko-fiで支援する",
"githubSponsor": "GitHubでスポンサーする",
"githubRepo": "GitHubリポジトリ"
}
},
"manageKnowledge": {
"title": "知識を管理する",
"heading": "知識ベースを構成する"
}
}
3 changes: 2 additions & 1 deletion src/assets/locale/ml/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
"submit": "സമർപ്പിക്കുക",
"noData": "ഡാറ്റ ലഭ്യമല്ല",
"noHistory": "ചാറ്റ് ചരിത്രം ലഭ്യമല്ല",
"chatWithCurrentPage": "നിലവിലെ പേജിനുമായി ചാറ്റ് ചെയ്യുക"
"chatWithCurrentPage": "നിലവിലെ പേജിനുമായി ചാറ്റ് ചെയ്യുക",
"beta": "ബീറ്റ"
}
42 changes: 42 additions & 0 deletions src/assets/locale/ml/knowledge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"addBtn": "പുതിയ വിജ്ഞാനം ചേര്‍ക്കുക",
"columns": {
"title": "തലക്കെട്ട്",
"status": "സ്ഥിതി",
"embeddings": "എംബെഡിംഗ് മോഡല്‍",
"createdAt": "സൃഷ്ടിച്ചത്",
"action": "പ്രവർത്തനങ്ങൾ"
},
"expandedColumns": {
"name": "നാമം"
},
"tooltip": {
"delete": "ഇല്ലാതാക്കുക"
},
"confirm": {
"delete": "നിങ്ങൾക്ക് ഈ വിജ്ഞാനം ഇല്ലാതാക്കണമെന്ന് ഉറപ്പാണോ?"
},
"deleteSuccess": "വിജ്ഞാനം വിജയകരമായി ഇല്ലാതാക്കി",
"status": {
"pending": "തീരുമാനിക്കാനുണ്ട്",
"finished": "പൂർത്തീകരിച്ചു",
"processing": "പ്രോസസ്സിംഗ്"
},
"addKnowledge": "വിജ്ഞാനം ചേര്‍ക്കുക",
"form": {
"title": {
"label": "വിജ്ഞാനത്തിന്റെ തലക്കെട്ട്",
"placeholder": "വിജ്ഞാനത്തിന്റെ തലക്കെട്ട് നല്‍കുക",
"required": "വിജ്ഞാനത്തിന്റെ തലക്കെട്ട് ആവശ്യമാണ്"
},
"uploadFile": {
"label": "ഫയല്‍ അപ്‌ലോഡ് ചെയ്യുക",
"uploadText": "ഇവിടെ ഒരു ഫയല്‍ എടുത്തിടുക അല്ലെങ്കില്‍ അപ്‌ലോഡ് ചെയ്യാന്‍ ക്ലിക്ക് ചെയ്യുക",
"uploadHint": "പിന്തുണയുള്ള ഫയല്‍ തരങ്ങള്‍: .pdf, .csv, .txt, .md",
"required": "ഫയല്‍ ആവശ്യമാണ്"
},
"submit": "സമര്‍പ്പിക്കുക",
"success": "വിജ്ഞാനം വിജയകരമായി ചേര്‍ത്തു"
},
"noEmbeddingModel": "ദയവായി ആദ്യം Ollama ക്രമീകരണ പേജില്‍ നിന്ന് ഒരു എംബെഡിംഗ് മോഡല്‍ ചേര്‍ക്കുക"
}
3 changes: 2 additions & 1 deletion src/assets/locale/ml/playground.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"searchInternet": "ഇന്റര്‍നെറ്റ് തിരയുക",
"speechToText": "സംഭാഷണം ടെക്സ്റ്റായി",
"uploadImage": "ഇമേജ് അപ്‌ലോഡ് ചെയ്യുക",
"stopStreaming": "സ്ട്രീമിംഗ് നിർത്തുക"
"stopStreaming": "സ്ട്രീമിംഗ് നിർത്തുക",
"knowledge": "അറിവ്"
},
"sendWhenEnter": "എന്റര്‍ അമര്‍ത്തുമ്പോള്‍ അയയ്ക്കുക"
}
24 changes: 22 additions & 2 deletions src/assets/locale/ml/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@
"success": "ഇമ്പോർട്ട് വിജയകരമായി",
"error": "ഇമ്പോർട്ട് പരാജയപ്പെട്ടു"
}
},
"tts": {
"heading": "ടെക്സ്റ്റ്-ടു-സ്പീച്ച് ക്രമീകരണങ്ങൾ",
"ttsEnabled": {
"label": "ടെക്സ്റ്റ്-ടു-സ്പീച്ച് പ്രവർത്തനക്ഷമമാക്കുക"
},
"ttsProvider": {
"label": "ടെക്സ്റ്റ്-ടു-സ്പീച്ച് പ്രോവൈഡർ",
"placeholder": "ഒരു പ്രോവൈഡർ തിരഞ്ഞെടുക്കുക"
},
"ttsVoice": {
"label": "ടെക്സ്റ്റ്-ടു-സ്പീച്ച് വോയ്സ്",
"placeholder": "ഒരു വോയ്സ് തിരഞ്ഞെടുക്കുക"
},
"ssmlEnabled": {
"label": "SSML (സ്പീച്ച് സിന്തസിസ് മാർക്കപ്പ് ലാംഗ്വേജ്) പ്രവർത്തനക്ഷമമാക്കുക"
}
}
},
"manageModels": {
Expand Down Expand Up @@ -245,6 +262,9 @@
"koFi": "കോഫിയിൽ പിന്തുണയ്ക്കുക",
"githubSponsor": "ഗിറ്റ്ഹബ്ബിൽ സ്പോൺസർ ചെയ്യുക",
"githubRepo": "ഗിറ്റ്ഹബ്ബ് റെപ്പോസിറ്ററി"
}

},
"manageKnowledge": {
"title": "വിജ്ഞാനം നിര്‍വ്വഹിക്കുക",
"heading": "വിജ്ഞാനാധാരം കോണ്‍ഫിഗര്‍ ചെയ്യുക"
}
}
4 changes: 3 additions & 1 deletion src/assets/locale/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@
"submit": "提交",
"noData": "无数据",
"noHistory": "无聊天记录",
"chatWithCurrentPage": "与当前页面聊天"
"chatWithCurrentPage": "与当前页面聊天",
"beta": "Beta",
"tts": "朗读"
}
Loading

0 comments on commit 50d4ae4

Please sign in to comment.