Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/feature/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { default as self } from "./self.js";
import { default as traps } from "./traps.js";
import { default as auth } from "./auth.js";
import { default as server } from "./server.js";

export default function (data) {
var feature = new Feature(data);
feature.self = self(data.id);
feature.traps = traps()
feature.auth = auth()
feature.server = server()
feature.page = {
appendToSharedSpace: ScratchTools.appendToSharedSpace,
waitForElement: ScratchTools.waitForElement,
Expand Down
8 changes: 8 additions & 0 deletions api/feature/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function (id) {
return {
url: "https://data.scratchtools.app",
endpoint: function(path) {
return "https://data.scratchtools.app" + path
},
}
}
5 changes: 5 additions & 0 deletions features/features.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"version": 2,
"id": "project-reactions",
"versionAdded": "v4.0.0"
},
{
"version": 2,
"id": "chomp-blocks",
Expand Down
46 changes: 46 additions & 0 deletions features/project-reactions/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": "Project Reactions",
"description": "Allows you to react to projects with different emojis.",
"credits": [
{ "username": "rgantzos", "url": "https://scratch.mit.edu/users/rgantzos/" }
],
"type": ["Website"],
"tags": ["New"],
"dynamic": true,
"scripts": [
{
"file": "script.js",
"runOn": "/projects/*"
}
],
"styles": [
{
"file": "style.css",
"runOn": "/projects/*"
}
],
"components": [
{
"type": "info",
"content": "Users will not receive a notification when you react to their projects."
}
],
"resources": [
{ "name": "project-reactions-beaming", "path": "/emojis/beaming.svg" },
{ "name": "project-reactions-crying", "path": "/emojis/crying.svg" },
{ "name": "project-reactions-fire", "path": "/emojis/fire.svg" },
{ "name": "project-reactions-hands", "path": "/emojis/hands.svg" },
{
"name": "project-reactions-heart-eyes",
"path": "/emojis/heart-eyes.svg"
},
{
"name": "project-reactions-heart-face",
"path": "/emojis/heart-face.svg"
},
{ "name": "project-reactions-hearts", "path": "/emojis/hearts.svg" },
{ "name": "project-reactions-laughing", "path": "/emojis/laughing.svg" },
{ "name": "project-reactions-popper", "path": "/emojis/popper.svg" },
{ "name": "project-reactions-thumbsup", "path": "/emojis/thumbsup.svg" }
]
}
100 changes: 100 additions & 0 deletions features/project-reactions/emojis/beaming.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 75 additions & 0 deletions features/project-reactions/emojis/crying.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading