Skip to content

Commit 66a60b1

Browse files
authored
Merge pull request #2712 from finos/fix-missing-icons
Fix missing icons
2 parents ee2f560 + 6532d30 commit 66a60b1

8 files changed

Lines changed: 35 additions & 14 deletions

File tree

.github/workflows/build.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ jobs:
223223
name: perspective-python-dist-${{ matrix.arch}}-${{ matrix.os }}-${{ matrix.python-version }}
224224
path: rust/target/wheels/*.whl
225225

226+
# ,-,---. . . .-,--. . .
227+
# '|___/ . . . | ,-| '|__/ . . ,-. ,-| . ,-| ,-.
228+
# ,| \ | | | | | | .| | | | | | | | | | |-'
229+
# `-^---' `-' ' `' `-' `' `-| `-' `-' ' `-' `-'
230+
# /|
231+
# `-'
226232
build_emscripten_wheel:
227233
runs-on: ${{ matrix.os }}
228234
strategy:
@@ -249,7 +255,7 @@ jobs:
249255
with:
250256
javascript: "false"
251257
arch: ${{ matrix.arch }}
252-
manylinux: ${{ matrix.container && 'true' || 'false' }}
258+
manylinux: "false"
253259
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}
254260

255261
- name: Python Build Pyodide
@@ -571,6 +577,10 @@ jobs:
571577
with:
572578
name: perspective-python-dist-x86_64-ubuntu-22.04-3.9
573579

580+
- uses: actions/download-artifact@v4
581+
with:
582+
name: perspective-python-dist-wasm32-emscripten-3.9
583+
574584
- uses: actions/download-artifact@v4
575585
with:
576586
name: perspective-python-sdist

docs/docs/js.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ performance, as the plugin-assisted bundle version of Perspective:
6161

6262
Perspective comes with bundler plugins for:
6363

64-
- Webpack via `@finos/perspective-webpack-plugin`
6564
- `esbuild` via `@finos/perspective-esbuild-plugin`
65+
- Webpack via `@finos/perspective-webpack-plugin`
6666

6767
##### Webpack
6868

@@ -243,15 +243,16 @@ It exports Perspective's data interfaces:
243243

244244
`@finos/perspective` also exports process management functions, such as
245245
`worker()` and `websocket()` (in the browser) and `WebSocketServer()` (in
246-
Node.js). See the [API documentation](/obj/perspective.md) for a complete
247-
reference on all exported methods. This module is a dependency of
246+
Node.js). See the
247+
[API documentation](<[/obj/perspective.md](https://docs.rs/perspective-js/latest/perspective_js/)>)
248+
for a complete reference on all exported methods. This module is a dependency of
248249
`@finos/perspective-viewer`, and is not needed if you only intend to use
249250
`<perspective-viewer>` to visualize simple data.
250251

251252
### Importing in the browser
252253

253254
`perspective` can be imported as an ES6 module and/or `require` syntax if you're
254-
using a bundler such as Webpack (and the `@finos/perspective-webpack-plugin`):
255+
using a bundler such as ESBuild (and the `@finos/perspective-esbuild-plugin`):
255256

256257
```javascript
257258
import perspective from "@finos/perspective";
@@ -311,7 +312,7 @@ view.to_csv().then((csv) => console.log(csv));
311312
view.to_arrow().then((arrow) => console.log(arrow));
312313
```
313314

314-
Via ES6 `await`/`async`
315+
Via `await`/`async`
315316

316317
```javascript
317318
async function print_data() {

rust/perspective-viewer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ license = "Apache-2.0"
2121
homepage = "https://perspective.finos.org"
2222
keywords = ["experimental"]
2323
build = "build.rs"
24-
include = ["build.rs", "src/**/*", "Cargo.toml", "package.json"]
24+
include = ["build.rs", "src/**/*", "Cargo.toml", "package.json", "docs/**/*"]
2525

2626
[package.metadata.docs.rs]
2727
rustc-args = ["--cfg", "web_sys_unstable_apis"]

rust/perspective-viewer/src/less/status-bar.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
}
347347

348348
&:hover .button,
349-
.modal-target .button {
349+
&.modal-target .button {
350350
position: relative;
351351
min-width: var(--button--min-width, 33px);
352352
color: inherit;

rust/perspective-viewer/src/themes/icons.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ perspective-string-column-style {
7272
--close-icon--mask-image: url("../svg/close-icon.svg");
7373
--inactive-column-selector--content: url("../svg/checkbox-unchecked-icon.svg");
7474
--active-column-selector--content: url("../svg/checkbox-checked-icon.svg");
75+
--select-arrow-light--background-image: url("../svg/dropdown-selector-light.svg");
76+
--select-arrow-dark--background-image: url("../svg/dropdown-selector.svg");
7577
--overflow-hint-icon--content: "!";
7678
--reset-button-icon--content: "refresh";
7779
--save-button-icon--content: "save";

rust/perspective-viewer/src/themes/pro-dark.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ perspective-string-column-style[theme="Pro Dark"] {
6868
--warning--color: #242526;
6969
--warning--background: var(--icon--color);
7070

71-
--select-arrow--background-image: url("../svg/dropdown-selector.svg");
71+
--select-arrow--background-image: var(
72+
--select-arrow-light--background-image
73+
);
7274

7375
// Column type indicators
7476
--float--column-type--color: #7dc3f0;

rust/perspective-viewer/src/themes/pro.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ perspective-string-column-style[theme="Pro Light"] {
9494
--warning--background: #042121;
9595
--warning--color: #fdfffd;
9696

97-
--select-arrow--background-image: url("../svg/dropdown-selector-light.svg");
97+
--select-arrow--background-image: var(
98+
--select-arrow-dark--background-image
99+
);
98100

99101
// TODO deprecate me
100102
--overflow-hint-icon--color: #fdfffd;

rust/perspective-viewer/src/themes/solarized-dark.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ perspective-string-column-style[theme="Solarized Dark"] {
4848
--inactive--border-color: var(--inactive--color);
4949
--plugin--background: #073642;
5050

51-
--select-arrow--background-image: url("../svg/dropdown-selector.svg");
51+
--select-arrow--background-image: var(
52+
--select-arrow-light--background-image
53+
);
5254
}
5355

5456
// @mixin perspective-viewer-solarized-dark--datagrid {}
@@ -61,9 +63,11 @@ perspective-string-column-style[theme="Solarized Dark"] {
6163
--d3fc-gridline--color: #002b36;
6264
--d3fc-legend--text: #93a1a1;
6365

64-
--d3fc-full--gradient: linear-gradient(#cb4b16 0%,
65-
#073642 50%,
66-
#268bd2 100%);
66+
--d3fc-full--gradient: linear-gradient(
67+
#cb4b16 0%,
68+
#073642 50%,
69+
#268bd2 100%
70+
);
6771

6872
// --d3fc-positive--gradient: linear-gradient(#073642 0%, #268bd2 100%);
6973
--d3fc-negative--gradient: linear-gradient(#cb4b16 0%, #073642 100%);

0 commit comments

Comments
 (0)