forked from spicetify/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
347ad8c
commit 31298d3
Showing
16 changed files
with
1,030 additions
and
615 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# File too complex to be formatted | ||
spicetifyWrapper.js |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,101 @@ | ||
const LoadingIcon = react.createElement("svg", { | ||
width: "100px", height: "100px", viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid" | ||
}, react.createElement("circle", { | ||
cx: "50", cy: "50", r: "0", fill: "none", stroke: "currentColor", "stroke-width": "2" | ||
}, react.createElement("animate", { | ||
attributeName: "r", repeatCount: "indefinite", dur: "1s", values: "0;40", keyTimes: "0;1", keySplines: "0 0.2 0.8 1", calcMode: "spline", begin: "0s" | ||
}), react.createElement("animate", { | ||
attributeName: "opacity", repeatCount: "indefinite", dur: "1s", values: "1;0", keyTimes: "0;1", keySplines: "0.2 0 0.8 1", calcMode: "spline", begin: "0s" | ||
})), react.createElement("circle", { | ||
cx: "50", cy: "50", r: "0", fill: "none", stroke: "currentColor", "stroke-width": "2" | ||
}, react.createElement("animate", { | ||
attributeName: "r", repeatCount: "indefinite", dur: "1s", values: "0;40", keyTimes: "0;1", keySplines: "0 0.2 0.8 1", calcMode: "spline", begin: "-0.5s" | ||
}), react.createElement("animate", { | ||
attributeName: "opacity", repeatCount: "indefinite", dur: "1s", values: "1;0", keyTimes: "0;1", keySplines: "0.2 0 0.8 1", calcMode: "spline", begin: "-0.5s" | ||
}))); | ||
const LoadingIcon = react.createElement( | ||
"svg", | ||
{ | ||
width: "100px", | ||
height: "100px", | ||
viewBox: "0 0 100 100", | ||
preserveAspectRatio: "xMidYMid", | ||
}, | ||
react.createElement( | ||
"circle", | ||
{ | ||
cx: "50", | ||
cy: "50", | ||
r: "0", | ||
fill: "none", | ||
stroke: "currentColor", | ||
"stroke-width": "2", | ||
}, | ||
react.createElement("animate", { | ||
attributeName: "r", | ||
repeatCount: "indefinite", | ||
dur: "1s", | ||
values: "0;40", | ||
keyTimes: "0;1", | ||
keySplines: "0 0.2 0.8 1", | ||
calcMode: "spline", | ||
begin: "0s", | ||
}), | ||
react.createElement("animate", { | ||
attributeName: "opacity", | ||
repeatCount: "indefinite", | ||
dur: "1s", | ||
values: "1;0", | ||
keyTimes: "0;1", | ||
keySplines: "0.2 0 0.8 1", | ||
calcMode: "spline", | ||
begin: "0s", | ||
}) | ||
), | ||
react.createElement( | ||
"circle", | ||
{ | ||
cx: "50", | ||
cy: "50", | ||
r: "0", | ||
fill: "none", | ||
stroke: "currentColor", | ||
"stroke-width": "2", | ||
}, | ||
react.createElement("animate", { | ||
attributeName: "r", | ||
repeatCount: "indefinite", | ||
dur: "1s", | ||
values: "0;40", | ||
keyTimes: "0;1", | ||
keySplines: "0 0.2 0.8 1", | ||
calcMode: "spline", | ||
begin: "-0.5s", | ||
}), | ||
react.createElement("animate", { | ||
attributeName: "opacity", | ||
repeatCount: "indefinite", | ||
dur: "1s", | ||
values: "1;0", | ||
keyTimes: "0;1", | ||
keySplines: "0.2 0 0.8 1", | ||
calcMode: "spline", | ||
begin: "-0.5s", | ||
}) | ||
) | ||
); | ||
|
||
class LoadMoreIcon extends react.Component { | ||
render() { | ||
return react.createElement("div", { | ||
onClick: this.props.onClick, | ||
}, react.createElement("p", { | ||
style: { | ||
fontSize: 100, | ||
lineHeight: "65px", | ||
} | ||
}, "»"), react.createElement("span", { | ||
style: { | ||
fontSize: 20, | ||
} | ||
}, "Load more")); | ||
}; | ||
} | ||
return react.createElement( | ||
"div", | ||
{ | ||
onClick: this.props.onClick, | ||
}, | ||
react.createElement( | ||
"p", | ||
{ | ||
style: { | ||
fontSize: 100, | ||
lineHeight: "65px", | ||
}, | ||
}, | ||
"»" | ||
), | ||
react.createElement( | ||
"span", | ||
{ | ||
style: { | ||
fontSize: 20, | ||
}, | ||
}, | ||
"Load more" | ||
) | ||
); | ||
} | ||
} |
Oops, something went wrong.