This commit is contained in:
SheetJS 2023-11-06 22:08:55 -05:00
parent e455737c33
commit 848a1a1e4e
5 changed files with 36 additions and 7 deletions

View File

@ -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.

View File

@ -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.

View File

@ -3,6 +3,10 @@ title: SSF Number Formatter
hide_table_of_contents: true
---
<head>
<script src="https://cdn.sheetjs.com/ssf-0.11.3/ssf.js"></script>
</head>
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" };

View File

@ -3,6 +3,10 @@ title: CRC32 Checksum
hide_table_of_contents: true
---
<head>
<script src="https://cdn.sheetjs.com/crc-32-1.2.3/package/crc32.js"></script>
</head>
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
<https://git.sheetjs.com/sheetjs/js-crc32>
#### Live Demos
<https://oss.sheetjs.com/js-crc32/> computes checksums of files and text.
<https://oss.sheetjs.com/js-crc32/large> 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 <https://cdn.sheetjs.com/crc-32/> for more details.

View File

@ -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 { \