domma-cms 1.28.2 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/docs/DommaFeatures.md +3 -2
- package/package.json +1 -1
- package/plugins/_lib/games/plays.js +15 -3
- package/server/services/siteGitignore.js +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.28.4] - 2026-11-01
|
|
4
|
+
|
|
5
|
+
- Games: the goes-per-name limit can no longer be beaten by starting several goes at once under one name. The shared Games library now counts a name's goes in the same turn that saves the new go (`PlayStore.start(play, {maxGoes})`), where before two starts sent together could both pass the check. Quiz 1.6.1, Crossword 1.5.1 and Word Search 1.2.1 use it.
|
|
6
|
+
|
|
7
|
+
## [1.28.3] - 2026-11-01
|
|
8
|
+
|
|
9
|
+
- Site repos: visitor chats (sessions, messages and unanswered questions), Games plays (player names and resume tokens) and outreach records (contacts, the do-not-email list, Campaigns sends, claims and opens) are kept out of a site's git repo, like form submissions and orders already were. The chat Knowledge and outreach groups are authored and stay tracked.
|
|
10
|
+
|
|
3
11
|
## [1.28.2] - 2026-11-01
|
|
4
12
|
|
|
5
13
|
- Pages: an `[image]` on its own line inside raw HTML (a `<div>` in a page laid out with HTML) no longer breaks the page. It added blank lines round the picture, which ended the HTML there, so everything after it that was indented showed as code - raw tags on the page.
|
package/docs/DommaFeatures.md
CHANGED
|
@@ -32,7 +32,7 @@ Code was treated as the truth. Where docs disagree with it, the disagreement is
|
|
|
32
32
|
| `analytics-pro` | paid | 2.3.4 | Visitors, visits and page views: where visitors came from (sources, campaigns, channels, country and city by GeoIP), IP addresses, each visit's pages in order, devices and browsers, busiest times and a live view. Cookieless. Several display styles, CSV/JSON export and a printable report. |
|
|
33
33
|
| `backup-pro` | paid | 0.1.4 | A site's own view of the backups Domma keeps of it: how they stand, every backup, Back up now, restore of the whole site or chosen collections, pages or media after a safety backup, downloads without secrets, and Activity - every backup, restore and change, including Domma's own, named and never hidden. Needs a site run by Domma. |
|
|
34
34
|
| `blog` | free | 1.9.6 | Public-facing blog with posts, categories and comments - layouts and listings built from editable blocks. |
|
|
35
|
-
| `blog-pro` | paid | 0.
|
|
35
|
+
| `blog-pro` | paid | 0.7.0 | Several blogs on one site, each with its own address, look and settings - dozens of layouts, self-hosted fonts, colours, page transitions, author pages, and privacy-first media: videos, audio, galleries, link cards and maps. |
|
|
36
36
|
| `booking` | free | 1.6.3 | Let people book appointments with you or your team, and rooms or equipment, from a booking page on your site (`/booking`, or the `[booking /]` shortcode). Opening hours, days off, buffers and notice; confirmation and reminder emails with a link to move or cancel; a Diary in the admin; an online booking's call chat kept on the booking, and Add people during its call. Book straight from a contact or an email; bookings show in the Calendar. |
|
|
37
37
|
| `booking-pro` | paid | 0.4.1 | More for Booking: online appointments as a video call on your site (optional host recording), Call now - open a booking's call at once or call anyone from a contact or an email (switches on the CMS's instant calls), a person and a room together, classes with places and a waiting list that fills a freed place by itself, repeat bookings, questions on the booking form, a daily limit and one booking per customer every N days. A lapse leaves Booking and every booking as they were. |
|
|
38
38
|
| `calendar` | paid | 1.15.4 | Events calendar - month, day and list views, online meetings as a video call on your site (with the call's chat kept, and Add people during the call), call anyone now from a contact or an email, all-day and recurring events, sharing with people and roles, RSVPs and an iCal feed. |
|
|
@@ -1794,7 +1794,7 @@ A complete public blog for a Domma CMS site: posts with categories, tags, schedu
|
|
|
1794
1794
|
|
|
1795
1795
|
### Blog Pro (`blog-pro`)
|
|
1796
1796
|
|
|
1797
|
-
Tier: paid (closed source) · Version: 0.
|
|
1797
|
+
Tier: paid (closed source) · Version: 0.7.0 · Requires: no MongoDB; no `minCmsVersion` declared (sitemap needs core 0.89+) · Uses: none declared · Supersedes: `blog`
|
|
1798
1798
|
|
|
1799
1799
|
Everything in the free Blog, plus several separate blogs on one site - each with its own address, settings and look - dozens of layouts, a theme designer with self-hosted fonts, page transitions and hover effects, author profiles and pages, and privacy-first media embeds (video, audio, galleries, link cards, maps) usable on any page. It works over the free Blog's data, so upgrading changes nothing a reader sees and a lapsed licence falls back cleanly.
|
|
1800
1800
|
|
|
@@ -1814,6 +1814,7 @@ Everything in the free Blog, plus several separate blogs on one site - each with
|
|
|
1814
1814
|
- `[linkcard url= title= layout=compact align= /]` - rich link preview from oEmbed / Open Graph.
|
|
1815
1815
|
- `[map lat= lon= zoom= title= caption= ratio= align= /]` - OpenStreetMap.
|
|
1816
1816
|
- `align`: wide, full, center, left, right. Admin "Insert media" slideover builds these.
|
|
1817
|
+
- Post editor **Insert shortcode** (0.7.0): a searchable picker over the admin's own shortcode registry (`insertMenuGroups()` / `insertShortcodeByName()` from `admin/js/lib/shortcode-insert.js`), so posts get the page editor's forms and builders (card, timeline, scribe, image); Blog Pro's media group leads and opens Insert media. The content box also gets the page editor's right-click menu (edit the shortcode under the cursor, Insert…).
|
|
1817
1818
|
- Featured media on posts: a video/audio link leads the post in place of its picture; cards borrow the provider thumbnail.
|
|
1818
1819
|
- Link metadata and thumbnails fetched once server-side (SSRF-guarded), cached in `data/media/` (30 days; failures retried after 6 hours).
|
|
1819
1820
|
- Per-blog settings: posts per page, RSS length, comments, hold for approval, post layout, listing display, readers can switch display, in-page search/filter, related posts, author pages, authors index, index header, author page header, authors index style, transition, reveal, hover.
|
package/package.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* leaves the server again - not to the board, not to the admin.
|
|
11
11
|
*
|
|
12
12
|
* Writes go one at a time (`withLock`), so two answers sent at once cannot
|
|
13
|
-
* both be marked.
|
|
13
|
+
* both be marked. The goes-per-name limit is checked inside that same turn
|
|
14
|
+
* (`start(play, {maxGoes})`), so two starts sent at once under one name cannot
|
|
15
|
+
* both slip under it.
|
|
14
16
|
*
|
|
15
17
|
* An ARCHIVE play (`archive: true`) is a go at a game rotation has closed
|
|
16
18
|
* (_lib/games/rotation.js): played and timed like any other, listed for the
|
|
@@ -100,10 +102,20 @@ export class PlayStore {
|
|
|
100
102
|
/**
|
|
101
103
|
* @param {{gameId: string, name: string, maxScore?: number, state?: object, userId?: string, test?: boolean}} play
|
|
102
104
|
* `test`: an admin trying the game; `archive`: a go at a game rotation has closed - see the module comment
|
|
103
|
-
* @
|
|
105
|
+
* @param {{maxGoes?: number, countGoes?: () => Promise<number>}} [limit] - `maxGoes` (0 = no limit) is how many
|
|
106
|
+
* goes this name may have; it is counted in the write turn, so starts sent at once cannot both get under it.
|
|
107
|
+
* `countGoes` counts differently (say, goes today); by default `attemptsBy(gameId, name)`. Test and archive
|
|
108
|
+
* plays are never limited.
|
|
109
|
+
* @returns {Promise<object|null>} the play, token included - for the player, once; null when the name has had
|
|
110
|
+
* its goes
|
|
104
111
|
*/
|
|
105
|
-
async start({gameId, name, maxScore = 0, state = {}, userId = '', test = false, archive = false}) {
|
|
112
|
+
async start({gameId, name, maxScore = 0, state = {}, userId = '', test = false, archive = false}, {maxGoes = 0, countGoes} = {}) {
|
|
106
113
|
return this.withLock(async () => {
|
|
114
|
+
if (maxGoes > 0 && !test && !archive) {
|
|
115
|
+
this.forget();
|
|
116
|
+
const had = countGoes ? await countGoes() : await this.attemptsBy(gameId, name);
|
|
117
|
+
if (had >= maxGoes) return null;
|
|
118
|
+
}
|
|
107
119
|
const now = new Date().toISOString();
|
|
108
120
|
const saved = await createEntry(this.slug, {
|
|
109
121
|
gameId, name, nameKey: nameKey(name), userId,
|
|
@@ -88,7 +88,16 @@ export const PRIVATE_DATA = [
|
|
|
88
88
|
// Paid plugins' visitor and customer records (0.88.1): Cart Pro's orders and
|
|
89
89
|
// discount codes, Calendar's RSVPs, the job board's people and applications.
|
|
90
90
|
'shop-orders', 'shop-pro-codes', 'calendar-rsvps',
|
|
91
|
-
'jb-applications', 'jb-candidate-profiles', 'jb-signups'
|
|
91
|
+
'jb-applications', 'jb-candidate-profiles', 'jb-signups',
|
|
92
|
+
// Visitor chat (Launchers, 1.28.0): conversations, names and emails, and the
|
|
93
|
+
// questions visitors asked. The Knowledge (chat-knowledge) is authored and stays.
|
|
94
|
+
'chat-sessions', 'chat-messages', 'chat-unanswered',
|
|
95
|
+
// Games: each play carries the player's name and their resume token.
|
|
96
|
+
'quiz-plays', 'crossword-plays', 'daily-word-plays', 'word-search-plays',
|
|
97
|
+
// Outreach (Surveys, Campaigns): recipients, sends, claims, opens and clicks,
|
|
98
|
+
// and the do-not-email list. Groups are authored and stay.
|
|
99
|
+
'outreach-contacts', 'outreach-unsubscribes',
|
|
100
|
+
'campaigns-invites', 'campaigns-claims', 'campaigns-pro-tracking'
|
|
92
101
|
];
|
|
93
102
|
|
|
94
103
|
/**
|