Skip to content
Merged
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
790 changes: 402 additions & 388 deletions README.en.md

Large diffs are not rendered by default.

746 changes: 380 additions & 366 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/payneat-erp.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

- **ExcelToGo still stands on its own.** Someone who never uses the ERP sees nothing different. Anything
specific to PaynEat lives in a template or in operator configuration, never on the main screen.
- **The ERP is reached through its public API only.** A [database source](../README.en.md#-straight-into-a-database-postgresql--mysql)
- **The ERP is reached through its public API only.** A [database source](../README.en.md#straight-into-a-database-postgresql--mysql)
must not be pointed at the ERP's database: its tables are not a contract, and reading them directly steps
around the ERP's audit trail. **ExcelToGo cannot enforce this in code** — the list of reachable hosts
belongs to the operator — so the ERP should also close the network path to its own database.
Expand Down
2 changes: 1 addition & 1 deletion docs/payneat-erp.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

- **ExcelToGo ยืนได้เองเหมือนเดิม** คนที่ไม่ได้ใช้ ERP ต้องไม่เห็นอะไรเปลี่ยน ของที่เป็นของ PaynEat โดยเฉพาะอยู่ใน
แม่แบบหรือในค่าที่ operator ตั้งเท่านั้น ไม่อยู่บนหน้าหลัก
- **ต่อ ERP ผ่าน public API เท่านั้น** ห้ามใช้ [แหล่งข้อมูลฐานข้อมูล](../README.md#-ต่อฐานข้อมูลตรง-ๆ-postgresql--mysql)
- **ต่อ ERP ผ่าน public API เท่านั้น** ห้ามใช้ [แหล่งข้อมูลฐานข้อมูล](../README.md#ต่อฐานข้อมูลตรง-ๆ-postgresql--mysql)
กับฐานข้อมูลของ ERP โครงสร้างตารางของ ERP ไม่ใช่สัญญา และการอ่านตรงข้าม audit trail ของ ERP
**ExcelToGo บังคับข้อนี้ด้วยโค้ดไม่ได้** เพราะรายชื่อ host ที่ต่อได้เป็นของ operator ฝั่ง ERP จึงควรปิดทางเครือข่าย
ไปยังฐานข้อมูลของตัวเองอีกชั้นหนึ่ง
Expand Down
8 changes: 4 additions & 4 deletions scripts/check-readme.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,16 @@ const featureCount = (text, start, end) => {
if (from === -1 || to === -1) return null;
return (text.slice(from, to).match(/^### /gm) ?? []).length;
};
const thFeatures = featureCount(docs["README.md"], "## ✨ ฟีเจอร์", "## 🛠 เทคโนโลยีที่ใช้");
const enFeatures = featureCount(docs["README.en.md"], "## ✨ Features", "## 🛠 Tech stack");
const thFeatures = featureCount(docs["README.md"], "## ฟีเจอร์", "## เทคโนโลยีที่ใช้");
const enFeatures = featureCount(docs["README.en.md"], "## Features", "## Tech stack");
if (thFeatures === null || enFeatures === null) fail("couldn't locate the Features section in one of the READMEs");
else if (thFeatures !== enFeatures) fail(`Features sections are out of sync: Thai has ${thFeatures}, English has ${enFeatures}`);
else notes.push(`${thFeatures} feature sections, matching in both languages`);

// --- 6. …and every feature section should be reachable from the contents -----------------------
for (const [file, text, start, end] of [
["README.md", docs["README.md"], "## ✨ ฟีเจอร์", "## 🛠 เทคโนโลยีที่ใช้"],
["README.en.md", docs["README.en.md"], "## ✨ Features", "## 🛠 Tech stack"],
["README.md", docs["README.md"], "## ฟีเจอร์", "## เทคโนโลยีที่ใช้"],
["README.en.md", docs["README.en.md"], "## Features", "## Tech stack"],
]) {
const from = text.indexOf(start);
const to = text.indexOf(end);
Expand Down
4 changes: 2 additions & 2 deletions src/app/guide/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { useHydrateLocaleStore } from "@/store/localeStore";
const REPO_URL = "https://github.com/SuruchBoss/ExcelToGo";
/** The README section each language's reader should land on. Anchors follow GitHub's slugs. */
const README_LIVE_DATA = {
th: `${REPO_URL}#-ข้อมูลสดจาก-api--csv-prototype`,
en: `${REPO_URL}/blob/main/README.en.md#-live-data-from-an-api--csv-prototype`,
th: `${REPO_URL}#ข้อมูลสดจาก-api--csv-prototype`,
en: `${REPO_URL}/blob/main/README.en.md#live-data-from-an-api--csv-prototype`,
} as const;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/features/landing/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export default function Landing() {
<p className="mt-7 flex flex-col gap-3 px-2 text-[14.5px] leading-relaxed text-ash sm:flex-row sm:items-center sm:gap-5 sm:px-3">
<span className="max-w-2xl">{t.landing.limitsMoreText}</span>
<a
href={`${REPO_URL}#-สิ่งที่จะทำต่อ`}
href={`${REPO_URL}#สิ่งที่จะทำต่อ`}
target="_blank"
rel="noreferrer"
className="shrink-0 whitespace-nowrap font-medium text-ledger underline underline-offset-4 hover:text-ink"
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export const en: Messages = {
"Mostly not. Colours, font sizes, bold, borders, merged cells, column widths, number formats, dates and formulas are read in and written back to .xlsx.",
detail:
"What is not kept: pictures, Excel's own charts and PivotTables, and macros; they are not in the exported file. A formula using a function the app does not have yet shows #NAME?. CSV files must be UTF-8.",
link: { href: "https://github.com/SuruchBoss/ExcelToGo/blob/main/README.en.md#-import-an-existing-excel-file", label: "Every limitation" },
link: { href: "https://github.com/SuruchBoss/ExcelToGo/blob/main/README.en.md#import-an-existing-excel-file", label: "Every limitation" },
},
{
q: "Can I use Excel formulas, and do I need an AI key?",
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/th.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export const th: Messages = {
"ส่วนใหญ่ไม่ — สี ขนาดตัวอักษร ตัวหนา เส้นขอบ เซลล์ที่ merge ความกว้างคอลัมน์ รูปแบบตัวเลข วันที่ และสูตร ถูกอ่านเข้ามาและส่งกลับเป็น .xlsx",
detail:
"สิ่งที่ไม่ถูกเก็บ: รูปภาพ กราฟและ PivotTable ของ Excel และมาโคร ส่งออกแล้วจะไม่อยู่ในไฟล์ · สูตรที่ใช้ฟังก์ชันที่แอปยังไม่มีจะขึ้น #NAME? · ไฟล์ CSV ต้องเป็น UTF-8",
link: { href: "https://github.com/SuruchBoss/ExcelToGo#-นำเข้าไฟล์-excel-ที่มีอยู่แล้ว", label: "ข้อจำกัดทั้งหมด" },
link: { href: "https://github.com/SuruchBoss/ExcelToGo#นำเข้าไฟล์-excel-ที่มีอยู่แล้ว", label: "ข้อจำกัดทั้งหมด" },
},
{
q: "ใช้สูตร Excel ภาษาไทยได้ไหม ต้องมี key AI ไหม",
Expand Down
Loading