From 848a1a1e4e76230f9615188fab1174e4e8162148 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Mon, 6 Nov 2023 22:08:55 -0500 Subject: [PATCH] stata --- docz/docs/03-demos/06-desktop/03-wails.md | 17 +++++++++++++---- docz/docs/03-demos/32-extensions/10-stata.md | 6 +++++- docz/docs/12-constellation/01-ssf.md | 7 ++++++- docz/docs/12-constellation/11-crc32.md | 11 +++++++++++ docz/static/stata/cleanfile.c | 2 +- 5 files changed, 36 insertions(+), 7 deletions(-) diff --git a/docz/docs/03-demos/06-desktop/03-wails.md b/docz/docs/03-demos/06-desktop/03-wails.md index d22a4a29..c5be9d89 100644 --- a/docz/docs/03-demos/06-desktop/03-wails.md +++ b/docz/docs/03-demos/06-desktop/03-wails.md @@ -297,7 +297,7 @@ This demo was tested in the following environments: | OS and Version | Arch | Wails | Date | |:---------------|:-----|:---------|:-----------| -| macOS 12.6.3 | x64 | `v2.5.1` | 2023-08-24 | +| macOS 13.6 | x64 | `v2.6.0` | 2023-11-05 | | macOS 13.5.1 | ARM | `v2.5.1` | 2023-08-24 | | Windows 10 | x64 | `v2.5.1` | 2023-08-25 | | Windows 11 | ARM | `v2.6.0` | 2023-09-25 | @@ -327,12 +327,21 @@ Once that finishes, run the following command in a new terminal window: wails doctor ``` +:::note pass + +On macOS and Linux, the `PATH` environment variable must include `~/go/bin`. If +`wails` cannot be found, run the following command in the terminal session: + +```bash +export PATH="$PATH:~/go/bin" +``` + +::: + The output will include a `# Diagnosis` section. It should display: ``` -# Diagnosis - -Your system is ready for Wails development! + SUCCESS Your system is ready for Wails development! ``` If a required dependency is missing, it will be displayed. diff --git a/docz/docs/03-demos/32-extensions/10-stata.md b/docz/docs/03-demos/32-extensions/10-stata.md index 6b7ea1c5..5c4ae079 100644 --- a/docz/docs/03-demos/32-extensions/10-stata.md +++ b/docz/docs/03-demos/32-extensions/10-stata.md @@ -37,7 +37,7 @@ generate variables for each column. A sample Stata session is shown below: :::note -This demo was last tested by SheetJS users on 2023 October 09. +This demo was last tested by SheetJS users on 2023 November 05. ::: @@ -299,6 +299,10 @@ The output will show the import result: 20) Open the Data Editor (in Browse or Edit mode) and compare to the screenshot: +```stata +browse Name Index +``` + ![Data Editor showing data from the file](pathname:///stata/data-editor.png) [^1]: Run `help import excel` in Stata or see ["import excel"](https://www.stata.com/manuals/dimportexcel.pdf) in the Stata documentation. diff --git a/docz/docs/12-constellation/01-ssf.md b/docz/docs/12-constellation/01-ssf.md index 8c51ab1d..3e6d2535 100644 --- a/docz/docs/12-constellation/01-ssf.md +++ b/docz/docs/12-constellation/01-ssf.md @@ -3,6 +3,10 @@ title: SSF Number Formatter hide_table_of_contents: true --- + + + + As explained in ["Number Formats"](/docs/csf/features/nf), modern spreadsheet file formats separate "content" from "presentation". Instead of storing a formatted value like `$3.50`, applications will store the underlying value @@ -33,10 +37,11 @@ function SheetJSSSF() { const [text, setText] = React.useState(""); React.useEffect(() => { + if(typeof SSF == "undefined") return setText("ERROR: Reload this page!"); let v = +val; if(!isFinite(v)) return setText(`ERROR: ${val} is not a valid number!`); try { - setText(XLSX.SSF.format(fmt, v)); + setText(SSF.format(fmt, v)); } catch(e) { setText("ERROR: " + (e && e.message || e)); } }, [fmt, val]); const goodstyle = { backgroundColor: "#C6EFCE", color: "#006100" }; diff --git a/docz/docs/12-constellation/11-crc32.md b/docz/docs/12-constellation/11-crc32.md index 3ea7453b..f78508cb 100644 --- a/docz/docs/12-constellation/11-crc32.md +++ b/docz/docs/12-constellation/11-crc32.md @@ -3,6 +3,10 @@ title: CRC32 Checksum hide_table_of_contents: true --- + + + + The SheetJS `crc-32` library computes standard CRC32 and Castagnoli CRC32C checksums. It is a core component in ZIP file processing, powering XLSX, XLSB, ODS, NUMBERS, and other formats. @@ -12,5 +16,12 @@ The library is also available for standalone use on the SheetJS CDN[^1]. Source code and project documentation are hosted on the SheetJS git server at +#### Live Demos + + computes checksums of files and text. + + uses incremental file processing and +Web Workers to compute checksums of large files. Since the file is processed in +chunks, it is possible to compute checksums of files larger than 4GB. [^1]: See for more details. \ No newline at end of file diff --git a/docz/static/stata/cleanfile.c b/docz/static/stata/cleanfile.c index 517c97c0..9615c749 100644 --- a/docz/static/stata/cleanfile.c +++ b/docz/static/stata/cleanfile.c @@ -8,7 +8,7 @@ duk_destroy_heap(ctx); \ snprintf(failbuf, 255, "error in %s: %s", cmd, errmsg); \ SF_error(failbuf); \ - return NULL; \ + return 1; \ } #define FAIL_LOAD { \