Skip to content

Commit 8a25d52

Browse files
authored
ntp: customizer data/messages (#1328)
1 parent 1068bf5 commit 8a25d52

36 files changed

+807
-0
lines changed

special-pages/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"test.android": "npm run test-int -- --project android",
2020
"test.headed": "npm run test-int -- --headed",
2121
"test.ui": "npm run test-int -- --ui",
22+
"preserve": "npm run build.dev",
2223
"serve": "http-server -c-1 --port 3210 ../build/integration/pages",
2324
"watch": "node watch.mjs"
2425
},
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": [
5+
"id"
6+
],
7+
"properties": {
8+
"id": {
9+
"type": "string"
10+
}
11+
}
12+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"allOf": [
4+
{
5+
"$ref": "types/background-data.json"
6+
}
7+
]
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"allOf": [
4+
{
5+
"$ref": "types/user-color-data.json"
6+
}
7+
]
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"allOf": [
4+
{
5+
"$ref": "./types/user-image-data.json"
6+
}
7+
]
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"allOf": [
4+
{
5+
"$ref": "types/theme-data.json"
6+
}
7+
]
8+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": [
5+
"background"
6+
],
7+
"properties": {
8+
"background": {
9+
"$ref": "./types/background.json#/definitions/background-variant"
10+
}
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["theme"],
5+
"properties": {
6+
"theme": {
7+
"$ref": "types/browser-theme.json"
8+
}
9+
}
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#"
3+
}

special-pages/pages/new-tab/messages/examples/widgets.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const initialSetupResponse = {
4141
locale: 'en',
4242
platform: { name: 'windows' },
4343
updateNotification: { content: null },
44+
customizer: { theme: 'system', userImages: [], userColor: null, background: { kind: 'default' } },
4445
};
4546

4647
export {};

0 commit comments

Comments
 (0)