Skip to content

Commit d83dfb6

Browse files
authored
ntp: activity schema + burn animation (#1448)
1 parent 8e1a55f commit d83dfb6

24 files changed

+526
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["url"],
5+
"properties": {
6+
"url": {
7+
"description": "The History Entry url to be added to favorites",
8+
"type": "string"
9+
}
10+
}
11+
}
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": ["url"],
5+
"title": "Confirm Burn Params",
6+
"properties": {
7+
"url": {
8+
"description": "The History Entry url that will be burned",
9+
"type": "string"
10+
}
11+
}
12+
}
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": ["action"],
5+
"title": "Confirm Burn Response",
6+
"properties": {
7+
"action": {
8+
"type": "string",
9+
"enum": ["burn", "none"]
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#"
3+
}
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/activity-config.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#"
3+
}
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/activity.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["urls"],
5+
"title": "Data For Urls Params",
6+
"properties": {
7+
"urls": {
8+
"type": "array",
9+
"items": {
10+
"type": "string"
11+
}
12+
}
13+
}
14+
}
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/activity.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#"
3+
}
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/url-info.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#"
3+
}
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/activity-config.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"allOf": [
4+
{
5+
"$ref": "types/url-info.json"
6+
},
7+
{
8+
"type": "object",
9+
"title": "Patch Data",
10+
"properties": {
11+
"patch": {"$ref": "./types/activity.json#/definitions/DomainActivity"}
12+
}
13+
}
14+
]
15+
}
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/activity.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Activity Open Action",
4+
"type": "object",
5+
"required": [
6+
"target",
7+
"url"
8+
],
9+
"properties": {
10+
"url": {
11+
"description": "The url to open",
12+
"type": "string"
13+
},
14+
"target": {
15+
"$ref": "./types/open-target.json"
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["url"],
5+
"properties": {
6+
"url": {
7+
"description": "The History Entry url to be removed from favorites",
8+
"type": "string"
9+
}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["url"],
5+
"properties": {
6+
"url": {
7+
"description": "The History Entry url to be removed",
8+
"type": "string"
9+
}
10+
}
11+
}
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/activity-config.json"
6+
}
7+
]
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Activity Config",
4+
"type": "object",
5+
"required": ["expansion"],
6+
"properties": {
7+
"expansion": {"$ref": "expansion.json"},
8+
"animation": {"$ref": "animation.json"}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"title": "Activity Data",
5+
"properties": {
6+
"activity": {
7+
"type": "array",
8+
"items": {
9+
"$ref": "#/definitions/DomainActivity"
10+
}
11+
}
12+
},
13+
"required": ["activity"],
14+
"definitions": {
15+
"DomainActivity": {
16+
"type": "object",
17+
"properties": {
18+
"title": {
19+
"type": "string",
20+
"description": "Current page title"
21+
},
22+
"url": {
23+
"type": "string",
24+
"description": "The full URL to be used for the favicon + title link. This is normally just the domain, but a fully qualified URL."
25+
},
26+
"etldPlusOne": {
27+
"type": "string",
28+
"description": "Effective top-level domain plus one (eTLD+1) of the URL. Used to infer colors/fallbacks"
29+
},
30+
"favicon": {
31+
"$ref": "./favicon.json"
32+
},
33+
"trackingStatus": {
34+
"$ref": "#/definitions/TrackingStatus"
35+
},
36+
"trackersFound": {
37+
"type": "boolean",
38+
"description": "Indicates whether trackers were found"
39+
},
40+
"history": {
41+
"type": "array",
42+
"items": {
43+
"$ref": "#/definitions/HistoryEntry"
44+
}
45+
},
46+
"favorite": {
47+
"type": "boolean"
48+
}
49+
},
50+
"required": ["etldPlusOne", "title", "url", "trackingStatus", "trackersFound", "history", "favorite", "favicon"]
51+
},
52+
"TrackingStatus": {
53+
"type": "object",
54+
"required": ["trackerCompanies", "totalCount"],
55+
"properties": {
56+
"trackerCompanies": {
57+
"type": "array",
58+
"items": {
59+
"type": "object",
60+
"required": ["displayName"],
61+
"properties": {
62+
"displayName": {
63+
"type": "string",
64+
"description": "Name of the tracking company (e.g., 'Google', 'Microsoft')"
65+
}
66+
}
67+
}
68+
},
69+
"totalCount": {
70+
"type": "number"
71+
}
72+
}
73+
},
74+
"HistoryEntry": {
75+
"type": "object",
76+
"properties": {
77+
"title": {
78+
"type": "string",
79+
"description": "Platform-dependent page identifier - could be HTML title, URL pathname, or other identifier. Examples: 'YouTube - Homepage', '/users/settings', 'Netflix', '/v2/api/analytics'"
80+
},
81+
"url": {
82+
"type": "string",
83+
"format": "uri",
84+
"description": "Full page URL"
85+
},
86+
"relativeTime": {
87+
"type": "string",
88+
"description": "Human readable relative time"
89+
}
90+
},
91+
"required": ["title", "url", "relativeTime"]
92+
}
93+
}
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"required": ["urls", "totalTrackersBlocked"],
5+
"properties": {
6+
"urls": {
7+
"type": "array",
8+
"items": {
9+
"type": "string"
10+
}
11+
},
12+
"totalTrackersBlocked": {
13+
"type": "number"
14+
}
15+
}
16+
}

special-pages/pages/new-tab/public/burn.json

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)