-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shane Osbourne
committed
Oct 15, 2024
1 parent
fdba2a4
commit 0dc8afd
Showing
33 changed files
with
1,654 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "special-pages", | ||
"private": "true", | ||
"version": "1.0.0", | ||
"description": "A collection of HTML/CSS/JS pages that can be loaded into privileged environments, like about: pages", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"build": "node index.mjs", | ||
"build.dev": "node index.mjs --env development", | ||
"test": "npm run test.unit && playwright test --grep-invert '@screenshots'", | ||
"test.screenshots": "npm run test.unit && playwright test --grep '@screenshots'", | ||
"test.windows": "npm run test -- --project windows", | ||
"test.macos": "npm run test -- --project macos", | ||
"test.ios": "npm run test -- --project ios", | ||
"test.android": "npm run test -- --project android", | ||
"test.headed": "npm run test -- --headed", | ||
"test.ui": "npm run test -- --ui", | ||
"test.unit": "node --test unit-test/* pages/duckplayer/unit-tests/* ", | ||
"pretest": "npm run build.dev", | ||
"pretest.headed": "npm run build.dev", | ||
"test-int-x": "npm run test", | ||
"test-int": "npm run test", | ||
"serve": "http-server -c-1 --port 3210 ../../", | ||
"watch": "chokidar pages shared --initial -c 'npm run build.dev'" | ||
}, | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@duckduckgo/messaging": "*", | ||
"@playwright/test": "^1.40.1", | ||
"http-server": "^14.1.1", | ||
"web-resource-inliner": "^6.0.1" | ||
}, | ||
"dependencies": { | ||
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1", | ||
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3", | ||
"@formkit/auto-animate": "^0.8.0", | ||
"@rive-app/canvas-single": "^2.21.5", | ||
"preact": "^10.24.2", | ||
"classnames": "^2.3.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
special-pages/messages/new-tab/favorites_getConfig.request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#" | ||
} |
8 changes: 8 additions & 0 deletions
8
special-pages/messages/new-tab/favorites_getConfig.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"allOf": [ | ||
{ | ||
"$ref": "./types/favorites-config.json" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
special-pages/messages/new-tab/favorites_getData.request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#" | ||
} |
8 changes: 8 additions & 0 deletions
8
special-pages/messages/new-tab/favorites_getData.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"allOf": [ | ||
{ | ||
"$ref": "types/favorites-data.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Favorites Move Action", | ||
"type": "object", | ||
"required": [ | ||
"id", | ||
"targetIndex" | ||
], | ||
"properties": { | ||
"id": { | ||
"description": "Entity ID", | ||
"type": "string" | ||
}, | ||
"targetIndex": { | ||
"description": "zero-indexed target", | ||
"type": "number" | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
special-pages/messages/new-tab/favorites_onConfigUpdate.subscribe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"allOf": [ | ||
{ | ||
"$ref": "./types/favorites-config.json" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
special-pages/messages/new-tab/favorites_onDataUpdate.subscribe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"allOf": [ | ||
{ | ||
"$ref": "types/favorites-data.json" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
special-pages/messages/new-tab/favorites_openContextMenu.notify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Favorites Open Context Menu Action", | ||
"type": "object", | ||
"required": [ | ||
"id" | ||
], | ||
"properties": { | ||
"id": { | ||
"description": "Entity ID", | ||
"type": "string" | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
special-pages/messages/new-tab/favorites_setConfig.notify.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"allOf": [ | ||
{ | ||
"$ref": "./types/favorites-config.json" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
special-pages/messages/new-tab/types/favorites-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "FavoritesConfig", | ||
"type": "object", | ||
"required": ["expansion"], | ||
"properties": { | ||
"expansion": { "$ref": "./expansion.json" }, | ||
"animation": { "$ref": "./animation.json" } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Favorites Data", | ||
"type": "object", | ||
"required": ["favorites"], | ||
"properties": { | ||
"favorites": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"title": "Favorite", | ||
"required": ["data", "id", "title", "favicon"], | ||
"properties": { | ||
"data": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"favicon": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.