@freeholder/templates 0.2.0-beta.3 → 0.2.0-beta.5
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/dist/presets.d.ts +1 -1
- package/dist/presets.js +59 -0
- package/package.json +1 -1
package/dist/presets.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export interface BusinessPreset {
|
|
|
83
83
|
};
|
|
84
84
|
social: typeof SOCIAL_SURFACE;
|
|
85
85
|
}
|
|
86
|
-
export declare const PRESETS: Record<"creator" | "service-business" | "shop", BusinessPreset>;
|
|
86
|
+
export declare const PRESETS: Record<"creator" | "service-business" | "shop" | "community", BusinessPreset>;
|
|
87
87
|
export type PresetKey = keyof typeof PRESETS;
|
|
88
88
|
export declare function preset(key: PresetKey): BusinessPreset;
|
|
89
89
|
export declare function listPresets(): PresetKey[];
|
package/dist/presets.js
CHANGED
|
@@ -256,6 +256,65 @@ export const PRESETS = {
|
|
|
256
256
|
seed: { pages: 4, contacts: 0 },
|
|
257
257
|
social: SOCIAL_SURFACE,
|
|
258
258
|
},
|
|
259
|
+
// C12.31: a site whose product is its members (MASTER.md §44).
|
|
260
|
+
community: {
|
|
261
|
+
name: "Community",
|
|
262
|
+
tokens: { ...BENCH_TOKENS, radius: "lg" },
|
|
263
|
+
pages: [
|
|
264
|
+
{
|
|
265
|
+
slug: "home",
|
|
266
|
+
title: "Home",
|
|
267
|
+
blocks: [
|
|
268
|
+
heading("community-home-h1", "A place for people who make things"),
|
|
269
|
+
body("community-home-intro", "Join to post your work, follow people you like, talk privately, call each other, and buy and sell among members. Say who this community is for; this is only a start."),
|
|
270
|
+
button("community-home-join", "Join", "/join"),
|
|
271
|
+
button("community-home-feed", "See what members are sharing", "/feed?view=latest"),
|
|
272
|
+
button("community-home-market", "Visit the market", "/market"),
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
slug: "guidelines",
|
|
277
|
+
title: "Community guidelines",
|
|
278
|
+
blocks: [
|
|
279
|
+
heading("community-guidelines-h1", "How we look after each other"),
|
|
280
|
+
body("community-guidelines-body", "Be kind, keep private things private, and sell only what you have the right to sell. Anything can be reported, and the site's moderators decide. What may not be sold is set out at /market/policy. Write your own rules here."),
|
|
281
|
+
],
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
slug: "about",
|
|
285
|
+
title: "About",
|
|
286
|
+
blocks: [
|
|
287
|
+
heading("community-about-h1", "About this community"),
|
|
288
|
+
body("community-about-body", "Who runs it, why it exists, and how members are welcomed."),
|
|
289
|
+
],
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
slug: "contact",
|
|
293
|
+
title: "Contact",
|
|
294
|
+
blocks: [
|
|
295
|
+
heading("community-contact-h1", "Contact the organisers"),
|
|
296
|
+
formBlock("community-contact-form", "contact"),
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
entities: [
|
|
301
|
+
{
|
|
302
|
+
type: "product",
|
|
303
|
+
template: "product-page",
|
|
304
|
+
name: "Supporter pass",
|
|
305
|
+
slug: "supporter-pass",
|
|
306
|
+
kind: "digital",
|
|
307
|
+
description: [
|
|
308
|
+
heading("community-product-h1", "Support the community", 2),
|
|
309
|
+
body("community-product-body", "What a supporter's contribution pays for, and what they receive."),
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
emails: [welcomeEmail("community")],
|
|
314
|
+
forms: [CONTACT_FORM],
|
|
315
|
+
seed: { pages: 4, contacts: 0 },
|
|
316
|
+
social: SOCIAL_SURFACE,
|
|
317
|
+
},
|
|
259
318
|
};
|
|
260
319
|
export function preset(key) {
|
|
261
320
|
return PRESETS[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freeholder/templates",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.5",
|
|
4
4
|
"description": "Bench-token business presets with full page, entity and email trees for Freeholder",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Tony Aly <tony@paradisemodern.com> (https://tonyaly.com)",
|