From 58f2cac0bb3e562b39e6eb1f468649d3f07d14ef Mon Sep 17 00:00:00 2001 From: Davis Silverman Date: Mon, 25 Sep 2023 13:36:28 -0400 Subject: [PATCH] WIP, finalizing features, found bug --- examples/blocks/src/magic/all_layout.json | 81 ++++++++++++++++++++++ examples/blocks/src/magic/build.mjs | 19 ++--- examples/blocks/src/magic/index.css | 12 ++++ examples/blocks/src/magic/index.html | 1 + examples/blocks/src/magic/index.js | 27 +++++--- examples/blocks/src/magic/layout.json | 2 +- examples/blocks/src/magic/preview.png | Bin 441432 -> 157882 bytes examples/blocks/src/magic/thumbnail.png | Bin 0 -> 25065 bytes examples/blocks/src/nypd/build.mjs | 12 ++++ examples/blocks/src/nypd/preview.png | Bin 658514 -> 223752 bytes examples/blocks/src/nypd/thumbnail.png | Bin 0 -> 36788 bytes 11 files changed, 137 insertions(+), 17 deletions(-) create mode 100644 examples/blocks/src/magic/all_layout.json create mode 100644 examples/blocks/src/magic/index.css create mode 100644 examples/blocks/src/magic/thumbnail.png create mode 100644 examples/blocks/src/nypd/thumbnail.png diff --git a/examples/blocks/src/magic/all_layout.json b/examples/blocks/src/magic/all_layout.json new file mode 100644 index 0000000000..b347f2cc18 --- /dev/null +++ b/examples/blocks/src/magic/all_layout.json @@ -0,0 +1,81 @@ +{ + "sizes": [1], + "detail": { + "main": { + "type": "tab-area", + "widgets": ["PERSPECTIVE_GENERATED_ID_3"], + "currentIndex": 0 + } + }, + "mode": "globalFilters", + "viewers": { + "PERSPECTIVE_GENERATED_ID_3": { + "plugin": "Datagrid", + "plugin_config": { + "columns": {}, + "editable": false, + "scroll_lock": false + }, + "settings": true, + "title": "All Cards", + "group_by": [], + "split_by": [], + "columns": [ + "name", + "type", + "manaCost", + "colors", + "colors_1", + "colors_2", + "colors_3", + "colorIdentity", + "colorIdentity_0", + "borderColor", + "availability", + "availability_0", + "finishes", + "finishes_0", + "flavorText", + "frameVersion", + "keywords", + "keywords_0", + "keywords_1", + "keywords_2", + "language", + "layout", + "number", + "power", + "printings", + "printings_0", + "printings_1", + "promoTypes", + "promoTypes_0", + "promoTypes_1", + "promoTypes_2", + "rarity", + "securityStamp", + "setCode", + "subtypes", + "subtypes_0", + "supertypes", + "text", + "toughness", + "types", + "types_0", + "types_1", + "types_2", + "convertedManaCost", + "edhrecRank", + "edhrecSaltiness", + "manaValue" + ], + "filter": [], + "sort": [], + "expressions": [], + "aggregates": {}, + "master": false, + "table": "deck", + "linked": false + } + } +} diff --git a/examples/blocks/src/magic/build.mjs b/examples/blocks/src/magic/build.mjs index 8c27075b40..474f18055c 100644 --- a/examples/blocks/src/magic/build.mjs +++ b/examples/blocks/src/magic/build.mjs @@ -1,11 +1,14 @@ -/****************************************************************************** - * - * Copyright (c) 2021, the `mtg-perspective` Authors. - * - * This file is part of the `mtg-perspective` library, distributed under the terms of - * the Apache License 2.0. The full license can be found in the LICENSE file. - * - */ +// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃ +// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃ +// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃ +// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃ +// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ +// ┃ Copyright (c) 2017, the Perspective Authors. ┃ +// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃ +// ┃ This file is part of the Perspective library, distributed under the terms ┃ +// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃ +// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ import perspective from "@finos/perspective"; diff --git a/examples/blocks/src/magic/index.css b/examples/blocks/src/magic/index.css new file mode 100644 index 0000000000..e9f5214ee3 --- /dev/null +++ b/examples/blocks/src/magic/index.css @@ -0,0 +1,12 @@ + +body { + display: flex; + flex-direction: column; + background-color: #DADADA; + height: 100%; + margin: 0; +} + +#header { + padding: 3px; +} \ No newline at end of file diff --git a/examples/blocks/src/magic/index.html b/examples/blocks/src/magic/index.html index 3c0eff2d56..c401040855 100644 --- a/examples/blocks/src/magic/index.html +++ b/examples/blocks/src/magic/index.html @@ -11,6 +11,7 @@ +