port & other

This commit is contained in:
marko-kraemer 2025-04-21 15:43:29 +01:00
parent 2a59bd4baf
commit 6e5af01120
3 changed files with 0 additions and 113 deletions

View File

@ -52,7 +52,6 @@ You have the ability to execute operations using both Python and CLI tools:
- Exposing ports to the public internet using the 'expose-port' tool: - Exposing ports to the public internet using the 'expose-port' tool:
* Use this tool to make services running in the sandbox accessible to users * Use this tool to make services running in the sandbox accessible to users
* Example: Expose something running on port 8000 to share with users * Example: Expose something running on port 8000 to share with users
* Port 8099 is already exposed by default and running a WEB HTTP server - no need to expose it again.
* The tool generates a public URL that users can access * The tool generates a public URL that users can access
* Essential for sharing web applications, APIs, and other network services * Essential for sharing web applications, APIs, and other network services
* Always expose ports when you need to show running services to users * Always expose ports when you need to show running services to users

View File

@ -1,38 +0,0 @@
# Japanese Language Test
## Basic Phrases
| Japanese | Pronunciation | English |
|----------|--------------|---------|
| こんにちは | Kon-nee-chee-wah | Hello |
| おはようございます | Oh-hah-yoh goh-zai-mahs | Good morning |
| こんばんは | Kon-bahn-wah | Good evening |
| さようなら | Sah-yoh-nah-rah | Goodbye |
| ありがとうございます | Ah-ree-gah-toh goh-zai-mahs | Thank you very much |
| どういたしまして | Doh-ee-tah-shee-mah-shteh | You're welcome |
| すみません | Soo-mee-mah-sen | Excuse me / Sorry |
| はい | Hai | Yes |
| いいえ | Ee-eh | No |
| お願いします | Oh-neh-gai shee-mahs | Please |
| わかりません | Wah-kah-ree-mah-sen | I don't understand |
| 英語を話せますか? | Ay-go oh hah-nah-seh-mahs-kah? | Do you speak English? |
| ゆっくりお願いします | Yook-koo-ree oh-neh-gai shee-mahs | Please speak slowly |
## Travel & Transportation
| Japanese | Pronunciation | English |
|----------|--------------|---------|
| __はどこですか? | _____ wa doh-koh dehs-kah? | Where is _____? |
| 駅 | Eh-kee | Station |
| トイレ | Toy-reh | Toilet/bathroom |
| 入口 | Ee-ree-goo-chee | Entrance |
| 出口 | Deh-goo-chee | Exit |
| 新幹線 | Sheen-kahn-sen | Bullet train |
| 電車 | Den-shah | Train |
| バス | Bah-soo | Bus |
| タクシー | Tak-shee | Taxi |
| いくらですか? | Ee-koo-rah dehs-kah? | How much is it? |
| __に行きたいです | _____ nee ee-kee-tai dehs | I want to go to _____ |
| 予約 | Yoh-yah-koo | Reservation |
| 切符 | Kee-ppoo | Ticket |
## Escaped Unicode Test
This is testing Unicode escape sequences: \u3053\u3093\u306b\u3061\u306f (should show as こんにちは)

View File

@ -1,74 +0,0 @@
'use client';
import React, { useEffect, useState } from 'react';
import { MarkdownRenderer } from '@/components/file-renderers/markdown-renderer';
export default function TestUnicodePage() {
const [markdownContent, setMarkdownContent] = useState('');
const [escapedContent, setEscapedContent] = useState('');
useEffect(() => {
// Fetch the test markdown file
fetch('/test-japanese.md')
.then(response => response.text())
.then(text => {
setMarkdownContent(text);
// Create a test string with Unicode escape sequences
const japaneseWithEscapes = "\\u3053\\u3093\\u306b\\u3061\\u306f (Hello)\\n\\u3042\\u308a\\u304c\\u3068\\u3046 (Thank you)";
setEscapedContent(japaneseWithEscapes);
})
.catch(error => console.error('Error loading markdown file:', error));
}, []);
return (
<div className="container mx-auto py-8">
<h1 className="text-2xl font-bold mb-6">Unicode/Japanese Text Testing</h1>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
<div className="border rounded-md shadow-sm">
<div className="p-4 border-b bg-slate-50 dark:bg-slate-800">
<h2 className="font-medium">Direct Japanese Characters</h2>
</div>
<div className="p-4">
<p className="mb-4 cjk-text">
- Hello<br />
- Good morning<br />
- Thank you<br />
- Test displaying Japanese
</p>
</div>
</div>
<div className="border rounded-md shadow-sm">
<div className="p-4 border-b bg-slate-50 dark:bg-slate-800">
<h2 className="font-medium">Unicode Escape Sequence Test</h2>
</div>
<div className="p-4">
<p className="mb-2">Raw escaped content:</p>
<pre className="bg-slate-100 dark:bg-slate-900 p-2 rounded mb-4 overflow-x-auto">
{escapedContent}
</pre>
<p className="mb-2">Processed content:</p>
<div className="bg-slate-100 dark:bg-slate-900 p-2 rounded">
<MarkdownRenderer content={escapedContent} />
</div>
</div>
</div>
</div>
<div className="mt-8 border rounded-md shadow-sm">
<div className="p-4 border-b bg-slate-50 dark:bg-slate-800">
<h2 className="font-medium">Markdown File with Japanese Characters</h2>
</div>
<div className="p-4">
{markdownContent ? (
<MarkdownRenderer content={markdownContent} />
) : (
<p>Loading markdown content...</p>
)}
</div>
</div>
</div>
);
}