Skip to content

Commit dd93b2d

Browse files
Update ws support https (#270)
* feat: update github api with Enterprise endpoint support * Squashed commit of the following: commit 5ab6bf9 Author: Kurea <[email protected]> Date: Thu Jul 10 01:04:16 2025 +0200 French translation (#267) * French translation * translation file * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update README.fr.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * typos correction --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> commit d0c01b7 Author: AlexNiDie <[email protected]> Date: Thu Jul 10 06:37:22 2025 +0800 fix(repo-page): pass 'include' params to API (#268) Co-authored-by: gaohan1 <[email protected]> commit e6c9f37 Author: Chouzz <[email protected]> Date: Wed Jul 9 03:36:39 2025 +0800 feat: Cache repository configurations in frontend (#254) Implement localStorage-based caching for repository configurations on the main page ('src/app/page.tsx'). This feature enables the application to remember user-specified settings for a given repository URL. When a user submits a repository URL along with configurations such as wiki language, wiki type, model provider, model selection, custom model options, and advanced exclusion paths/files, these settings are now cached locally in the browser's localStorage. If the user later inputs the same repository URL, the previously saved settings are automatically loaded and pre-filled in the configuration modal. This significantly improves user experience by reducing repetitive data entry for frequently used repositories. The following configuration items are cached: - Wiki Language - Wiki Type (Comprehensive/Concise) - Model Provider - Model Selection - Custom Model (boolean flag and name) - Selected Platform (GitHub, GitLab, Bitbucket) - Excluded Directories - Excluded Files - Included Directories - Included Files Access tokens and other sensitive information are intentionally not cached to maintain security. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> commit 0efaec5 Author: Michał Żarnecki <[email protected]> Date: Tue Jul 8 20:37:39 2025 +0200 fix issue with select options background on google chrome browser (#260) * fix select options background for google chrome * replace color with variable * selector refactoring for dark theme select options bg commit 6b5e494 Author: piekill <[email protected]> Date: Tue Jul 8 07:51:18 2025 +0800 feat: save wiki section structure to server cache (#257) * feat: save wiki section structure to server cache * Update api/api.py for backward compatibility Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> commit dabce48 Author: Jack Cherng <[email protected]> Date: Tue Jul 8 04:12:52 2025 +0800 Replace OPENAI_API_BASE_URL with OPENAI_BASE_URL (#256) As per #133 Signed-off-by: Jun-Fei Cherng <[email protected]> commit 1bfc651 Author: Chouzz <[email protected]> Date: Fri Jul 4 12:10:04 2025 +0800 fix: add IgnoreLogChangeDetectedFilter for logging to ignore changes (#253) * Revert "fix: move log file to parent directory to avoid infinite logging loop (#250)" This reverts commit 30c400c. * fix: add IgnoreLogChangeDetectedFilter for logging to ignore changes of log file * Update api/logging_config.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: Sheing [ASYNCFUNC] <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> commit 30c400c Author: Chouzz <[email protected]> Date: Fri Jul 4 08:54:56 2025 +0800 fix: move log file to parent directory to avoid infinite logging loop (#250) commit 2629ce6 Author: Sheing Ng <[email protected]> Date: Thu Jul 3 14:53:50 2025 -0500 Fix: Grab Default Branch instead of main/master. commit 919b040 Author: zcuder <[email protected]> Date: Tue Jul 1 09:17:57 2025 +0800 merge NEXT_PUBLIC_SERVER_BASE_URL env to SERVER_BASE_URL (#240) * merge NEXT_PUBLIC_SERVER_BASE_URL env to SERVER_BASE_URL * fix typo --------- Co-authored-by: chen zhang <[email protected]> commit 1f5b9f2 Author: Sheing [ASYNCFUNC] <[email protected]> Date: Sat Jun 28 21:00:39 2025 -0500 Fix GitLab and Bitbucket URLs (#244) commit c7d488b Author: Carbarcha (黃柏盛) <[email protected]> Date: Sat Jun 28 02:47:48 2025 +0800 feat: update github api with Enterprise endpoint support (#239) Co-authored-by: carbarcha <[email protected]> commit 7ed5249 Author: Segment (gpsnmeajp) <[email protected]> Date: Sat Jun 28 03:46:26 2025 +0900 fix: select force utf-8 in japanese enviroment (#242) * feat: ws connect support https * 🐛 update wss method * 🐛 del duplicate code
1 parent 5ab6bf9 commit dd93b2d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/app/[owner]/[repo]/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Remember:
512512
try {
513513
// Create WebSocket URL from the server base URL
514514
const serverBaseUrl = process.env.SERVER_BASE_URL || 'http://localhost:8001';
515-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
515+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
516516
const wsUrl = `${wsBaseUrl}/ws/chat`;
517517

518518
// Create a new WebSocket connection
@@ -808,7 +808,7 @@ IMPORTANT:
808808
try {
809809
// Create WebSocket URL from the server base URL
810810
const serverBaseUrl = process.env.SERVER_BASE_URL || 'http://localhost:8001';
811-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
811+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
812812
const wsUrl = `${wsBaseUrl}/ws/chat`;
813813

814814
// Create a new WebSocket connection
@@ -1203,7 +1203,6 @@ IMPORTANT:
12031203
};
12041204

12051205
const githubApiBaseUrl = getGithubApiUrl(effectiveRepoInfo.repoUrl);
1206-
12071206
// First, try to get the default branch from the repository info
12081207
let defaultBranchLocal = null;
12091208
try {

src/app/[owner]/[repo]/slides/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Give me the numbered list with brief descriptions for each slide. Be creative bu
266266
try {
267267
// Create WebSocket URL from the server base URL
268268
const serverBaseUrl = process.env.SERVER_BASE_URL || 'http://localhost:8001';
269-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
269+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
270270
const wsUrl = `${wsBaseUrl}/ws/chat`;
271271

272272
// Create a new WebSocket connection
@@ -542,7 +542,7 @@ Please return ONLY the HTML with no markdown formatting or code blocks. Just the
542542
try {
543543
// Create WebSocket URL from the server base URL
544544
const serverBaseUrl = process.env.SERVER_BASE_URL || 'http://localhost:8001';
545-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
545+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
546546
const wsUrl = `${wsBaseUrl}/ws/chat`;
547547

548548
// Create a new WebSocket connection

src/app/[owner]/[repo]/workshop/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Make the workshop content in ${language === 'en' ? 'English' :
317317
try {
318318
// Create WebSocket URL from the server base URL
319319
const serverBaseUrl = process.env.SERVER_BASE_URL || 'http://localhost:8001';
320-
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws');
320+
const wsBaseUrl = serverBaseUrl.replace(/^http/, 'ws')? serverBaseUrl.replace(/^https/, 'wss'): serverBaseUrl.replace(/^http/, 'ws');
321321
const wsUrl = `${wsBaseUrl}/ws/chat`;
322322

323323
// Create a new WebSocket connection

0 commit comments

Comments
 (0)