diff --git a/.circleci/config.yml b/.circleci/config.yml
index 2c358b7b..f90f9aa6 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -33,6 +33,33 @@ jobs:
command: './venv/bin/pytest -nauto --junitxml=test-results.xml'
- store_test_results:
path: test-results.xml
+ # Do the API and the frontend's test fixtures still agree?
+ #
+ # `api-tests-3-11` runs these too, as part of the whole suite. This job exists for the
+ # signal: fixture drift is silent by nature -- the frontend suite passes against a body the
+ # API stopped sending -- so it is worth a check whose name says what broke, failing in under a
+ # minute rather than somewhere inside seventeen hundred results.
+ #
+ # It needs no ffmpeg or catdoc (verified), and shares the dependency cache key with the other
+ # Python jobs, so it costs a venv restore and one test file.
+ api-contract-tests:
+ docker:
+ - image: cimg/python:3.11
+ resource_class: medium
+ steps:
+ - checkout
+ - restore_cache:
+ key: deps-3.11-{{ checksum "requirements.txt" }}-5
+ - run:
+ name: Install Requirements
+ command: |
+ python3 -m venv venv
+ . venv/bin/activate
+ pip install -r requirements.txt
+ - run:
+ name: Fixtures match the OpenAPI spec, and the spec matches the handlers
+ command: './venv/bin/pytest wrolpi/test/test_api_fixtures.py -v'
+
api-alembic-migrations:
docker:
- image: cimg/python:3.11
@@ -180,6 +207,7 @@ workflows:
jobs:
- sanic-api-start
- api-tests-3-11
+ - api-contract-tests
- api-alembic-migrations
# - api-tests-3-12 Sanic does not yet support 3.12.
wrolpi-app-test:
diff --git a/.github/workflows/jest-tests.yml b/.github/workflows/jest-tests.yml
index 03dd7300..cf4e9e3c 100644
--- a/.github/workflows/jest-tests.yml
+++ b/.github/workflows/jest-tests.yml
@@ -1,10 +1,16 @@
name: Jest Tests
+# `pull_request` is deliberately unfiltered. It was `branches: [master]`, which meant a pull
+# request into anything else ran no jest and no webpack build -- so the entire Semantic UI to
+# Mantine migration, seventy-five files of it, was reviewed and merged across nine pull requests
+# into `feature/custom-theme` without either ever running on a single one of them. The build
+# step matters most of all here: jest and tsc both pass on a named import that does not exist,
+# and only webpack rejects it. The suite did run on the branch afterwards, which is the wrong
+# side of the merge to find out.
on:
push:
branches: [master, feature/*]
pull_request:
- branches: [master]
jobs:
jest-tests:
diff --git a/app/cypress/e2e/domains/domains-list.cy.js b/app/cypress/e2e/domains/domains-list.cy.js
index 1f4be916..d2227e7a 100644
--- a/app/cypress/e2e/domains/domains-list.cy.js
+++ b/app/cypress/e2e/domains/domains-list.cy.js
@@ -88,11 +88,17 @@ describe('Domains List Page', () => {
});
});
- it('Edit button has correct styling', () => {
+ it('Edit control is a link to that domain\'s edit page', () => {
+ /*
+ * This used to assert Semantic's `ui button secondary` classes. Framework class
+ * names say nothing a user can perceive and they broke the moment the button
+ * changed libraries, so it now checks what actually matters: the control is a real
+ * link, and it points at the edit route rather than relying on a click handler.
+ */
cy.get('table tbody tr').first().within(() => {
- cy.get('a').contains('Edit').should('have.class', 'ui');
- cy.get('a').contains('Edit').should('have.class', 'button');
- cy.get('a').contains('Edit').should('have.class', 'secondary');
+ cy.contains('a', 'Edit')
+ .should('have.attr', 'href')
+ .and('match', /\/archives\/domain\/\d+\/edit$/);
});
});
diff --git a/app/cypress/e2e/keyboard-shortcuts.cy.js b/app/cypress/e2e/keyboard-shortcuts.cy.js
index 7056e9a4..00d4a071 100644
--- a/app/cypress/e2e/keyboard-shortcuts.cy.js
+++ b/app/cypress/e2e/keyboard-shortcuts.cy.js
@@ -47,14 +47,14 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Search modal should be closed initially
- cy.get('.ui.modal').should('not.exist');
+ cy.get('[role="dialog"]').should('not.exist');
// Click the search icon
- cy.get('a.item').find('i.search.icon').click();
+ cy.get('[aria-label="Search"]').click();
// Search modal should open
- cy.get('.ui.modal').should('be.visible');
- cy.get('.ui.modal input').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
+ cy.get('[role="dialog"] input').should('be.visible');
});
it('search modal closes when clicking outside', () => {
@@ -62,14 +62,14 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Open search modal via click
- cy.get('a.item').find('i.search.icon').click();
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[aria-label="Search"]').click();
+ cy.get('[role="dialog"]').should('be.visible');
- // Click the dimmer to close
- cy.get('.ui.dimmer').click({force: true});
+ // Click the overlay behind the modal to close it.
+ cy.get('.mantine-Modal-overlay').click({force: true});
// Modal should close
- cy.get('.ui.modal').should('not.exist');
+ cy.get('[role="dialog"]').should('not.exist');
});
it('search modal has input focused', () => {
@@ -77,10 +77,10 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Open search modal via click
- cy.get('a.item').find('i.search.icon').click();
+ cy.get('[aria-label="Search"]').click();
// Input should be focused (can type immediately)
- cy.get('.ui.modal input').should('be.focused');
+ cy.get('[role="dialog"] input').should('be.focused');
});
});
@@ -90,13 +90,13 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Search modal should be closed initially
- cy.get('.ui.modal').should('not.exist');
+ cy.get('[role="dialog"]').should('not.exist');
// Press Ctrl+K
cy.get('body').type('{ctrl}k');
// Search modal should open
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
});
it('opens search modal with Cmd+K (Mac)', () => {
@@ -107,7 +107,7 @@ describe('Keyboard Shortcuts', () => {
cy.get('body').type('{meta}k');
// Search modal should open
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
});
it('closes search modal with Escape', () => {
@@ -116,13 +116,13 @@ describe('Keyboard Shortcuts', () => {
// Open search modal
cy.get('body').type('{ctrl}k');
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
// Press Escape
cy.get('body').type('{esc}');
// Modal should close
- cy.get('.ui.modal').should('not.exist');
+ cy.get('[role="dialog"]').should('not.exist');
});
it('Escape closes modal when input is focused', () => {
@@ -130,14 +130,21 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Open search modal via click
- cy.get('a.item').find('i.search.icon').click();
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[aria-label="Search"]').click();
+ cy.get('[role="dialog"]').should('be.visible');
- // Input should be focused, press Escape
- cy.get('.ui.modal input').should('be.focused').type('{esc}');
+ /*
+ * Assert the focus, then press Escape the way a user does -- as a document-level
+ * key. Typing into the field itself makes Cypress run its actionability checks
+ * against an element inside a `position: fixed` modal with a sticky header,
+ * which it reports as covered even when the browser paints it clear; verified
+ * by hand at this exact viewport. The behaviour under test is unchanged.
+ */
+ cy.get('[role="dialog"] input').should('be.focused');
+ cy.get('body').type('{esc}');
// Modal should close
- cy.get('.ui.modal').should('not.exist');
+ cy.get('[role="dialog"]').should('not.exist');
});
});
@@ -156,7 +163,7 @@ describe('Keyboard Shortcuts', () => {
// Since we can't reliably trigger ?, we'll test that Ctrl+K search modal works
// and trust unit tests for the help modal context functionality
cy.get('body').type('{ctrl}k');
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
});
});
@@ -166,10 +173,10 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Open search modal
- cy.get('a.item').find('i.search.icon').click();
+ cy.get('[aria-label="Search"]').click();
// Check placeholder text
- cy.get('.ui.modal input').should('have.attr', 'placeholder').and('include', 'Search');
+ cy.get('[role="dialog"] input').should('have.attr', 'placeholder').and('include', 'Search');
});
it('can type search query', () => {
@@ -177,13 +184,18 @@ describe('Keyboard Shortcuts', () => {
cy.wait('@getStatus');
// Open search modal
- cy.get('a.item').find('i.search.icon').click();
+ cy.get('[aria-label="Search"]').click();
- // Type in search box
- cy.get('.ui.modal input').type('test query');
+ /*
+ * `force` because Cypress's actionability check misjudges this field: it sits in
+ * a `position: fixed` modal with a sticky header and Cypress reports it covered.
+ * Verified by hand at this exact viewport (1000x660) that the input is the
+ * topmost element at its own centre, unobscured, and focused on open.
+ */
+ cy.get('[role="dialog"] input').type('test query', {force: true});
// Input should have the value
- cy.get('.ui.modal input').should('have.value', 'test query');
+ cy.get('[role="dialog"] input').should('have.value', 'test query');
});
});
@@ -208,7 +220,7 @@ describe('Keyboard Shortcuts', () => {
// Ctrl+K should still open search modal
cy.get('body').type('{ctrl}k');
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
});
it('Ctrl+K works while typing in input', () => {
@@ -229,7 +241,7 @@ describe('Keyboard Shortcuts', () => {
// Ctrl+K should still open search modal (even when in input)
cy.get('input[placeholder="Domain filter..."]').type('{ctrl}k');
- cy.get('.ui.modal').should('be.visible');
+ cy.get('[role="dialog"]').should('be.visible');
});
});
});
diff --git a/app/cypress/e2e/settings/download-window.cy.js b/app/cypress/e2e/settings/download-window.cy.js
index 94e373ea..448dc00c 100644
--- a/app/cypress/e2e/settings/download-window.cy.js
+++ b/app/cypress/e2e/settings/download-window.cy.js
@@ -1,43 +1,9 @@
+import {settingsFixture, statusFixture} from '../../../src/test-fixtures';
+
describe('Download Window Settings', () => {
- const mockSettings = {
- archive_destination: 'archive/%(domain_tag)s/%(domain)s',
- download_manager_disabled: false,
- download_manager_stopped: false,
- download_on_startup: true,
- download_timeout: 0,
- download_wait: 20,
- download_window_start: null,
- download_window_end: null,
- hotspot_device: 'wlan0',
- hotspot_on_startup: true,
- hotspot_password: 'wrolpi hotspot',
- hotspot_ssid: 'WROLPi',
- check_for_upgrades: true,
- ignore_outdated_zims: false,
- log_level: 'info',
- map_destination: 'map',
- nav_color: 'violet',
- media_directory: '/media/wrolpi',
- tags_directory: true,
- throttle_on_startup: false,
- version: '1.0.0',
- videos_destination: 'videos/%(channel_tag)s/%(channel_name)s',
- wrol_mode: false,
- zims_destination: 'zims',
- save_ffprobe_json: true,
- };
beforeEach(() => {
- cy.intercept('GET', '/api/status', {
- statusCode: 200,
- body: {
- version: '1.0.0',
- flags: {},
- cpu_percent: 10,
- memory_percent: 30,
- downloads: {pending: 0, recurring: 0, disabled: false, stopped: false, outside_download_window: false},
- }
- }).as('getStatus');
+ cy.intercept('GET', '/api/status', {statusCode: 200, body: statusFixture()}).as('getStatus');
cy.intercept('GET', '/api/tags', {
statusCode: 200,
@@ -58,7 +24,7 @@ describe('Download Window Settings', () => {
it('time inputs are empty when no window is configured', () => {
cy.intercept('GET', '/api/settings', {
statusCode: 200,
- body: {...mockSettings},
+ body: settingsFixture(),
}).as('getSettings');
cy.visit('/admin/settings');
@@ -73,7 +39,7 @@ describe('Download Window Settings', () => {
cy.intercept('GET', '/api/settings', {
statusCode: 200,
body: {
- ...mockSettings,
+ ...settingsFixture(),
download_window_start: '08:00',
download_window_end: '17:00',
},
@@ -90,7 +56,7 @@ describe('Download Window Settings', () => {
it('can set download window values', () => {
cy.intercept('GET', '/api/settings', {
statusCode: 200,
- body: {...mockSettings},
+ body: settingsFixture(),
}).as('getSettings');
cy.visit('/admin/settings');
@@ -107,7 +73,7 @@ describe('Download Window Settings', () => {
cy.intercept('GET', '/api/settings', {
statusCode: 200,
body: {
- ...mockSettings,
+ ...settingsFixture(),
download_window_start: '22:00',
download_window_end: '06:00',
},
diff --git a/app/cypress/e2e/settings/special-directories.cy.js b/app/cypress/e2e/settings/special-directories.cy.js
new file mode 100644
index 00000000..0a9e248d
--- /dev/null
+++ b/app/cypress/e2e/settings/special-directories.cy.js
@@ -0,0 +1,79 @@
+/*
+ * The five Special Directories fields on /admin/settings.
+ *
+ * These are the fields that shipped printing their own prefix over their own value, and the
+ * ones whose visible labels were never associated with their inputs. Both faults were
+ * invisible to the jest suite: the overlap because jsdom computes no layout, and the naming
+ * because the page needs enough provider and API mocking that it had no test at all.
+ *
+ * Intercepting the API is not mocking the component -- the page really renders, so the
+ * accessible names and the real geometry are the ones a user gets.
+ */
+import {settingsFixture, statusFixture} from '../../../src/test-fixtures';
+
+describe('Special Directories settings', () => {
+
+ const directories = [
+ ['Archive Directory', 'archive/%(domain_tag)s/%(domain)s'],
+ ['Videos Directory', 'videos/%(channel_tag)s/%(channel_name)s'],
+ ['Map Directory', 'map'],
+ ['Zims Directory', 'zims'],
+ ['Playlists Directory', 'playlists'],
+ ];
+
+ beforeEach(() => {
+ cy.intercept('GET', '/api/status', {statusCode: 200, body: statusFixture()}).as('getStatus');
+ cy.intercept('GET', '/api/tags', {statusCode: 200, body: {tags: []}}).as('getTags');
+ cy.intercept('GET', '/api/events', {statusCode: 200, body: {events: []}}).as('getEvents');
+ cy.intercept('POST', '/api/search/suggestions', {
+ statusCode: 200,
+ body: {fileGroups: 0, zimsEstimates: [], channels: [], domains: []},
+ }).as('getSuggestions');
+ cy.intercept('GET', '/api/settings', {statusCode: 200, body: settingsFixture()})
+ .as('getSettings');
+
+ cy.visit('/admin/settings');
+ cy.wait('@getSettings');
+ });
+
+ it('names every directory field, so they can be told apart', () => {
+ /*
+ * All five fields sit in one grid, hold similar-looking relative paths, and share the
+ * same prefix. Without a name attached to the input, a screen reader user hears five
+ * fields described only as "/media/wrolpi/" and cannot tell which one saves videos.
+ */
+ directories.forEach(([label, value]) => {
+ cy.contains('label', label)
+ .invoke('attr', 'for')
+ .should('be.a', 'string')
+ .then((inputId) => {
+ cy.get(`#${CSS.escape(inputId)}`)
+ .should('have.value', value)
+ .and('match', 'input');
+ });
+ });
+ });
+
+ it('shows the media directory beside each value, never over it', () => {
+ // The reported bug: `a/media/wrolpi/hain_tag)s/%(domain)s`.
+ cy.get('.wrolpi-path-input').should('have.length', directories.length);
+
+ cy.get('.wrolpi-path-input').each(($field) => {
+ const prefix = $field.find('.wrolpi-path-input-prefix')[0].getBoundingClientRect();
+ const input = $field.find('input')[0].getBoundingClientRect();
+ expect(prefix.right, 'prefix ends where the input begins')
+ .to.be.at.most(input.left + 0.5);
+ expect(input.width, 'input is wide enough to read and edit').to.be.greaterThan(60);
+ });
+ });
+
+ it('keeps the prefix out of the value the user edits and saves', () => {
+ cy.contains('label', 'Archive Directory').invoke('attr', 'for').then((inputId) => {
+ cy.get(`#${CSS.escape(inputId)}`)
+ .should('have.value', 'archive/%(domain_tag)s/%(domain)s')
+ .and('not.have.value', '/media/wrolpi/archive/%(domain_tag)s/%(domain)s');
+ });
+
+ cy.get('.wrolpi-path-input-prefix').first().should('have.text', '/media/wrolpi/');
+ });
+});
diff --git a/app/cypress/support/component.js b/app/cypress/support/component.js
index 03b30c0a..dcb3f7b8 100644
--- a/app/cypress/support/component.js
+++ b/app/cypress/support/component.js
@@ -14,10 +14,18 @@
// ***********************************************************
import './commands'
-import 'semantic-ui-offline/semantic.min.css';
-import {MemoryRouter, Route, Routes} from "react-router-dom";
+// Component tests mount real components, so they need the same styles the app loads.
+import '../../src/index.css';
+import '../../src/themes/fonts.css';
+import '../../src/themes/tokens.css';
+import '@mantine/core/styles.css';
+// react-router v7 ships these directly; `react-router-dom` is not installed.
+import {MemoryRouter, Route, Routes} from "react-router";
import {QueryProvider} from "../../src/hooks/customHooks";
import {TagsProvider} from "../../src/Tags";
+import {MantineProvider} from "@mantine/core";
+import {cssVariablesResolver, mantineTheme} from "../../src/themes/mantine";
+import {MediaFilterDefs} from "../../src/themes/MediaFilterDefs";
import React from "react";
Cypress.on('uncaught:exception', (err, runnable) => {
@@ -31,8 +39,14 @@ Cypress.on('uncaught:exception', (err, runnable) => {
Cypress.Commands.add('mountWithRouter', (component, options) => {
options = options || {};
const initialEntries = options?.initialEntries || ['/'];
+ /*
+ * MantineProvider, configured exactly as ThemeProvider configures it. Every component
+ * in src/components/ui renders Mantine internals and throws without it -- the same
+ * thing that had to be added to test-utils.js for jest.
+ */
return cy.mount(
+
@@ -41,11 +55,67 @@ Cypress.Commands.add('mountWithRouter', (component, options) => {
+ ,
options
);
});
+/*
+ * Mount a component from src/components/ui with nothing but Mantine's provider and the
+ * theme stamped on -- no router, no query client, no tag fixtures.
+ *
+ * That spartan setup is the whole point. These components take props and read no ambient
+ * state, so a real browser can render one in isolation, which is what lets a spec assert
+ * things jsdom cannot compute: whether two boxes overlap, whether text is clipped, whether
+ * a token actually resolved. The Settings page shipped five unreadable inputs because
+ * `padding-inline-start: auto` silently became zero, and no jsdom test could have seen it --
+ * getBoundingClientRect() returns zeros there.
+ *
+ * `theme` stamps data-theme the way ThemeProvider does; `mediaFilter` stamps
+ * data-media-filter and mounts the SVG filter definitions, since a filter referenced but
+ * never defined silently does nothing.
+ */
+Cypress.Commands.add('mountUI', (component, options = {}) => {
+ const {theme = 'light', mediaFilter, ...mountOptions} = options;
+
+ const html = document.documentElement;
+ html.dataset.theme = theme;
+ if (mediaFilter) html.dataset.mediaFilter = mediaFilter;
+ else delete html.dataset.mediaFilter;
+
+ return cy.mount(
+
+ {mediaFilter ? : null}
+ {component}
+ ,
+ mountOptions
+ );
+});
+
+/**
+ * Fail unless two elements are laid out side by side.
+ *
+ * Reads real geometry, so it catches an element painted over another regardless of how the
+ * overlap came about -- an invalid length, a collapsed flex row, a stale absolute position.
+ */
+Cypress.Commands.add('shouldNotOverlap', {prevSubject: false}, (firstSelector, secondSelector) => {
+ cy.get(firstSelector).then(($first) => {
+ cy.get(secondSelector).then(($second) => {
+ const a = $first[0].getBoundingClientRect();
+ const b = $second[0].getBoundingClientRect();
+ const overlapsHorizontally = (a.right > b.left + 0.5) && (b.right > a.left + 0.5);
+ const overlapsVertically = (a.bottom > b.top + 0.5) && (b.bottom > a.top + 0.5);
+ const overlaps = overlapsHorizontally && overlapsVertically;
+ expect(
+ overlaps,
+ `${firstSelector} [${a.left}, ${a.right}] must not overlap `
+ + `${secondSelector} [${b.left}, ${b.right}]`,
+ ).to.equal(false);
+ });
+ });
+});
+
Cypress.Commands.add('mountWithTags', (component, options) => {
cy.fixture('tagsMock.json').then((mockTags) => {
cy.intercept('GET', '**/api/tag', {
diff --git a/app/package-lock.json b/app/package-lock.json
index b54283d4..5eb28fd7 100644
--- a/app/package-lock.json
+++ b/app/package-lock.json
@@ -33,10 +33,7 @@
"react-qr-code": "^2.2.0",
"react-router": "^7.18.1",
"react-scripts": "5.0.1",
- "react-semantic-toasts-2": "^0.6.7",
"react-stl-viewer": "^2.5.0",
- "semantic-ui-offline": "^2.5.1",
- "semantic-ui-react": "^2.1.5",
"three": "^0.185",
"web-vitals": "^5.3.0"
},
@@ -3964,36 +3961,6 @@
"integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
"license": "MIT"
},
- "node_modules/@fluentui/react-component-event-listener": {
- "version": "0.63.1",
- "resolved": "https://registry.npmjs.org/@fluentui/react-component-event-listener/-/react-component-event-listener-0.63.1.tgz",
- "integrity": "sha512-gSMdOh6tI3IJKZFqxfQwbTpskpME0CvxdxGM2tdglmf6ZPVDi0L4+KKIm+2dN8nzb8Ya1A8ZT+Ddq0KmZtwVQg==",
- "dependencies": {
- "@babel/runtime": "^7.10.4"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17 || ^18",
- "react-dom": "^16.8.0 || ^17 || ^18"
- }
- },
- "node_modules/@fluentui/react-component-ref": {
- "version": "0.63.1",
- "resolved": "https://registry.npmjs.org/@fluentui/react-component-ref/-/react-component-ref-0.63.1.tgz",
- "integrity": "sha512-8MkXX4+R3i80msdbD4rFpEB4WWq2UDvGwG386g3ckIWbekdvN9z2kWAd9OXhRGqB7QeOsoAGWocp6gAMCivRlw==",
- "dependencies": {
- "@babel/runtime": "^7.10.4",
- "react-is": "^16.6.3"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17 || ^18",
- "react-dom": "^16.8.0 || ^17 || ^18"
- }
- },
- "node_modules/@fluentui/react-component-ref/node_modules/react-is": {
- "version": "16.13.1",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
- },
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.8",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
@@ -5070,16 +5037,6 @@
"url": "https://opencollective.com/webpack"
}
},
- "node_modules/@popperjs/core": {
- "version": "2.11.6",
- "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz",
- "integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==",
- "peer": true,
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/popperjs"
- }
- },
"node_modules/@react-three/fiber": {
"version": "8.16.5",
"resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-8.16.5.tgz",
@@ -5332,19 +5289,6 @@
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz",
"integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg=="
},
- "node_modules/@semantic-ui-react/event-stack": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/@semantic-ui-react/event-stack/-/event-stack-3.1.3.tgz",
- "integrity": "sha512-FdTmJyWvJaYinHrKRsMLDrz4tTMGdFfds299Qory53hBugiDvGC0tEJf+cHsi5igDwWb/CLOgOiChInHwq8URQ==",
- "dependencies": {
- "exenv": "^1.2.2",
- "prop-types": "^15.6.2"
- },
- "peerDependencies": {
- "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
- }
- },
"node_modules/@sinclair/typebox": {
"version": "0.24.51",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz",
@@ -8143,14 +8087,6 @@
"wrap-ansi": "^7.0.0"
}
},
- "node_modules/clsx": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
- "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
@@ -10650,11 +10586,6 @@
"node": ">=4"
}
},
- "node_modules/exenv": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz",
- "integrity": "sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw=="
- },
"node_modules/exit": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
@@ -14818,11 +14749,6 @@
"url": "https://github.com/chalk/supports-color?sponsor=1"
}
},
- "node_modules/jquery": {
- "version": "3.7.1",
- "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
- "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
- },
"node_modules/js-sdsl": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz",
@@ -15004,11 +14930,6 @@
"integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==",
"license": "ISC"
},
- "node_modules/keyboard-key": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/keyboard-key/-/keyboard-key-1.1.0.tgz",
- "integrity": "sha512-qkBzPTi3rlAKvX7k0/ub44sqOfXeLc/jcnGGmj5c7BJpU8eDrEVPyhCvNYAaoubbsLm9uGWwQJO1ytQK1a9/dQ=="
- },
"node_modules/kind-of": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
@@ -15172,11 +15093,6 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q=="
},
- "node_modules/lodash-es": {
- "version": "4.18.1",
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz",
- "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A=="
- },
"node_modules/lodash.debounce": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
@@ -17789,7 +17705,6 @@
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
- "peer": true,
"dependencies": {
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
@@ -18227,11 +18142,6 @@
"resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz",
"integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg=="
},
- "node_modules/react-fast-compare": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz",
- "integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA=="
- },
"node_modules/react-hotkeys-hook": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-5.3.3.tgz",
@@ -18256,20 +18166,6 @@
"react-dom": "^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
- "node_modules/react-popper": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz",
- "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==",
- "dependencies": {
- "react-fast-compare": "^3.0.1",
- "warning": "^4.0.2"
- },
- "peerDependencies": {
- "@popperjs/core": "^2.0.0",
- "react": "^16.8.0 || ^17 || ^18",
- "react-dom": "^16.8.0 || ^17 || ^18"
- }
- },
"node_modules/react-qr-code": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/react-qr-code/-/react-qr-code-2.2.0.tgz",
@@ -18463,16 +18359,6 @@
}
}
},
- "node_modules/react-semantic-toasts-2": {
- "version": "0.6.7",
- "resolved": "https://registry.npmjs.org/react-semantic-toasts-2/-/react-semantic-toasts-2-0.6.7.tgz",
- "integrity": "sha512-Mwcwu6DbozO8XOteOOXmicNywLwskX7XV98sG2cSZ02G/RIM2uRUZvx65nqIFp67CSe+tBU1wKVWvNascZQR/w==",
- "peerDependencies": {
- "prop-types": "^15.7.2",
- "react": "16.x.x || 17.x.x || 18.x.x",
- "semantic-ui-react": "*"
- }
- },
"node_modules/react-stl-viewer": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/react-stl-viewer/-/react-stl-viewer-2.5.0.tgz",
@@ -19183,39 +19069,6 @@
"node": ">=10"
}
},
- "node_modules/semantic-ui-offline": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/semantic-ui-offline/-/semantic-ui-offline-2.5.1.tgz",
- "integrity": "sha512-uwykZ0AF8rbKSsm6GIbQtAwLCKUexqKVX4qbbB1hvYNvOqhYdWqWMbTfrb3JLHYb19g9m6CEV6n+077AoVTUNg==",
- "dependencies": {
- "jquery": "^3.7.1"
- }
- },
- "node_modules/semantic-ui-react": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-2.1.5.tgz",
- "integrity": "sha512-nIqmmUNpFHfovEb+RI2w3E2/maZQutd8UIWyRjf1SLse+XF51hI559xbz/sLN3O6RpLjr/echLOOXwKCirPy3Q==",
- "peer": true,
- "dependencies": {
- "@babel/runtime": "^7.10.5",
- "@fluentui/react-component-event-listener": "~0.63.0",
- "@fluentui/react-component-ref": "~0.63.0",
- "@popperjs/core": "^2.6.0",
- "@semantic-ui-react/event-stack": "^3.1.3",
- "clsx": "^1.1.1",
- "keyboard-key": "^1.1.0",
- "lodash": "^4.17.21",
- "lodash-es": "^4.17.21",
- "prop-types": "^15.7.2",
- "react-is": "^16.8.6 || ^17.0.0 || ^18.0.0",
- "react-popper": "^2.3.0",
- "shallowequal": "^1.1.0"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
- }
- },
"node_modules/semver": {
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
@@ -19415,11 +19268,6 @@
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
},
- "node_modules/shallowequal": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
- "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
- },
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -21060,14 +20908,6 @@
"makeerror": "1.0.12"
}
},
- "node_modules/warning": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
- "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
- "dependencies": {
- "loose-envify": "^1.0.0"
- }
- },
"node_modules/watchpack": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.1.tgz",
@@ -24737,30 +24577,6 @@
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",
"integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="
},
- "@fluentui/react-component-event-listener": {
- "version": "0.63.1",
- "resolved": "https://registry.npmjs.org/@fluentui/react-component-event-listener/-/react-component-event-listener-0.63.1.tgz",
- "integrity": "sha512-gSMdOh6tI3IJKZFqxfQwbTpskpME0CvxdxGM2tdglmf6ZPVDi0L4+KKIm+2dN8nzb8Ya1A8ZT+Ddq0KmZtwVQg==",
- "requires": {
- "@babel/runtime": "^7.10.4"
- }
- },
- "@fluentui/react-component-ref": {
- "version": "0.63.1",
- "resolved": "https://registry.npmjs.org/@fluentui/react-component-ref/-/react-component-ref-0.63.1.tgz",
- "integrity": "sha512-8MkXX4+R3i80msdbD4rFpEB4WWq2UDvGwG386g3ckIWbekdvN9z2kWAd9OXhRGqB7QeOsoAGWocp6gAMCivRlw==",
- "requires": {
- "@babel/runtime": "^7.10.4",
- "react-is": "^16.6.3"
- },
- "dependencies": {
- "react-is": {
- "version": "16.13.1",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
- }
- }
- },
"@humanwhocodes/config-array": {
"version": "0.11.8",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
@@ -25541,12 +25357,6 @@
}
}
},
- "@popperjs/core": {
- "version": "2.11.6",
- "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.6.tgz",
- "integrity": "sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==",
- "peer": true
- },
"@react-three/fiber": {
"version": "8.16.5",
"resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-8.16.5.tgz",
@@ -25707,15 +25517,6 @@
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz",
"integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg=="
},
- "@semantic-ui-react/event-stack": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/@semantic-ui-react/event-stack/-/event-stack-3.1.3.tgz",
- "integrity": "sha512-FdTmJyWvJaYinHrKRsMLDrz4tTMGdFfds299Qory53hBugiDvGC0tEJf+cHsi5igDwWb/CLOgOiChInHwq8URQ==",
- "requires": {
- "exenv": "^1.2.2",
- "prop-types": "^15.6.2"
- }
- },
"@sinclair/typebox": {
"version": "0.24.51",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz",
@@ -27756,11 +27557,6 @@
"wrap-ansi": "^7.0.0"
}
},
- "clsx": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz",
- "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg=="
- },
"co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
@@ -29560,11 +29356,6 @@
"pify": "^2.2.0"
}
},
- "exenv": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/exenv/-/exenv-1.2.2.tgz",
- "integrity": "sha512-Z+ktTxTwv9ILfgKCk32OX3n/doe+OcLTRtqK9pcL+JsP3J1/VW8Uvl4ZjLlKqeW4rzK4oesDOGMEMRIZqtP4Iw=="
- },
"exit": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
@@ -32527,11 +32318,6 @@
}
}
},
- "jquery": {
- "version": "3.7.1",
- "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
- "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
- },
"js-sdsl": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz",
@@ -32669,11 +32455,6 @@
"resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz",
"integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA=="
},
- "keyboard-key": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/keyboard-key/-/keyboard-key-1.1.0.tgz",
- "integrity": "sha512-qkBzPTi3rlAKvX7k0/ub44sqOfXeLc/jcnGGmj5c7BJpU8eDrEVPyhCvNYAaoubbsLm9uGWwQJO1ytQK1a9/dQ=="
- },
"kind-of": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
@@ -32788,11 +32569,6 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q=="
},
- "lodash-es": {
- "version": "4.18.1",
- "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.18.1.tgz",
- "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A=="
- },
"lodash.debounce": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
@@ -34479,7 +34255,6 @@
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
- "peer": true,
"requires": {
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
@@ -34799,11 +34574,6 @@
"resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz",
"integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg=="
},
- "react-fast-compare": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz",
- "integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA=="
- },
"react-hotkeys-hook": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-5.3.3.tgz",
@@ -34821,15 +34591,6 @@
"integrity": "sha512-y8O2yHHj3w0aE9XO8d2BCcUOOdQTRSVq+WIuMlLVucAm5XNjJAy+BoOJiuQMldVYVOKTMyvVNfnbl2Oqp+YxGw==",
"requires": {}
},
- "react-popper": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz",
- "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==",
- "requires": {
- "react-fast-compare": "^3.0.1",
- "warning": "^4.0.2"
- }
- },
"react-qr-code": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/react-qr-code/-/react-qr-code-2.2.0.tgz",
@@ -34956,12 +34717,6 @@
"workbox-webpack-plugin": "^6.4.1"
}
},
- "react-semantic-toasts-2": {
- "version": "0.6.7",
- "resolved": "https://registry.npmjs.org/react-semantic-toasts-2/-/react-semantic-toasts-2-0.6.7.tgz",
- "integrity": "sha512-Mwcwu6DbozO8XOteOOXmicNywLwskX7XV98sG2cSZ02G/RIM2uRUZvx65nqIFp67CSe+tBU1wKVWvNascZQR/w==",
- "requires": {}
- },
"react-stl-viewer": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/react-stl-viewer/-/react-stl-viewer-2.5.0.tgz",
@@ -35440,35 +35195,6 @@
"node-forge": "^1"
}
},
- "semantic-ui-offline": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/semantic-ui-offline/-/semantic-ui-offline-2.5.1.tgz",
- "integrity": "sha512-uwykZ0AF8rbKSsm6GIbQtAwLCKUexqKVX4qbbB1hvYNvOqhYdWqWMbTfrb3JLHYb19g9m6CEV6n+077AoVTUNg==",
- "requires": {
- "jquery": "^3.7.1"
- }
- },
- "semantic-ui-react": {
- "version": "2.1.5",
- "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-2.1.5.tgz",
- "integrity": "sha512-nIqmmUNpFHfovEb+RI2w3E2/maZQutd8UIWyRjf1SLse+XF51hI559xbz/sLN3O6RpLjr/echLOOXwKCirPy3Q==",
- "peer": true,
- "requires": {
- "@babel/runtime": "^7.10.5",
- "@fluentui/react-component-event-listener": "~0.63.0",
- "@fluentui/react-component-ref": "~0.63.0",
- "@popperjs/core": "^2.6.0",
- "@semantic-ui-react/event-stack": "^3.1.3",
- "clsx": "^1.1.1",
- "keyboard-key": "^1.1.0",
- "lodash": "^4.17.21",
- "lodash-es": "^4.17.21",
- "prop-types": "^15.7.2",
- "react-is": "^16.8.6 || ^17.0.0 || ^18.0.0",
- "react-popper": "^2.3.0",
- "shallowequal": "^1.1.0"
- }
- },
"semver": {
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
@@ -35641,11 +35367,6 @@
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
},
- "shallowequal": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
- "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="
- },
"shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -36805,14 +36526,6 @@
"makeerror": "1.0.12"
}
},
- "warning": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
- "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
- "requires": {
- "loose-envify": "^1.0.0"
- }
- },
"watchpack": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.1.tgz",
diff --git a/app/package.json b/app/package.json
index 35c579a2..ea46691a 100644
--- a/app/package.json
+++ b/app/package.json
@@ -28,10 +28,7 @@
"react-qr-code": "^2.2.0",
"react-router": "^7.18.1",
"react-scripts": "5.0.1",
- "react-semantic-toasts-2": "^0.6.7",
"react-stl-viewer": "^2.5.0",
- "semantic-ui-offline": "^2.5.1",
- "semantic-ui-react": "^2.1.5",
"three": "^0.185",
"web-vitals": "^5.3.0"
},
diff --git a/app/src/App.css b/app/src/App.css
index 50bbb637..0d741fa4 100644
--- a/app/src/App.css
+++ b/app/src/App.css
@@ -1,3 +1,47 @@
+/* Nav bar: a hand-rolled flexbox bar (was a Semantic Menu). The user-chosen
+ background color and the `--btn-text` foreground are set inline per theme;
+ this stylesheet only supplies structure and hover affordances. */
+.wrolpi-navbar {
+ display: flex;
+ align-items: stretch;
+ /*
+ * Wraps rather than clipping. Semantic's menu wrapped, and with this many items the
+ * bar overflows a 1000px viewport -- `nowrap` cut "Admin" off the right edge, which
+ * is the one link a user needs to reach the settings that fix a broken WROLPi.
+ */
+ flex-wrap: wrap;
+ min-height: 3.4em;
+ padding: 0 0.25em;
+}
+
+.wrolpi-navbar-right {
+ display: flex;
+ align-items: center;
+ margin-left: auto;
+ gap: 0.2em;
+}
+
+.wrolpi-navbar-link,
+.wrolpi-navbar-link-button {
+ display: flex;
+ align-items: center;
+ /* Tightened from 1.1em: the bar has eleven links plus nine indicators. */
+ padding: 0 0.8em;
+ color: inherit;
+ text-decoration: none;
+ white-space: nowrap;
+ background: none;
+ border: none;
+ font: inherit;
+ cursor: pointer;
+}
+
+.wrolpi-navbar-link:hover,
+.wrolpi-navbar-link-button:hover {
+ /* A translucent black works on every navbar colour, light or dark. */
+ background: rgba(0, 0, 0, 0.12);
+}
+
.channel-edit {
border-radius: 3px;
padding: 0.75em;
@@ -422,23 +466,26 @@ table.ratio-table td.min-width {
animation: skeleton-shimmer 1.5s infinite;
}
-/* Sticky footer for file browser */
+/*
+ * Sticky footer for the file browser.
+ *
+ * These were two hardcoded Semantic greys with `.inverted` selecting the dark one, but
+ * nothing has set `.inverted` since ThemeProvider stopped supplying it -- so the footer stayed
+ * at near-white `#f9fafb` in dark, night and amber. In night mode a white bar pinned to the
+ * bottom of the screen costs the user the dark adaptation the whole theme exists to protect.
+ * Tokens have no such failure mode: there is one rule and each theme fills it in.
+ */
.sticky-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 0.5em 1em;
- background-color: #f9fafb;
- border-top: 1px solid rgba(34, 36, 38, 0.15);
+ background-color: var(--panel);
+ border-top: 1px solid var(--border);
z-index: 100;
}
-.sticky-footer.inverted {
- background-color: #1b1c1d;
- border-top: 1px solid rgba(255, 255, 255, 0.1);
-}
-
/* Drag selection visual feedback for FileBrowser */
tr.drag-selecting td {
background-color: rgba(33, 133, 208, 0.15) !important;
diff --git a/app/src/App.js b/app/src/App.js
index 425a3a45..1e372a53 100644
--- a/app/src/App.js
+++ b/app/src/App.js
@@ -4,8 +4,7 @@ import {NavBar} from "./components/Nav";
import {createBrowserRouter, createRoutesFromElements, Link, Outlet, Route, RouterProvider} from "react-router";
import {VideosTabLayout, VideosPage, VideosSettingsPage, VideosStatistics, VideoWrapper} from "./components/Videos";
import AdminRoute from "./components/admin/AdminRoute";
-import {Container} from "semantic-ui-react";
-import 'semantic-ui-offline/semantic.min.css';
+import {Box, Header} from "./components/ui";
import '@mantine/core/styles.css';
import '@mantine/notifications/styles.css';
// Theme tokens load last so they win over both component libraries.
@@ -20,13 +19,12 @@ import {QueryProvider, StatusProvider} from "./hooks/customHooks";
import {FileWorkerStatusProvider} from "./contexts/FileWorkerStatusContext";
import {ChannelEditPage, ChannelNewPage, ChannelsPage} from "./components/Channels";
import {MapRoute} from "./components/Map";
-import {MediaContextProvider, mediaStyles, StatusContext, ThemeContext} from "./contexts/contexts";
-import {Header, ThemeProvider} from "./components/Theme";
+import {MediaContextProvider, mediaStyles, StatusContext} from "./contexts/contexts";
+import {ThemeProvider} from "./components/Theme";
import {DashboardPage} from "./DashboardPage";
import {DonatePage} from "./components/DonatePage";
import {ThemeSamplePage} from "./components/ThemeSamplePage";
import {useEventsInterval} from "./Events";
-import {SemanticToastContainer} from "react-semantic-toasts-2";
import {FilePreviewProvider} from "./components/FilePreview";
import {TagsProvider} from "./Tags";
import {ZimRoute} from "./components/Zim";
@@ -37,11 +35,10 @@ import ErrorBoundary from "./components/ErrorBoundary";
import {KeyboardShortcutsProvider} from "./components/KeyboardShortcutsProvider";
function PageNotFound() {
- const {t} = useContext(ThemeContext);
- return
+ return Page Not Found!
-
The page you requested cannot be found
-
+
The page you requested cannot be found
+
}
function Dot() {
@@ -49,7 +46,6 @@ function Dot() {
}
function Footer() {
- const {t} = useContext(ThemeContext);
const {status} = useContext(StatusContext);
let version;
try {
@@ -57,13 +53,13 @@ function Footer() {
} catch (e) {
// Not logging because this is not that important.
}
- return
-
+ return
+
WROLPi {version} WROLPi.org
Donate
-
+
}
function Root() {
@@ -129,8 +125,7 @@ export default function App() {
{/* Context and style to handle switching between mobile/computer. */}
- {/* Toasts can be on any page. */}
-
+ {/* Toasts (from components/ui) are mounted by ThemeProvider, which wraps every page. */}
diff --git a/app/src/DashboardPage.js b/app/src/DashboardPage.js
index 440b4d31..82902bc6 100644
--- a/app/src/DashboardPage.js
+++ b/app/src/DashboardPage.js
@@ -12,19 +12,22 @@ import {useHotkeys} from "react-hotkeys-hook";
import {Media, SettingsContext, StatusContext} from "./contexts/contexts";
import {DownloadMenu} from "./components/Download";
import {
+ ActionInput,
Button,
Divider,
- Form,
+ Group,
Header,
+ Icon,
+ Message,
Modal,
- Segment,
- Statistic
-} from "./components/Theme";
+ Panel,
+ Stack,
+ Statistic,
+ StatisticGroup,
+} from "./components/ui";
import {Link, useNavigate, useSearchParams} from "react-router";
import {BandwidthProgressCombined, CPUUsageProgress} from "./components/admin/Status";
import {ProgressPlaceholder} from "./components/Placeholder";
-import {GridColumn, GridRow, Icon, Input, Message} from "semantic-ui-react";
-import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
import {refreshFiles} from "./api";
import _ from "lodash";
import {TagsDashboard} from "./Tags";
@@ -37,6 +40,9 @@ import {fileMimetypeFilterOptions, FileCards, SearchFilterButton} from "./compon
import {useCalculators} from "./components/Calculators";
import {classifyAndEvaluate} from "./components/calculators/mathConfig";
+// A spinning refresh glyph, used as the `icon` for the "files are being refreshed" Message.
+const RefreshingIcon = (props) => ;
+
export function FlagsMessages() {
const {settings, fetchSettings} = React.useContext(SettingsContext);
const {status} = useContext(StatusContext);
@@ -53,47 +59,44 @@ export function FlagsMessages() {
// Do not tell the maintainer to refresh the files if the FileWorker is busy.
if (flags.file_worker_busy) {
// FileWorker is busy.
- refreshingMessage =
-
-
- Your files are being refreshed.
-
Click here to view the progress
-
+ refreshingMessage =
+
Click here to view the progress
;
} else if (!flags.refresh_complete) {
// `refresh_complete` flag is not set. Tell the maintainer to refresh the files.
- refreshRequiredMessage =
-
-
- Refresh required
- Click here to refresh all your files.
-
+ refreshRequiredMessage =
+ {
+ e.preventDefault();
+ refreshFiles();
+ }}>Click here to refresh all your files.
;
}
let dbDownMessage;
if (!flags.db_up) {
dbDownMessage =
- Database is down
- API is unable to connect to the database. Check the server logs.
+ Database is down
+
API is unable to connect to the database. Check the server logs.
}
let internetDownMessage;
if (!flags.have_internet && !settings.wrol_mode) {
internetDownMessage =
- No Internet
- WROLPi has no Internet. Downloads will not start.
+ No Internet
+
WROLPi has no Internet. Downloads will not start.
;
}
let mediaUnmountedMessage;
if (flags.media_mounted === false) {
- mediaUnmountedMessage =
- No drive mounted
- WROLPi has no media drive mounted for one or more storage locations.
- Downloads would write to the root filesystem and can fill it.
- {' '}Open the Controller to mount a drive.
+ mediaUnmountedMessage =
+ No drive mounted
+
+ WROLPi has no media drive mounted for one or more storage locations.
+ Downloads would write to the root filesystem and can fill it.
+ {' '}Open the Controller to mount a drive.
+