@bygghammar/cms-platform 0.20.0 → 0.22.0
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 +76 -0
- package/README.md +18 -0
- package/docs/NEW-SITE.md +103 -0
- package/package.json +10 -3
- package/scripts/sync-migrations.mjs +49 -0
- package/src/platform/contract.ts +0 -5
- package/src/server/forms-core.ts +820 -0
- package/migrations/20260811112455_217c4028-f587-4c98-9e4f-9e6c452ab761.sql +0 -20
- package/migrations/20260811114438_6687d67d-bad3-4803-9638-8b7670d2e5d4.sql +0 -86
- package/migrations/20260811220548_80d99ec2-bd4b-475d-a627-9408bb60ce56.sql +0 -1
- package/migrations/20260811222519_6b040f56-4de3-49e0-92e4-d9deec5ead6a.sql +0 -3
- package/migrations/20260812000000_seed_voyara_content.sql +0 -390
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
UPDATE public.page_seo SET seo = jsonb_set(seo, '{title,sv}', to_jsonb(v.title)) FROM (VALUES
|
|
2
|
-
('home','Nordens största partykryssning och festkryssning | Voyara'),
|
|
3
|
-
('artister','Artister på vinterns hetaste partykryssning · Voyara'),
|
|
4
|
-
('hytter','Hytter ombord · Voyara partykryssning'),
|
|
5
|
-
('mat-och-dryck','Mat och dryck på Voyara · Partykryssning'),
|
|
6
|
-
('tallinn','Tallinn · Voyara partykryssning'),
|
|
7
|
-
('sakerhet','Säkerhet och en trygg miljö · Voyara'),
|
|
8
|
-
('galleri','Galleri · Voyara partykryssning'),
|
|
9
|
-
('faq','FAQ · Voyara partykryssning'),
|
|
10
|
-
('boka','Boka nu · Voyara partykryssning'),
|
|
11
|
-
('samarbete','Samarbete · Voyara partykryssning'),
|
|
12
|
-
('ambassador','Bli ambassadör · Voyara partykryssning'),
|
|
13
|
-
('kontakt','Kontakta oss · Voyara'),
|
|
14
|
-
('intresse','Intresseanmälan · Voyara partykryssning')
|
|
15
|
-
) AS v(page_key, title) WHERE public.page_seo.page_key = v.page_key;
|
|
16
|
-
|
|
17
|
-
UPDATE public.page_seo SET seo = jsonb_set(seo, '{description,sv}', to_jsonb(v.descr)) FROM (VALUES
|
|
18
|
-
('home','Välkommen till en festkryssning och partykryssning utöver det vanliga. Artister, DJ:s och shower varje kväll — studenter och alla är välkomna.'),
|
|
19
|
-
('artister','Välkommen till partykryssningen med de hetaste artisterna. Ett unikt nöjeskoncept i två dagar med uppträdanden båda kvällarna.')
|
|
20
|
-
) AS v(page_key, descr) WHERE public.page_seo.page_key = v.page_key;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
begin;
|
|
2
|
-
|
|
3
|
-
with p as (select id from public.pages where key = 'home'),
|
|
4
|
-
cur as (
|
|
5
|
-
select v.blocks from public.page_versions v
|
|
6
|
-
join public.pages pg on pg.current_version_id = v.id
|
|
7
|
-
where pg.key = 'home'
|
|
8
|
-
),
|
|
9
|
-
tiles as (
|
|
10
|
-
select jsonb_build_object(
|
|
11
|
-
'id', 'blk-link-tiles-home',
|
|
12
|
-
'type', 'linkTiles',
|
|
13
|
-
'name', 'Boka / Elevkårer / Ambassadör',
|
|
14
|
-
'props', jsonb_build_object(
|
|
15
|
-
'tone', 'white',
|
|
16
|
-
'columns', 3,
|
|
17
|
-
'gap', 'md',
|
|
18
|
-
'aspect', 'portrait',
|
|
19
|
-
'overlay', 'brand',
|
|
20
|
-
'labelAlign', 'left',
|
|
21
|
-
'rounded', false,
|
|
22
|
-
'items', jsonb_build_array(
|
|
23
|
-
jsonb_build_object(
|
|
24
|
-
'id', 'tile-boka',
|
|
25
|
-
'image', 'https://ybnqylupuisyhuldqrgt.supabase.co/storage/v1/object/public/media/boka-nu.jpg',
|
|
26
|
-
'label', jsonb_build_object('sv', 'Boka nu'),
|
|
27
|
-
'alt', jsonb_build_object('sv', 'Publik framför scenen på Voyara partykryssning'),
|
|
28
|
-
'href', '/boka'
|
|
29
|
-
),
|
|
30
|
-
jsonb_build_object(
|
|
31
|
-
'id', 'tile-elevkarer',
|
|
32
|
-
'image', 'https://ybnqylupuisyhuldqrgt.supabase.co/storage/v1/object/public/media/artister-scen.jpg',
|
|
33
|
-
'label', jsonb_build_object('sv', 'För elevkårer'),
|
|
34
|
-
'alt', jsonb_build_object('sv', 'Artist på scen ombord'),
|
|
35
|
-
'href', '/samarbete'
|
|
36
|
-
),
|
|
37
|
-
jsonb_build_object(
|
|
38
|
-
'id', 'tile-ambassador',
|
|
39
|
-
'image', 'https://ybnqylupuisyhuldqrgt.supabase.co/storage/v1/object/public/media/voyara-publik.jpg',
|
|
40
|
-
'label', jsonb_build_object('sv', 'Bli ambassadör'),
|
|
41
|
-
'alt', jsonb_build_object('sv', 'Gäster som festar ombord'),
|
|
42
|
-
'href', '/ambassador'
|
|
43
|
-
)
|
|
44
|
-
)
|
|
45
|
-
)
|
|
46
|
-
) as blk
|
|
47
|
-
),
|
|
48
|
-
newblocks as (
|
|
49
|
-
select (
|
|
50
|
-
select coalesce(jsonb_agg(x.b order by x.idx), '[]'::jsonb)
|
|
51
|
-
from (
|
|
52
|
-
select b, idx::numeric as idx from cur, lateral jsonb_array_elements(cur.blocks) with ordinality t(b, idx)
|
|
53
|
-
where b->>'type' <> 'linkTiles'
|
|
54
|
-
union all
|
|
55
|
-
select (select blk from tiles),
|
|
56
|
-
coalesce((
|
|
57
|
-
select max(idx) + 0.5 from cur, lateral jsonb_array_elements(cur.blocks) with ordinality t(b, idx)
|
|
58
|
-
where b->>'type' = 'courseList'
|
|
59
|
-
), 999)
|
|
60
|
-
) x
|
|
61
|
-
) as blocks
|
|
62
|
-
),
|
|
63
|
-
ins as (
|
|
64
|
-
insert into public.page_versions (page_id, version_no, blocks, note, created_by_email)
|
|
65
|
-
select p.id,
|
|
66
|
-
coalesce((select max(version_no) from public.page_versions pv where pv.page_id = p.id), 0) + 1,
|
|
67
|
-
(select blocks from newblocks),
|
|
68
|
-
'Add link tiles row (Boka / Elevkårer / Ambassadör)',
|
|
69
|
-
'system'
|
|
70
|
-
from p
|
|
71
|
-
returning id, page_id
|
|
72
|
-
),
|
|
73
|
-
deact as (
|
|
74
|
-
update public.page_publications pp set is_active = false
|
|
75
|
-
where pp.page_id = (select id from p) and pp.is_active
|
|
76
|
-
returning 1
|
|
77
|
-
),
|
|
78
|
-
pub as (
|
|
79
|
-
insert into public.page_publications (page_id, version_id, note)
|
|
80
|
-
select page_id, id, 'Add link tiles row' from ins
|
|
81
|
-
returning page_id, version_id
|
|
82
|
-
)
|
|
83
|
-
update public.pages pg set current_version_id = pub.version_id, updated_at = now()
|
|
84
|
-
from pub where pg.id = pub.page_id;
|
|
85
|
-
|
|
86
|
-
commit;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
UPDATE public.locale_domains SET domain = 'byggis.voyara.se', updated_at = now() WHERE domain = 'www.dev.barskola.nu';
|