Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/site/img/list-view-bookmarks.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/site/img/og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
353 changes: 273 additions & 80 deletions docs/site/index.html

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/site/llms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Magic Mark (Magicmark) for Strapi 5

> Magic Mark (npm: strapi-plugin-magic-mark, plugin id: magic-mark, repository: Magicmark) is a free, MIT-licensed Strapi 5 plugin that saves Content Manager list views (content type, filters, sort order, page size, search text and locale) as bookmarks. Bookmarks open with one click, can be shared with roles, single admin users or all admins, pinned per user to the Strapi homepage, and combined with advanced filters.

The current version is on npm (link below). No license key, no limits, no telemetry and no outbound requests.

What it does:

- "Save view" in the list view toolbar stores the current list; a bookmark opens its list without a page reload, always on page 1.
- Sharing: private, shared with roles and admin users, or public to all admins. Recipients can open, pin and duplicate; only the owner or a manager can change a bookmark. Private bookmarks stay private, also for managers and Super Admins.
- Pins per user, shown first in the toolbar and in the "Pinned bookmarks" homepage widget.
- Advanced filters: "all conditions" or "any condition", the operators "is one of", "is none of" and "is between", and fields of relations and non-repeatable components.
- Every permission and owner check runs on the server. Safe with several Strapi processes on one database (tested with 8 processes on PostgreSQL 16).

Requirements:

- Strapi `^5.57.0`
- Node.js `^22.22.2 || >=24.15.0`
- No configuration options and no environment variables

Install:

```bash
npm install strapi-plugin-magic-mark
npm run build
npm run develop
```

Strapi enables installed plugins by itself; if `config/plugins` lists plugins explicitly, add `'magic-mark': { enabled: true }`. Then open a collection type in the Content Manager, set a filter, open Bookmarks next to View settings and choose Save view.

Configuration essentials:

- Admin permissions under Settings > Roles > Plugins > Magic Mark: `plugin::magic-mark.bookmarks.read`, `create`, `update`, `delete`, `share`, `manage`. Super Admins have all of them; other roles have none until granted.
- Admin API under `/magic-mark` (`/bookmarks`, `/bookmarks/:id`, `/bookmarks/:id/view`, `/bookmarks/:id/duplicate`, `/bookmarks/:id/pin`, `/sharing/roles`, `/sharing/users`). There are no Content API routes.

## Docs

- [Documentation site](https://schero94.github.io/Magicmark/): features, how it works, install, screens, permissions, examples, admin API, security, several instances, upgrading from 3.x, FAQ
- [README](https://github.com/Schero94/Magicmark#readme): features, quick start, configuration, permissions, admin API, security and privacy, performance, compatibility, troubleshooting
- [CHANGELOG](https://github.com/Schero94/Magicmark/blob/main/CHANGELOG.md)
- [npm package](https://www.npmjs.com/package/strapi-plugin-magic-mark)

## Optional

- [Releases](https://github.com/Schero94/Magicmark/releases)
- [Plugin hub overview](https://schero94.github.io/plugins/magic-mark/)
26 changes: 26 additions & 0 deletions docs/site/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Magic Mark documentation. Search engines and AI crawlers are welcome.
User-agent: *
Allow: /

User-agent: Googlebot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

Sitemap: https://schero94.github.io/Magicmark/sitemap.xml
234 changes: 32 additions & 202 deletions docs/site/site-extra.css
Original file line number Diff line number Diff line change
@@ -1,157 +1,43 @@
/*
* Magic Mark page styles on top of the shared theme (site.css, kept byte-identical to the
* workbench template). Adds dark mode, the hero screenshot, steps, the gallery and small
* layout helpers. Colours are tokens so light and dark stay in one place.
*/
/* Magic Mark page styles. site.css is the shared theme, byte-identical in every
plugin docs site; this file holds the Magic Mark accent (the pink of the
plugin icon) and the few components only this page uses. */

:root {
--link: #4932c6;
--link-hover: #2d1d89;
--nav-text: #4b5367;
--accent-soft: #f0edff;
--number-ink: #3821a1;
--number-bg: #eee9ff;
--callout-ink: #3c465c;
--callout-bg: #e9f9f9;
--warning-line: #b26b00;
--warning-bg: #fff6e4;
--th-ink: #40495f;
--th-bg: #f7f8fb;
--td-ink: #4b5468;
--shot-shadow: 0 18px 50px rgba(26, 32, 60, 0.18);
--accent: #b4237a;
--accent-ink: #a11f6d;
--on-accent: #ffffff;
--accent-soft: #fbe7f2;
--hero-accent: #f6a3cc;
}

@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--ink: #eef0f8;
--muted: #a9b0c4;
--line: #2c3350;
--paper: #10131f;
--white: #181c2c;
--link: #b3a8ff;
--link-hover: #d6cfff;
--nav-text: #c1c7d8;
--accent-soft: #262a48;
--number-ink: #d9d2ff;
--number-bg: #2e2a5c;
--callout-ink: #d3dae8;
--callout-bg: #13302f;
--warning-line: #e4a83b;
--warning-bg: #33280f;
--th-ink: #d0d5e4;
--th-bg: #1d2236;
--td-ink: #c3c9da;
--shot-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
--accent: #f58cc0;
--accent-ink: #f8a8d0;
--on-accent: #0e1016;
--accent-soft: #3b1a2e;
}
}

a {
color: var(--link);
}
a:hover {
color: var(--link-hover);
}
.side-nav a {
color: var(--nav-text);
}
.side-nav a:hover {
background: var(--accent-soft);
}
.number {
color: var(--number-ink);
background: var(--number-bg);
}
.callout {
color: var(--callout-ink);
background: var(--callout-bg);
}
.callout.warning {
border-color: var(--warning-line);
background: var(--warning-bg);
}
th {
color: var(--th-ink);
background: var(--th-bg);
}
td {
color: var(--td-ink);
}
.link-list a {
background: var(--white);
}
.top-links a:focus-visible,
.hero a:focus-visible {
outline-color: var(--lime);
}

/* Hero: copy on the left, product screenshot on the right; stacked below 1100 px. */
.hero-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
gap: clamp(1.5rem, 4vw, 3rem);
align-items: center;
}
.hero-shot {
margin: 0;
}
.hero-shot img {
display: block;
width: 100%;
height: auto;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 14px;
box-shadow: 0 24px 60px rgba(5, 8, 20, 0.45);
}
.hero-install {
display: inline-flex;
max-width: 100%;
margin-top: 1.1rem;
padding: 0.55rem 0.8rem;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
color: #f1f3fa;
background: rgba(9, 13, 27, 0.45);
font-size: 0.9rem;
overflow-wrap: anywhere;
}

/* Three numbered steps. */
.steps {
/* How it works: three numbered cards side by side. */
.section .steps {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin: 0;
max-width: none;
gap: var(--space-4);
padding: 0;
list-style: none;
}
.steps .card p + p {
margin-top: 0.5rem;
}

/* Screenshot gallery. */
.gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.25rem;
}
.shot {
.section .steps > li.card {
margin: 0;
padding: var(--space-5);
}
.shot img {
display: block;
width: 100%;
height: auto;
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shot-shadow);
}
.shot figcaption {
margin-top: 0.55rem;
color: var(--muted);
font-size: 0.86rem;
.steps .card h3 {
margin: 0 0 var(--space-2);
font-size: var(--text-m);
}

/* Gallery: one full-width tile, the phone screenshot kept at phone size. */
.shot.wide {
grid-column: 1 / -1;
}
Expand All @@ -160,75 +46,19 @@ td {
margin: 0 auto;
}

/* Small tables inside cards and readable code inside tables. */
td code,
th code {
overflow-wrap: anywhere;
}
.section h3 {
margin: 1.4rem 0 0.4rem;
font-size: 1.08rem;
letter-spacing: -0.015em;
}
details {
margin: 0 0 0.6rem;
padding: 0.75rem 1rem;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--white);
}
details summary {
cursor: pointer;
font-weight: 700;
}
details p {
margin: 0.6rem 0 0;
color: var(--muted);
}
.check-list li {
margin-bottom: 0.4rem;
}

@media (max-width: 1100px) {
.hero-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 820px) {
.steps,
.gallery {
.section .steps {
grid-template-columns: 1fr;
}
}

.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
/* Install line in the hero: site.js wraps the command and adds a copy button.
The command needs no second code box, and the button must not wrap. */
.hero-install code {
padding: 0;
background: none;
}

.brand-logo {
display: block;
.hero-install .copy-button {
flex: 0 0 auto;
width: 2rem;
height: 2rem;
}

/* Project status badges in the hero: same row as the README. */
.shields {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin: 1.25rem 0 0;
}
.shields a {
display: inline-flex;
}
.shields img {
display: block;
width: auto;
height: 20px;
white-space: nowrap;
}
Loading