feat(demo): add story 1 — Sorano: Rock and Time
This commit is contained in:
@@ -0,0 +1,456 @@
|
||||
# v2.0.0-rc.15
|
||||
## 06/16/2026
|
||||
|
||||
1. [](#new)
|
||||
* The Markdown editor can now keep its toolbar pinned in view as you scroll, and optionally hold a fixed height with its own scrollbar, both configurable in Settings ([#37](https://github.com/getgrav/grav-plugin-admin2/issues/37)).
|
||||
* The Dashboard now shows a prominent warning when your `user/data`, `user/accounts` and `user/config` folders are downloadable over the web, catching a misconfigured webserver before it leaks certificates, keys or databases.
|
||||
* Plugin settings pages can now show a custom save notification supplied by the plugin, including longer-lived or dismiss-required messages, instead of always the generic saved message ([#38](https://github.com/getgrav/grav-plugin-admin2/issues/38)).
|
||||
* Plugin sidebar items can now show a live count badge that refreshes on its own, instead of only a fixed number set when the page loads ([#42](https://github.com/getgrav/grav-plugin-admin2/issues/42)).
|
||||
* Flex object editors now have an info button that reveals the object's id, directory and storage location in a small copyable panel, so you can reference an object in code without hunting for its id ([getgrav/grav#4130](https://github.com/getgrav/grav/issues/4130)).
|
||||
* File upload fields now honor their blueprint's `random_name`, `avoid_overwriting`, `accept`, and `filesize` settings, matching the classic admin.
|
||||
2. [](#bugfix)
|
||||
* **The Save button now disables again the moment you empty a required field**, and the unsaved-changes indicator clears with it, instead of the button staying active ([#34](https://github.com/getgrav/grav-plugin-admin2/issues/34)).
|
||||
* **Required custom fields provided by plugins now block saving while they are empty too**, the same as the built-in fields ([#35](https://github.com/getgrav/grav-plugin-admin2/issues/35)).
|
||||
* Required custom fields now show the same inline "field is required" message as built-in fields when you empty them ([#35](https://github.com/getgrav/grav-plugin-admin2/issues/35)).
|
||||
* The inline error on a required field now uses the custom `validate.message` from the blueprint when one is set, instead of the generic text ([#34](https://github.com/getgrav/grav-plugin-admin2/issues/34)).
|
||||
* Dragging an image from the Page Media panel into the markdown editor now inserts a single valid image tag instead of a doubled, corrupted one ([#4123](https://github.com/getgrav/grav/issues/4123)).
|
||||
* The Folder Numeric Prefix toggle in a page's Advanced tab now reflects whether the folder actually has a numeric prefix instead of always showing Enabled, and toggling it adds or removes the prefix on save.
|
||||
* Turning the Folder Numeric Prefix on now places the page last in its folder by giving it a prefix one past the highest among its siblings.
|
||||
* The page editor's Page Info panel now shows the page's folder name, making numeric-prefix and ordering issues easier to spot.
|
||||
* Uploading a file or image to a flex object now saves it to that object instead of failing with a Method Not Allowed error ([flex-objects#216](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/216)).
|
||||
* A plugin page built as a custom component can now control its own Save button, which previously stayed greyed out and unusable ([#40](https://github.com/getgrav/grav-plugin-admin2/issues/40)).
|
||||
* Custom fields shipped by a theme now load in the editor instead of failing with a "Failed to load custom field" error ([#3](https://github.com/getgrav/grav-admin-next/issues/3)). Requires grav-plugin-api ≥ 1.0.0-rc.15.
|
||||
* Required fields now show their asterisk marker again, which had gone missing for every field shown in the two-column label layout ([getgrav/grav#4130](https://github.com/getgrav/grav/issues/4130)).
|
||||
* The flex object "After Save" control no longer shows its label twice and its radio buttons now line up properly.
|
||||
|
||||
# v2.0.0-rc.14
|
||||
## 06/09/2026
|
||||
|
||||
1. [](#new)
|
||||
* **The Users area can now be filtered by permission or group** with a type-ahead picker, so you can find every account that holds a given permission, such as all admins. Requires grav-plugin-api ≥ 1.0.0-rc.14.
|
||||
* **The users table gains a Permissions column, and both the table and cards views flag accounts that have backend access**, with super admins called out separately.
|
||||
* **A user's group memberships now show in their detail panel, and clicking any permission or group filters the list by it.**
|
||||
2. [](#improved)
|
||||
* **Added labels for the new image security settings** (URL-based image actions and the maximum-pixels limit) under Configuration > System > Images. Requires Grav ≥ 2.0.0-rc.8.
|
||||
* **Configuration and form field labels and help text can now be translated into the admin's chosen language** instead of always appearing in English, now that the shared admin vocabulary is part of the translatable language set. Requires grav-plugin-api ≥ 1.0.0-rc.14.
|
||||
3. [](#bugfix)
|
||||
* **Configuration and blueprint help text no longer renders as an auto-generated placeholder** such as "Default Theme Help" and now shows the real description, including for admins whose language is a base code like English. Requires grav-plugin-api ≥ 1.0.0-rc.14.
|
||||
* **The page editor no longer shows a false unsaved-changes indicator the moment it loads** in collaborative mode.
|
||||
* **Forms now block saving when a required field is empty and flag each one inline**, instead of saving silently, across configuration, plugin and theme settings, users, groups, flex objects and pages ([#30](https://github.com/getgrav/grav-plugin-admin2/issues/30)).
|
||||
* **Drilling into the home page in Columns view now opens its sub-pages instead of just adding it to the breadcrumb over and over** ([#33](https://github.com/getgrav/grav-plugin-admin2/issues/33)).
|
||||
|
||||
# v2.0.0-rc.13
|
||||
## 06/04/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Configuration fields that override an inherited default now show a revert icon**, with the default value in its tooltip, and a "Reset overrides" button clears every override for the scope at once. Works across the config sections, plugin and theme settings, for both the base configuration and per-environment overlays. Requires grav-plugin-api ≥ 1.0.0-rc.13.
|
||||
|
||||
# v2.0.0-rc.12
|
||||
## 06/03/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Invite users by email** from the Users area: pre-set their permissions and groups, send a time-limited invite link, and they choose their own username, name and password when they accept. Requires grav-plugin-api ≥ 1.0.0-rc.12.
|
||||
2. [](#improved)
|
||||
* **The permissions editor now leads with the live API permissions and the super-user crown shows on them too**, groups the sections as Site, API, then Admin (legacy, collapsed), so the deprecated admin-classic permissions stay out of the way.
|
||||
3. [](#bugfix)
|
||||
* **Usernames with periods (e.g. `john.doe`) can now be created**, matching the characters admin classic has always allowed. Requires grav-plugin-api ≥ 1.0.0-rc.12.
|
||||
* **Running `bin/gpm` commands no longer aborts with a `Grav::close()` error.** When a site had no user accounts yet, the post-install cache clear could redirect the console command to the admin route and stop it dead. Admin2 now stays out of the way entirely on the command line.
|
||||
|
||||
# v2.0.0-rc.11
|
||||
## 05/29/2026
|
||||
|
||||
1. [](#improved)
|
||||
* **Pages tree and list views now show Copy and Delete in a permanent column on the right instead of fading in on hover**, so they're reachable on touch devices and stop visually overlapping the page title and date. Fixes [getgrav/grav-plugin-admin2#19](https://github.com/getgrav/grav-plugin-admin2/issues/19).
|
||||
* **Common actions are now reachable directly from every list view, without entering the detail / configure screen.** Pages tree, list, and columns views get a publish/unpublish toggle by clicking the status indicator. Plugins table and cards views get an inline Delete (alongside the existing Enable toggle). Themes table and cards views get inline Activate and Delete, including switching themes with one click without leaving the list. Users table and cards views get an inline Enable/Disable toggle (alongside the existing Edit/Delete icons), and the user detail panel gains the same toggle and a Delete button. Each detail / preview pane mirrors the row-level action set for parity. Destructive actions go through the standard confirm dialog. Addresses [getgrav/grav-plugin-admin2#21](https://github.com/getgrav/grav-plugin-admin2/issues/21).
|
||||
* **The settings panel's "Default View" section now covers users, plugins, and themes in addition to pages**, so an operator can set the default landing layout (cards vs table) per list type rather than per device. These preferences sync to the server alongside the existing pages-layout preference (uses the four preference keys already added in grav-plugin-api 1.0.0-rc.9).
|
||||
2. [](#bugfix)
|
||||
* **Hebrew and Arabic admin languages render the admin in right-to-left layout again.** Requires grav-plugin-api ≥ 1.0.0-rc.11.
|
||||
* **Site Defaults editor's Admin Language dropdown now preselects the right option when the saved value is a short code like `en` instead of `en-US`.**
|
||||
* **Media files in subfolders (e.g. `Folder1/image1.png`) can be deleted again.** The client was percent-encoding the whole path including the slashes, producing `Folder1%2Fimage1.png`, which Apache rejects by default before PHP ever sees it. Path segments are now encoded individually so folder boundaries stay as literal `/`. Fixes [getgrav/grav-plugin-admin2#22](https://github.com/getgrav/grav-plugin-admin2/issues/22).
|
||||
* **The page editor no longer warns about unsaved changes when leaving a page whose only "changes" were edits a peer already saved.** The dirty indicator and leave-prompt now track local edits only, and reset when the sync plugin broadcasts that a peer's save landed. Requires grav-plugin-sync ≥ 1.1.2. Fixes [getgrav/grav-plugin-admin2#25](https://github.com/getgrav/grav-plugin-admin2/issues/25).
|
||||
* **Media files whose names contain `#` or `?` (e.g. `image#1.png`) now render their thumbnail and Open link instead of 404ing.** The characters are percent-encoded when the URL is assembled, in both the media manager (grid/list/inspector) and the page editor's file fields and pickers. Fixes [getgrav/grav-plugin-admin2#26](https://github.com/getgrav/grav-plugin-admin2/issues/26).
|
||||
|
||||
# v2.0.0-rc.10
|
||||
## 05/26/2026
|
||||
|
||||
1. [](#new)
|
||||
* **File picker fields now honor any Grav stream or scope token in their blueprint `folder:` option.** A field set to `folder: user://media`, `folder: theme://images`, `folder: account://`, `folder: self@:videos`, or any other stream the locator can resolve now lists files from that folder, matching admin classic. Requires grav-plugin-api ≥ 1.0.0-rc.10.
|
||||
* **Copy and Delete are now reachable from every Pages view without opening the editor.** Tree and list rows gain a Copy icon next to the existing Delete icon on hover; the columns view's preview pane gets both as small icon-buttons at the end of the badges row (Delete was missing entirely before). The slug + title increment logic is shared with the page-editor's Copy button, so all four entry points yield identical results — `foo` becomes `foo-2`, `foo-3` becomes `foo-4`, and the title's trailing number is bumped or ` 2` is appended. Fixes [getgrav/grav-plugin-admin2#19](https://github.com/getgrav/grav-plugin-admin2/issues/19).
|
||||
* Pages tree, list, and columns views now load pages on demand as you scroll, so folders with hundreds or thousands of children open instantly instead of hanging or quietly hiding rows.
|
||||
* A new "Chunk" picker in the pages toolbar (50 / 100 / 250 / 500 / 1000) lets you tune how many rows are fetched per scroll request; it replaces the unused "Items per page" setting which has been removed.
|
||||
* Returning to the pages view after editing a page now scrolls right back to that page (in tree, list, and columns), so you don't have to re-scroll to find where you were.
|
||||
* Reorder / Move in any view now silently loads the full sibling list of the folders being dragged between before sending the change, so the reorder is always correct even on chunked folders.
|
||||
* "Reorder / Move" toolbar button is now just "Move" so it stops wrapping onto two lines at common browser widths, and its label + tooltip are now translatable along with the rest of the pages toolbar, footer stats, and delete-confirmation dialog.
|
||||
2. [](#improved)
|
||||
* Media grid cards no longer grow when selected or hovered — the selection outline is now reserved at idle so neighboring cards stop nudging around when you pick one. The hover checkbox has a stronger outline so it reads as a checkbox affordance rather than a small grey square against a busy image.
|
||||
* Updated languages from https://translations.getgrav.org
|
||||
3. [](#bugfix)
|
||||
* Pages tree, columns, and navigator views now show every child of a folder, no matter how many there are. Requires grav-plugin-api ≥ 1.0.0-rc.10. Fixes [getgrav/grav#4096](https://github.com/getgrav/grav/issues/4096).
|
||||
* **Add Page / Add Module parent picker now works on sites where the home page is aliased to a non-root folder** (e.g. `system.home.alias: /blog`). Selecting the home-aliased page as the parent used to create the new page in `/pages` root, and the same row stayed checked alongside `<root>`. Fixes [getgrav/grav-plugin-admin2#18](https://github.com/getgrav/grav-plugin-admin2/issues/18).
|
||||
|
||||
# v2.0.0-rc.9
|
||||
## 05/21/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Users page now has Users / Groups / Configuration tabs across the top**, restoring the three-pane shell from admin classic. Users keeps the existing list + detail view; Groups gains full CRUD (list + blueprint-driven edit + create) backed by the new `/groups` API; Configuration is the Flex accounts compatibility + caching form, gated on super-admin. Requires grav-plugin-api ≥ 1.0.0-rc.9.
|
||||
* **Cards ↔ Table view toggle on Users, Groups, Plugins, and Themes lists.** Cards view is the current sidebar+detail layout; Table view is the classic admin-style sortable list (Username/Email/Full name/Status for users, Name/Author/Version/Status for plugins, etc.). The choice is a per-user Tier B preference (`usersViewMode`, `groupsViewMode`, `pluginsViewMode`, `themesViewMode`), so it persists across sessions and devices the same way `pagesViewMode` does. Requires grav-plugin-api ≥ 1.0.0-rc.9.
|
||||
* **New "Twig in Content" panel in Configuration > Security.** Surfaces the Grav 2.0 master gate, the editor-permission toggle, and the `config` access toggle that govern editor-authored Twig in page content. Requires grav ≥ 2.0.0-rc.4 and grav-plugin-api ≥ 1.0.0-rc.9.
|
||||
* Pages with `process: twig: true` that the current user can't edit now show a clear toast explaining why the editor is blocked, instead of just a generic Access Denied screen.
|
||||
* **Environment switcher now lets you delete environments inline.** Hover any non-Default, non-active row to reveal a trash icon; clicking it shows an inline Cancel / Delete confirmation, and the whole `user/env/<name>/` folder is removed on confirm. The currently active environment (the one Grav resolved for the current request) is shielded so you cannot yank the config out from under your own session, and legacy `user/<name>/config/` layouts (Grav 1.6 fallback) must still be cleaned up by hand. Create and Delete affordances are gated on `api.config.write` so read-only users only see the selection list. Requires grav-plugin-api ≥ 1.0.0-rc.9.
|
||||
2. [](#bugfix)
|
||||
* **Page editor's "Parent" picker now lists "/" (root) as a selectable option.** The `type: parents` field reuses the generic `type: pages` picker, which defaulted `show_root` to `false` — making it impossible to move a page back to root from the form. Root is now opted-in by default for the parents field type only; the plain pages field keeps the old behaviour unless its blueprint opts in.
|
||||
* **Columns view drop indicator now appears in every column during a drag**, including columns to the left of the drag source. Per-row `ondragover` fires unreliably across sibling `overflow-y-auto` containers in Chromium — the source column always gets events, passive columns intermittently don't. Cursor position is now tracked at the window level (always fires) and the drop indicator is rendered as a `position: fixed` purple line snapped to the target row boundary, so it paints in any column regardless of the host browser's repaint throttling.
|
||||
* **Columns view same-column drag-drop now lands on the position the indicator showed.** Forward moves (drag a row downwards) used to drop one slot below the intended target because the splice removal shifted the destination index by one. Same-column reorders now adjust `insertAt` by -1 when `currentIndex < targetIndex`.
|
||||
* **Columns view cross-column drag-drop into an unordered parent now honors the visual drop position.** Sending only the moved page's position landed it wherever its slug alphabetized to (the existing siblings stayed unordered). The client now renumbers every target-parent sibling to match the drop, which forces an unordered column into ordered state on first positional drop. Folder routes are unchanged; only on-disk folder names gain `NN.` prefixes.
|
||||
* **Columns view auto-scrolls a column when the cursor is near its top/bottom edge during a drag**, so the user can drag toward rows that are currently scrolled out of view without manually scrolling.
|
||||
* **Page editor no longer flashes a red "Failed to load page" banner after a save-with-rename.** The post-save self-navigation was triggering an immediate API re-fetch on the new route, and Grav's pages cache could briefly fail on the renamed path before reindexing. The editor now consumes a one-shot suppression flag after `goto()` and skips the unnecessary re-fetch — `pageData` was already authoritative from the move response.
|
||||
* Inline HTML in section-panel help text (e.g. `<code>`, `<strong>`) now renders again. Help text outside an active search filter was being escaped instead of rendered; the two code paths are now consistent.
|
||||
* Toggling a toggleable field whose default is an object (e.g. the page editor's Process group) no longer throws a `DataCloneError`. The form sync helper now falls back to a JSON round-trip when the browser's `structuredClone` rejects a value.
|
||||
* After upgrading, humanized labels (e.g. "Twig Content Help" instead of the real translation) no longer linger until you switch language and back. The translation store now force-syncs on the first network load of each session.
|
||||
* Toast notifications that name an entity (environment created, plugin installed, user saved, etc.) no longer render with a literal `{name}` placeholder. The translation strings were wrapping the placeholder in single quotes (`'{name}'`), which the ICU MessageFormat parser treats as a quoted literal and drops the substitution; the quotes are removed from every affected string across all shipped languages.
|
||||
* Creating a new environment from the topbar switcher now responds instantly. The store was awaiting a blocking refetch that duplicated the X-Invalidates-driven background reload, adding an extra round trip before the success toast could fire.
|
||||
* **Page editor Settings panel now actually saves.** Changing the folder name, parent, numeric-prefix toggle, or order from the normal-mode page editor used to silently noop — only Body Classes and the template selector marked the form dirty, and even when forced through, the move request was never sent. All four fields now mark the form unsaved and are committed via a follow-up `/pages/{route}/move` call after the regular header save. Requires grav-plugin-api ≥ 1.0.0-rc.9.
|
||||
* **Tree-view reorder drag works again when dropping into another folder.** The frontend used to renumber every source-side sibling regardless of whether they were ordered, which silently force-added `NN.` prefixes to unordered pages; worse, the destination folder itself was included in that renumber list, so on the backend Phase 2 moved the destination away mid-batch and Phase 3 failed with "No such file or directory". The renumber list now skips unordered siblings, skips the destination parent and any ancestor of it, and the toast surfaces the real backend error message instead of a generic "failed to reorganize pages". Page identity uses `raw_route` so the home page is no longer ambiguous when dragged. Requires grav-plugin-api ≥ 1.0.0-rc.9.
|
||||
* **Page title column in Tree, List, and Columns views now reads `page.title`.** Was bound to `page.menu`, which is a navigation label and falls back to slug-humanized text when no explicit menu field is set. Visible on pages that defined `title:` but no `menu:` — those used to render as e.g. "Contact-us" instead of "Contact Us". The actual fix that makes titles materialize on the wire is in grav-plugin-api 1.0.0-rc.9 (the flex-indexed listing serializer was preferring an empty in-memory title over the parsed-frontmatter one).
|
||||
* **Tree-view expanded-folder state persists across navigation.** Opening a folder, editing a child page, and clicking back used to collapse every node again. Expanded routes are now stored in `sessionStorage` and rehydrated on remount; routes that no longer resolve on the server (page deleted in another tab) are dropped from storage during the rehydrate.
|
||||
* **Language-code chip auto-widens for longer codes.** The badge that shows `EN-US` / `FR-FR` / etc. in the language menu and translation listings had a hardcoded `w-6` width, so any code longer than two characters wrapped inside the chip. It's now `width: auto` with 2px horizontal padding plus `shrink-0` + `whitespace-nowrap` so the badge grows to fit the code and never collapses when the parent dropdown is narrow.
|
||||
* **Site languages now refresh after a `system.yaml` save.** Changing `languages.supported` or `languages.default_lang` from the Configuration → System page used to require a hard browser reload before the topbar language switcher and content-language selectors picked up the new list. The `contentLang` store now subscribes to the `config:update:system` invalidation tag the API emits on every system-config save and refetches the language list automatically.
|
||||
* **Dashboard widgets refresh after any config save.** The dashboard was wired to auto-refresh on `pages:*` / `users:*` / `plugins:*` / `gpm:*` invalidations but not `config:*`, so cache-status / system-health / language-aware widgets could stay stale until the user hit the Refresh button. Now also subscribes to `config:update` and silently reloads when anything in `/config/*` changes.
|
||||
* **Sidebar, menubar, floating widgets, context panels, and badge counts now refresh without a page reload.** Installing, removing, or enabling/disabling a plugin or theme used to leave the navigation stale — new sidebar items (e.g. from License Manager) didn't appear, the plugins/themes badges didn't move, and the same was true for the pages/users/media counts after creating or deleting content. All five integration points now react to the relevant `X-Invalidates` events the API already emits ([grav-plugin-admin2#17](https://github.com/getgrav/grav-plugin-admin2/issues/17)).
|
||||
|
||||
# v2.0.0-rc.8
|
||||
## 05/17/2026
|
||||
|
||||
1. [](#new)
|
||||
* **The "Add Page" button on the Pages page is now a three-way split.** Mirrors classic admin's split-button: the main button still adds a regular page; the chevron opens a menu with **Add Folder** (a routing/grouping folder with no `.md` file) and **Add Module** (a modular sub-page — the folder name is automatically prefixed with `_` per Grav's modular convention, and the template picker shows only modular templates). The Folder form is slimmed down (no Page Title or template selector, just folder name + parent + ordering), and the Module form replaces the "Visible" toggle with an "Ordering" toggle because modular sub-pages never appear in nav. Requires grav-plugin-api ≥ 1.0.0-rc.8.
|
||||
* **Admin Language dropdown now reflects actual installed translations.** Was a hardcoded list of ten languages regardless of which translation files were present; now enumerates `user/plugins/admin2/languages/*.yaml` via the new `GET /admin/languages` endpoint and shows each locale's native name. Requires grav-plugin-api ≥ 1.0.0-rc.8.
|
||||
* **Initial Arabic and Hebrew translations shipped.** Full machine-quality translations covering every admin2-owned string (~1,470 keys each) with plural-aware ICU: Arabic includes all six CLDR plural categories (zero/one/two/few/many/other), Hebrew includes all four (one/two/many/other). Pro plugins remain English for now; their authors can ship their own translations against the same `window.__GRAV_I18N` contract.
|
||||
* **Full RTL support for the admin shell and layout primitives.** `<html>` gains `dir="rtl"` automatically when the active language is Arabic, Hebrew, Persian, or any other locale Grav core flags as RTL, and `window.__GRAV_I18N.dir` is exposed for plugin web components. The sidebar slides in from the right edge on mobile and docks on the right at desktop with its border on the inline-start side; the context panel slides in from the left (with mirrored `@keyframes` for the animation); the floating widget FAB stack dock on the bottom-left; and the segmented-toggle thumb glides in the correct direction.
|
||||
* **Codemod-driven migration of admin-next to Tailwind v4 direction-aware utilities.** ~55 components had their physical `ml-*`/`mr-*`/`pl-*`/`pr-*`/`text-left`/`text-right`/`border-l`/`border-r` rewritten to logical `ms-*`/`me-*`/`ps-*`/`pe-*`/`text-start`/`text-end`/`border-s`/`border-e` equivalents — one rule per side instead of physical + `rtl:` overrides. The codemod itself is committed at `scripts/rtl-pairs.mjs` for re-runs and so plugin authors can apply the same transform to their own bundles.
|
||||
* **Toast notifications now originate from the inline-end corner.** The svelte-sonner `<Toaster>` `position` follows `i18n.dir` and flips between `bottom-right` (LTR) and `bottom-left` (RTL) when the admin language changes.
|
||||
* **Directional icons flip with the language.** Pagination chevrons, "back" arrows on edit screens, drill-in chevrons in breadcrumbs and list items, calendar prev/next buttons, and tree expand chevrons all reverse direction in RTL so a "next" arrow always points the way reading flows. A new `<DirectionalIcon>` component is the canonical wrapper; vertical chevrons (`ChevronUp`/`ChevronDown`) deliberately do not flip.
|
||||
* **Page Navigator d-pad swaps sibling semantics in RTL.** In Arabic/Hebrew the floating d-pad's left quadrant navigates to the *next* sibling and the right quadrant to the *previous* one, matching reading direction. The physical chevron arrows on the buttons stay pointing the same way; only their click targets and tooltips swap.
|
||||
1. [](#bugfix)
|
||||
* **Font Size preference now actually scales every part of the admin.** rc.6 added the preference but the sidebar, top toolbar, pages views, dashboard widgets, and many other components used hardcoded pixel sizes that ignored it. All admin text now scales together as designed ([grav-plugin-admin2#11](https://github.com/getgrav/grav-plugin-admin2/issues/11)).
|
||||
* **Admin now boots in the user's preferred language.** A pre-existing bug had the i18n store loading without `adminLanguage`, so the admin always booted in English regardless of the user's saved preference until they revisited Settings. Non-English users may now see translation gaps they never noticed before — those keys are being filled iteratively.
|
||||
* **Language change just before logout now persists.** Picking a new admin language and clicking Sign Out within ~200 ms used to lose the change — the debounced PATCH fired after auth had been cleared and silently failed. The pending-preferences queue is now flushed before the logout call, and language changes bypass the debounce entirely.
|
||||
* **`/translations/{lang}` requests for non-content-language locales now return the right strings.** Caused by a related server-side validation bug — see grav-plugin-api 1.0.0-rc.8.
|
||||
* **Sidebar reappears at desktop sizes in RTL.** The initial RTL pass paired the mobile slide-off translate with an `rtl:` variant whose `[dir="rtl"]` attribute selector outranked the `lg:translate-x-0` desktop rule, so at lg+ in RTL the sidebar stayed pushed off-screen. The slide-off is now scoped to `max-lg:` so it only applies on small screens.
|
||||
* **Split-button corners now flip correctly in RTL.** The Add Page / Save / plugin-action split buttons used physical `rounded-r-*` / `rounded-l-*` so in Arabic and Hebrew the two halves stayed rounded on the wrong sides and the seam looked off. They use logical `rounded-s-*` / `rounded-e-*` now, and their dropdown menus anchor to the inline-end side so they open under the chevron in both directions.
|
||||
* **CodeMirror panels stay LTR in RTL admin languages.** The shared MarkdownEditor and CodeEditor wrappers used by every code-style field now explicitly pin `dir="ltr"` so the gutter, line numbers, and caret movement work as expected when the admin UI runs RTL. Markdown source and code never reverse. Requires grav-plugin-editor-pro ≥ 2.0.6.
|
||||
1. [](#improved)
|
||||
* **Toast notifications across the admin are now translated.** Save / delete / move / reorder / install / update / theme-activation / cache-clear / backup / GPM-refresh and the rest of the everyday toasts (~50 strings) used to be hardcoded English template literals. They now go through `i18n.t()` against a new `ADMIN_NEXT.TOASTS.*` namespace with ICU plural forms where it matters (e.g. "Uploaded 1 file" / "Uploaded 3 files"), and ship with Arabic and Hebrew translations covering all CLDR plural categories. Plugin authors should reuse these keys instead of inlining their own copies — see `docs/RTL.md`.
|
||||
* **Plugin RTL contract documented.** New `docs/RTL.md` covers the `window.__GRAV_I18N.dir` contract, `subscribe()` for live language switches, when to reach for Tailwind logical utilities vs `rtl:` pairs, the directional-icon convention, the "code stays LTR" rule, and the `[dir="rtl"]` specificity gotcha. Mirrored in the [admin-next integration skill](https://github.com/getgrav/grav-skills) so plugin authors find it.
|
||||
* **FontAwesome directional plugin icons mirror automatically in RTL.** `faIconClass()` in admin-next now appends a `.flip-rtl` utility class for icons whose meaning reverses with reading direction (`long-arrow-left`/`right`, `chevron-left`/`right`, `angle-left`/`right`, etc.). Plugins that ship next/previous icons in their GPM metadata get the right visual orientation in Arabic and Hebrew with no plugin-side changes.
|
||||
* **Configuration page header + "Info" config tab now translate.** Two leftover English literals — the big "Configuration" / "Configuration: {scope}" header on `/config/*` pages and the "Info" tab label — went through i18n now. New `ADMIN_NEXT.CONFIG.TITLE` / `TITLE_SCROLLED` keys plus a `PLUGIN_ADMIN.INFO` entry in en/ar/he. The auto-save "Failed to save X" fallback toast also gets a translated form label.
|
||||
1. [](#improved)
|
||||
* **Many shell strings that were hardcoded English are now translated.** Sidebar nav items, settings-page section headings and toggle labels, environment switcher labels and toasts, dashboard stats and system-health widgets, page-creation form headings and toasts, and a handful of confirm-modal overrides. About 60 net-new i18n keys with Arabic and Hebrew translations.
|
||||
* **User edit page no longer shows two competing "Language" pickers.** The Grav user blueprint's `language` field (site content language preference) was visible alongside Settings → Admin Language and the two looked identical but did different things. The blueprint field is now suppressed in admin2; classic admin still shows it.
|
||||
|
||||
# v2.0.0-rc.7
|
||||
## 05/14/2026
|
||||
|
||||
1. [](#new)
|
||||
* **UI preferences now sync across browsers and devices.** Appearance (color mode, accent, font, font size), pages defaults (view mode, items per page), language, and editor mode are saved to the user's account via the new `/admin-next/preferences/user` endpoint instead of localStorage-only. Logging in on another browser picks up your customizations automatically. localStorage is still used as a render-cache so the first paint matches your last-known accent without flashing the Grav default. Legacy localStorage preferences are auto-migrated on first boot after upgrade. Requires grav-plugin-api ≥ 1.0.0-rc.7.
|
||||
* **New "Site Defaults" section in Settings for super-admins.** Branding (logo type, text, custom light/dark images), default appearance/pages/language/editor preferences, site-wide editing behavior (auto-save, real-time collab), and menubar links — all editable from one place. Defaults apply to every user as the baseline; users can override the appearance/pages/language/editor pieces in their own preferences above, while the editing and menubar settings are site-wide only.
|
||||
* **Site-wide branding replaces per-client logo.** Custom logo (light + dark) and brand text now live in site config and apply to every admin user. Logo files upload through the API to `user://media/admin-next/`, cacheable as real assets, instead of being stored as base64 data URIs in localStorage. Falls back to the built-in Grav logo when nothing is configured.
|
||||
1. [](#improved)
|
||||
* **Cross-instance preference updates without a hard refresh.** Settings changed in one browser propagate to other open windows on the next tab-focus, or via a 30-second background poll while a tab is visible. The poll skips refetches while the user has unsent changes pending so an in-flight slider drag isn't clobbered by a stale server snapshot. The same poll doubles as a session keep-alive — every fetch runs through the JWT freshness check, so idle tabs no longer drift into a logged-out state.
|
||||
* **Auto-save toggle, real-time collaboration toggle, and menubar links moved to site-wide configuration.** These were per-user preferences in the previous build; experience showed they make more sense as one decision the admin makes for the whole site. Existing per-user values from before this release are no longer applied — the super-admin sets the site value once for everyone.
|
||||
* **Pages default view (Tree/List/Columns) now follows you across devices.** Was a device-local preference; now stored on your user account alongside items-per-page.
|
||||
* **Preferences are saved even if you close the tab mid-edit.** Debounced PATCHes that hadn't flushed yet are sent via `fetch(keepalive: true)` on `pagehide`/`visibilitychange`, so changing a font and immediately closing the window no longer loses the change.
|
||||
|
||||
# v2.0.0-rc.6
|
||||
## 05/13/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Array fields can now constrain rows to a fixed list of options.** Set `create: false` on an array field with `data-options@` and each row renders as a dropdown instead of a free-form input. The "Add item" button hides once every option is already in the list.
|
||||
* **Tools → Logs viewer can now switch between log files.** Plugins that subscribe to the new `onApiLogFiles` event in the API plugin (rsync, etc.) get their log file listed in a selector alongside `grav.log`, `email.log`, and `scheduler.log`. The selector is hidden on default installs where only the core logs exist. Requires grav-plugin-api ≥ 1.0.0-rc.6.
|
||||
* **Appearance settings now include a Font Size option.** Sits alongside Color Mode, Accent Color, and Font, with Small, Normal, Large, and X-Large presets that scale the root font size via a CSS variable so all rem-based UI scales together ([grav-plugin-admin2#11](https://github.com/getgrav/grav-plugin-admin2/issues/11)).
|
||||
1. [](#bugfix)
|
||||
* **Add Page form picks the right numeric prefix for new pages.** The form always sent `order: 1`, so creating a child under a folder whose siblings were unprefixed still produced `01.foo/`, and adding to an already-ordered group (`01..03`) would collide on `01` instead of becoming `04`. The form now asks the API for `order: "auto"` and the server scans the parent's siblings to pick the next free number (or omit the prefix when no sibling uses one), matching admin-classic's add-page behavior. Requires grav-plugin-api ≥ 1.0.0-rc.6.
|
||||
1. [](#improved)
|
||||
* **Static assets now served directly by the webserver, not PHP.** All ~260 JS chunks, CSS, and fonts in the SPA bundle are loaded directly from `user/plugins/admin2/app/` via Apache/LiteSpeed/Caddy/Nginx, the same way admin-classic has always served its assets. The previous design routed every chunk request through `index.php` and a per-site materialized copy in `cache/`, which tripped per-account concurrent-PHP-process limits on shared hosting (typically LiteSpeed) and produced waves of `508 Loop Detected` errors on fresh installs (getgrav/grav#4080). The materialization codepath is gone; one shared plugin install now serves any number of sites with different routes or subfolder rootUrls. PHP handles only the SPA shell HTML and the once-a-minute `_app/version.json` poll.
|
||||
* Markdown editor now shows peer name labels next to cursors during collaborative editing, matching the labeled cursors editor-pro already renders.
|
||||
* **Collaborative editing is on by default.** Installing the sync plugin should mean live multi-peer editing "just works"; you no longer have to flip a hidden preference to enable it. Existing users who explicitly turned it off keep their setting. The page editor still degrades cleanly to solo mode when sync isn't installed or the handshake fails, so the default is safe everywhere.
|
||||
* **Users list and detail pages are usable without `api.users.read`.** Callers without the read permission used to 403 on `GET /users` and `GET /users/{me}`; the list now auto-filters to just the caller's own row and the self-edit path lets you save your own profile with only `api.access`. Sensitive fields (`access`, `state`) are stripped from the PATCH body and the Permissions section is hidden for non-managers, matching what the API has always enforced for self-edits. Requires grav-plugin-api ≥ 1.0.0-rc.6.
|
||||
* **User account form works on sites without admin-classic installed.** Grav core's `account.yaml` references `\Grav\Plugin\Admin\Admin::adminLanguages` and `::contentEditor` for the language and content-editor selects. Admin2 now substitutes those references when the class isn't loadable — English-only for the language picker, and the legacy `onAdminListContentEditors` event for the content-editor picker so editor-pro and other editor plugins still register themselves the way they always have.
|
||||
1. [](#bugfix)
|
||||
* **Permission tri-state toggles on nested rows respond on first click.** Children of crudl permission groups (e.g. `User Accounts` → `Read`/`Update`/`Delete`/`List`) needed the parent row's toggle to be clicked once before any of the children would respond — initial-render handlers weren't binding through the recursive snippet. Rebuilt as a recursive component that takes the access tree as a prop, so each row's events bind on first mount.
|
||||
* **Changing a page's template no longer locks the editor in a sync-room reconnect loop.** The Expert-mode template select reseeded the new Y.Doc room with a stale `headerData.name`, which round-tripped through the snapshot applier and flipped the template back — restarting the cycle for thousands of API requests until the rate limiter kicked in. The seed now reflects the destination template, and the field keeps `headerData.name` in lockstep with `template`.
|
||||
* **Page editor mounts in solo mode when the collab handshake fails.** If `init` / `pull` return 403 (e.g. the user lacks `api.collab.read`), the content area used to hang on "Connecting to collaboration session…" forever. It now falls through to a single-user mount so the form is at least usable; the collab error still surfaces via the connection-status indicator.
|
||||
* **Mercure SSE reconnects after the subscriber JWT expires.** The hub closes the EventSource with 401 once the token baked into the URL expires, and the browser's built-in retry just replayed the dead token. The provider now re-mints the JWT proactively at ~80% of its TTL and reactively on a hard close, then re-opens both streams.
|
||||
* **Top progress bar slides cleanly without the visible backwards stutter.** The indeterminate bar shown during long-running dashboard actions ("Update All", Grav self-upgrade, backup) animated `translateX` as a percentage of the bar's own width while simultaneously pulsing the width from 30% → 60% → 30%. In the last quarter of each cycle the shrinking width made the same translateX percentage resolve to a smaller pixel offset, so the bar's left edge briefly moved leftward across about a quarter of the screen before snapping to the next cycle. The bar's width is now constant, so the slide is purely forward.
|
||||
* **Toggling Preview off no longer blanks the markdown editor.** The CodeMirror container was wrapped in `{#if showPreview}{:else}`, so toggling preview on unmounted the editor view entirely and toggling back created a fresh empty div. Form state was intact (a refresh restored the content), but the view was gone. Both panes now stay mounted and visibility toggles via CSS, preserving CodeMirror state, cursor position, undo history, and the collab binding ([grav-plugin-admin2#10](https://github.com/getgrav/grav-plugin-admin2/issues/10)).
|
||||
* **Radio and checkbox fields inside list items now pre-select from frontmatter.** All radios within a list item shared `name={field.name}`, collapsing every item's radio group into a single browser-level group so only one option could ever appear checked. Each FieldRenderer instance now owns its own radio group, and value comparison coerces both sides through `String()` so YAML integer values match string-coerced option values. Same fix applied to the checkbox block ([grav-plugin-admin2#13](https://github.com/getgrav/grav-plugin-admin2/issues/13)).
|
||||
* **Page editor no longer marks the form dirty on initial load.** The dirty tracker takes an immutable snapshot of the loaded header on mount and compares incoming field values against it via deep-equal, so mount-time onchange echoes from custom web components and array fields don't trip the unsaved-changes flag. `switchToNormal` no longer pre-seeds `headerChanges` with every parsed YAML key either, so toggling Expert to Normal on an unedited page stays clean ([grav-plugin-admin2#14](https://github.com/getgrav/grav-plugin-admin2/issues/14)).
|
||||
* **File-picker fields with a custom `folder:` no longer silently wipe their saved value.** The auto-clear effect that clears a field when its referenced file goes missing was using the current page's media context as the source of truth, but blueprint fields with a custom folder (`page://videos`, `@self/verter`, etc.) point at files that aren't in that context. The effect always saw the file as "missing" and called `onchange('')`, which tripped the dirty flag on load and would have wiped the value on save (silent data loss). The effect is now gated to only run when the field is bound to the page's own media ([grav-plugin-admin2#14](https://github.com/getgrav/grav-plugin-admin2/issues/14)).
|
||||
* **Colorpicker fields now honor `default:` from the blueprint.** The initial-color fallback chain only checked `value` then `placeholder`, skipping `default` entirely, so the swatch always landed on `#000000` regardless of what the blueprint specified. `field.default` now sits between `value` and `placeholder` in the fallback chain, matching the convention every other field component already follows ([grav-plugin-admin2#16](https://github.com/getgrav/grav-plugin-admin2/issues/16)).
|
||||
* **Modular child page editor no longer shows a phantom empty tab from `unset@: true` directives.** Themes like Typhoon that extend a parent blueprint and use `hero: unset@: true` to drop an inherited tab leave a placeholder field behind in the merged blueprint (the directive doesn't fully remove the entry). The tabs renderer was matching any entry with a `fields` array as a tab, so the placeholder rendered as a bare lowercase tab with unlabeled values. Tabs now require an explicit `type: tab`, or `fields` plus a title or label.
|
||||
|
||||
# v2.0.0-rc.5
|
||||
## 05/08/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Canonical `ICU.PLUGIN_ADMIN.*` vocabulary.** Ported every `PLUGIN_ADMIN.*` key referenced by core + 3rd-party blueprints into `languages/en.yaml` under the ICU namespace — 662 keys, covering ~600 admin-classic strings (verbatim port for term continuity) plus 60+ keys authored for net-new Grav 2 sections (Twig sandbox, `read_file()` constraints, scheduler advanced features, flex pages/users config). Admin2 is now self-sufficient for blueprint translation; admin classic no longer needs to be installed for blueprint labels and helps to render correctly. Requires grav-plugin-api ≥ 1.0.0-rc.5 for the matching ICU-first server-side resolver.
|
||||
1. [](#improved)
|
||||
* **Blueprint help, section bodies, and `display` content render HTML.** Field `help:` text and section `text:`/`description:` blueprints now pass through `{@html}` so inline `<code>`, `<strong>`, etc. render as HTML instead of escaped text — matching admin classic. Same trust model as admin classic (blueprint YAML is server-controlled; not user-submitted). 28 field components updated.
|
||||
* **`SectionField` now renders `field.text` in addition to `field.description`.** Grav core blueprints use `text:` for section bodies (e.g. the `READ_FILE_SECTION_HELP` paragraph in `system/blueprints/config/security.yaml`), but the renderer was only checking `description`, so those bodies never appeared.
|
||||
1. [](#tools)
|
||||
* **New `scripts/i18n-blueprint-audit.mjs`.** Two modes: the default mode lists every `PLUGIN_ADMIN.*` key referenced by blueprints and reports which are missing from admin2's lang file (with a paste-ready ICU emit option); `--hardcoded` finds blueprint props (`label/help/title/text/description/*_msg`) that hold a literal string instead of a translation key reference. Exits non-zero on missing/hardcoded hits — usable as a CI gate.
|
||||
|
||||
# v2.0.0-rc.4
|
||||
## 05/06/2026
|
||||
|
||||
1. [](#bugfix)
|
||||
* **Sidebar version label refreshes after a Grav core upgrade.** Updating Grav from the GPM page used to leave the `Grav v…` line in the sidebar stuck at the previous version until the next full reload — only admin/admin2/api self-updates were re-fetching the user profile. The shell now also re-fetches when Grav itself is upgraded. Requires grav-plugin-api ≥ 1.0.0-rc.4.
|
||||
|
||||
# v2.0.0-rc.3
|
||||
## 05/05/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Color picker overhaul.** Replaced the bare HTML5 color input with a composable picker: saturation pad, hue + alpha sliders, hex input with arrow-key bumping, screen eyedropper, and a preset palette — themed to match admin-next light/dark. Set `alpha: false` on a `colorpicker` field in your blueprint to hide the alpha slider and emit strict 6-digit `#RRGGBB` (the Grav classic colorpicker convention).
|
||||
1. [](#bugfix)
|
||||
* **Stand-alone `column` blueprint fields render their children.** Blueprints that use `type: column` outside a `columns` parent (e.g. the delivernext theme's `_ContentOptions`) used to drop through to the unknown-type debug renderer — field key, `column` type badge, empty textarea. They now render as a transparent group, matching admin-classic.
|
||||
* **Sidebar and top bar now stay pinned while editing long pages.** A destructive overflow rewrite in the editor was collapsing the admin shell so the whole layout scrolled with the content; the editor side has been fixed and the admin's flex shell is back to behaving as a fixed frame around a single scrolling content area (requires editor-pro ≥ 2.0.3).
|
||||
* **Segmented Yes/No toggles inside blueprint forms no longer punch through the sticky tab strip while scrolling.** The toggle now isolates its own stacking context so its `z-10` button labels can't bleed through pinned bars above them.
|
||||
|
||||
# v2.0.0-rc.2
|
||||
## 05/05/2026
|
||||
|
||||
1. [](#bugfix)
|
||||
* **Blueprint `display` fields now render their HTML content.** A `type: display` field with HTML in `content:` (e.g. `<p>...</p><code>...</code>`) was being printed as escaped text in admin-next, while admin-classic has always rendered it as parsed HTML ([grav-plugin-admin2#4](https://github.com/getgrav/grav-plugin-admin2/issues/4)). The non-markdown branch of the renderer now uses `{@html}` to match classic behavior.
|
||||
* **No more solo→collab flash on the page editor.** When collab was enabled the content editor used to mount in solo mode, then tear down and remount once the room connected — flashing whatever the empty Yjs fragment showed in the meantime (often stale content from a prior session). The page editor now defers just the content field until the room is ready, leaving the rest of the form (title, header, taxonomy, etc.) interactive throughout. A short "Connecting…" placeholder shows in the content area while the room negotiates.
|
||||
* Requires grav-plugin-api ≥ 1.0.0-rc.2 for the related blueprint-resolver and page-tree-sort fixes (issues [#1](https://github.com/getgrav/grav-plugin-admin2/issues/1), [#3](https://github.com/getgrav/grav-plugin-admin2/issues/3), [#5](https://github.com/getgrav/grav-plugin-admin2/issues/5)). Requires grav-plugin-sync ≥ 1.0.1 for the storage-layout fix that keeps sync data out of `user/pages/`.
|
||||
|
||||
# v2.0.0-rc.1
|
||||
## 05/03/2026
|
||||
|
||||
1. [](#bugfix)
|
||||
* **Static `.json` / `.xml` / `.rss` assets under the admin route now serve correctly.** SvelteKit polls `_app/version.json` every minute for hot-reload detection, and any plugin asset using one of those extensions ran into the same wall — Grav core strips known page extensions from the parsed route, so admin2's static-asset matcher was looking for a file with no extension and returning 404. Admin2 now reattaches the original extension before matching, leaving hashed `.js` chunks (and other already-extension-bearing paths) untouched.
|
||||
* Minor UI fixes
|
||||
|
||||
# v2.0.0-beta.17
|
||||
## 04/28/2026
|
||||
|
||||
1. [](#bugfix)
|
||||
* **Fix: 500 errors when navigating after an Admin2 self-update.** Updating Admin2 used to leave the running tab pointing at bundle chunks that had just been overwritten on disk; clicking another page would surface a 500 in the toast until a manual browser reload. The admin now polls for new builds, converts the next navigation into a full page load when the bundle has changed, and hard-reloads immediately after Admin2 is updated so users don't have to wait.
|
||||
|
||||
# v2.0.0-beta.16
|
||||
## 04/28/2026
|
||||
|
||||
1. [](#new)
|
||||
* **ICU MessageFormat translations via dual-namespace lookup.** Admin2 now looks up every translation key in two places, in order: `ICU.<key>` (passed through ICU MessageFormat — placeholders, plurals, select cases, number/date formatting), then `<key>` (returned raw, as a fallback for legacy strings). The contract is namespace-based, not content-based: a value is reformatted only when its key sits under `ICU.`, so plugins can ship a single language file that works on both Grav 1 / classic admin (which reads only the legacy block) and Grav 2 / Admin2 (which prefers the `ICU:` block when present). CLDR plural categories are applied per-locale automatically, so Polish, Czech, Russian, Arabic etc. get the right form without per-language code. Resolves [getgrav/grav#4064](https://github.com/getgrav/grav/issues/4064). See the [Admin2 Translations docs](https://learn.getgrav.org/2.0/plugins/admin-translations) for the full plugin-author guide.
|
||||
* **`languages/en.yaml` shipped with Admin2 plugin.** All `ADMIN_NEXT.*` strings now live in the Admin2 plugin under a root `ICU:` block, merged into Grav's standard language pipeline and served via `GET /api/v1/translations/{lang}`. The admin-next runtime keeps only a 4-key boot fallback (loading / sign-out / boot-failed / offline) for the brief window before the API responds. Plugins can contribute their own `ICU.PLUGIN_FOO.*` keys with no special build step or registration.
|
||||
* **Full ICU key coverage of the admin-next UI.** `languages/en.yaml` grew to ~780 strings — every previously-hardcoded toast message, button title, aria-label, placeholder, and inline label across the admin shell, blueprint forms, dashboard widgets, media manager, pages list, plugin / theme / user pages, settings, login / setup / forgot / reset, and tools tabs is now an `ICU.ADMIN_NEXT.*` key. New strings going forward are expected to ship as keys from the start (no English literals in source).
|
||||
* **`i18n.tHtml()` markdown renderer.** Companion to `i18n.t()` for paragraphs that need inline `**bold**` / `*italic*` / `` `code` `` / `[link](url)` — runs the translation through `marked.parseInline`, so each user-facing paragraph stays a single translatable string instead of being fragmented around `<strong>` / `<em>` / `<a>` tags. ICU placeholders run first, so `{name}` etc. work the same as in `t()`.
|
||||
* **`window.__GRAV_I18N` global bridge** — read-only frozen surface (`t`, `has`, `locale`, `subscribe`) for plugin web-component bundles (e.g. `editor-pro`, `ai-pro`) that aren't built against the admin-next runtime. Lets external bundles call into Admin2's translation cache and react to locale changes without their own i18n stack.
|
||||
* **Runtime humanize tracker** — `__GRAV_I18N_DEBUG.enable()` from the browser console (or `?i18n-debug=1` on the URL) logs every translation-key miss to a tracker readable via `__GRAV_I18N_DEBUG.report()` / `.misses()` / `.yaml()`. While debug is on, any humanize fallback is wrapped in `⟦…⟧` brackets so untranslated keys are visible directly in the rendered UI. Persists across reloads via `localStorage`.
|
||||
* **User edit page exposes the account-state toggle.** Grav core's `account.yaml` blueprint has no field for `state` (the `enabled` / `disabled` account flag), so admin-classic and admin-next both lacked a way to disable a user without hand-editing YAML. Admin2 now hooks `onApiBlueprintResolved` for the `account` template and injects a `state` select (Enabled / Disabled) directly after the title field, gated to managers (`api.users.write` / `api.super` / `admin.super`). The PATCH endpoint already enforced manager-only writes for `state` (post-GHSA-r945-h4vm-h736), so the field is consistent with the underlying authorization. New i18n keys: `ICU.ADMIN_NEXT.USERS.STATUS`, `ICU.ADMIN_NEXT.USERS.STATUS_HELP` (the existing `ICU.ADMIN_NEXT.ENABLED` / `DISABLED` are reused for option labels). Requires grav-plugin-api ≥ 1.0.0-beta.15 (which fires the event for the user blueprint).
|
||||
* **Configuration → Info filter.** The header filter input is now wired to the `Info` scope as well, so PHP settings can be searched the same way as System / Site / Security configuration. Typing into the box auto-expands any PHP Configuration section that contains a match (and hides those that don't), narrows the visible Server Info / PHP Extensions / Plugins / Themes cards to matching rows, and highlights the matching substring in yellow with `<mark>`. When the query has no hits in any panel a "No matches found" empty state is shown. Search is also case-insensitive and matches against keys, values, and section headings. New i18n key: `ICU.ADMIN_NEXT.CONFIG.NO_MATCHES_FOUND`.
|
||||
* **List-field filter now matches inside list items.** The blueprint filter previously only matched against field labels / help / name in `BlueprintField` definitions, so on `/admin/config/media` typing `jpg` (an item key) or `application/json` (a value inside a list row) returned an empty list field with no items. `ListField` now receives the active `filter` from the form-level filter input and hides items whose key and string-y values all fail to match. Matching items auto-expand so the matched content is visible immediately, and drag-reorder is suspended while the filter is active (visible-row indices don't map back to the underlying array). Clearing the filter restores the previous expand/collapse state.
|
||||
2. [](#bugfix)
|
||||
* **2FA enrollment section now flips to "Finish enabling 2FA" immediately** after clicking *Enable 2FA*, instead of staying on the off-state until the page is reloaded. The `TwoFactorField` `$effect` that mirrors props into local stage was re-running when the in-flight `busy` flag flipped back to `false` and overwriting the freshly-set `pending` stage with `idle` (because the parent's `user.twofa_secret` prop only updates on enable/disable, not on generate). Effect now skips the `pending → idle` downgrade while we hold a locally-generated QR payload that the parent hasn't observed yet, so the QR + verification-code form appears the moment the secret is generated.
|
||||
* **AI Assistant popover sits above the floating-action-button layer.** The widget panel and the FABs both used `z-50`, and FABs rendered after the panel in DOM order — so when the AI Assistant chat was open, the AI Translate / AI Assistant FABs covered the popover's send button. Panel bumped to `z-[60]`. Fixes the unreachable "Send" control on the `Ask anything…` row.
|
||||
* **AI Assistant "Replace" now updates the editor under collaborative editing.** Page-edit's `grav:editor:insert-content` handler used to set `editorPro.value = newContent` directly, but Editor Pro's value setter early-returns when a Yjs fragment is bound (so routine prop syncs from peers can't wipe their pending edits). Result: `headerData.content` flipped to the AI output but the visible editor stayed on the previous text. Handler now calls the new `editorPro.replaceContent()` method when present, falling back to `value =` for older Editor Pro builds. Under collab the resulting `setContent` transaction propagates to peers via y-prosemirror. Requires grav-plugin-editor-pro ≥ 2.0.2.
|
||||
* **`Verify & Enable` 2FA button no longer renders as `Verify & Enable`.** The i18n approval pipeline captured the literal markup source (`&` — Svelte/HTML's encoded form of `&`) into `entry.text`, then the YAML emitter chose that over the corrected `entry.value` field for one key. Fixed in `languages/en.yaml` (and the upstream `languages-additions.yaml` artifact in admin-next).
|
||||
* **Typing inside an expanded list item no longer collapses it.** On `/admin/config/media` (and any blueprint with a list field) every keystroke in a child field round-tripped through `emitChange → onchange → parent → value prop`, where ListField's external-sync `$effect` saw the new value and re-parsed it into fresh items — minting new `id`s, breaking the keyed `{#each}` map (focused input unmounted → focus dropped → page scrolled to the next focusable target), and resetting `collapsed` to the field default. Symptom: opening "default" in Media Types and typing made the panel jump down the page and close. `emitChange()` now stamps `lastExternalJson` with the JSON it just emitted, so the round-trip prop change matches and the `$effect` skips reparsing. External value changes (page reload, undo, collab snapshot) still mint fresh items as before.
|
||||
|
||||
# v2.0.0-beta.15
|
||||
## 04/26/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Collapsible right rail on the page editor.** The right column on `/pages/edit/*` (Page Info + Translations + Page Media when no blueprint provides a `pagemedia` field) is now toggleable from the page-edit top action bar — between the page-navigator button and the Preview/Copy/Delete cluster. Collapsing fully removes the column (no reserved gutter), so the form fills the full available width; expanding restores the rail at its 280px width. Uses the Tabler `arrow-bar-left` / `arrow-bar-right` icons (inverse of the global sidebar toggle, since this rail closes to the right). State persists per-browser via the existing preferences store as `pageSidebarCollapsed`. Only renders at `lg+` widths — the rail is already a vertical stack on smaller breakpoints.
|
||||
2. [](#improved)
|
||||
* **Mobile / narrow-viewport polish across admin-next.** First sweep through the admin shell to make every page usable down to phone widths without horizontal page scroll or overlapping controls. Concrete changes:
|
||||
* **App header** — `View site` collapses to its globe icon below `lg`, with `whitespace-nowrap` to prevent the previous "View / site" two-line wrap.
|
||||
* **Configuration page** — top-level scope tabs (System / Site / Media / Security / Info) drag-scroll horizontally instead of pushing the page wide; the wrapper finally has `min-w-0`. Below `sm` the Filter input drops to its own row above the tabs (`flex-col-reverse`) so the tabs aren't squeezed. Inside `TabsField` (side-tabs layout) the active-pane horizontal padding flattens to `py-4` on small screens (`p-4 → py-4 lg:p-4 lg:pl-6`), reclaiming ~32px of content width.
|
||||
* **Drag-scroll action** — new `$lib/utils/dragScroll.ts` Svelte action: pointer-drag (mouse / pen, leaves touch alone) with a 4px deadzone, captures pointer once dragging, swallows the trailing click so buttons inside the strip don't fire after a drag. Applied to ConfigNav and TabsField navs.
|
||||
* **Users / Plugins / Themes list pages** — single-tap on a row now navigates straight to the detail page when the `lg+` preview pane is hidden (`window.matchMedia('(min-width: 1024px)')`). Previous behavior (single-click selects, double-click opens) silently did nothing on narrow viewports because the preview was `hidden lg:block`.
|
||||
* **Plugin / Theme / User detail toolbars** — Update / Remove / Enable / Save / Activate buttons collapse to icon-only below `sm` (text wrapped in `hidden sm:inline`, `aria-label` + `title` for a11y). The header switches to `flex-col` below `sm` so the toolbar drops to its own row under the title block, and the toolbar is `flex-wrap justify-center` on small / `justify-end` on `sm+`. Theme info card and plugin info card stack the screenshot / icon above the description on small screens (`flex-col items-center` → `sm:flex-row sm:items-start`).
|
||||
* **Permissions field** — the three-state Allowed / Denied / Not-set picker is now icon-only at every breakpoint (`Check` / `Ban` / `Minus`, 14px). The text labels were too wide to keep three buttons + the action label on one row at `sm` widths.
|
||||
* **Pages list / tree views** — Status column is now a single `CircleCheck` (green) / `CircleDashed` (muted) icon in a `w-6` cell instead of the old `Published` / `Draft` text badge. Template column hides below `md`; Modified column hides below `sm`. Row gap dropped from `gap-4` to `gap-2`, row padding dropped from `px-4` to `px-2` below `sm`. The hover-only Delete button is absolute-positioned over the row instead of reserving a `w-10` column slot, so the title gets the freed width. Title row also got the missing `min-w-0` on the inner flex container so `truncate` actually shrinks the page name when long titles co-exist with translation badges (e.g. "Frameworks That Empower Product Teams" + EN/FR/DE).
|
||||
* **Pages toolbar search** — focusing the search input on small screens hides the trailing toolbar (language switcher, reorder, view modes) via Tailwind 4's `group-has-[input:focus]:hidden` and the search expands to fill the row, so there's actually room to type. At `sm+` everything stays side-by-side as before.
|
||||
* **Tabler-style sidebar icons.** The global sidebar's logout button now uses Tabler `logout` (door + outbound arrow) instead of Lucide `LogOut`, and the bottom-right sidebar collapse / expand toggle uses Tabler `arrow-bar-left` / `arrow-bar-right` instead of plain chevrons. SVGs are inlined (3 icons total) — no new icon dependency. Sized to 18px to read clearly against the sidebar background.
|
||||
* **Sidebar version label refreshes after a self-update.** Updating the Admin2 plugin from inside admin2 itself used to leave the bottom-of-sidebar `Admin v…` label showing the previous version until the next page reload — the on-disk `blueprints.yaml` was current, but `auth.adminVersion` (cached on the auth store from `GET /me`) was stale. The app shell now subscribes to `plugins:update:{admin,admin2,api}` invalidation events and re-fetches `/me` when any of them fires, so the label flips to the new version in place. Future plugin self-updates will refresh the label automatically.
|
||||
3. [](#bugfix)
|
||||
* **Editor-pro toolbar pins correctly below the page tabs at every viewport size and row count.** Two issues were stacking up: (1) `StickyHeader.svelte` declared its `bind:this` refs (`headerEl` / `sentinel`) as plain locals rather than `$state`, so the `$effect`s gated on `if (!headerEl) return` ran once with `undefined`, bailed out, and never re-ran — meaning the `ResizeObserver` that publishes `--sticky-header-height` to the page never started, and that variable stayed at `0px`; (2) even with a correct page-header height, the editor toolbar and the blueprint tab strip both pinned at the same `top: var(--sticky-header-height)`, so when the editor-pro toolbar was wrapped to two rows on narrower viewports, its first row hid behind the tabs and only the second peeked below. `TabsField` now redefines `--sticky-header-height` for its own descendants to "inherited value + tab-strip height" (computed in JS — CSS rejects `--x: calc(var(--x) + N)` as a self-referential cycle and would resolve to the guaranteed-invalid value), so any sticky element nested inside the tabs (the editor toolbar, or future nested sticky bars) automatically pins below the tabs without having to know about them. The reapply runs on tab-strip resize and on style mutations of the host that defines the variable, so the offset tracks the page header's expanded↔compact animation. Editor-pro itself drops its JS-driven `position: fixed` fallback when no `overflow: hidden` ancestor blocks sticky and uses pure `position: sticky; top: var(--sticky-header-height)`, so 1-row and 2-row toolbar layouts compose identically with the stack — no per-frame layout reads on scroll. Requires grav-plugin-editor-pro ≥ today's tip.
|
||||
* **Page-list row double-click no longer drags a text selection into the destination page.** Double-clicking a page row in the Miller view to open the page-edit detail used to cause every text node on the destination to render with the browser-default text selection highlight applied — the second mousedown selected the row label as a "word/paragraph" and the selection persisted across navigation. The Miller row now `preventDefault`s the second mousedown (so `e.detail > 1` won't initiate text selection) without affecting the single-click path, and the dblclick handler also clears any straggling range before navigating, so the destination page starts clean.
|
||||
|
||||
# v2.0.0-beta.14
|
||||
## 04/25/2026
|
||||
|
||||
1. [](#improved)
|
||||
* **"Update All" toasts now expand failure reasons inline** instead of just listing slugs. Bulk update on the dashboard, the plugins page, and the themes page used to render `"Updated 3, failed 2: foo, bar"` — leaving the actual constraint (Grav too old, PHP too old, conflicting plugin version) buried in the network panel. Each failed package's reason now appears on its own line under the count: `"foo: One of the packages require Grav >=2.0.0-beta.2. Please update Grav to the latest release."` `UpdateAllResult` also gains `skipped[]` (packages brought current as a cascade dep of an earlier iteration in the same batch) and `cascaded_dependencies[]` (slugs installed/updated as deps of others), surfaced from the new bulk-update dependency resolution. Requires grav-plugin-api ≥ beta.14.
|
||||
|
||||
# v2.0.0-beta.13
|
||||
## 04/25/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Customizable dashboard.** The dashboard is now a 4-column responsive grid where every widget can be reordered, resized, hidden, or restored. Click the **Customize** pencil in the dashboard header to enter edit mode: each widget grows a small toolbar with a drag handle, a size picker (`SM` / `MD` / `LG` / `XL` per the widget's allowed sizes), and a hide toggle; an "Add a widget" tile lets you bring back hidden ones. Saved per-user via `PATCH /dashboard/layout`. Super-admins additionally get a **Save as site default** action that stamps the layout for everyone via `PATCH /dashboard/site-layout` — site-hidden widgets stay hidden for non-super users and cannot be re-enabled per-user. Three built-in presets are accessible from the customize toolbar:
|
||||
* **Default** — balanced layout: stats (full width), Page Views + System Health, Recent Pages + Top Pages + Backups, Notifications + News Feed.
|
||||
* **Minimal** — stats + recent pages only.
|
||||
* **Compact** — every widget at its smallest supported size.
|
||||
Widget sizes are now horizontal-only (column counts), so a smaller widget hugs its content height instead of being padded out to a row span. The grid uses `auto-rows-min` and each widget container is `h-full`, so widgets in the same row align cleanly to the tallest. A new **`xl`** size (full 4-column width) joins `xs` / `sm` / `md` / `lg` (1, 1, 2, 3 columns). Plugin-contributed widgets are picked up via the API's `onApiDashboardWidgets` event with no client changes — they appear in the picker and the customize-mode size selector automatically. Requires grav-plugin-api ≥ beta.14.
|
||||
* **Notifications widget rewrite (v2 schema)** — the Notifications widget now renders structured payloads from `https://getgrav.org/notifications2.json` instead of the v1 "embedded HTML in `message`" dump. `promo` notifications render as a gradient card at the top of the widget (image / title, markdown message, action button — accent color picked from `purple` / `blue` / `teal` / `amber` / `rose`), and `info` / `notice` / `warning` items render as a clean row with an emoji icon, optional bold title, markdown-rendered message, and a relative date. Messages support inline bold / italic / code / links via `marked` (existing dep — no new dependencies); links open in a new tab. The TopBanner (top-of-dashboard banner for `top`-located notifications) was rewritten the same way, replacing the previous `{@html message}` dump with a structured icon + title + message + action layout that matches the rest of the admin design language. Auto-rotates between multiple banners with prev/next controls and dismiss; rotation pauses on hover.
|
||||
* **Password strength meter + requirements modal** on every password entry surface — first-run setup, password reset, new-user creation, and the user profile edit form. Reads the configured `system.pwd_regex` (or the new optional `system.pwd_rules` list of labeled rules) via `GET /auth/password-policy` and renders a live rule checklist plus a single horizontal meter. Color flips to green only when every required rule passes (so the user knows "this will submit"); fill percentage keeps climbing with a lightweight entropy score, so a barely-passing password sits mid-green and a long, diverse one pushes to full. A small `Requirements` hint button next to the field opens a modal listing each rule with live met/unmet indicators. The setup-status endpoint piggybacks the policy so `/setup` gets it in one round-trip; all three legacy flows cache the policy via a shared Svelte store. Includes a reveal (eye-icon) toggle on every password field. Requires grav-plugin-api ≥ beta.13.
|
||||
* **Real-time collaborative editing on pages**, opt-in via Settings → Editing → "Real-time Collaboration". Multiple users can edit the same page simultaneously and see each other's changes character-by-character, with named cursors in the content editor and live presence avatars in the topbar. The whole blueprint is mirrored into a shared Yjs document (not just the markdown body) so concurrent edits to title, taxonomy, options-tab fields, etc. all merge cleanly per-key — long-form text fields (markdown / textarea / yaml / editor) flow through `Y.Text` for character-level CRDT, while toggles, selects and dates use last-write-wins on the enclosing `Y.Map`. The transport is capability-driven: the client probes `GET /sync/capabilities` and prefers `MercureProvider` (sub-100ms SSE) when the server advertises a Mercure hub, falling back to `PollingProvider` (1-second short-poll) otherwise. Editor integration uses y-prosemirror for editor-pro and y-codemirror.next for the markdown CodeMirror; both share the same Y.Doc as the form binding so every editor sees a single source of truth. Requires grav-plugin-api ≥ beta.13, grav-plugin-sync ≥ 1.0, grav-plugin-editor-pro ≥ 2.0.1, and (optionally for low-latency) grav-plugin-sync-mercure.
|
||||
* **Page-editor presence + Normal/Expert toggle relocated to the global topbar.** The page edit toolbar was visibly cramped on standard 13–14" laptops: the per-page actions (history, language, drafts/published, page navigator, copy/delete, save/save-as) plus the collab presence cluster and the editor-mode segmented control were fighting for the same row. Presence (user avatars + sync status badge) now sits to the right of the environment selector at the top of the app shell, where it's globally visible and matches the global nature of "who else is here." The Normal/Expert pill moves up next to the View site button — close to the other top-of-window editing chrome and out of the per-page button row. Both slots are populated only by the page edit route (via a small `pageEditorBar` Svelte 5 store) and clear on route teardown so the topbar reverts to its plain shape elsewhere in the admin.
|
||||
2. [](#improved)
|
||||
* **Refresh button force-refreshes notifications and feed caches.** The dashboard's Refresh button (the `RefreshCw` action in the header) now passes `?force=true` to `/dashboard/notifications` and `/dashboard/feed` in addition to the GPM cache flush — so you can immediately pick up a freshly-deployed notification without waiting up to 30 minutes for the per-user cache to expire. Background polls and post-mutation invalidation reloads still use the cached path, so the network footprint of normal use is unchanged. Pairs with the new `notifications2` endpoint on getgrav.org.
|
||||
3. [](#bugfix)
|
||||
* Mixed editor types (the built-in CodeMirror markdown editor vs a custom field like editor-pro) in the same collab session no longer silently split-brain the content. Their underlying CRDT shapes (`Y.Text` vs `Y.XmlFragment`) live in the same `Y.Doc` but don't cross-sync at the character level — a CodeMirror peer's keystrokes never reach the editor-pro peer's TipTap doc and vice-versa. The page editor now arbitrates a first-joiner-wins lock: each peer's editor type ships in the presence heartbeat, the server tracks the original `joinedAt` per peer (preserved across heartbeats), and later joiners with a different editor get a small notice plus a CodeMirror **read-only viewer** in place of their normal content editor. The viewer binds to the same `Y.Text` the form binding uses, so the lock owner's edits stream in live — whether they're typing in CodeMirror (yCollab writes Y.Text directly) or in editor-pro (TipTap's `onUpdate` re-renders markdown, which admin-next diffs into Y.Text). Locked-out users can watch the page evolve in real-time, just not write to it. Window-close / tab-close fires the presence-leave via `keepalive` fetch (`pagehide` listener) so the lock releases within a second of the owner closing their tab rather than waiting up to 30s for the TTL — no ghost locks. Title, options, taxonomies and the rest of the blueprint stay editable for the locked-out user. Requires grav-plugin-sync ≥ today's tip.
|
||||
* List/array fields (tags, taxonomies, multi-selects, etc.) now CRDT-merge concurrent additions instead of last-write-wins clobbering them. Two users adding tags to the same page would previously each call `pushLocal` with their own local array — whichever got serialized last won, and the other user's tag silently disappeared on the next sync. The shared form binding now stores arrays as `Y.Array` and `pushLocal` runs a multiset diff so items present in old-but-not-new get deleted, items present in new-but-not-old get appended (with duplicate handling via sentinel marking). Pure reorders and arrays of objects (repeater rows) still wholesale-replace — a per-item refactor on the field-component side is the path forward for those, but the storage shape is now correct for it. Affects every list/array field surfaced through the page editor's blueprint form when collab is enabled.
|
||||
* Two users opening the same fresh page at the same time no longer end up with doubled-up content. With the live edit feature on, both browsers would observe an empty Yjs document locally, push their own seed update, and the server would land both copies into the log — for a `Y.Text` field that meant the title and body got duplicated (`"HelloHello"`-style). The sync substrate now arbitrates under an exclusive file lock: a new `POST /sync/pages/{route}/init` endpoint accepts a seed only when the log is empty, and admin-next builds its seed in a throwaway `Y.Doc` so the live document isn't touched until the server confirms a win. Losers receive the canonical state inline, so the second tab catches up in the same request without an extra pull. Requires grav-plugin-sync ≥ today's tip.
|
||||
* Cmd-Z / Cmd-Y / the toolbar undo+redo buttons in the markdown CodeMirror editor no longer roll back peer edits when collaborative editing is active. The CodeMirror `history()` extension and `historyKeymap` operate on CM transactions, which include remote ops applied by `yCollab` — so an undo there could erase a co-editor's keystrokes. The editor now substitutes an explicit `Y.UndoManager(yText)` (passed to `yCollab` as the `undoManager` option, with `yUndoManagerKeymap` taking over Cmd-Z bindings) when a shared `Y.Text` is supplied; the toolbar undo/redo also dispatches against that manager. y-codemirror.next's view plugin registers its sync-config origin as the only tracked origin, so peer edits (which arrive with a different origin) are excluded from the undo stack by construction. Pairs with the equivalent fix on the editor-pro side. Requires grav-plugin-editor-pro ≥ 2.0.1.
|
||||
* Plugin / theme / config / user / flex-object detail pages no longer return a spurious `409 Conflict` ("Configuration was modified elsewhere. Please reload.") on the first save when the admin sits behind Apache + mod_deflate (or an nginx build with gzip/br). The compression filter weakens the `ETag` response header by appending `-gzip` (or `-br`) to mark it as a compressed variant — but the client echoes that suffixed value back in the next `If-Match`, and PATCH responses (uncompressed) generate the bare hash, so the strict comparison always failed. The API's `validateEtag()` now strips transport suffixes (`-gzip`, `;gzip`, `-br`, `-deflate`) and weak-validator markers (`W/`) before comparing; admin-next also normalizes ETags at extraction time via a shared `extractEtag()` helper. Invisible locally (`php -S`, MAMP) — only repros behind compressing reverse proxies. Requires grav-plugin-api ≥ beta.13.
|
||||
* User listing no longer surfaces phantom entries for stray files in `user/accounts/`. Grav's Flex `FileStorage::buildIndex()` indexes every file in the accounts folder without filtering by extension, so backup/snapshot files dropped by other plugins (e.g. revisions-pro's `.rev` snapshots) showed up as clickable "users" in the Users list. `UsersController::indexViaFlex` now constrains the collection to keys matching the username pattern `[a-z0-9_-]+` before search/sort/pagination run.
|
||||
* Blueprint password fields in the user profile edit form now render with the strength meter + requirements hint (previously rendered as a plain password input via `TextField`). Size prop is honored so the password input matches the width of neighbouring text inputs.
|
||||
* Mutation requests (`DELETE`, `PATCH`, `PUT`) no longer hard-fail on shared-hosting nginx configurations that 405 non-standard verbs at the edge. The API client now detects a 405 on a mutation verb, flips a `sessionStorage` flag, and transparently retries the request as `POST + X-HTTP-Method-Override: <method>`; subsequent requests in the same session skip the failed first attempt and use the compatible path directly. Session-scoped so a deploy swap or new sign-in re-detects from scratch. Requires grav-plugin-api ≥ beta.13 for the server-side rewrite middleware.
|
||||
* Theme / plugin / user blueprint `type: file` fields now upload to the location declared by the blueprint's `destination:` property (e.g. `theme://images/logo`, `self@:images`, `user://assets`) instead of always routing through the page-media endpoint. The old path built URLs like `/pages//media` when the form had no owning page, which collapsed on the server and surfaced as a "network error" toast. `FileField` now reads `field.destination` and hands it to a new `POST /blueprint-upload` endpoint along with a `blueprintScope` context (set by the themes/plugins/users/config/pages routes so `self@:` resolves to the right owner). Requires grav-plugin-api ≥ beta.13.
|
||||
* File-field removal is now tied to the **save** commit instead of firing a `DELETE` on every ✕ click. Eager deletes left a confusing half-state: the file was gone from disk immediately, but the YAML still referenced it until save — so a reload (or a cancel) would show a broken entry whose image couldn't be retrieved. A new lightweight `formCommit` context lets `FileField` stage removed paths in a `pendingDeletes` set; the host route (themes/plugins/users/config) calls `formCommit.emit()` after a successful PATCH + fresh-config fetch, and only then does `FileField` fire the actual `DELETE /blueprint-upload` calls. Removing a file and then navigating away without saving leaves both the file and the reference intact, so reload restores the expected state.
|
||||
* Page-edit view no longer fires phantom `GET /pages//media` requests (404) before the home-alias redirect resolves. When the user lands on `/pages/edit/` without an explicit slug, `route` starts as `/`; the host page resolves the home alias and replaces the URL with the structural route (e.g. `/home`), but `PageMedia` was eagerly calling `getPageMedia('/')` in `onMount` during that window — producing `/pages//media` which nginx collapses to `/pages/media` and FastRoute mis-matches. `PageMedia` now has a `routeReady` guard (`route !== '' && route !== '/'`); the initial load is skipped until `route` flips to a concrete path, and a reactive `$effect` re-fires the load the moment it does. `getPageMedia` / `uploadPageMedia` / `deletePageMedia` also refuse empty routes at the API-client layer as a defense-in-depth.
|
||||
|
||||
# v2.0.0-beta.12
|
||||
## 04/24/2026
|
||||
|
||||
1. [](#improved)
|
||||
* Require Login version `3.8.2` for security fixes
|
||||
|
||||
# v2.0.0-beta.11
|
||||
## 04/22/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Environment selector dropdown** in the app shell. The environment badge is now an interactive dropdown that lists every writable target: `Default` (base `user/config/`) and each existing `user/env/*` or legacy `user/<host>/` folder. Switching the selection persists per-user via scoped localStorage and drives a new `X-Config-Environment` header on every API request, so config/plugin/theme saves land exactly where you chose — no more invisible env folder auto-created from the hostname. The dropdown also offers an inline **Create env "<current-host>"…** action that calls `POST /system/environments` to create a fresh `user/env/<name>/config/` folder and switches the target to it; envs carrying existing overrides are flagged. Pairs with server-side differential saves: with an env selected, only the keys that differ from the effective base layer are written to that env's file, matching the hand-edit workflow instead of forking full copies. Requires grav-plugin-api ≥ beta.12.
|
||||
2. [](#bugfix)
|
||||
* Config/plugin/user/page/flex-object detail pages no longer toast `"<Resource> changed elsewhere — save to overwrite or reload"` after every save. The server's `X-Invalidates` response header fires the matching subscriber inside the same `PATCH` that initiated the save, before `handleSave` has had a chance to clear `hasChanges`. The subscriber saw itself as dirty and showed the "out of sync" toast on top of the success toast. All five detail-route subscribers now pass `dirtyGuard: () => saving` (plus `autoSave.saving` where applicable) so the handler skips while our own save is in flight — other tabs saving the same resource still trigger the toast as intended.
|
||||
* Custom field web components rendered outside the page-edit route now have access to the active content language via `window.__GRAV_CONTENT_LANG`. Previously this global was only populated on `/pages/edit/*`, which pushed plugins (seo-magic et al.) into reaching for `localStorage.getItem('grav_admin_content_lang')` directly. That key is site-scoped (`grav_admin_content_lang::/<basePath>`) on sub-path installs, so the read returned empty and multi-language checks silently fell back to the default locale. `CustomFieldWrapper` now mirrors `contentLang.activeLang` to the global reactively, so every custom field site (plugin configs, themes, user profiles, flex-objects) gets the live value and picks up language switches without a page reload. Requires grav-plugin-seo-magic ≥ 7.0.0 (and similar) to consume.
|
||||
|
||||
# v2.0.0-beta.10
|
||||
## 04/21/2026
|
||||
|
||||
1. [](#improved)
|
||||
* Page visibility signal in Tree, List, and Columns views switched from a 60% opacity dim on the title to a two-tone page/folder icon: **visible** pages use the accent color (matches the rest of the admin chrome), **non-visible** pages drop to the muted grey used for secondary text. Keeps titles at full contrast — the previous dim was hard to read against the dark background — while still giving an at-a-glance signal in the same spot readers already look. Miller's active-row white-on-accent treatment still wins when a row is selected.
|
||||
* Background refreshes now run **silently** across the admin. Previously, the dashboard's 60-second poll and every mutation-triggered refresh re-entered the same code path as the initial load — flipping the `loading` skeleton and resetting the number-tweens, so counters re-animated from zero and cards re-faded-in every minute (and every time a page was saved anywhere). Pages list / tree / columns views took the same approach: a save anywhere fired a `pages:*` event, and each view wiped its entire children cache, showed a skeleton, and refetched from scratch. Split into explicit "fresh load" vs "background refresh":
|
||||
* Dashboard: `loadDashboard({ silent })` — silent path skips the skeleton flip and the animation reset. The poll, all `pages:*` / `users:*` / `plugins:*` / `gpm:*` invalidations, and the post-Update-All / post-Upgrade-Grav refreshes all run silent. Only the first mount and the user-clicked **Refresh** button animate.
|
||||
* Tree view: cache-wipe refetch replaced with `silentRefresh(parentRoutes[])`. Uses the invalidation event's id (e.g. `pages:update:/blog/post-1`) to derive the parent route, then refetches just that parent's children into the cache — no `rootLoading` flip. Root is kept fresh as insurance. Tab-refocus silently refreshes all currently-cached parents instead of wiping them.
|
||||
* List view: `loadPages(silent)` — invalidations and focus events refetch the current page of results silently; no skeleton flip.
|
||||
* Miller (Columns) view: `silentRefreshColumn(parentRoute)` — refetches only the column(s) containing the affected page, preserving the user's selection trail and downstream columns. Previously, any mutation reset the view back to the root column.
|
||||
* Result: the dashboard no longer "re-animates" every minute, and the pages browser no longer flashes a skeleton when a page is saved elsewhere on the site.
|
||||
2. [](#bugfix)
|
||||
* Plugin / theme installs now pull in missing blueprint dependencies automatically instead of silently installing only the requested package — e.g. installing `shortcode-ui` now also installs `shortcode-core` if it's missing, with each dependency surfacing as its own success toast ("Plugin '…' installed (dependency)") before the main package's toast. Dependency resolution runs server-side via `GPM::getDependencies()` (same path admin-classic uses, so version constraints and PHP/Grav requirements are checked); the new `dependencies: string[]` field on the `/gpm/install` and `/gpm/update` responses drives the UI side. Applies to `AddPluginModal`, `AddThemeModal`, and the update flow on plugin/theme list + detail pages. Failure modes (needing a newer Grav core, a newer PHP version, an incompatible version constraint, or a mid-install failure after some deps already succeeded) now surface the API's error detail in the toast instead of a generic "Failed to install" message, so users can see exactly why the install stopped and what partial state the system is in. Requires grav-plugin-api ≥ beta.10.
|
||||
* Self-hosted font files (`/fonts/*.ttf`) are now served correctly from the admin2 route. The static-asset gate in `admin2.php` previously only intercepted `/_app/` — anything under `/fonts/` fell through to the SPA router and returned the HTML shell, so browsers reported `OTS parsing error: invalid sfntVersion` and the Google Sans option in Settings → Appearance silently fell back to Inter. The gate now also matches `/fonts/`, `/robots.txt`, and `/favicon.ico`, and the MIME map adds explicit `font/ttf` and `font/otf` handlers. The SPA shell declares an inline `<link rel="icon" href="data:,">` to silence the default browser favicon request.
|
||||
* Pages **Tree view** no longer crashes with `RangeError: Maximum call stack size exceeded` on sites where the home page has sub-pages. The tree's recursive `treeRow` snippet keyed its expansion/cache state off `page.route`, but the home page's public route is `/` — the same value used as the tree's root-parent marker, which is pre-seeded into `expandedRoutes` so the top-level children render on load. When home had any children, rendering its row satisfied `expandedRoutes.has('/')`, looked up `childrenCache['/']` (which holds the root-level page list — including home itself), and recursively rendered the same set of rows again, blowing the stack within a handful of frames. Identity keys inside the snippet now use `pageApiRoute(page)` (`raw_route || route`), so home is tracked as `/home` in the expansion and cache maps and can no longer collide with the root marker. Expanding home now correctly fetches and displays its children via `getChildren('/home')`.
|
||||
|
||||
# v2.0.0-beta.9
|
||||
## 04/19/2026
|
||||
|
||||
1. [](#new)
|
||||
* Accent color **Custom** picker in Settings → Appearance — hue (0–360°) and saturation (0–100%) sliders let you dial in any brand color while the theme's lightness clamp keeps contrast consistent across light and dark modes. The gradient-filled sliders preview the result live; the panel auto-expands for users whose stored color doesn't match a preset.
|
||||
* Added **Grav** accent preset (hue 271 / sat 91 — the purple used on the new getgrav.org design) and promoted it to the default accent color for new installs.
|
||||
* **Font picker** in Settings → Appearance with five built-in variable typefaces: **Google Sans** (self-hosted, new default, matches the marketing site), Inter, Public Sans, Nunito Sans, Jost. Each option renders its label in its own typeface for live preview; the chosen font persists per-install alongside the other appearance preferences and applies globally via a `--font-sans` CSS variable.
|
||||
2. [](#improved)
|
||||
* Dark-mode primary color is now rendered at Tailwind-500 lightness (L=65) instead of L=70 with a +8 saturation boost. Toggles, primary buttons, focus rings and every other `--primary`-driven element now match the canonical 500 shade of the chosen hue (e.g. Grav purple → ~#B166F8) instead of a slightly washed-out neon 400.
|
||||
* Dark-mode `--popover` token raised from `hsl(240 10% 3.9%)` (~#09090B, near-black) to `hsl(240 4.5% 14.5%)` so floating surfaces sit in the same grey family as cards and inputs. Fixes the visible inconsistency where custom dropdowns (Selectize, Pages picker, File picker, Icon picker, DateTime calendar, language switcher, cache-clear menu, floating widgets) rendered much darker than native `<select>` controls that used `bg-muted`.
|
||||
* Pages **columns (Miller) view** now surfaces per-page publish/visibility state at a glance: an inline amber **Draft** pill renders next to the title for unpublished pages, invisible pages dim to 60% opacity (consistent with Tree and List views), and the preview panel shows a **Visible** badge for pages that appear in nav alongside the existing Published/Draft and Has-children badges.
|
||||
* Tree and List views also dim invisible pages (those with `visible: false` in frontmatter or missing an order prefix) to 60% opacity on the title + route block. Composes naturally with the existing italic-muted styling for untranslated pages so the two signals remain distinct.
|
||||
* Page Info sidebar on the edit screen now updates immediately after saving a Published or Visible change — previously required a page reload to pick up the new value. Requires grav-plugin-api ≥ beta.9.
|
||||
* Draft / hidden pages in Tree, List, and Columns views now correctly report their published / visible state in the API response. Previously the flex-indexed listing endpoint returned stale "true" values so every draft looked published and every hidden page looked visible. Requires grav-plugin-api ≥ beta.9.
|
||||
* Dashboard **Refresh** button now flushes the GPM remote-manifest cache (equivalent to `bin/gpm index -f`), so clicking it picks up newly released plugin / theme / Grav versions instead of returning the stale local cache. The 60-second auto-poll and invalidation-triggered reloads still use the cached path.
|
||||
|
||||
# v2.0.0-beta.8
|
||||
## 04/17/2026
|
||||
|
||||
1. [](#new)
|
||||
* **Copy page** restored in the Pages edit toolbar (parity with admin-classic). Duplicates the current page into the same parent — picks the next free `slug-N`, increments the trailing number in the title (or appends ` 2` if none), then navigates to the new page's edit screen.
|
||||
2. [](#improved)
|
||||
* Pages edit toolbar is now responsive. Below `lg` (1024px) the Normal/Expert toggle, Save and Undo collapse to icon-only; Preview, Copy and Delete are always icon-only and sit to the left of the Normal/Expert toggle. Below `sm` (640px) the toolbar wraps onto its own row beneath the title so it stops crowding the page title on narrow viewports.
|
||||
3. [](#bugfix)
|
||||
* Home page now works correctly in the Pages UI. All page list / tree / columns views, the page-navigator D-pad, and the edit screen address the home page by its structural `raw_route` (typically `/home`) instead of the public `/` alias that the API router doesn't match — fixes the empty preview in columns view and the "Failed to load page" error when editing Home. Direct navigation to `/pages/edit/` also resolves to the home page automatically.
|
||||
* Plugin and theme descriptions render inline markdown (links, bold, emphasis) in detail panels instead of showing raw `[text](url)` / `**bold**` syntax. Truncated list-card descriptions strip the markdown to plain text so the one-line summary stays readable. Uses the new `description_html` field from grav-plugin-api beta.8.
|
||||
* Pages with template-dependent shortcodes in their body (e.g. `[poll]`) no longer fail to load a preview in the Miller columns view. The page-summary API endpoint now falls back to plain-text when shortcode rendering throws (requires grav-plugin-api beta.8).
|
||||
|
||||
# v2.0.0-beta.7
|
||||
## 04/17/2026
|
||||
|
||||
1. [](#new)
|
||||
* Symlink indicator in the Plugins and Themes listings — a small VS Code-style corner arrow (↳) renders to the right of each row (next to the Enabled / Disabled / Active pill) for any package installed via symlink, with a native `Symlinked` hover tooltip. Reads the new `is_symlink` field from grav-plugin-api beta.7.
|
||||
* Dashboard Updates card redesigned for hierarchy: prominent purple Grav-core callout (version arrow `v{current} → v{available}`, filled-purple **Upgrade Grav** button) sits above an amber package panel (per-row version chips, filled-amber **Update All** button). Distinct button colors differentiate core upgrades from routine package updates at a glance.
|
||||
* Grav core card degrades to an explanatory message ("installed via symlink — upgrade manually") and hides the upgrade button when `is_symlink` is reported by the API.
|
||||
* **View site** button restored in the top menubar (globe icon + "View site" + external-link glyph) — opens the Grav frontend (`auth.serverUrl`) in a new tab. Had been dropped during the auth transport refactor.
|
||||
* **Unsaved-changes indicator** restored and now uniform across every edit surface — a pulsing amber dot in a bordered pill sits in the toolbar whenever there are pending changes. Adopts the shared `UnsavedIndicator` tri-state (saving spinner / green "saved" check / amber pulsing dot) when auto-save is enabled. Wired up on: Pages edit, Config (system / site / media / security), Plugins config, Themes config, Users edit, Flex-objects edit, and the blueprint-mode Plugin page.
|
||||
* Pages listing now distinguishes "implicit default" pages (those stored as a bare `default.md` with no language-suffixed variant) from genuinely untranslated pages. Implicit defaults render in normal text with a muted default-language badge; only pages that have explicit translations but lack one for the active language are shown italic + muted. Badge highlighting uses the new `explicit_language_files` signal, so the active-lang badge stays muted when it's served by the `default.md` fallback and highlights only when there's a real `default.<lang>.md` on disk.
|
||||
* Miller / columns view reached feature parity with Tree and List: route paths now render below each page title, and translation badges render inline beside the title (same styling + highlighting rules).
|
||||
* Page editor Save-as-{lang} dropdown: when the page is a bare `default.md` and the chosen target matches the site's default language, the action now routes through the new `POST /pages/{route}/adopt-language` API — renaming the file in place instead of creating a duplicate `default.<lang>.md` alongside the original. The dropdown correctly surfaces "Save as {defaultLang}" even when Grav reports the default lang in `translated_languages` (it always does when `default.md` exists), using `explicit_language_files` to tell whether the real file exists.
|
||||
* Tree and List page views now perform **full-site search** against the server (`GET /pages?search=`) instead of only filtering the currently-visible rows. Previously both views were paginated / lazy-loaded and the search box could only match pages that had already been fetched, which made the search feel broken on large sites. When the search input is empty both views revert to their normal paginated / tree behavior; searches are debounced at 250ms and capped at 500 results.
|
||||
2. [](#improved)
|
||||
* All package update and Grav upgrade actions (single-package update, Update All, Upgrade Grav) now require explicit confirmation through the shared `ConfirmModal`. Previously these fired immediately on button press, which is risky for destructive / long-running writes on a live site.
|
||||
* X-API-Token header is now the default JWT transport for all API calls, aligning with grav-plugin-api beta.7. Fixes login / reauth on FastCGI hosts (e.g. MAMP) that strip the `Authorization` header.
|
||||
|
||||
# v2.0.0-beta.6
|
||||
## 04/16/2026
|
||||
|
||||
1. [](#new)
|
||||
* Updates control surface across the SPA: Dashboard "Updates" card gains an "Update All (N)" button and a prominent amber/orange "Upgrade Grav to vX" button (disabled + tooltip when Grav is installed as a symlink)
|
||||
* Plugins page: "Update All (N)" header action plus a per-row "Update to vX.Y" button in the detail panel
|
||||
* Plugin config page: amber "Update available" pill next to the version and an "Update to vX.Y" button in the action bar
|
||||
* Themes page + theme config page: mirrors the plugin update surface
|
||||
* Sidebar footer now shows the running `Grav vX` / `AdminN vX` versions next to the collapse chevron (admin2 injects both into `window.__GRAV_CONFIG__`)
|
||||
2. [](#improved)
|
||||
* Confirmation prompts for updates route through the shared `ConfirmModal` (via `dialogs.confirm`), matching the rest of the SPA
|
||||
* Dashboard, Plugins, and Themes polling now reflects the refreshed updatable state immediately after any update / upgrade call
|
||||
3. [](#bugfix)
|
||||
* `GET /gpm/updates` now counts Grav itself in `total`; the dashboard previously said "1 update available" when both a plugin and Grav core had pending releases
|
||||
|
||||
# v2.0.0-beta.5
|
||||
## 04/16/2026
|
||||
|
||||
1. [](#new)
|
||||
* Server-side bootstrap hijack — frontend requests on sites with zero user accounts are now redirected to the admin route (parity with admin-classic), closing the window where a stranger could reach the admin before the site owner did
|
||||
2. [](#improved)
|
||||
* All admin-next SPA `localStorage` keys (auth tokens, preferences, theme, content language, i18n cache) are now scoped by `__GRAV_CONFIG__.basePath` so multiple Grav installs on the same browser origin (e.g. `localhost/site-a`, `localhost/site-b`) no longer share or clobber each other's session and settings
|
||||
* Self-contained `anyUsersExist()` helper so the hijack does not require admin-classic to be installed
|
||||
3. [](#bugfix)
|
||||
* No-user redirect now passes a route-local path to `Grav::redirect()` (the framework prepends the site root itself); previously double-prefixed on installs mounted under a subpath
|
||||
* No-user hijack excludes the API plugin's own route prefix so the SPA's `/auth/setup` probe can reach the API
|
||||
|
||||
# v2.0.0-beta.4
|
||||
## 04/15/2026
|
||||
|
||||
1. [](#new)
|
||||
* Registers `site.login`, `admin.login`, `admin.super` permissions so the user-edit ACL UI works without admin-classic enabled
|
||||
* Contextual frontend launcher in the header — opens the current page (when editing) or the site root in a new tab
|
||||
* Compact `<UnsavedIndicator>` pill (pulsing amber dot for unsaved, green check for saved, spinner for saving) wired into every save-button view: pages, config, users, plugins, themes, flex-objects
|
||||
* Dashboard "Backups" card promoted to a full-width row with filename + "Pre-migration" badge for migration backups
|
||||
* Setup wizard route + login-page redirect when no user accounts exist
|
||||
* Reauth modal probes `/auth/setup` and bounces to the wizard when the underlying account no longer exists
|
||||
2. [](#improved)
|
||||
* Permissions editor: scoped crowns (`admin.super` → `admin.*` only, `api.super` → `api.*` only), section badges ("Admin Classic is deprecated in Grav 2.0", "API & Admin2 Access"), Admin section collapsed by default
|
||||
* Page navigation prefers the API's new `raw_route` so home-page editing resolves to `/home` instead of failing on `/`
|
||||
* Brightened dark-mode `--popover` token so dropdowns no longer read as near-black against the slate UI
|
||||
* Top Pages widened to `lg:col-span-2` to balance the dashboard grid after Backups moved out
|
||||
3. [](#bugfix)
|
||||
* Edit-page navigation no longer 404s on the home page
|
||||
|
||||
# v2.0.0-beta.3
|
||||
## 04/15/2026
|
||||
|
||||
1. [](#new)
|
||||
* Support for first user creation
|
||||
|
||||
# v2.0.0-beta.2
|
||||
## 04/15/2026
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed dynamic path issue
|
||||
|
||||
# v2.0.0-beta.1
|
||||
## 04/14/2026
|
||||
|
||||
1. [](#new)
|
||||
* Initial alpha release
|
||||
* SvelteKit single-page application served from `app/` directory
|
||||
* PHP wrapper serves static assets and SPA shell, injects runtime config via `window.__GRAV_CONFIG__`
|
||||
* Route configurable via `plugins.admin2.route` (defaults to `/admin2`)
|
||||
* All data operations routed through the Grav API plugin
|
||||
* `bin/build.sh` for building the sibling `grav-admin-next` SvelteKit project into this plugin
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 Trilby Media, LLC
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,137 @@
|
||||
# Grav Admin2 Plugin
|
||||
|
||||
**Admin2** is a modern, redesigned administration panel for [Grav CMS](https://github.com/getgrav/grav). It is a ground-up rewrite of the classic admin plugin, built as a [SvelteKit](https://svelte.dev/docs/kit/introduction) single-page application that communicates with Grav exclusively through the [Grav API plugin](https://github.com/getgrav/grav-plugin-api).
|
||||
|
||||
> **Status: Alpha.** Admin2 is under active development. It is not yet a drop-in replacement for the standard admin plugin and is intended for evaluation and contributor use.
|
||||
|
||||
## Architecture
|
||||
|
||||
Admin2 is intentionally decoupled from Grav's PHP render pipeline:
|
||||
|
||||
- **This plugin (`grav-plugin-admin2`)** — a thin PHP wrapper that detects the configured route, serves static SPA assets (with appropriate cache headers), and returns the SPA shell for all other sub-routes. It injects a small `window.__GRAV_CONFIG__` object so the SPA knows the server URL, API prefix, and base path.
|
||||
- **Grav API plugin (`grav-plugin-api`)** — provides the JSON HTTP API that the SPA consumes for every data operation (pages, config, users, media, plugins, themes, tools, etc.).
|
||||
- **SvelteKit source (`grav-admin-next`)** — the SPA source lives in a separate repository and is built into this plugin's `app/` directory.
|
||||
|
||||
This means the PHP footprint here is small and the UI ships as a pre-built static bundle.
|
||||
|
||||
## Highlights
|
||||
|
||||
- **Pages** — tree, list, and Miller (columns) browsers; drag-reorder; per-page draft / visible indicators (icon-color); home page works correctly throughout; copy / move / delete; multi-language editing with per-translation status; D-pad page navigator on the edit screen.
|
||||
- **Customizable dashboard** — 4-column responsive grid where every widget can be reordered, resized, hidden, or restored. Saved per-user, plus a "Save as site default" action for super-admins. Three presets (Default, Minimal, Compact) and an `xl` full-width size. Plugin-contributed widgets appear automatically via the API's `onApiDashboardWidgets` event.
|
||||
- **Real-time collaborative editing** (opt-in via Settings → Editing) — multiple users edit the same page simultaneously with named cursors, presence avatars in the topbar, and CRDT-merged form fields. Capability-driven transport: prefers Mercure (sub-100ms SSE) when the server advertises a hub, falls back to 1-second short-poll. Requires grav-plugin-sync (and optionally grav-plugin-sync-mercure).
|
||||
- **Environment selector** — switch the write target between `Default` (`user/config/`) and any `user/env/<name>/` folder; create new env folders inline. Pairs with server-side differential saves so env files only carry keys that differ from the base.
|
||||
- **Customizable theme** — light / dark / system mode, accent color picker (presets + custom HSV), font picker (5 self-hosted variable typefaces).
|
||||
- **First-run setup** — guided creation of the initial super-admin with a live password strength meter and configurable rules (driven by `system.pwd_regex` / `system.pwd_rules`).
|
||||
- **Notifications** (v2 schema) — structured payloads with rich cards for promos and inline-markdown items for everything else; `Refresh` force-refetches the cache.
|
||||
- **Plugin / theme management** — install, update, remove with automatic dependency installation; per-package toasts; license-aware premium installs.
|
||||
- **Tools** — backups, cache, system info, scheduler, logs, plus extensible per-plugin pages.
|
||||
|
||||
## Requirements
|
||||
|
||||
- Grav `>= 2.0.0`
|
||||
- [API plugin](https://github.com/getgrav/grav-plugin-api) `>= 1.0.0`
|
||||
- Login plugin `>= 3.8.2`
|
||||
- A user account with admin privileges (the `login` plugin handles authentication as with the classic admin)
|
||||
|
||||
**Optional** — for real-time collaborative editing:
|
||||
|
||||
- [Sync plugin](https://github.com/getgrav/grav-plugin-sync) `>= 1.0` (CRDT storage + presence)
|
||||
- [Editor Pro plugin](https://github.com/getgrav/grav-plugin-editor-pro) `>= 2.0.1` (collab-aware WYSIWYM editor)
|
||||
- [Sync Mercure plugin](https://github.com/getgrav/grav-plugin-sync-mercure) (optional, low-latency SSE transport)
|
||||
|
||||
## Installation
|
||||
|
||||
Admin2 is not yet available in GPM. Install manually alongside its dependency:
|
||||
|
||||
```
|
||||
cd user/plugins
|
||||
git clone https://github.com/getgrav/grav-plugin-api.git api
|
||||
git clone https://github.com/getgrav/grav-plugin-admin2.git admin2
|
||||
```
|
||||
|
||||
Then ensure both plugins are enabled in their respective config files (or via the classic admin).
|
||||
|
||||
## Configuration
|
||||
|
||||
Default config (`user/config/plugins/admin2.yaml`):
|
||||
|
||||
```yaml
|
||||
enabled: true
|
||||
route: /admin2
|
||||
```
|
||||
|
||||
Override the route to anything you like (e.g. `/manager`) — the PHP wrapper and the pre-built SPA must agree on the base path. If you change the route, you must rebuild the SPA with a matching `ADMIN2_BASE` (see **Building from source** below) so the SvelteKit asset paths resolve correctly.
|
||||
|
||||
## Accessing Admin2
|
||||
|
||||
Point your browser at `http://yoursite.com/admin2` and log in with a user account that has `api.login` and `api.super` permissions. Note that Admin2 uses the `api.*` permission namespace (provided by the Grav API plugin), **not** the classic admin's `admin.*` namespace — accounts intended for Admin2 need explicit `api:` access.
|
||||
|
||||
If you do not yet have an admin user, create one via the `login` plugin CLI:
|
||||
|
||||
```
|
||||
bin/plugin login new-user
|
||||
```
|
||||
|
||||
Or create `user/accounts/<username>.yaml` manually:
|
||||
|
||||
```yaml
|
||||
password: 'your-password'
|
||||
email: 'you@example.com'
|
||||
fullname: 'Your Name'
|
||||
title: 'Site Administrator'
|
||||
access:
|
||||
api:
|
||||
login: true
|
||||
super: true
|
||||
site:
|
||||
login: true
|
||||
```
|
||||
|
||||
## Building from source
|
||||
|
||||
To modify the UI, clone the SvelteKit source as a sibling of this plugin:
|
||||
|
||||
```
|
||||
cd /path/to/Projects/grav
|
||||
git clone https://github.com/getgrav/grav-admin-next.git
|
||||
```
|
||||
|
||||
Then from the plugin directory:
|
||||
|
||||
```
|
||||
./bin/build.sh
|
||||
```
|
||||
|
||||
This invokes `npm run build` in the SvelteKit project with `ADMIN2_BASE=/grav-api/admin2` and copies the output into `app/`. Override the base path when building for a different Grav root:
|
||||
|
||||
```
|
||||
ADMIN2_BASE=/my-site/admin2 ./bin/build.sh
|
||||
```
|
||||
|
||||
Or pass a custom path to the SvelteKit project:
|
||||
|
||||
```
|
||||
./bin/build.sh /path/to/grav-admin-next
|
||||
```
|
||||
|
||||
During SvelteKit development you can run `npm run dev:plugin` in `grav-admin-next` to continuously rebuild into this plugin's `app/` directory.
|
||||
|
||||
## Relationship to the classic admin
|
||||
|
||||
**Admin2 is the successor to `grav-plugin-admin` in Grav 2.0.** The classic admin plugin will not be supported on Grav 2.0 — Admin2 replaces it, and Grav 2.0 represents a clean break. We are moving on from the classic admin.
|
||||
|
||||
While it is technically possible to run both plugins at the same time during the alpha (each on its own route), doing so is not supported and should be reserved for short-term contributor testing only.
|
||||
|
||||
The two admins do not share UI code, events, or templates. Admin2 does not fire the `onAdmin*` event family that the classic admin exposes, because it does not run Grav's admin lifecycle — all data operations go through the API plugin instead. Plugins that integrate with the classic admin via Twig templates or admin-specific events will need to be updated to work with Admin2 and the API plugin.
|
||||
|
||||
## Languages and Translations
|
||||
|
||||
If you would like to contribute or add a new language for Admin2, please visit [The Grav Translations Community Portal for Admin2](https://translations.getgrav.org/translate/projects/getgrav/grav-plugin-admin2).
|
||||
|
||||
## Contributing
|
||||
|
||||
Issues and pull requests are welcome at [getgrav/grav-plugin-admin2](https://github.com/getgrav/grav-plugin-admin2). The SvelteKit UI lives in [grav-admin-next](https://github.com/getgrav/grav-admin-next); please open PRs against the appropriate repo.
|
||||
|
||||
## License
|
||||
|
||||
MIT — see `LICENSE`.
|
||||
@@ -0,0 +1,473 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Grav\Plugin;
|
||||
|
||||
use Grav\Common\Plugin;
|
||||
use Grav\Events\PermissionsRegisterEvent;
|
||||
use Grav\Framework\Acl\PermissionsReader;
|
||||
|
||||
/**
|
||||
* Admin2 — Modern administration panel for Grav CMS.
|
||||
*
|
||||
* Serves a pre-built SvelteKit SPA from the plugin's app/ directory.
|
||||
* The SPA communicates with the Grav API plugin for all data operations.
|
||||
*
|
||||
* The SvelteKit build bakes a single placeholder (`__GRAV_ADMIN2_BASE__`)
|
||||
* into index.html's entry-chunk preload links and into one runtime chunk
|
||||
* as the fallback for `globalThis.__sveltekit_<nonce>?.base`. On every
|
||||
* shell request, admin2.php substitutes that placeholder in the served
|
||||
* HTML and injects a `<script>` that sets the runtime global with two
|
||||
* separate per-site values:
|
||||
*
|
||||
* - `base` = the configured admin route (`/admin`) — used for in-app
|
||||
* navigation and history.
|
||||
* - `assets` = the same admin route — used for the SvelteKit version
|
||||
* poll, which we intercept here in PHP because Grav's stock
|
||||
* .htaccess blocks `user/*.json`.
|
||||
*
|
||||
* Every other byte (chunks, CSS, fonts, immutable assets) lives on disk
|
||||
* under `user/plugins/admin2/app/_app/...` and is served directly by the
|
||||
* webserver — no PHP, no materialization, no per-site copies. A single
|
||||
* plugin install can be symlinked into many sites with different rootUrls
|
||||
* or routes without them trampling each other.
|
||||
*/
|
||||
class Admin2Plugin extends Plugin
|
||||
{
|
||||
/**
|
||||
* Token that the SvelteKit build uses as its `kit.paths.base`. Defined
|
||||
* in svelte.config.js — keep these in sync.
|
||||
*/
|
||||
private const BASE_PLACEHOLDER = '/__GRAV_ADMIN2_BASE__';
|
||||
|
||||
/** @var bool Whether the current request is for the Admin2 route */
|
||||
protected bool $isAdmin2Route = false;
|
||||
|
||||
/**
|
||||
* The configured route, route-local (matches $uri->route() output).
|
||||
* Example: '/admin2' or '/admin'.
|
||||
*/
|
||||
protected string $base = '';
|
||||
|
||||
/**
|
||||
* The full URL path from the webserver root to the admin route — the
|
||||
* Grav site's rootUrl plus $base. Used as both the in-app route base
|
||||
* and the version-poll URL prefix in the injected runtime global.
|
||||
* Example: '/admin' on a root-hosted site, '/grav-api/admin' when
|
||||
* Grav is mounted at /grav-api/.
|
||||
*/
|
||||
protected string $routeBase = '';
|
||||
|
||||
/**
|
||||
* The full URL path from the webserver root to the on-disk bundle.
|
||||
* Substituted into index.html so chunk preload links resolve to real
|
||||
* files that the webserver can serve directly. Example:
|
||||
* '/user/plugins/admin2/app' on root, '/grav-api/user/plugins/admin2/app'
|
||||
* in a subfolder install.
|
||||
*/
|
||||
protected string $assetsPath = '';
|
||||
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return [
|
||||
'onPluginsInitialized' => [
|
||||
['setup', 100000],
|
||||
['onPluginsInitialized', 1001],
|
||||
],
|
||||
'onApiBlueprintResolved' => ['onApiBlueprintResolved', 0],
|
||||
PermissionsRegisterEvent::class => ['onRegisterPermissions', 1000],
|
||||
];
|
||||
}
|
||||
|
||||
public function onRegisterPermissions(PermissionsRegisterEvent $event): void
|
||||
{
|
||||
$actions = PermissionsReader::fromYaml("plugin://{$this->name}/permissions.yaml");
|
||||
$event->permissions->addActions($actions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inject admin-next-only fields into resolved blueprints.
|
||||
*
|
||||
* Currently used to add a `state` (account-enabled) toggle to the user
|
||||
* account blueprint, which Grav core's `account.yaml` doesn't carry —
|
||||
* admin-classic has no UI for the field either, so previously the only
|
||||
* way to disable a user was to hand-edit YAML. The toggle is gated on
|
||||
* `api.users.write`, since the underlying PATCH /users/{name} also
|
||||
* rejects non-managers writing to `state` (see grav-plugin-api
|
||||
* v1.0.0-beta.15).
|
||||
*/
|
||||
public function onApiBlueprintResolved(\RocketTheme\Toolbox\Event\Event $event): void
|
||||
{
|
||||
if (($event['template'] ?? null) !== 'account') {
|
||||
return;
|
||||
}
|
||||
|
||||
$fields = $event['fields'];
|
||||
|
||||
// Core's account.yaml references admin-classic callables
|
||||
// (\Grav\Plugin\Admin\Admin::adminLanguages and ::contentEditor)
|
||||
// for the `language` and `content_editor` fields. On admin-next
|
||||
// sites where admin-classic isn't installed, the API can't resolve
|
||||
// these and emits `data_options` for the client, which then 404s
|
||||
// against /data/resolve. Substitute admin-next-friendly options
|
||||
// here so the form is usable without admin-classic present.
|
||||
$fields = $this->rewriteAdminClassicDataOptions($fields);
|
||||
|
||||
$user = $event['user'] ?? null;
|
||||
$isManager = $user ? (bool) (
|
||||
$user->get('access.api.super')
|
||||
?? $user->get('access.admin.super')
|
||||
?? $user->get('access.api.users.write')
|
||||
) : false;
|
||||
|
||||
if ($isManager) {
|
||||
// Note: injected fields bypass BlueprintController::serializeFields(),
|
||||
// so emit the post-serialization shape — `options` as an ordered
|
||||
// array of `{value, label}` objects rather than the YAML-blueprint
|
||||
// map form. Client-side i18n picks up `ADMIN_NEXT.*` labels via the
|
||||
// ICU.* dual-namespace lookup.
|
||||
$stateField = [
|
||||
'name' => 'state',
|
||||
'type' => 'select',
|
||||
'size' => 'medium',
|
||||
'classes' => 'fancy',
|
||||
'label' => 'ADMIN_NEXT.USERS.STATUS',
|
||||
'help' => 'ADMIN_NEXT.USERS.STATUS_HELP',
|
||||
'default' => 'enabled',
|
||||
'options' => [
|
||||
['value' => 'enabled', 'label' => 'ADMIN_NEXT.ENABLED'],
|
||||
['value' => 'disabled', 'label' => 'ADMIN_NEXT.DISABLED'],
|
||||
],
|
||||
];
|
||||
$fields = $this->insertFieldAfter($fields, 'title', $stateField);
|
||||
}
|
||||
|
||||
$event['fields'] = $fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively replace the legacy admin-classic data-options@ stand-ins
|
||||
* (which the API serializer left as `data_options` references because
|
||||
* the Admin class isn't loadable here) with concrete option lists.
|
||||
*
|
||||
* @param array<int, array<string, mixed>> $fields
|
||||
* @return array<int, array<string, mixed>>
|
||||
*/
|
||||
private function rewriteAdminClassicDataOptions(array $fields): array
|
||||
{
|
||||
$out = [];
|
||||
foreach ($fields as $field) {
|
||||
if (isset($field['fields']) && is_array($field['fields'])) {
|
||||
$field['fields'] = $this->rewriteAdminClassicDataOptions($field['fields']);
|
||||
}
|
||||
$directive = $field['data_options'] ?? null;
|
||||
if (is_string($directive) && $directive !== '') {
|
||||
$normalized = ltrim($directive, '\\');
|
||||
if ($normalized === 'Grav\\Plugin\\Admin\\Admin::adminLanguages') {
|
||||
$field['options'] = $this->adminLanguageOptions();
|
||||
unset($field['data_options']);
|
||||
} elseif ($normalized === 'Grav\\Plugin\\Admin\\Admin::contentEditor') {
|
||||
$field['options'] = $this->contentEditorOptions();
|
||||
unset($field['data_options']);
|
||||
}
|
||||
}
|
||||
$out[] = $field;
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stand-in for \Grav\Plugin\Admin\Admin::adminLanguages when
|
||||
* admin-classic isn't installed. Admin-next currently only ships
|
||||
* English UI strings, so that's the only honest choice we can offer.
|
||||
*
|
||||
* @return array<int, array{value: string, label: string}>
|
||||
*/
|
||||
private function adminLanguageOptions(): array
|
||||
{
|
||||
return [
|
||||
['value' => 'en', 'label' => 'English'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Stand-in for \Grav\Plugin\Admin\Admin::contentEditor when
|
||||
* admin-classic isn't installed. Mirrors the legacy default list and
|
||||
* fires the same `onAdminListContentEditors` event so editor plugins
|
||||
* (editor-pro etc.) can register themselves the way they always have.
|
||||
*
|
||||
* @return array<int, array{value: string, label: string}>
|
||||
*/
|
||||
private function contentEditorOptions(): array
|
||||
{
|
||||
$options = [
|
||||
'default' => 'Default',
|
||||
'codemirror' => 'CodeMirror',
|
||||
];
|
||||
$event = new \RocketTheme\Toolbox\Event\Event(['options' => &$options]);
|
||||
$this->grav->fireEvent('onAdminListContentEditors', $event);
|
||||
|
||||
$out = [];
|
||||
foreach ($options as $value => $label) {
|
||||
$out[] = [
|
||||
'value' => (string) $value,
|
||||
'label' => is_string($label) ? $label : (string) $value,
|
||||
];
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert a field directly after a named sibling. Recurses into
|
||||
* container fields (`fields:` children) so the target is found
|
||||
* regardless of nesting depth. Returns the original list unchanged
|
||||
* if the anchor isn't present.
|
||||
*
|
||||
* @param array<int, array<string, mixed>> $fields
|
||||
* @param array<string, mixed> $newField
|
||||
* @return array<int, array<string, mixed>>
|
||||
*/
|
||||
private function insertFieldAfter(array $fields, string $afterName, array $newField): array
|
||||
{
|
||||
$out = [];
|
||||
foreach ($fields as $field) {
|
||||
if (isset($field['fields']) && is_array($field['fields'])) {
|
||||
$field['fields'] = $this->insertFieldAfter($field['fields'], $afterName, $newField);
|
||||
}
|
||||
$out[] = $field;
|
||||
if (($field['name'] ?? '') === $afterName) {
|
||||
$out[] = $newField;
|
||||
}
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Early setup — detect if the current request targets our route.
|
||||
* Most chunk / CSS / font URLs the SPA emits point at the bundle on
|
||||
* disk (`/user/plugins/admin2/app/...`) and never reach PHP. The only
|
||||
* static asset the SPA hits via the admin route is `_app/version.json`,
|
||||
* which we serve here because Grav's stock .htaccess blocks
|
||||
* `user/*.json`.
|
||||
*/
|
||||
public function setup(): void
|
||||
{
|
||||
// Admin2 is a web-only plugin; skip entirely in CLI. Otherwise the
|
||||
// bootstrap hijack in onPluginsInitialized() can fire redirect('/admin')
|
||||
// during console commands (e.g. the cache clear after `bin/gpm install`),
|
||||
// which calls Grav::close() and aborts the command.
|
||||
if (\PHP_SAPI === 'cli') {
|
||||
return;
|
||||
}
|
||||
|
||||
$route = $this->config->get('plugins.admin2.route');
|
||||
if (!$route) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->base = '/' . trim($route, '/');
|
||||
|
||||
/** @var \Grav\Common\Uri $uri */
|
||||
$uri = $this->grav['uri'];
|
||||
|
||||
// Full path from webserver root. rootUrl(false) returns the path-only
|
||||
// portion of the Grav root (e.g. '/grav-api' or ''), never the host.
|
||||
$rootPath = rtrim($uri->rootUrl(false), '/');
|
||||
$this->routeBase = $rootPath . $this->base;
|
||||
|
||||
// Derive the bundle's on-disk URL from the plugin's filesystem path,
|
||||
// not from a config knob: if a host relocates plugins (e.g. via a
|
||||
// custom stream override) the URL stays consistent with the files
|
||||
// Apache will actually be serving.
|
||||
$this->assetsPath = $rootPath . '/user/plugins/' . $this->name . '/app';
|
||||
|
||||
// Grav core strips known "page" extensions (html, json, xml, rss…)
|
||||
// from $uri->route(), per system.pages.types. Reattach the
|
||||
// extension *only* when it was actually stripped (route doesn't
|
||||
// already end with it), so we recognize `_app/version.json` here.
|
||||
$currentRoute = $uri->route();
|
||||
$stripped = $uri->extension();
|
||||
if ($stripped && !str_ends_with($currentRoute, '.' . $stripped)) {
|
||||
$currentRoute .= '.' . $stripped;
|
||||
}
|
||||
|
||||
if ($currentRoute === $this->base || str_starts_with($currentRoute, $this->base . '/')) {
|
||||
$this->isAdmin2Route = true;
|
||||
|
||||
// version.json poll — serve from the plugin's app/ dir.
|
||||
$subPath = substr($currentRoute, strlen($this->base));
|
||||
if ($subPath === '/_app/version.json') {
|
||||
$this->serveVersionJson();
|
||||
// serveVersionJson exits
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Serve the SPA's version.json file. The SvelteKit runtime polls this
|
||||
* to detect when the bundle has been updated underneath the live SPA.
|
||||
* We pipe it through PHP because Grav's stock .htaccess blocks direct
|
||||
* access to `user/*.json`.
|
||||
*/
|
||||
private function serveVersionJson(): void
|
||||
{
|
||||
$file = __DIR__ . '/app/_app/version.json';
|
||||
if (!is_file($file)) {
|
||||
http_response_code(404);
|
||||
exit;
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
header('Cache-Control: no-cache, no-store, must-revalidate');
|
||||
header('Content-Length: ' . filesize($file));
|
||||
readfile($file);
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* If on our route (and not a static asset), register the hook to serve the SPA shell.
|
||||
*/
|
||||
public function onPluginsInitialized(): void
|
||||
{
|
||||
// Bootstrap hijack — parity with admin-classic. If there are no user
|
||||
// accounts, send any frontend page request to the admin2 route so the
|
||||
// SPA's /auth/setup probe can take over and walk the visitor through
|
||||
// first-user creation. Without this, a site with admin2 installed but
|
||||
// no accounts would let the first random visitor who discovers the
|
||||
// admin route create the super user.
|
||||
//
|
||||
// Skip the API plugin's own route prefix — otherwise we'd intercept the
|
||||
// SPA's own /auth/setup probe and redirect it away.
|
||||
//
|
||||
// Pass the route-local base (e.g. '/admin') — Grav's redirect() prepends
|
||||
// the site root itself. $this->routeBase already includes the root, so
|
||||
// using it here would double-prefix on sites mounted in a subpath.
|
||||
if (!$this->isAdmin2Route && $this->base && !$this->isApiRoute() && !$this->anyUsersExist()) {
|
||||
$this->grav->redirect($this->base);
|
||||
}
|
||||
|
||||
if (!$this->isAdmin2Route) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->enable([
|
||||
'onPagesInitialized' => ['onPagesInitialized', 1000],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the current request targets the API plugin's route prefix.
|
||||
* The bootstrap hijack must not intercept these, or the SPA's own
|
||||
* /auth/setup probe would be redirected away from the API it needs.
|
||||
*/
|
||||
private function isApiRoute(): bool
|
||||
{
|
||||
$apiRoute = rtrim((string) $this->config->get('plugins.api.route', '/api'), '/');
|
||||
if ($apiRoute === '') {
|
||||
return false;
|
||||
}
|
||||
/** @var \Grav\Common\Uri $uri */
|
||||
$uri = $this->grav['uri'];
|
||||
$current = $uri->route();
|
||||
return $current === $apiRoute || str_starts_with($current, $apiRoute . '/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether any user accounts exist. Mirrors Admin::doAnyUsersExist()
|
||||
* from admin-classic but is self-contained so admin2 does not depend on
|
||||
* admin-classic being installed.
|
||||
*/
|
||||
private function anyUsersExist(): bool
|
||||
{
|
||||
$locator = $this->grav['locator'];
|
||||
$accountsDir = $locator->findResource('account://', true);
|
||||
if (!$accountsDir || !is_dir($accountsDir)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (glob($accountsDir . '/*.yaml') ?: [] as $file) {
|
||||
if (is_file($file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serve the SPA shell for all non-asset routes.
|
||||
*/
|
||||
public function onPagesInitialized(): void
|
||||
{
|
||||
$this->serveSpaShell();
|
||||
}
|
||||
|
||||
/**
|
||||
* Serve the SPA index.html from the plugin's app/ directory with
|
||||
* per-site URLs substituted into the chunk preload links and a
|
||||
* runtime override for SvelteKit's `__sveltekit_<nonce>` global.
|
||||
*/
|
||||
private function serveSpaShell(): void
|
||||
{
|
||||
$indexFile = __DIR__ . '/app/index.html';
|
||||
|
||||
if (!file_exists($indexFile)) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
echo 'Admin2: app not available. Run `npm run build:plugin` from grav-admin-next.';
|
||||
exit;
|
||||
}
|
||||
|
||||
$html = file_get_contents($indexFile);
|
||||
|
||||
// The build emits one placeholder used in two contexts:
|
||||
//
|
||||
// 1. URL prefixes for chunk preload links and dynamic imports —
|
||||
// these need to resolve to the real on-disk bundle location
|
||||
// so the webserver serves each file directly without PHP.
|
||||
// 2. JS string literals inside the inline `__sveltekit_<nonce>`
|
||||
// initializer — these need to be the admin *route* (so the
|
||||
// SPA router stays mounted there, in-app navigation works,
|
||||
// and version polling hits our setup() PHP path).
|
||||
//
|
||||
// Pattern (1): every URL-context occurrence is followed by `/`
|
||||
// (e.g. `/__GRAV_ADMIN2_BASE__/_app/...`). Pattern (2): the JS
|
||||
// literal is closed by `"` (e.g. `"/__GRAV_ADMIN2_BASE__"`).
|
||||
// Substitute each context with its correct value.
|
||||
$html = str_replace(
|
||||
['"' . self::BASE_PLACEHOLDER . '"', self::BASE_PLACEHOLDER . '/'],
|
||||
['"' . $this->routeBase . '"', $this->assetsPath . '/'],
|
||||
$html
|
||||
);
|
||||
|
||||
// Inject our own per-site config that the SPA reads at boot.
|
||||
$apiRoute = $this->config->get('plugins.api.route', '/api');
|
||||
$apiVersion = $this->config->get('plugins.api.version_prefix', 'v1');
|
||||
|
||||
/** @var \Grav\Common\Uri $uri */
|
||||
$uri = $this->grav['uri'];
|
||||
$serverUrl = rtrim($uri->rootUrl(true), '/');
|
||||
|
||||
$config = json_encode([
|
||||
'serverUrl' => $serverUrl,
|
||||
'apiPrefix' => '/' . trim($apiRoute, '/') . '/' . trim($apiVersion, '/'),
|
||||
'basePath' => $this->routeBase,
|
||||
'environment' => $uri->environment(),
|
||||
'grav' => [
|
||||
'version' => GRAV_VERSION,
|
||||
],
|
||||
'admin' => [
|
||||
'name' => $this->getBlueprint()->get('name'),
|
||||
'version' => $this->getBlueprint()->get('version'),
|
||||
],
|
||||
], JSON_UNESCAPED_SLASHES);
|
||||
|
||||
$configScript = "<script>window.__GRAV_CONFIG__ = {$config};</script>";
|
||||
$html = str_replace('<head>', '<head>' . "\n " . $configScript, $html);
|
||||
|
||||
header('Content-Type: text/html; charset=UTF-8');
|
||||
echo $html;
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
enabled: true
|
||||
route: /admin
|
||||
@@ -0,0 +1 @@
|
||||
export const env={}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.nav-quadrant.svelte-8lc2nr{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:none;background:transparent;color:var(--foreground);cursor:pointer;transition:background .15s;padding:0}.nav-quadrant.svelte-8lc2nr:not(:disabled):hover{background:color-mix(in srgb,var(--accent, #f4f4f5) 80%,transparent)}.nav-quadrant.svelte-8lc2nr:not(:disabled):active{background:color-mix(in srgb,var(--primary, #3b82f6) 15%,transparent)}.nav-disabled.svelte-8lc2nr{color:color-mix(in srgb,var(--muted-foreground, #71717a) 25%,transparent);cursor:not-allowed}.nav-up.svelte-8lc2nr{clip-path:polygon(0 0,100% 0,50% 50%);align-items:start;padding-top:8%}.nav-down.svelte-8lc2nr{clip-path:polygon(0 100%,100% 100%,50% 50%);align-items:end;padding-bottom:8%}.nav-left.svelte-8lc2nr{clip-path:polygon(0 0,0 100%,50% 50%);justify-content:start;padding-left:8%}.nav-right.svelte-8lc2nr{clip-path:polygon(100% 0,100% 100%,50% 50%);justify-content:end;padding-right:8%}
|
||||
@@ -0,0 +1 @@
|
||||
.top-progress-bar.svelte-t115pm{width:40%;animation:svelte-t115pm-top-progress-slide 1.4s cubic-bezier(.4,0,.2,1) infinite}@keyframes svelte-t115pm-top-progress-slide{0%{transform:translate(-100%)}to{transform:translate(250%)}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.prose{line-height:1.7}.prose h1{font-size:1.5rem;font-weight:700;margin-top:1.5rem;margin-bottom:.5rem;color:var(--color-foreground, hsl(240 10% 3.9%));border-bottom:1px solid var(--color-border, hsl(240 5.9% 90%));padding-bottom:.5rem}.prose h2{font-size:1.15rem;font-weight:600;margin-top:1.25rem;margin-bottom:.25rem;color:var(--color-foreground, hsl(240 10% 3.9%))}.prose h3{font-size:1rem;font-weight:600;margin-top:1rem;margin-bottom:.25rem;color:var(--color-foreground, hsl(240 10% 3.9%))}.prose p{margin-top:.5rem;margin-bottom:.5rem}.prose ul{margin-top:.25rem;margin-bottom:.5rem;padding-left:1.25rem;list-style-type:disc}.prose ol{margin-top:.25rem;margin-bottom:.5rem;padding-left:1.25rem;list-style-type:decimal}.prose li{margin-top:.1rem;margin-bottom:.1rem}.prose code{font-size:.85em;background:var(--color-muted, hsl(240 4.8% 95.9%));padding:.15em .35em;border-radius:4px}.prose pre{background:var(--color-muted, hsl(240 4.8% 95.9%));padding:.75rem 1rem;border-radius:8px;overflow-x:auto;margin:.5rem 0}.prose pre code{background:none;padding:0}.prose a{color:var(--color-primary, hsl(221 83% 53%));text-decoration:none}.prose a:hover{text-decoration:underline}.prose blockquote{border-left:3px solid var(--color-border, hsl(240 5.9% 90%));padding-left:1rem;color:var(--color-muted-foreground, hsl(240 3.8% 46.1%));margin:.5rem 0}.prose hr{border:none;border-top:1px solid var(--color-border, hsl(240 5.9% 90%));margin:1rem 0}.prose img{max-width:100%;border-radius:6px}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
function c(r){for(var n={},e=r.split(" "),t=0;t<e.length;++t)n[e[t]]=!0;return n}var s=c("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),f={null:!0},a=/[+\-*&%=<>!?|\/]/;function d(r,n){var e=r.next();if(e=="#"&&n.startOfLine)return r.skipToEnd(),"meta";if(e=='"'||e=="'")return n.tokenize=p(e),n.tokenize(r,n);if(e=="("&&r.eat("*"))return n.tokenize=l,l(r,n);if(e=="{")return n.tokenize=u,u(r,n);if(/[\[\]\(\),;\:\.]/.test(e))return null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="/"&&r.eat("/"))return r.skipToEnd(),"comment";if(a.test(e))return r.eatWhile(a),"operator";r.eatWhile(/[\w\$_]/);var t=r.current().toLowerCase();return s.propertyIsEnumerable(t)?"keyword":f.propertyIsEnumerable(t)?"atom":"variable"}function p(r){return function(n,e){for(var t=!1,i,o=!1;(i=n.next())!=null;){if(i==r&&!t){o=!0;break}t=!t&&i=="\\"}return(o||!t)&&(e.tokenize=null),"string"}}function l(r,n){for(var e=!1,t;t=r.next();){if(t==")"&&e){n.tokenize=null;break}e=t=="*"}return"comment"}function u(r,n){for(var e;e=r.next();)if(e=="}"){n.tokenize=null;break}return"comment"}const k={name:"pascal",startState:function(){return{tokenize:null}},token:function(r,n){if(r.eatSpace())return null;var e=(n.tokenize||d)(r,n);return e=="comment"||e=="meta",e},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}};export{k as pascal};
|
||||
@@ -0,0 +1 @@
|
||||
import{b as t}from"./Cu5ilWky.js";import{e as g}from"./92N1comP.js";import{r as c}from"./CMqN2HxG.js";async function o(){return t.get("/gpm/plugins")}async function p(e){return t.get(`/gpm/plugins/${e}`)}async function m(e,n){await t.patch(`/config/plugins/${e}`,{enabled:n})}async function l(e){return(await t.get(`/gpm/plugins/${e}/readme`)).content}async function f(e){return(await t.get(`/gpm/plugins/${e}/changelog`)).content}async function h(e){const{data:n,meta:a,headers:s}=await t.requestRaw("GET",`/config/plugins/${e}`);return{data:n,etag:g(s),...c(a)}}async function y(e,n,a){const s={};a&&(s["If-Match"]=`"${a}"`),await t.requestRaw("PATCH",`/config/plugins/${e}`,{body:n,headers:s})}async function d(){return t.get("/gpm/repository/plugins",{per_page:"500"})}async function w(e){return t.post("/gpm/install",{package:e,type:"plugin"})}async function P(e){await t.post("/gpm/remove",{package:e})}async function T(e=!0){return t.get("/gpm/updates",{flush:e?"true":"false"})}async function $(e){return t.post("/gpm/update",{package:e})}async function v(){return t.post("/gpm/update-all",{})}async function k(){return t.post("/gpm/upgrade",{})}async function C(){return t.get("/gpm/themes")}async function R(e){return t.get(`/gpm/themes/${e}`)}async function b(e){await t.patch("/config/system",{pages:{theme:e}})}async function q(e){return(await t.get(`/gpm/themes/${e}/readme`)).content}async function A(e){return(await t.get(`/gpm/themes/${e}/changelog`)).content}async function E(e){const{data:n,meta:a,headers:s}=await t.requestRaw("GET",`/config/themes/${e}`);return{data:n,etag:g(s),...c(a)}}async function I(e,n,a){const s={};a&&(s["If-Match"]=`"${a}"`),await t.requestRaw("PATCH",`/config/themes/${e}`,{body:n,headers:s})}async function x(){return t.get("/gpm/repository/themes",{per_page:"500"})}async function G(e){return t.post("/gpm/install",{package:e,type:"theme"})}async function M(e){await t.post("/gpm/remove",{package:e})}export{h as a,d as b,m as c,l as d,f as e,R as f,p as g,E as h,x as i,I as j,M as k,q as l,A as m,b as n,w as o,o as p,T as q,P as r,y as s,v as t,$ as u,G as v,C as w,k as x};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as l,a as i}from"./krC2xWPP.js";import{I as p,g as d}from"./Lvd_r9sp.js";import{l as m,s as $}from"./DjsWWzyL.js";function y(s,o){const t=m(o,["children","$$slots","$$events","$$legacy"]);const e=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];p(s,$({name:"clock"},()=>t,{get iconNode(){return e},children:(a,f)=>{var r=n(),c=l(r);d(c,o,"default",{}),i(a,r)},$$slots:{default:!0}}))}export{y as C};
|
||||
@@ -0,0 +1 @@
|
||||
import{s as e}from"./GW_nhZxv.js";const n=e({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}});export{n as factor};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as c,f as p,a as i}from"./krC2xWPP.js";import{I as l,g as d}from"./Lvd_r9sp.js";import{l as m,s as $}from"./DjsWWzyL.js";function y(t,o){const r=m(o,["children","$$slots","$$events","$$legacy"]);const s=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];l(t,$({name:"globe"},()=>r,{get iconNode(){return s},children:(a,f)=>{var e=c(),n=p(e);d(n,o,"default",{}),i(a,e)},$$slots:{default:!0}}))}export{y as G};
|
||||
@@ -0,0 +1 @@
|
||||
function a(r){const e=r.get("etag");if(!e)return"";let t=e.trim();return t.startsWith("W/")&&(t=t.slice(2)),t=t.replace(/^"|"$/g,""),t=t.replace(/[-;](?:gzip|br|deflate)$/i,""),t}export{a as e};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as a,f as l,a as n}from"./krC2xWPP.js";import{I as p,g as m}from"./Lvd_r9sp.js";import{l as d,s as $}from"./DjsWWzyL.js";function v(e,r){const o=d(r,["children","$$slots","$$events","$$legacy"]);const t=[["circle",{cx:"9",cy:"12",r:"1"}],["circle",{cx:"9",cy:"5",r:"1"}],["circle",{cx:"9",cy:"19",r:"1"}],["circle",{cx:"15",cy:"12",r:"1"}],["circle",{cx:"15",cy:"5",r:"1"}],["circle",{cx:"15",cy:"19",r:"1"}]];p(e,$({name:"grip-vertical"},()=>o,{get iconNode(){return t},children:(s,f)=>{var c=a(),i=l(c);m(i,r,"default",{}),n(s,c)},$$slots:{default:!0}}))}export{v as G};
|
||||
@@ -0,0 +1 @@
|
||||
import{b as t}from"./Cu5ilWky.js";async function g(){return t.get("/languages")}async function i(){return t.get("/admin/languages")}async function o(a,n){const s=a.startsWith("/")?a.slice(1):a;return t.post(`/pages/${s}/translate`,n)}async function r(a,n){const s=a.startsWith("/")?a.slice(1):a;return t.post(`/pages/${s}/adopt-language`,{lang:n})}async function l(a,n,s){const e=a.startsWith("/")?a.slice(1):a;return t.post(`/pages/${e}/sync`,{source_lang:n,target_lang:s})}export{i as a,r as b,o as c,g,l as s};
|
||||
@@ -0,0 +1 @@
|
||||
var t=["exten","same","include","ignorepat","switch"],o=["#include","#exec"],c=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function l(e,n){var i="",a=e.next();if(n.blockComment)return a=="-"&&e.match("-;",!0)?n.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),n.blockComment=!1):e.skipToEnd(),"comment";if(a==";")return e.match("--",!0)&&!e.match("-",!1)?(n.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if(a=="[")return e.skipTo("]"),e.eat("]"),"header";if(a=='"')return e.skipTo('"'),"string";if(a=="'")return e.skipTo("'"),"string.special";if(a=="#"&&(e.eatWhile(/\w/),i=e.current(),o.indexOf(i)!==-1))return e.skipToEnd(),"strong";if(a=="$"){var r=e.peek();if(r=="{")return e.skipTo("}"),e.eat("}"),"variableName.special"}if(e.eatWhile(/\w/),i=e.current(),t.indexOf(i)!==-1){switch(n.extenStart=!0,i){case"same":n.extenSame=!0;break;case"include":case"switch":case"ignorepat":n.extenInclude=!0;break}return"atom"}}const s={name:"asterisk",startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,n){var i="";if(e.eatSpace())return null;if(n.extenStart)return e.eatWhile(/[^\s]/),i=e.current(),/^=>?$/.test(i)?(n.extenExten=!0,n.extenStart=!1,"strong"):(n.extenStart=!1,e.skipToEnd(),"error");if(n.extenExten)return n.extenExten=!1,n.extenPriority=!0,e.eatWhile(/[^,]/),n.extenInclude&&(e.skipToEnd(),n.extenPriority=!1,n.extenInclude=!1),n.extenSame&&(n.extenPriority=!1,n.extenSame=!1,n.extenApplication=!0),"tag";if(n.extenPriority)return n.extenPriority=!1,n.extenApplication=!0,e.next(),n.extenSame?null:(e.eatWhile(/[^,]/),"number");if(n.extenApplication){if(e.eatWhile(/,/),i=e.current(),i===",")return null;if(e.eatWhile(/\w/),i=e.current().toLowerCase(),n.extenApplication=!1,c.indexOf(i)!==-1)return"def"}else return l(e,n);return null},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}};export{s as asterisk};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import{e,f as i,a as m}from"./krC2xWPP.js";import{s as n}from"./C4MegWN0.js";function c(r,o){var a=e(),t=i(a);n(t,()=>o.children),m(r,a)}export{c as L};
|
||||
@@ -0,0 +1 @@
|
||||
var r;function p(e){return new RegExp("^(?:"+e.join("|")+")$","i")}p([]);var d=p(["@prefix","@base","a"]),f=/[*+\-<>=&|]/;function x(e,n){var t=e.next();if(r=null,t=="<"&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if(t=='"'||t=="'")return n.tokenize=v(t),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(t))return r=t,null;if(t=="#")return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(t==":")return"operator";if(e.eatWhile(/[_\w\d]/),e.peek()==":")return"variableName.special";var i=e.current();return d.test(i)?"meta":t>="A"&&t<="Z"?"comment":"keyword";var i=e.current()}function v(e){return function(n,t){for(var i=!1,o;(o=n.next())!=null;){if(o==e&&!i){t.tokenize=x;break}i=!i&&o=="\\"}return"string"}}function l(e,n,t){e.context={prev:e.context,indent:e.indent,col:t,type:n}}function c(e){e.indent=e.context.indent,e.context=e.context.prev}const g={name:"turtle",startState:function(){return{tokenize:x,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var t=n.tokenize(e,n);if(t!="comment"&&n.context&&n.context.align==null&&n.context.type!="pattern"&&(n.context.align=!0),r=="(")l(n,")",e.column());else if(r=="[")l(n,"]",e.column());else if(r=="{")l(n,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;n.context&&n.context.type=="pattern";)c(n);n.context&&r==n.context.type&&c(n)}else r=="."&&n.context&&n.context.type=="pattern"?c(n):/atom|string|variable/.test(t)&&n.context&&(/[\}\]]/.test(n.context.type)?l(n,"pattern",e.column()):n.context.type=="pattern"&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return t},indent:function(e,n,t){var i=n&&n.charAt(0),o=e.context;if(/[\]\}]/.test(i))for(;o&&o.type=="pattern";)o=o.prev;var u=o&&i==o.type;return o?o.type=="pattern"?o.col:o.align?o.col+(u?0:1):o.indent+(u?0:t.unit):0},languageData:{commentTokens:{line:"#"}}};export{g as turtle};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var l={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},t=/[\.\/⌿⍀¨⍣]/,a=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,u=/←/,o=/[⍝#].*$/,s=function(r){var n;return n=!1,function(e){return n=e,e===r?n==="\\":!0}};const f={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(r,n){var e;return r.eatSpace()?null:(e=r.next(),e==='"'||e==="'"?(r.eatWhile(s(e)),r.next(),n.prev=!0,"string"):/[\[{\(]/.test(e)?(n.prev=!1,null):/[\]}\)]/.test(e)?(n.prev=!0,null):a.test(e)?(n.prev=!1,"atom"):/[¯\d]/.test(e)?(n.func?(n.func=!1,n.prev=!1):n.prev=!0,r.eatWhile(/[\w\.]/),"number"):t.test(e)||u.test(e)?"operator":i.test(e)?(n.func=!0,n.prev=!1,l[e]?"variableName.function.standard":"variableName.function"):o.test(e)?(r.skipToEnd(),"comment"):e==="∘"&&r.peek()==="."?(r.next(),"variableName.function"):(r.eatWhile(/[\w\$_]/),n.prev=!0,"keyword"))}};export{f as apl};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as c,f as l,a as i}from"./krC2xWPP.js";import{I as p,g as d}from"./Lvd_r9sp.js";import{l as m,s as f}from"./DjsWWzyL.js";function y(a,o){const e=m(o,["children","$$slots","$$events","$$legacy"]);const t=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"}]];p(a,f({name:"key-round"},()=>e,{get iconNode(){return t},children:(s,$)=>{var r=c(),n=l(r);d(n,o,"default",{}),i(s,r)},$$slots:{default:!0}}))}export{y as K};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
function f(e){for(var n={},r=0;r<e.length;++r)n[e[r]]=!0;return n}var b=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],g=["list","quote","bquote","eval","return","call","parse","deparse"],s=["if","else","repeat","while","function","for","in","next","break"],y=["if","else","repeat","while","function","for"],h=f(b),m=f(g),N=f(s),A=f(y),k=/[+\-*\/^<>=!&|~$:]/,t;function p(e,n){t=null;var r=e.next();if(r=="#")return e.skipToEnd(),"comment";if(r=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(r=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(r=="'"||r=='"')return n.tokenize=E(r),"string";if(r=="`")return e.match(/[^`]+`/),"string.special";if(r=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return h.propertyIsEnumerable(i)?"atom":N.propertyIsEnumerable(i)?(A.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(t="block"),"keyword"):m.propertyIsEnumerable(i)?"builtin":"variable"}else return r=="%"?(e.skipTo("%")&&e.next(),"variableName.special"):r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)||r=="="&&n.ctx.argList?"operator":k.test(r)?(r=="$"||e.eatWhile(k),"operator"):/[\(\){}\[\];]/.test(r)?(t=r,r==";"?"punctuation":null):null}function E(e){return function(n,r){if(n.eat("\\")){var i=n.next();return i=="x"?n.match(/^[a-f0-9]{2}/i):(i=="u"||i=="U")&&n.eat("{")&&n.skipTo("}")?n.next():i=="u"?n.match(/^[a-f0-9]{4}/i):i=="U"?n.match(/^[a-f0-9]{8}/i):/[0-7]/.test(i)&&n.match(/^[0-7]{1,2}/),"string.special"}else{for(var l;(l=n.next())!=null;){if(l==e){r.tokenize=p;break}if(l=="\\"){n.backUp(1);break}}return"string"}}}var v=1,u=2,c=4;function o(e,n,r){e.ctx={type:n,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function x(e,n){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|n,column:r.column,prev:r.prev}}function a(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}const I={name:"r",startState:function(e){return{tokenize:p,ctx:{type:"top",indent:-e,flags:u},indent:0,afterIdent:!1}},token:function(e,n){if(e.sol()&&((n.ctx.flags&3)==0&&(n.ctx.flags|=u),n.ctx.flags&c&&a(n),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);return r!="comment"&&(n.ctx.flags&u)==0&&x(n,v),(t==";"||t=="{"||t=="}")&&n.ctx.type=="block"&&a(n),t=="{"?o(n,"}",e):t=="("?(o(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):t=="["?o(n,"]",e):t=="block"?o(n,"block",e):t==n.ctx.type?a(n):n.ctx.type=="block"&&r!="comment"&&x(n,c),n.afterIdent=r=="variable"||r=="keyword",r},indent:function(e,n,r){if(e.tokenize!=p)return 0;var i=n&&n.charAt(0),l=e.ctx,d=i==l.type;return l.flags&c&&(l=l.prev),l.type=="block"?l.indent+(i=="{"?0:r.unit):l.flags&v?l.column+(d?0:1):l.indent+(d?0:r.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:b.concat(g,s)}};export{I as r};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
function I(e){for(var n={},T=e.split(" "),E=0;E<T.length;++E)n[T[E]]=!0;return n}const r={keywords:I("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:I("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:I("BeginControlPart EndControlPart BeginTestCase EndTestCase")};var A=r.keywords,U=r.fileNCtrlMaskOptions,R=r.externalCommands,S=r.indentStatements!==!1,O=/[\|]/,t;function u(e,n){var T=e.next();if(T=='"'||T=="'")return n.tokenize=P(T),n.tokenize(e,n);if(/[:=]/.test(T))return t=T,"punctuation";if(T=="#")return e.skipToEnd(),"comment";if(/\d/.test(T))return e.eatWhile(/[\w\.]/),"number";if(O.test(T))return e.eatWhile(O),"operator";if(T=="[")return e.eatWhile(/[\w_\]]/),"number";e.eatWhile(/[\w\$_]/);var E=e.current();return A.propertyIsEnumerable(E)?"keyword":U.propertyIsEnumerable(E)?"atom":R.propertyIsEnumerable(E)?"deleted":"variable"}function P(e){return function(n,T){for(var E=!1,i,l=!1;(i=n.next())!=null;){if(i==e&&!E){var C=n.peek();C&&(C=C.toLowerCase(),(C=="b"||C=="h"||C=="o")&&n.next()),l=!0;break}E=!E&&i=="\\"}return l&&(T.tokenize=null),"string"}}function _(e,n,T,E,i){this.indented=e,this.column=n,this.type=T,this.align=E,this.prev=i}function N(e,n,T){var E=e.indented;return e.context&&e.context.type=="statement"&&(E=e.context.indented),e.context=new _(E,n,T,null,e.context)}function o(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}const L={name:"ttcn",startState:function(){return{tokenize:null,context:new _(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var T=n.context;if(e.sol()&&(T.align==null&&(T.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;t=null;var E=(n.tokenize||u)(e,n);if(E=="comment")return E;if(T.align==null&&(T.align=!0),(t==";"||t==":"||t==",")&&T.type=="statement")o(n);else if(t=="{")N(n,e.column(),"}");else if(t=="[")N(n,e.column(),"]");else if(t=="(")N(n,e.column(),")");else if(t=="}"){for(;T.type=="statement";)T=o(n);for(T.type=="}"&&(T=o(n));T.type=="statement";)T=o(n)}else t==T.type?o(n):S&&((T.type=="}"||T.type=="top")&&t!=";"||T.type=="statement"&&t=="newstatement")&&N(n,e.column(),"statement");return n.startOfLine=!1,E},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"#"}}};export{L as ttcnCfg};
|
||||
@@ -0,0 +1 @@
|
||||
function c(t){return{name:"mscgen",startState:i,copyState:s,token:u(t),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}}const a=c({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),l=c({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),b=c({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function n(t){return new RegExp("^\\b("+t.join("|")+")\\b","i")}function o(t){return new RegExp("^(?:"+t.join("|")+")","i")}function i(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function s(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function u(t){return function(r,e){if(r.match(o(t.brackets),!0,!0))return"bracket";if(!e.inComment){if(r.match(/\/\*[^\*\/]*/,!0,!0))return e.inComment=!0,"comment";if(r.match(o(t.singlecomment),!0,!0))return r.skipToEnd(),"comment"}if(e.inComment)return r.match(/[^\*\/]*\*\//,!0,!0)?e.inComment=!1:r.skipToEnd(),"comment";if(!e.inString&&r.match(/\"(\\\"|[^\"])*/,!0,!0))return e.inString=!0,"string";if(e.inString)return r.match(/[^\"]*\"/,!0,!0)?e.inString=!1:r.skipToEnd(),"string";if(t.keywords&&r.match(n(t.keywords),!0,!0)||r.match(n(t.options),!0,!0)||r.match(n(t.arcsWords),!0,!0)||r.match(o(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&r.match(o(t.operators),!0,!0))return"operator";if(t.constants&&r.match(o(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&r.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(t.attributes!==null&&r.match(n(t.attributes),!0,!0))return"attribute";if(r.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return r.next(),null}}export{a as mscgen,l as msgenny,b as xu};
|
||||
@@ -0,0 +1 @@
|
||||
const i={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,n){if(e){switch(n.stack.length===0&&(e.peek()=='"'||e.peek()=="'")&&(n.stringType=e.peek(),e.next(),n.stack.unshift("string")),n.stack[0]){case"string":for(;n.stack[0]==="string"&&!e.eol();)e.peek()===n.stringType?(e.next(),n.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;n.stack[0]==="characterClass"&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||n.stack.shift();return"operator"}var c=e.peek();switch(c){case"[":return e.next(),n.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":["[","]","(",")","{","}"].indexOf(c)!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}};export{i as spreadsheet};
|
||||
@@ -0,0 +1 @@
|
||||
import{b as a}from"./Cu5ilWky.js";async function n(t=!1){const s=await a.get(`/dashboard/notifications${t?"?force=true":""}`);return[...s.notifications?.dashboard??[],...s.notifications?.feed??[]]}async function o(t=!1){return(await a.get(`/dashboard/notifications${t?"?force=true":""}`)).notifications?.top??[]}async function i(){return a.get("/dashboard/stats")}async function r(){return a.get("/dashboard/popularity")}async function c(t=!1){return a.get(`/dashboard/feed${t?"?force=true":""}`)}async function f(){const t=await a.get("/system/backups");return Array.isArray(t)?t:t.backups??[]}async function u(t=!1){return a.get("/gpm/updates",t?{flush:"true"}:void 0)}async function d(){return a.get("/systeminfo")}export{n as a,r as b,c,f as d,u as e,d as f,i as g,o as h};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as d,a as i}from"./krC2xWPP.js";import{I as m,g as c}from"./Lvd_r9sp.js";import{l,s as $}from"./DjsWWzyL.js";function w(r,o){const a=l(o,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"m21 16-4 4-4-4"}],["path",{d:"M17 20V4"}],["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}]];m(r,$({name:"arrow-up-down"},()=>a,{get iconNode(){return s},children:(e,f)=>{var t=n(),p=d(t);c(p,o,"default",{}),i(e,t)},$$slots:{default:!0}}))}export{w as A};
|
||||
@@ -0,0 +1 @@
|
||||
function t(e){for(var n={},r=e.split(" "),o=0;o<r.length;++o)n[r[o]]=!0;return n}var a=t("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),f="(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)",u="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",p=new RegExp(f),d=new RegExp(u),k=new RegExp(u+"?_"+u),s=new RegExp(u+"\\s*\\(");function l(e,n){var r;if(r=e.next(),r==='"')return n.tokenize=v,n.tokenize(e,n);if(r==="/"){if(e.eat("*"))return n.tokenize=h,n.tokenize(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var o=e.match(/^(\w+)\s*\(/,!1);o!==null&&a.hasOwnProperty(o[1])&&n.scopes.push("bodied");var i=c(n);if(i==="bodied"&&r==="["&&n.scopes.pop(),(r==="["||r==="{"||r==="(")&&n.scopes.push(r),i=c(n),(i==="["&&r==="]"||i==="{"&&r==="}"||i==="("&&r===")")&&n.scopes.pop(),r===";")for(;i==="bodied";)n.scopes.pop(),i=c(n);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(p,!0,!1)?"number":e.match(k,!0,!1)?"variableName.special":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(s,!0,!1)?(e.backUp(1),"variableName.function"):e.match(d,!0,!1)?"variable":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function v(e,n){for(var r,o=!1,i=!1;(r=e.next())!=null;){if(r==='"'&&!i){o=!0;break}i=!i&&r==="\\"}return o&&!i&&(n.tokenize=l),"string"}function h(e,n){for(var r,o;(o=e.next())!=null;){if(r==="*"&&o==="/"){n.tokenize=l;break}r=o}return"comment"}function c(e){var n=null;return e.scopes.length>0&&(n=e.scopes[e.scopes.length-1]),n}const b={name:"yacas",startState:function(){return{tokenize:l,scopes:[]}},token:function(e,n){return e.eatSpace()?null:n.tokenize(e,n)},indent:function(e,n,r){if(e.tokenize!==l&&e.tokenize!==null)return null;var o=0;return(n==="]"||n==="];"||n==="}"||n==="};"||n===");")&&(o=-1),(e.scopes.length+o)*r.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{b as yacas};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as l,a as i}from"./krC2xWPP.js";import{I as c,g as d}from"./Lvd_r9sp.js";import{l as m,s as $}from"./DjsWWzyL.js";function y(t,a){const e=m(a,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];c(t,$({name:"package"},()=>e,{get iconNode(){return s},children:(r,f)=>{var o=n(),p=l(o);d(p,a,"default",{}),i(r,o)},$$slots:{default:!0}}))}export{y as P};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as i,f as n,a as p}from"./krC2xWPP.js";import{I as l,g as m}from"./Lvd_r9sp.js";import{l as d,s as $}from"./DjsWWzyL.js";function v(o,r){const t=d(r,["children","$$slots","$$events","$$legacy"]);const s=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]];l(o,$({name:"circle-x"},()=>t,{get iconNode(){return s},children:(a,f)=>{var e=i(),c=n(e);m(c,r,"default",{}),p(a,e)},$$slots:{default:!0}}))}export{v as C};
|
||||
@@ -0,0 +1 @@
|
||||
var c=/({)?[a-zA-Z0-9_]+(})?/;function t(n,i){for(var e,r,u=!1;!n.eol()&&(e=n.next())!=i.pending;){if(e==="$"&&r!="\\"&&i.pending=='"'){u=!0;break}r=e}return u&&n.backUp(1),e==i.pending?i.continueString=!1:i.continueString=!0,"string"}function f(n,i){var e=n.next();return e==="$"?n.match(c)?"variableName.special":"variable":i.continueString?(n.backUp(1),t(n,i)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):e=="#"?(n.skipToEnd(),"comment"):e=="'"||e=='"'?(i.pending=e,t(n,i)):e=="("||e==")"?"bracket":e.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}const a={name:"cmake",startState:function(){var n={};return n.inDefinition=!1,n.inInclude=!1,n.continueString=!1,n.pending=!1,n},token:function(n,i){return n.eatSpace()?null:f(n,i)}};export{a as cmake};
|
||||
@@ -0,0 +1 @@
|
||||
import{V as l,W as o,X as u,Y as n,Z as d,_ as m,I as p,Q as _,a0 as v,a1 as k}from"./krC2xWPP.js";class w{anchor;#t=new Map;#s=new Map;#e=new Map;#i=new Set;#a=!0;constructor(t,s=!0){this.anchor=t,this.#a=s}#f=t=>{if(this.#t.has(t)){var s=this.#t.get(t),e=this.#s.get(s);if(e)l(e),this.#i.delete(s);else{var a=this.#e.get(s);a&&(this.#s.set(s,a.effect),this.#e.delete(s),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),e=a.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const r=this.#e.get(f);r&&(o(r.effect),this.#e.delete(f))}for(const[i,f]of this.#s){if(i===s||this.#i.has(i))continue;const r=()=>{if(Array.from(this.#t.values()).includes(i)){var c=document.createDocumentFragment();v(f,c),c.append(n()),this.#e.set(i,{effect:f,fragment:c})}else o(f);this.#i.delete(i),this.#s.delete(i)};this.#a||!e?(this.#i.add(i),u(f,r,!1)):r()}}};#r=t=>{this.#t.delete(t);const s=Array.from(this.#t.values());for(const[e,a]of this.#e)s.includes(e)||(o(a.effect),this.#e.delete(e))};ensure(t,s){var e=m,a=k();if(s&&!this.#s.has(t)&&!this.#e.has(t))if(a){var i=document.createDocumentFragment(),f=n();i.append(f),this.#e.set(t,{effect:d(()=>s(f)),fragment:i})}else this.#s.set(t,d(()=>s(this.anchor)));if(this.#t.set(e,t),a){for(const[r,h]of this.#s)r===t?e.unskip_effect(h):e.skip_effect(h);for(const[r,h]of this.#e)r===t?e.unskip_effect(h.effect):e.skip_effect(h.effect);e.oncommit(this.#f),e.ondiscard(this.#r)}else p&&(this.anchor=_),this.#f(e)}}export{w as B};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),$=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),t=new RegExp("^[\\.,:]"),c=new RegExp("[()]"),l=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"],d=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"],u=o(d),f=o(a);function m(e,n){e.sol()&&(n.label=!0,n.commandMode=0);var r=e.peek();return r==" "||r==" "?(n.label=!1,n.commandMode==0?n.commandMode=1:(n.commandMode<0||n.commandMode==2)&&(n.commandMode=0)):r!="."&&n.commandMode>0&&(r==":"?n.commandMode=-1:n.commandMode=2),(r==="("||r===" ")&&(n.label=!1),r===";"?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":r=='"'?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match($)||e.match(i)?"operator":e.match(t)?null:c.test(r)?(e.next(),"bracket"):n.commandMode>0&&e.match(f)?"controlKeyword":e.match(u)?"builtin":e.match(l)?"variable":r==="$"||r==="^"?(e.next(),"builtin"):r==="@"?(e.next(),"string.special"):/[\w%]/.test(r)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}const s={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(e,n){var r=m(e,n);return n.label?"tag":r}};export{s as mumps};
|
||||
@@ -0,0 +1 @@
|
||||
import{i as n,m as d,g as r,j as e}from"./krC2xWPP.js";import{b as c}from"./Cu5ilWky.js";async function u(){return c.get("/sidebar/items")}let s=n(d([])),o=n(!1),i=n(d({}));const p={get items(){return r(s)},get loaded(){return r(o)},get badges(){return r(i)},async load(){try{const t=await u();e(s,t.sort((a,g)=>(g.priority??0)-(a.priority??0)),!0),e(o,!0)}catch{}},async fetchBadges(){for(const t of r(s))if(t.badgeEndpoint)try{const a=await c.get(t.badgeEndpoint);this.setBadge(t.id,a.count)}catch{}},setBadge(t,a){e(i,{...r(i),[t]:a},!0)},clear(){e(s,[],!0),e(o,!1),e(i,{},!0)}};export{p as s};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as i,f as n,a as l}from"./krC2xWPP.js";import{I as p,g as m}from"./Lvd_r9sp.js";import{l as d,s as $}from"./DjsWWzyL.js";function y(o,e){const s=d(e,["children","$$slots","$$events","$$legacy"]);const t=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];p(o,$({name:"circle-check"},()=>s,{get iconNode(){return t},children:(c,f)=>{var r=i(),a=n(r);m(a,e,"default",{}),l(c,r)},$$slots:{default:!0}}))}export{y as C};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as d,a as l}from"./krC2xWPP.js";import{I as i,g as c}from"./Lvd_r9sp.js";import{l as m,s as f}from"./DjsWWzyL.js";function M(s,a){const t=m(a,["children","$$slots","$$events","$$legacy"]);const e=[["path",{d:"M12 10v6"}],["path",{d:"M9 13h6"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];i(s,f({name:"folder-plus"},()=>t,{get iconNode(){return e},children:(r,$)=>{var o=n(),p=d(o);c(p,a,"default",{}),l(r,o)},$$slots:{default:!0}}))}export{M as F};
|
||||
@@ -0,0 +1 @@
|
||||
import{b as r,c as o}from"./Cu5ilWky.js";import{e as i}from"./92N1comP.js";async function g(){return r.get("/flex-objects")}async function p(t,e={}){const a={};e.page&&(a.page=String(e.page)),e.perPage&&(a.per_page=String(e.perPage)),e.search&&(a.search=e.search),e.sort&&(a.sort=e.sort),e.order&&(a.order=e.order);const s=await r.getFullBody(`/flex-objects/${t}`,a),n=s.data??[],c=s.meta?.pagination??{};return{objects:n,total:c.total??n.length,page:c.page??e.page??1,perPage:c.per_page??e.perPage??20,totalPages:c.total_pages??1}}async function u(t,e){const{data:a,headers:s}=await r.requestRaw("GET",`/flex-objects/${t}/${e}`);return{object:a,etag:i(s)}}async function d(t,e){return r.post(`/flex-objects/${t}`,e)}async function j(t,e,a,s){const n={};s&&(n["If-Match"]=`"${s}"`);const c=await r.requestRaw("PATCH",`/flex-objects/${t}/${e}`,{body:a,headers:n});return{object:c.data,etag:i(c.headers)}}async function h(t,e){await r.delete(`/flex-objects/${t}/${e}`)}async function x(t){return r.get(`/blueprints/flex-objects/${t}`)}async function m(t){const e={Accept:"application/x-yaml"};o.accessToken&&(e["X-API-Token"]=o.accessToken);const a=await fetch(`${r.baseUrl}/flex-objects/${t}/export`,{headers:e});if(!a.ok)throw new Error("Export failed");const c=(a.headers.get("content-disposition")??"").match(/filename="?([^"]+)"?/)?.[1]??`${t}-export.yaml`;return{blob:await a.blob(),filename:c}}export{p as a,x as b,d as c,h as d,m as e,u as f,g,j as u};
|
||||
@@ -0,0 +1,2 @@
|
||||
import"./DsnmJJEf.js";import{p,a as d,b as u,r as l,c as m,d as x,s as g,g as r,t as h}from"./krC2xWPP.js";import{d as _,s as k,a as y}from"./CddAxf8c.js";import{i as T}from"./DjsWWzyL.js";import{e as j}from"./Lvd_r9sp.js";import{s as q}from"./j_DJpx8B.js";var w=m('<span class="absolute inset-x-0 -bottom-px h-0.5 bg-primary"></span>'),z=m("<button> <!></button>"),A=m('<div class="flex border-b border-border"></div>');function H(c,t){p(t,!0);var o=A();j(o,21,()=>t.items,s=>s.id,(s,e)=>{var a=z(),n=x(a),v=g(n);{var b=i=>{var f=w();d(i,f)};T(v,i=>{t.active===r(e).id&&i(b)})}l(a),h(()=>{q(a,1,`relative px-4 py-2.5 text-sm font-medium transition-colors
|
||||
${t.active===r(e).id?"text-primary":"text-muted-foreground hover:text-foreground"}`),k(n,`${r(e).label??""} `)}),y("click",a,()=>t.onchange(r(e).id)),d(s,a)}),l(o),d(c,o),u()}_(["click"]);export{H as T};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as p,a as i}from"./krC2xWPP.js";import{I as l,g as h}from"./Lvd_r9sp.js";import{l as c,s as $}from"./DjsWWzyL.js";function g(e,t){const o=c(t,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];l(e,$({name:"file-text"},()=>o,{get iconNode(){return s},children:(r,f)=>{var a=n(),d=p(a);h(d,t,"default",{}),i(r,a)},$$slots:{default:!0}}))}function H(e,t){const o=c(t,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]];l(e,$({name:"sliders-horizontal"},()=>o,{get iconNode(){return s},children:(r,f)=>{var a=n(),d=p(a);h(d,t,"default",{}),i(r,a)},$$slots:{default:!0}}))}export{g as F,H as S};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as c,f as l,a as d}from"./krC2xWPP.js";import{I as i,g as $}from"./Lvd_r9sp.js";import{l as p,s as m}from"./DjsWWzyL.js";function y(e,a){const o=p(a,["children","$$slots","$$events","$$legacy"]);const r=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M4.929 4.929 19.07 19.071"}]];i(e,m({name:"ban"},()=>o,{get iconNode(){return r},children:(s,f)=>{var t=c(),n=l(t);$(n,a,"default",{}),d(s,t)},$$slots:{default:!0}}))}function N(e,a){const o=p(a,["children","$$slots","$$events","$$legacy"]);const r=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z"}],["path",{d:"M5 21h14"}]];i(e,m({name:"crown"},()=>o,{get iconNode(){return r},children:(s,f)=>{var t=c(),n=l(t);$(n,a,"default",{}),d(s,t)},$$slots:{default:!0}}))}export{y as B,N as C};
|
||||
@@ -0,0 +1 @@
|
||||
import{z as g,af as d,u as c,B as m,ag as b,ah as i,g as p,a3 as h,ai as v,aj as k}from"./krC2xWPP.js";function x(t=!1){const s=g,e=s.l.u;if(!e)return;let o=()=>h(s.s);if(t){let n=0,a={};const _=v(()=>{let l=!1;const r=s.s;for(const f in r)r[f]!==a[f]&&(a[f]=r[f],l=!0);return l&&n++,n});o=()=>p(_)}e.b.length&&d(()=>{u(s,o),i(e.b)}),c(()=>{const n=m(()=>e.m.map(b));return()=>{for(const a of n)typeof a=="function"&&a()}}),e.a.length&&c(()=>{u(s,o),i(e.a)})}function u(t,s){if(t.l.s)for(const e of t.l.s)p(e);s()}k();export{x as i};
|
||||
@@ -0,0 +1 @@
|
||||
import{H as v,I as o,J as y,K as f,L as l,M as m,N as p,O as i,P as T,Q as A}from"./krC2xWPP.js";import{B as N}from"./BQul9OPN.js";function E(d,_,e){var s;o&&(s=A,y());var r=new N(d);v(()=>{var a=_()??null;if(o){var h=l(s),c=h===T,u=a!==null;if(c!==u){var t=m();p(t),r.anchor=t,i(!1),r.ensure(a,a&&(n=>e(n,a))),i(!0);return}}r.ensure(a,a&&(n=>e(n,a)))},f)}export{E as c};
|
||||
@@ -0,0 +1 @@
|
||||
import{b as o}from"./Cu5ilWky.js";import{b as e}from"./BSopV7IU.js";function a(){return typeof window<"u"?window.location.origin+e:void 0}async function c(){return(await o.get("/invitations"))?.invitations??[]}async function d(n){const t={...n},i=a();return i&&(t.admin_base_url=i),o.post("/invitations",t)}async function u(n){const t={},i=a();return i&&(t.admin_base_url=i),o.post(`/invitations/${encodeURIComponent(n)}/resend`,t)}async function f(n){await o.delete(`/invitations/${encodeURIComponent(n)}`)}export{d as c,f as d,c as g,u as r};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as i,a as p}from"./krC2xWPP.js";import{I as d,g as l}from"./Lvd_r9sp.js";import{l as m,s as $}from"./DjsWWzyL.js";function k(o,e){const s=m(e,["children","$$slots","$$events","$$legacy"]);const t=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]];d(o,$({name:"shield-check"},()=>s,{get iconNode(){return t},children:(r,f)=>{var a=n(),c=i(a);l(c,e,"default",{}),p(r,a)},$$slots:{default:!0}}))}export{k as S};
|
||||
@@ -0,0 +1,2 @@
|
||||
import"./DsnmJJEf.js";import{p as U,a as u,b as E,c as m,d as I,s as T,g as t,r as g,t as R,h as a}from"./krC2xWPP.js";import{d as $,s as M,a as V}from"./CddAxf8c.js";import{i as y}from"./DjsWWzyL.js";import{e as D}from"./Lvd_r9sp.js";import{s as O}from"./j_DJpx8B.js";import{p as W}from"./euuZp6ft.js";import{g as X}from"./BVTiZ3e2.js";import{b as e}from"./BSopV7IU.js";import{i,c as k}from"./Cu5ilWky.js";import{c as G}from"./CuDfWLaU.js";var C=m('<span class="absolute inset-x-0 -bottom-px h-0.5 bg-primary"></span>'),F=m('<button type="button"> <!></button>'),P=m('<nav class="flex border-b border-border" aria-label="Users navigation"></nav>');function Z(v,b){U(b,!0);const l=a(()=>k.isSuperAdmin),c=a(()=>G("users")||t(l)),h=a(()=>[{id:"users",label:i.t("ADMIN_NEXT.USERS_NAV.USERS"),path:`${e}/users`},{id:"groups",label:i.t("ADMIN_NEXT.USERS_NAV.GROUPS"),path:`${e}/users/groups`,gated:!t(c)},{id:"invitations",label:i.t("ADMIN_NEXT.USERS_NAV.INVITATIONS"),path:`${e}/users/invitations`,gated:!t(c)},{id:"config",label:i.t("ADMIN_NEXT.USERS_NAV.CONFIGURATION"),path:`${e}/users/config`,gated:!t(l)}]),d=a(()=>{const s=W.url.pathname.replace(e,"");return s.startsWith("/users/groups")?"groups":s.startsWith("/users/invite")?"invitations":s.startsWith("/users/config")?"config":"users"}),N=a(()=>t(h).filter(s=>!s.gated));function _(s){X(s)}var n=P();D(n,21,()=>t(N),s=>s.id,(s,o)=>{var r=F(),f=I(r),S=T(f);{var x=p=>{var A=C();u(p,A)};y(S,p=>{t(d)===t(o).id&&p(x)})}g(r),R(()=>{O(r,1,`relative px-4 py-2.5 text-sm font-medium transition-colors
|
||||
${t(d)===t(o).id?"text-primary":"text-muted-foreground hover:text-foreground"}`),M(f,`${t(o).label??""} `)}),V("click",r,()=>_(t(o).path)),u(s,r)}),g(n),u(v,n),E()}$(["click"]);export{Z as U};
|
||||
@@ -0,0 +1 @@
|
||||
var _={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function T(e,I){var R=e.location,i;R==_.PRE_SUBJECT&&I=="<"?i=_.WRITING_SUB_URI:R==_.PRE_SUBJECT&&I=="_"?i=_.WRITING_BNODE_URI:R==_.PRE_PRED&&I=="<"?i=_.WRITING_PRED_URI:R==_.PRE_OBJ&&I=="<"?i=_.WRITING_OBJ_URI:R==_.PRE_OBJ&&I=="_"?i=_.WRITING_OBJ_BNODE:R==_.PRE_OBJ&&I=='"'?i=_.WRITING_OBJ_LITERAL:R==_.WRITING_SUB_URI&&I==">"||R==_.WRITING_BNODE_URI&&I==" "?i=_.PRE_PRED:R==_.WRITING_PRED_URI&&I==">"?i=_.PRE_OBJ:R==_.WRITING_OBJ_URI&&I==">"||R==_.WRITING_OBJ_BNODE&&I==" "||R==_.WRITING_OBJ_LITERAL&&I=='"'||R==_.WRITING_LIT_LANG&&I==" "||R==_.WRITING_LIT_TYPE&&I==">"?i=_.POST_OBJ:R==_.WRITING_OBJ_LITERAL&&I=="@"?i=_.WRITING_LIT_LANG:R==_.WRITING_OBJ_LITERAL&&I=="^"?i=_.WRITING_LIT_TYPE:I==" "&&(R==_.PRE_SUBJECT||R==_.PRE_PRED||R==_.PRE_OBJ||R==_.POST_OBJ)?i=R:R==_.POST_OBJ&&I=="."?i=_.PRE_SUBJECT:i=_.ERROR,e.location=i}const u={name:"ntriples",startState:function(){return{location:_.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,I){var R=e.next();if(R=="<"){T(I,R);var i="";return e.eatWhile(function(n){return n!="#"&&n!=">"?(i+=n,!0):!1}),I.uris.push(i),e.match("#",!1)||(e.next(),T(I,">")),"variable"}if(R=="#"){var r="";return e.eatWhile(function(n){return n!=">"&&n!=" "?(r+=n,!0):!1}),I.anchors.push(r),"url"}if(R==">")return T(I,">"),"variable";if(R=="_"){T(I,R);var f="";return e.eatWhile(function(n){return n!=" "?(f+=n,!0):!1}),I.bnodes.push(f),e.next(),T(I," "),"builtin"}if(R=='"')return T(I,R),e.eatWhile(function(n){return n!='"'}),e.next(),e.peek()!="@"&&e.peek()!="^"&&T(I,'"'),"string";if(R=="@"){T(I,"@");var E="";return e.eatWhile(function(n){return n!=" "?(E+=n,!0):!1}),I.langs.push(E),e.next(),T(I," "),"string.special"}if(R=="^"){e.next(),T(I,"^");var l="";return e.eatWhile(function(n){return n!=">"?(l+=n,!0):!1}),I.types.push(l),e.next(),T(I,">"),"variable"}R==" "&&T(I,R),R=="."&&T(I,R)}};export{u as ntriples};
|
||||
@@ -0,0 +1 @@
|
||||
function c(e){return new RegExp("^(?:"+e.join("|")+")","i")}function o(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var d=o(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),g=o(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),f=o(["function","if","repeat","do","\\(","{"]),h=o(["end","until","\\)","}"]),p=c(["end","until","\\)","}","else","elseif"]);function u(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function l(e,t){var n=e.next();return n=="-"&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=s(u(e),"comment"))(e,t):(e.skipToEnd(),"comment"):n=='"'||n=="'"?(t.cur=m(n))(e,t):n=="["&&/[\[=]/.test(e.peek())?(t.cur=s(u(e),"string"))(e,t):/\d/.test(n)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(n)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function s(e,t){return function(n,i){for(var a=null,r;(r=n.next())!=null;)if(a==null)r=="]"&&(a=0);else if(r=="=")++a;else if(r=="]"&&a==e){i.cur=l;break}else a=null;return t}}function m(e){return function(t,n){for(var i=!1,a;(a=t.next())!=null&&!(a==e&&!i);)i=!i&&a=="\\";return i||(n.cur=l),"string"}}const b={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:l}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),i=e.current();return n=="variable"&&(g.test(i)?n="keyword":d.test(i)&&(n="builtin")),n!="comment"&&n!="string"&&(f.test(i)?++t.indentDepth:h.test(i)&&--t.indentDepth),n},indent:function(e,t,n){var i=p.test(t);return e.basecol+n.unit*(e.indentDepth-(i?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}};export{b as lua};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as p,a as i}from"./krC2xWPP.js";import{I as c,g as d}from"./Lvd_r9sp.js";import{l as m,s as $}from"./DjsWWzyL.js";function v(e,a){const s=m(a,["children","$$slots","$$events","$$legacy"]);const t=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]];c(e,$({name:"puzzle"},()=>s,{get iconNode(){return t},children:(r,f)=>{var o=n(),l=p(o);d(l,a,"default",{}),i(r,o)},$$slots:{default:!0}}))}export{v as P};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import{p as M,e as F,f as T,a as _,b as C,o as A,d as f,r as l,s as R,g as i,t as j,c as G,h as V,i as u,m as k,v as W,j as n}from"./krC2xWPP.js";import{d as X,e as S,s as z,a as w}from"./CddAxf8c.js";import{i as L}from"./DjsWWzyL.js";import{h as B}from"./DSIsCMt7.js";import{g as H,i as v}from"./Cu5ilWky.js";import{X as K}from"./CiIMiELt.js";import{b as I}from"./CMqN2HxG.js";import{t as y}from"./Lvd_r9sp.js";var P=G('<div class="fixed inset-0 z-50 flex items-center justify-center bg-neutral-900/75 p-4 backdrop-blur-sm sm:p-8"><div class="flex max-h-[90vh] w-full max-w-3xl flex-col rounded-xl border border-border bg-card shadow-2xl"><div class="flex shrink-0 items-center justify-between border-b border-border px-6 py-4"><h2 class="text-lg font-semibold text-foreground"> </h2> <button type="button" class="inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"><!></button></div> <div class="prose prose-sm dark:prose-invert max-w-none overflow-y-auto px-6 py-5"></div></div></div>');function ae(a,t){M(t,!0);const r=V(()=>t.content?H.parse(t.content,{async:!1}):"");function o(e){e.target===e.currentTarget&&t.onclose()}function c(e){e.key==="Escape"&&t.onclose()}var d=F();S("keydown",A,function(...e){(t.open?c:void 0)?.apply(this,e)});var m=T(d);{var g=e=>{var s=P(),p=f(s),b=f(p),h=f(b),N=f(h,!0);l(h);var E=R(h,2),O=f(E);K(O,{size:16}),l(E),l(b);var x=R(b,2);B(x,()=>i(r),!0),l(x),l(p),l(s),j(()=>z(N,t.title)),w("click",s,o),w("click",E,function(...D){t.onclose?.apply(this,D)}),_(e,s)};L(m,e=>{t.open&&e(g)})}_(a,d),C()}X(["click"]);function U(a,t){let r=a;for(const o of t.split(".")){if(r==null||typeof r!="object")return;r=r[o]}return r}function se(a){let t=u(k([])),r=u(k({})),o=u(!1),c=u(!1);function d(e){const s=e&&typeof e=="object"&&"status"in e?e.status:0;y.error(s===409?v.t("ADMIN_NEXT.CONFIG.CONFIGURATION_WAS_MODIFIED_ELSEWHERE"):v.t("ADMIN_NEXT.CONFIG.OVERRIDE.REVERT_FAILED"))}async function m(e){if(!(!a.canWrite()||i(o))){n(o,!0);try{const s=await I(a.scope(),{keys:[e]},a.etag());a.applyFieldRevert(e,U(s.data,e),s.etag),n(t,s.overrides,!0),n(r,s.fallback,!0),y.success(v.t("ADMIN_NEXT.CONFIG.OVERRIDE.REVERTED"))}catch(s){d(s)}finally{n(o,!1)}}}async function g(){if(n(c,!1),!(!a.canWrite()||i(o))){n(o,!0);try{const e=await I(a.scope(),{reset:!0},a.etag());a.applyReset(e.data,e.etag),n(t,e.overrides,!0),n(r,e.fallback,!0),y.success(v.t("ADMIN_NEXT.CONFIG.OVERRIDE.RESET_DONE"))}catch(e){d(e)}finally{n(o,!1)}}}return W("configOverrides",{isOverridden:e=>i(t).includes(e),getFallback:e=>i(r)[e],revert:e=>m(e),get canRevert(){return a.canWrite()}}),{get overrides(){return i(t)},get fallback(){return i(r)},get reverting(){return i(o)},get showResetModal(){return i(c)},set showResetModal(e){n(c,e,!0)},ingest(e){n(t,e.overrides,!0),n(r,e.fallback,!0)},reset:g}}export{ae as M,se as p};
|
||||
@@ -0,0 +1 @@
|
||||
const r={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(n,e){let i;if(!e.inString&&(i=n.match(/^('''|"""|'|")/))&&(e.stringType=i[0],e.inString=!0),n.sol()&&!e.inString&&e.inArray===0&&(e.lhs=!0),e.inString){for(;e.inString;)if(n.match(e.stringType))e.inString=!1;else if(n.peek()==="\\")n.next(),n.next();else{if(n.eol())break;n.match(/^.[^\\\"\']*/)}return e.lhs?"property":"string"}else{if(e.inArray&&n.peek()==="]")return n.next(),e.inArray--,"bracket";if(e.lhs&&n.peek()==="["&&n.skipTo("]"))return n.next(),n.peek()==="]"&&n.next(),"atom";if(n.peek()==="#")return n.skipToEnd(),"comment";if(n.eatSpace())return null;if(e.lhs&&n.eatWhile(function(l){return l!="="&&l!=" "}))return"property";if(e.lhs&&n.peek()==="=")return n.next(),e.lhs=!1,null;if(!e.lhs&&n.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!e.lhs&&(n.match("true")||n.match("false")))return"atom";if(!e.lhs&&n.peek()==="[")return e.inArray++,n.next(),"bracket";if(!e.lhs&&n.match(/^\-?\d+(?:\.\d+)?/))return"number";n.eatSpace()||n.next()}return null},languageData:{commentTokens:{line:"#"}}};export{r as toml};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
function v(r){var u=[],b="",o={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function p(){b="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variableName.special",i.rax="variableName.special",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variableName.special",i.rbx="variableName.special",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variableName.special",i.rcx="variableName.special",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variableName.special",i.rdx="variableName.special",i.si="variable",i.esi="variableName.special",i.rsi="variableName.special",i.di="variable",i.edi="variableName.special",i.rdi="variableName.special",i.sp="variable",i.esp="variableName.special",i.rsp="variableName.special",i.bp="variable",i.ebp="variableName.special",i.rbp="variableName.special",i.ip="variable",i.eip="variableName.special",i.rip="variableName.special",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"}function f(){b="@",o.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variableName.special",i.lr="variableName.special",i.pc="variableName.special",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,u.push(function(l,n){if(l==="#")return n.eatWhile(/\w/),"number"})}r==="x86"?p():(r==="arm"||r==="armv6")&&f();function d(l,n){for(var e=!1,a;(a=l.next())!=null;){if(a===n&&!e)return!1;e=!e&&a==="\\"}return e}function s(l,n){for(var e=!1,a;(a=l.next())!=null;){if(a==="/"&&e){n.tokenize=null;break}e=a==="*"}return"comment"}return{name:"gas",startState:function(){return{tokenize:null}},token:function(l,n){if(n.tokenize)return n.tokenize(l,n);if(l.eatSpace())return null;var e,a,t=l.next();if(t==="/"&&l.eat("*"))return n.tokenize=s,s(l,n);if(t===b)return l.skipToEnd(),"comment";if(t==='"')return d(l,'"'),"string";if(t===".")return l.eatWhile(/\w/),a=l.current().toLowerCase(),e=o[a],e||null;if(t==="=")return l.eatWhile(/\w/),"tag";if(t==="{"||t==="}")return"bracket";if(/\d/.test(t))return t==="0"&&l.eat("x")?(l.eatWhile(/[0-9a-fA-F]/),"number"):(l.eatWhile(/\d/),"number");if(/\w/.test(t))return l.eatWhile(/\w/),l.eat(":")?"tag":(a=l.current().toLowerCase(),e=i[a],e||null);for(var c=0;c<u.length;c++)if(e=u[c](t,l,n),e)return e},languageData:{commentTokens:{line:b,block:{open:"/*",close:"*/"}}}}}const m=v("x86"),g=v("arm");export{m as gas,g as gasArm};
|
||||
@@ -0,0 +1 @@
|
||||
import{L as u,b as p,o as l,q as n,e as b,t,y as m,k as S,u as r}from"./D7PIEGLR.js";const c=S.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r("[~RPwxU~ZOp~~",11,15),new r("[~RPrsU~ZOn~~",11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),P=m.parser.configure({top:"SingleExpression"}),o=c.configure({props:[b({Text:t.content,Is:t.definitionOperator,AttributeName:t.attributeName,VueAttributeName:t.keyword,Identifier:t.variableName,"AttributeValue ScriptAttributeValue":t.attributeValue,Entity:t.character,"{{ }}":t.brace,"@ :":t.punctuation})]}),s={parser:P},Q=o.configure({wrap:n((O,e)=>O.name=="InterpolationContent"?s:null)}),g=o.configure({wrap:n((O,e)=>O.name=="AttributeScript"?s:null),top:"Attribute"}),y={parser:Q},R={parser:g},a=l();function i(O){return O.configure({dialect:"selfClosing",wrap:n(X)},"vue")}const T=i(a.language);function X(O,e){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(e.read(O.from,O.from+2))?R:null;case"Text":return y}return null}function w(O={}){let e=a;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof u))throw new RangeError("The base option must be the result of calling html(...)");e=O.base}return new p(e.language==a.language?T:i(e.language),[e.support,e.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{w as vue,T as vueLanguage};
|
||||
@@ -0,0 +1 @@
|
||||
import{k as s,e as n,t as r,b as o,L as P,i as Q,d as a,f as i,x as c}from"./D7PIEGLR.js";const g=n({String:r.string,Number:r.number,"True False":r.bool,PropertyName:r.propertyName,Null:r.null,", :":r.separator,"[ ]":r.squareBracket,"{ }":r.brace}),p=s.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[g],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),R=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(O){if(!(O instanceof SyntaxError))throw O;const e=l(O,t.state.doc);return[{from:e,message:O.message,severity:"error",to:e}]}return[]};function l(t,O){let e;return(e=t.message.match(/at position (\d+)/))?Math.min(+e[1],O.length):(e=t.message.match(/at line (\d+) column (\d+)/))?Math.min(O.line(+e[1]).from+ +e[2]-1,O.length):0}const u=P.define({name:"json",parser:p.configure({props:[Q.add({Object:a({except:/^\s*\}/}),Array:a({except:/^\s*\]/})}),i.add({"Object Array":c})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function m(){return new o(u)}export{m as json,u as jsonLanguage,R as jsonParseLinter};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as d,f as c,a as p}from"./krC2xWPP.js";import{I as i,g as l}from"./Lvd_r9sp.js";import{l as $,s as m}from"./DjsWWzyL.js";function M(a,t){const e=$(t,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]];i(a,m({name:"moon"},()=>e,{get iconNode(){return s},children:(n,h)=>{var o=d(),r=c(o);l(r,t,"default",{}),p(n,o)},$$slots:{default:!0}}))}function y(a,t){const e=$(t,["children","$$slots","$$events","$$legacy"]);const s=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];i(a,m({name:"sun"},()=>e,{get iconNode(){return s},children:(n,h)=>{var o=d(),r=c(o);l(r,t,"default",{}),p(n,o)},$$slots:{default:!0}}))}export{M,y as S};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var f=function(e,n){var g=n.next||"start";{n.next=n.next;var k=x[g];if(k.splice){for(var l=0;l<k.length;++l){var t=k[l];if(t.regex&&e.match(t.regex))return n.next=t.next||n.next,t.token}return e.next(),"error"}if(e.match(t=x[g]))return t.regex&&e.match(t.regex)?(n.next=t.next,t.token):(e.next(),"error")}return e.next(),"error"},s="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",u=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+s+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",o={token:"string",regex:".+"},x={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"variableName",regex:s+"\\s*:(?![:=])"},{token:"variableName",regex:s},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:s,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},o],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},o],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},o],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},o],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},o],words:[{token:"string",regex:".*?\\]>",next:"key"},o]};for(var d in x){var a=x[d];if(a.splice)for(var i=0,p=a.length;i<p;++i){var c=a[i];typeof c.regex=="string"&&(x[d][i].regex=new RegExp("^"+c.regex))}else typeof c.regex=="string"&&(x[d].regex=new RegExp("^"+a.regex))}const y={name:"livescript",startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(e,n){for(;e.pos==e.start;)var g=f(e,n);return n.lastToken={style:g,indent:e.indentation(),content:e.current()},g.replace(/\./g," ")},indent:function(e){var n=e.lastToken.indent;return e.lastToken.content.match(u)&&(n+=2),n}};export{y as liveScript};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as n,f as p,a as l}from"./krC2xWPP.js";import{I as m,g as c}from"./Lvd_r9sp.js";import{l as d,s as $}from"./DjsWWzyL.js";function x(e,t){const r=d(t,["children","$$slots","$$events","$$legacy"]);const s=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}]];m(e,$({name:"mail"},()=>r,{get iconNode(){return s},children:(a,f)=>{var o=n(),i=p(o);c(i,t,"default",{}),l(a,o)},$$slots:{default:!0}}))}export{x as M};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as p,f as d,a as i}from"./krC2xWPP.js";import{I as m,g as c}from"./Lvd_r9sp.js";import{l,s as $}from"./DjsWWzyL.js";function w(t,o){const e=l(o,["children","$$slots","$$events","$$legacy"]);const r=[["path",{d:"m7 15 5 5 5-5"}],["path",{d:"m7 9 5-5 5 5"}]];m(t,$({name:"chevrons-up-down"},()=>e,{get iconNode(){return r},children:(a,f)=>{var s=p(),n=d(s);c(n,o,"default",{}),i(a,s)},$$slots:{default:!0}}))}export{w as C};
|
||||
@@ -0,0 +1 @@
|
||||
function c(n){for(var e={},t=0;t<n.length;t++)e[n[t]]=!0;return e}var l=c(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),p=c(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),d=c(["true","false","nil","self","super","_"]),v=c(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),h="+-/*%=|&<>~^?!",_=":;,.(){}[]",s=/^\-?0b[01][01_]*/,k=/^\-?0o[0-7][0-7_]*/,x=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,y=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,g=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,w=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,z=/^\#[A-Za-z]+/,b=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function f(n,e,t){if(n.sol()&&(e.indented=n.indentation()),n.eatSpace())return null;var i=n.peek();if(i=="/"){if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return e.tokenize.push(a),a(n,e)}if(n.match(z))return"builtin";if(n.match(b))return"attribute";if(n.match(s)||n.match(k)||n.match(x)||n.match(y))return"number";if(n.match(w))return"property";if(h.indexOf(i)>-1)return n.next(),"operator";if(_.indexOf(i)>-1)return n.next(),n.match(".."),"punctuation";var r;if(r=n.match(/("""|"|')/)){var o=I.bind(null,r[0]);return e.tokenize.push(o),o(n,e)}if(n.match(g)){var u=n.current();return v.hasOwnProperty(u)?"type":d.hasOwnProperty(u)?"atom":l.hasOwnProperty(u)?(p.hasOwnProperty(u)&&(e.prev="define"),"keyword"):t=="define"?"def":"variable"}return n.next(),null}function A(){var n=0;return function(e,t,i){var r=f(e,t,i);if(r=="punctuation"){if(e.current()=="(")++n;else if(e.current()==")"){if(n==0)return e.backUp(1),t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t);--n}}return r}}function I(n,e,t){for(var i=n.length==1,r,o=!1;r=e.peek();)if(o){if(e.next(),r=="(")return t.tokenize.push(A()),"string";o=!1}else{if(e.match(n))return t.tokenize.pop(),"string";e.next(),o=r=="\\"}return i&&t.tokenize.pop(),"string"}function a(n,e){for(var t;t=n.next();)if(t==="/"&&n.eat("*"))e.tokenize.push(a);else if(t==="*"&&n.eat("/")){e.tokenize.pop();break}return"comment"}function O(n,e,t){this.prev=n,this.align=e,this.indented=t}function m(n,e){var t=e.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:e.column()+1;n.context=new O(n.context,t,n.indented)}function S(n){n.context&&(n.indented=n.context.indented,n.context=n.context.prev)}const C={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(n,e){var t=e.prev;e.prev=null;var i=e.tokenize[e.tokenize.length-1]||f,r=i(n,e,t);if(!r||r=="comment"?e.prev=t:e.prev||(e.prev=r),r=="punctuation"){var o=/[\(\[\{]|([\]\)\}])/.exec(n.current());o&&(o[1]?S:m)(e,n)}return r},indent:function(n,e,t){var i=n.context;if(!i)return 0;var r=/^[\]\}\)]/.test(e);return i.align!=null?i.align-(r?1:0):i.indented+(r?0:t.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}};export{C as swift};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var k=/[\^@!\|<>#~\.\*\-\+\\/,=]/,s=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,p=/(:::)|(\.\.\.)|(=<:)|(>=:)/,f=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],l=["end"],z=o(["true","false","nil","unit"]),m=o(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),v=o(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),d=o(f),h=o(l);function i(e,n){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(p)||e.match(s))return"operator";if(e.match(z))return"atom";var t=e.match(v);if(t)return n.doInCurrentLine?n.doInCurrentLine=!1:n.currentIndent++,t[0]=="proc"||t[0]=="fun"?n.tokenize=x:t[0]=="class"?n.tokenize=g:t[0]=="meth"&&(n.tokenize=w),"keyword";if(e.match(d)||e.match(m))return"keyword";if(e.match(h))return n.currentIndent--,"keyword";var r=e.next();if(r=='"'||r=="'")return n.tokenize=y(r),n.tokenize(e,n);if(/[~\d]/.test(r)){if(r=="~")if(/^[0-9]/.test(e.peek())){if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}else return null;return r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return r=="%"?(e.skipToEnd(),"comment"):r=="/"&&e.eat("*")?(n.tokenize=a,a(e,n)):k.test(r)?"operator":(e.eatWhile(/\w/),"variable")}function g(e,n){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=i,"type")}function w(e,n){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=i,"def")}function x(e,n){return e.eatSpace()?null:!n.hasPassedFirstStage&&e.eat("{")?(n.hasPassedFirstStage=!0,"bracket"):n.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),n.hasPassedFirstStage=!1,n.tokenize=i,"def"):(n.tokenize=i,null)}function a(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=i;break}t=r=="*"}return"comment"}function y(e){return function(n,t){for(var r=!1,u,c=!1;(u=n.next())!=null;){if(u==e&&!r){c=!0;break}r=!r&&u=="\\"}return(c||!r)&&(t.tokenize=i),"string"}}function b(){var e=f.concat(l);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}const I={name:"oz",startState:function(){return{tokenize:i,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,n){return e.sol()&&(n.doInCurrentLine=0),n.tokenize(e,n)},indent:function(e,n,t){var r=n.replace(/^\s+|\s+$/g,"");return r.match(h)||r.match(d)||r.match(/(\[])/)?t.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*t.unit},languageData:{indentOnInut:b(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};export{I as oz};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as p,f as i,a as l}from"./krC2xWPP.js";import{I as d,g as c}from"./Lvd_r9sp.js";import{l as m,s as $}from"./DjsWWzyL.js";function P(t,s){const e=m(s,["children","$$slots","$$events","$$legacy"]);const r=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];d(t,$({name:"plus"},()=>e,{get iconNode(){return r},children:(a,f)=>{var o=p(),n=i(o);c(n,s,"default",{}),l(a,o)},$$slots:{default:!0}}))}export{P};
|
||||
@@ -0,0 +1 @@
|
||||
function l(n){for(var e={},i=n.split(" "),r=0;r<i.length;++r)e[i[r]]=!0;return e}var f=l("if elsif else stop require"),p=l("true false not");function t(n,e){var i=n.next();if(i=="/"&&n.eat("*"))return e.tokenize=o,o(n,e);if(i==="#")return n.skipToEnd(),"comment";if(i=='"')return e.tokenize=d(i),e.tokenize(n,e);if(i=="(")return e._indent.push("("),e._indent.push("{"),null;if(i==="{")return e._indent.push("{"),null;if(i==")"&&(e._indent.pop(),e._indent.pop()),i==="}")return e._indent.pop(),null;if(i==","||i==";"||/[{}\(\),;]/.test(i))return null;if(/\d/.test(i))return n.eatWhile(/[\d]/),n.eat(/[KkMmGg]/),"number";if(i==":")return n.eatWhile(/[a-zA-Z_]/),n.eatWhile(/[a-zA-Z0-9_]/),"operator";n.eatWhile(/\w/);var r=n.current();return r=="text"&&n.eat(":")?(e.tokenize=k,"string"):f.propertyIsEnumerable(r)?"keyword":p.propertyIsEnumerable(r)?"atom":null}function k(n,e){return e._multiLineString=!0,n.sol()?(n.next()=="."&&n.eol()&&(e._multiLineString=!1,e.tokenize=t),"string"):(n.eatSpace(),n.peek()=="#"?(n.skipToEnd(),"comment"):(n.skipToEnd(),"string"))}function o(n,e){for(var i=!1,r;(r=n.next())!=null;){if(i&&r=="/"){e.tokenize=t;break}i=r=="*"}return"comment"}function d(n){return function(e,i){for(var r=!1,u;(u=e.next())!=null&&!(u==n&&!r);)r=!r&&u=="\\";return r||(i.tokenize=t),"string"}}const c={name:"sieve",startState:function(n){return{tokenize:t,baseIndent:n||0,_indent:[]}},token:function(n,e){return n.eatSpace()?null:(e.tokenize||t)(n,e)},indent:function(n,e,i){var r=n._indent.length;return e&&e[0]=="}"&&r--,r<0&&(r=0),r*i.unit},languageData:{indentOnInput:/^\s*\}$/}};export{c as sieve};
|
||||
@@ -0,0 +1 @@
|
||||
function k(b){function h(t,n){t.cmdState.push(n)}function g(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function p(t){var n=t.cmdState.pop();n&&n.closeBracket()}function s(t){for(var n=t.cmdState,e=n.length-1;e>=0;e--){var a=n[e];if(a.name!="DEFAULT")return a}return{styleIdentifier:function(){return null}}}function i(t,n,e){return function(){this.name=t,this.bracketNo=0,this.style=n,this.styles=e,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var r={};r.importmodule=i("importmodule","tag",["string","builtin"]),r.documentclass=i("documentclass","tag",["","atom"]),r.usepackage=i("usepackage","tag",["atom"]),r.begin=i("begin","tag",["atom"]),r.end=i("end","tag",["atom"]),r.label=i("label","tag",["atom"]),r.ref=i("ref","tag",["atom"]),r.eqref=i("eqref","tag",["atom"]),r.cite=i("cite","tag",["atom"]),r.bibitem=i("bibitem","tag",["atom"]),r.Bibitem=i("Bibitem","tag",["atom"]),r.RBibitem=i("RBibitem","tag",["atom"]),r.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(t,n){t.f=n}function l(t,n){var e;if(t.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var a=t.current().slice(1);return e=r.hasOwnProperty(a)?r[a]:r.DEFAULT,e=new e,h(n,e),f(n,d),e.style}if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return f(n,function(m,c){return o(m,c,"\\]")}),"keyword";if(t.match("\\("))return f(n,function(m,c){return o(m,c,"\\)")}),"keyword";if(t.match("$$"))return f(n,function(m,c){return o(m,c,"$$")}),"keyword";if(t.match("$"))return f(n,function(m,c){return o(m,c,"$")}),"keyword";var u=t.next();if(u=="%")return t.skipToEnd(),"comment";if(u=="}"||u=="]"){if(e=g(n),e)e.closeBracket(u),f(n,d);else return"error";return"bracket"}else return u=="{"||u=="["?(e=r.DEFAULT,e=new e,h(n,e),"bracket"):/\d/.test(u)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),e=s(n),e.name=="begin"&&(e.argument=t.current()),e.styleIdentifier())}function o(t,n,e){if(t.eatSpace())return null;if(e&&t.match(e))return f(n,l),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variableName.special";if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/]/)||t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=t.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(t.skipToEnd(),"comment"):"error"}function d(t,n){var e=t.peek(),a;return e=="{"||e=="["?(a=g(n),a.openBracket(e),t.eat(e),f(n,l),"bracket"):/[ \t\r]/.test(e)?(t.eat(e),null):(f(n,l),p(n),l(t,n))}return{name:"stex",startState:function(){var t=b?function(n,e){return o(n,e)}:l;return{cmdState:[],f:t}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,n){return n.f(t,n)},blankLine:function(t){t.f=l,t.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const y=k(!1),S=k(!0);export{y as stex,S as stexMath};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var f="><+-.,[]".split("");const r={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(i,n){if(i.eatSpace())return null;i.sol()&&(n.commentLine=!1);var e=i.next().toString();if(f.indexOf(e)!==-1){if(n.commentLine===!0)return i.eol()&&(n.commentLine=!1),"comment";if(e==="]"||e==="[")return e==="["?n.left++:n.right++,"bracket";if(e==="+"||e==="-")return"keyword";if(e==="<"||e===">")return"atom";if(e==="."||e===",")return"def"}else return n.commentLine=!0,i.eol()&&(n.commentLine=!1),"comment";i.eol()&&(n.commentLine=!1)}};export{r as brainfuck};
|
||||
@@ -0,0 +1 @@
|
||||
import{H as p,K as t}from"./krC2xWPP.js";import{B as c}from"./BQul9OPN.js";function f(r,s,...a){var e=new c(r);p(()=>{const n=s()??null;e.ensure(n,n&&(o=>n(o,...a)))},t)}export{f as s};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
const f={name:"properties",token:function(e,i){var o=e.sol()||i.afterSection,l=e.eol();if(i.afterSection=!1,o&&(i.nextMultiline?(i.inMultiline=!0,i.nextMultiline=!1):i.position="def"),l&&!i.nextMultiline&&(i.inMultiline=!1,i.position="def"),o)for(;e.eatSpace(););var n=e.next();return o&&(n==="#"||n==="!"||n===";")?(i.position="comment",e.skipToEnd(),"comment"):o&&n==="["?(i.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):n==="="||n===":"?(i.position="quote",null):(n==="\\"&&i.position==="quote"&&e.eol()&&(i.nextMultiline=!0),i.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}};export{f as properties};
|
||||
@@ -0,0 +1,4 @@
|
||||
import"./DsnmJJEf.js";import{p as te,e as ae,f as I,a as d,b as re,d as i,s as c,r as s,g as e,t as N,j as k,c as f,h as S,i as se}from"./krC2xWPP.js";import{d as oe,s as _,a as y}from"./CddAxf8c.js";import{p as ne,i as A}from"./DjsWWzyL.js";import{s as ie,e as de,i as ce}from"./Lvd_r9sp.js";import{s as T,c as me}from"./j_DJpx8B.js";import{i as j}from"./Cu5ilWky.js";import{c as a}from"./YfSC2Q4o.js";import{L as ue}from"./DRNDWW4W.js";import{C as ve}from"./ZWbUro-G.js";var fe=f('<span class="hidden sm:inline"> </span>'),pe=f('<span class="ms-auto text-[0.625rem] italic text-muted-foreground/50"> </span>'),le=f('<span class="ms-auto text-[0.625rem] text-muted-foreground">default</span>'),ge=f("<button><span> </span> <span> </span> <!></button>"),_e=f('<div class="fixed inset-0 z-40"></div> <div class="absolute right-0 z-50 mt-1 min-w-[180px] rounded-md border border-border bg-popover py-1 shadow-md"></div>',1),xe=f('<div class="relative"><button><!> <span class="font-semibold uppercase"> </span> <!> <!></button> <!></div>');function ze(M,p){te(p,!0);let X=ne(p,"compact",3,!1),o=se(!1);function H(r){k(o,!1),r!==a.activeLang&&(a.setLanguage(r),p.onchange?.(r))}function K(r){r.key==="Escape"&&k(o,!1)}var G=ae(),O=I(G);{var R=r=>{var x=xe(),m=i(x),C=i(m);ue(C,{size:14});var E=c(C,2),U=i(E,!0);s(E);var D=c(E,2);{var W=t=>{var u=fe(),b=i(u,!0);s(u),N(h=>_(b,h),[()=>a.getLanguageName(a.activeLang)]),d(t,u)};A(D,t=>{X()||t(W)})}var q=c(D,2);{let t=S(()=>e(o)?"rotate-180":"");ve(q,{size:12,get class(){return`ms-0.5 transition-transform ${e(t)??""}`}})}s(m);var B=c(m,2);{var F=t=>{var u=_e(),b=I(u),h=c(b,2);de(h,21,()=>a.languages,ce,(J,n)=>{const z=S(()=>!p.translatedLangs||p.translatedLangs.includes(e(n).code));var l=ge(),L=i(l),P=i(L,!0);s(L);var w=c(L,2),Q=i(w,!0);s(w);var V=c(w,2);{var Y=v=>{var g=pe(),$=i(g,!0);s(g),N(ee=>_($,ee),[()=>j.t("ADMIN_NEXT.LANG.NOT_TRANSLATED")]),d(v,g)},Z=v=>{var g=le();d(v,g)};A(V,v=>{e(z)?e(n).is_default&&v(Z,1):v(Y)})}s(l),N(()=>{T(l,1,`flex w-full items-center gap-2.5 px-3 py-1.5 text-start text-[0.8125rem] transition-colors
|
||||
${e(n).code===a.activeLang?"bg-accent text-accent-foreground font-medium":"text-popover-foreground hover:bg-accent/50"}`),T(L,1,`inline-flex h-5 shrink-0 items-center justify-center whitespace-nowrap rounded px-[2px] text-[0.625rem] font-bold uppercase
|
||||
${e(n).code===a.activeLang?"bg-primary text-primary-foreground":e(z)?"bg-muted text-muted-foreground":"bg-muted/50 text-muted-foreground/40"}`),_(P,e(n).code),T(w,1,me(e(z)?"":"text-muted-foreground/60")),_(Q,e(n).native_name||e(n).name)}),y("click",l,()=>H(e(n).code)),d(J,l)}),s(h),y("click",b,()=>k(o,!1)),d(t,u)};A(B,t=>{e(o)&&t(F)})}s(x),N(t=>{T(m,1,`inline-flex h-8 items-center gap-1.5 rounded-md border border-border px-2.5 text-[0.75rem] font-medium transition-colors
|
||||
${e(o)?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"}`),ie(m,"title",t),_(U,a.activeLang)},[()=>j.t("ADMIN_NEXT.LANG.SWITCH_LANGUAGE")]),y("keydown",x,K),y("click",m,()=>k(o,!e(o))),d(r,x)};A(O,r=>{a.enabled&&a.languages.length>1&&r(R)})}d(M,G),re()}oe(["keydown","click"]);export{ze as L};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as c,f as d,a as i}from"./krC2xWPP.js";import{I as l,g as $}from"./Lvd_r9sp.js";import{l as p,s as h}from"./DjsWWzyL.js";function y(o,e){const r=p(e,["children","$$slots","$$events","$$legacy"]);const a=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}],["path",{d:"m9 12 2 2 4-4"}]];l(o,h({name:"badge-check"},()=>r,{get iconNode(){return a},children:(n,u)=>{var t=c(),s=d(t);$(s,e,"default",{}),i(n,t)},$$slots:{default:!0}}))}function N(o,e){const r=p(e,["children","$$slots","$$events","$$legacy"]);const a=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 12-4-4-4 4"}],["path",{d:"M12 16V8"}]];l(o,h({name:"circle-arrow-up"},()=>r,{get iconNode(){return a},children:(n,u)=>{var t=c(),s=d(t);$(s,e,"default",{}),i(n,t)},$$slots:{default:!0}}))}function w(o,e){const r=p(e,["children","$$slots","$$events","$$legacy"]);const a=[["path",{d:"m15 10 5 5-5 5"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12"}]];l(o,h({name:"corner-down-right"},()=>r,{get iconNode(){return a},children:(n,u)=>{var t=c(),s=d(t);$(s,e,"default",{}),i(n,t)},$$slots:{default:!0}}))}function x(o,e){const r=p(e,["children","$$slots","$$events","$$legacy"]);const a=[["circle",{cx:"8",cy:"21",r:"1"}],["circle",{cx:"19",cy:"21",r:"1"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"}]];l(o,h({name:"shopping-cart"},()=>r,{get iconNode(){return a},children:(n,u)=>{var t=c(),s=d(t);$(s,e,"default",{}),i(n,t)},$$slots:{default:!0}}))}export{y as B,w as C,x as S,N as a};
|
||||
@@ -0,0 +1 @@
|
||||
var i={slash:0,parenthesis:1},n={comment:0,_string:1,characterClass:2};const l={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,c){if(e){switch(c.stack.length===0&&(e.peek()=='"'||e.peek()=="'"?(c.stringType=e.peek(),e.next(),c.stack.unshift(n._string)):e.match("/*")?(c.stack.unshift(n.comment),c.commentType=i.slash):e.match("(*")&&(c.stack.unshift(n.comment),c.commentType=i.parenthesis)),c.stack[0]){case n._string:for(;c.stack[0]===n._string&&!e.eol();)e.peek()===c.stringType?(e.next(),c.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return c.lhs?"property":"string";case n.comment:for(;c.stack[0]===n.comment&&!e.eol();)c.commentType===i.slash&&e.match("*/")||c.commentType===i.parenthesis&&e.match("*)")?(c.stack.shift(),c.commentType=null):e.match(/^.[^\*]*/);return"comment";case n.characterClass:for(;c.stack[0]===n.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||c.stack.shift();return"operator"}var t=e.peek();switch(t){case"[":return e.next(),c.stack.unshift(n.characterClass),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(t))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":["[","]","(",")"].indexOf(e.peek())!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}};export{l as ebnf};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as p,f as i,a as d}from"./krC2xWPP.js";import{I as l,g as c}from"./Lvd_r9sp.js";import{l as m,s as h}from"./DjsWWzyL.js";function x(o,t){const a=m(t,["children","$$slots","$$events","$$legacy"]);const r=[["path",{d:"M12 3v18"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}]];l(o,h({name:"table"},()=>a,{get iconNode(){return r},children:(s,$)=>{var e=p(),n=i(e);c(n,t,"default",{}),d(s,e)},$$slots:{default:!0}}))}export{x as T};
|
||||
@@ -0,0 +1 @@
|
||||
import{i as o,m as n,j as s,g as r}from"./krC2xWPP.js";let e=o(n({}));const l={get types(){return r(e)},register(t,g,i="plugins"){for(const u of Object.keys(g))r(e)[u]={slug:t,kind:i};s(e,{...r(e)},!0)},has(t){return t in r(e)},getProvider(t){return r(e)[t]},getPluginSlug(t){return r(e)[t]?.slug},clear(){s(e,{},!0)}};export{l as c};
|
||||
@@ -0,0 +1 @@
|
||||
import"./DsnmJJEf.js";import"./BbvEV2h7.js";import{e as c,f as n,a as m}from"./krC2xWPP.js";import{I as p,g as d}from"./Lvd_r9sp.js";import{l,s as $}from"./DjsWWzyL.js";function x(t,e){const o=l(e,["children","$$slots","$$events","$$legacy"]);const s=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];p(t,$({name:"image"},()=>o,{get iconNode(){return s},children:(a,f)=>{var r=c(),i=n(r);d(i,e,"default",{}),m(a,r)},$$slots:{default:!0}}))}export{x as I};
|
||||
@@ -0,0 +1 @@
|
||||
import{b as s}from"./Cu5ilWky.js";import{e as f}from"./92N1comP.js";function i(a){const e=a??{};return{overrides:e.overrides??[],fallback:e.fallback??{}}}async function u(){return s.get("/config")}async function p(a){const{data:e,meta:t,headers:r}=await s.requestRaw("GET",`/config/${a}`);return{data:e,etag:f(r),...i(t)}}async function m(a,e,t){const r={};t&&(r["If-Match"]=`"${t}"`);const{data:n,meta:o,headers:c}=await s.requestRaw("POST",`/config/${a}/revert`,{body:e,headers:r});return{data:n,etag:c.get("etag")?.replace(/"/g,"")??"",...i(o)}}async function h(a,e,t){const r={};t&&(r["If-Match"]=`"${t}"`);const{data:n,meta:o,headers:c}=await s.requestRaw("PATCH",`/config/${a}`,{body:e,headers:r});return{data:n,etag:c.get("etag")?.replace(/"/g,"")??"",...i(o)}}export{u as a,m as b,p as g,i as r,h as s};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{b as O,L as r,i as b,r as s,f as a,x as t,e as P,t as e,k as n}from"./D7PIEGLR.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},Q=n.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>S[o]||-1}],tokenPrec:0}),i=r.define({name:"wast",parser:Q.configure({props:[b.add({App:s({closing:")",align:!1})}),a.add({App:t,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),P({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function d(){return new O(i)}export{d as wast,i as wastLanguage};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user