Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

build: update fixtures (#2978)

Oleg Isonen74da91e361e3
diff --git a/fixtures/webstudio-custom-template/.webstudio/data.json b/fixtures/webstudio-custom-template/.webstudio/data.json
index 2b3d496b95..8354ffe6a0 100644
--- a/fixtures/webstudio-custom-template/.webstudio/data.json
+++ b/fixtures/webstudio-custom-template/.webstudio/data.json
@@ -1,10 +1,10 @@
{
"build": {
- "id": "8f6d166a-f965-4461-b903-faf265c378f7",
+ "id": "3c68e999-d7d1-4064-a898-a39948ee4316",
"projectId": "0d856812-61d8-4014-a20a-82e01c0eb8ee",
- "version": 127,
- "createdAt": "2024-02-23T10:10:16.827Z",
- "updatedAt": "2024-02-23T10:10:16.827Z",
+ "version": 132,
+ "createdAt": "2024-03-05T15:38:45.184Z",
+ "updatedAt": "2024-03-05T15:38:45.184Z",
"pages": {
"meta": {
"siteName": "Fixture Site",
@@ -54,15 +54,11 @@
"meta": {
"description": "\"\"",
"excludePageFromSearch": "false",
+ "language": "\"ru\"",
"socialImageUrl": "\"\"",
"status": "200",
"redirect": "\"\"",
- "custom": [
- {
- "property": "",
- "content": "\"\""
- }
- ]
+ "custom": []
},
"rootInstanceId": "jDb2FuSK2-azIZxkH5XNv",
"path": "/world"
@@ -620,7 +616,26 @@
"type": "instance",
"id": "jDb2FuSK2-azIZxkH5XNv",
"component": "Body",
- "children": []
+ "children": [
+ {
+ "type": "id",
+ "value": "D7kQxgXxrjei-MS_KzUa2"
+ }
+ ]
+ }
+ ],
+ [
+ "D7kQxgXxrjei-MS_KzUa2",
+ {
+ "type": "instance",
+ "id": "D7kQxgXxrjei-MS_KzUa2",
+ "component": "Heading",
+ "children": [
+ {
+ "type": "text",
+ "value": "Привет Мир"
+ }
+ ]
}
]
],
@@ -676,15 +691,11 @@
"meta": {
"description": "\"\"",
"excludePageFromSearch": "false",
+ "language": "\"ru\"",
"socialImageUrl": "\"\"",
"status": "200",
"redirect": "\"\"",
- "custom": [
- {
- "property": "",
- "content": "\"\""
- }
- ]
+ "custom": []
},
"rootInstanceId": "jDb2FuSK2-azIZxkH5XNv",
"path": "/world"
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml].ts b/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml].ts
index 6a662e0c64..7eb169752e 100644
--- a/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml].ts
+++ b/fixtures/webstudio-custom-template/app/__generated__/[sitemap.xml].ts
@@ -2,15 +2,15 @@ export const sitemap = {
pages: [
{
path: "",
- lastModified: "2024-02-23T10:10:16.827Z",
+ lastModified: "2024-03-05T15:38:45.184Z",
},
{
path: "/script-test",
- lastModified: "2024-02-23T10:10:16.827Z",
+ lastModified: "2024-03-05T15:38:45.184Z",
},
{
path: "/world",
- lastModified: "2024-02-23T10:10:16.827Z",
+ lastModified: "2024-03-05T15:38:45.184Z",
},
],
};
diff --git a/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx b/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx
index 9da3c111f4..b57be1b0d7 100644
--- a/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx
+++ b/fixtures/webstudio-custom-template/app/__generated__/[world]._index.tsx
@@ -11,6 +11,7 @@ import type {
import { useResource } from "@webstudio-is/react-sdk";
import type { PageMeta } from "@webstudio-is/react-sdk";
import { Body as Body } from "@webstudio-is/sdk-components-react-remix";
+import { Heading as Heading } from "@webstudio-is/sdk-components-react";
import type { PageData } from "~/routes/_index";
export const imageAssets: ImageAsset[] = [
@@ -55,7 +56,7 @@ export const getPageMeta = ({
title: "Untitled",
description: "",
excludePageFromSearch: false,
- language: undefined,
+ language: "ru",
socialImageAssetId: undefined,
socialImageUrl: "",
status: 200,
@@ -65,7 +66,13 @@ export const getPageMeta = ({
};
const Page = ({}: { params: any }) => {
- return <Body data-ws-id="jDb2FuSK2-azIZxkH5XNv" data-ws-component="Body" />;
+ return (
+ <Body data-ws-id="jDb2FuSK2-azIZxkH5XNv" data-ws-component="Body">
+ <Heading data-ws-id="D7kQxgXxrjei-MS_KzUa2" data-ws-component="Heading">
+ {"Привет Мир"}
+ </Heading>
+ </Body>
+ );
};
export { Page };