Skip to content

Commit 3acebc0

Browse files
author
release bot
committed
📦 2.2.1
1 parent 82417bf commit 3acebc0

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

‎action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: "platane"
44

55
runs:
66
using: docker
7-
image: docker://platane/snk@sha256:dcb351bdad223f2a2161fa5d6e3c9102e6ebe9fbde99a10fa3bf443d69f61a0f
7+
image: docker://platane/snk@sha256:bd0f7538482216785abbee29da431738f5ea9aff9fc3a4b8df37708a808f0968
88

99
inputs:
1010
github_user_name:

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "snk",
33
"description": "Generates a snake game from a github user contributions grid",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"private": true,
66
"repository": "github:platane/snk",
77
"devDependencies": {

‎svg-only/dist/317.index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -689,14 +689,14 @@ const generateContributionSnake = async (userName, outputs) => {
689689
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
690690

691691
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
692-
/* harmony export */ "V0": () => (/* binding */ isInside),
692+
/* harmony export */ "Dy": () => (/* binding */ setColorEmpty),
693693
/* harmony export */ "HJ": () => (/* binding */ isInsideLarge),
694-
/* harmony export */ "VJ": () => (/* binding */ copyGrid),
695694
/* harmony export */ "Lq": () => (/* binding */ getColor),
696-
/* harmony export */ "xb": () => (/* binding */ isEmpty),
695+
/* harmony export */ "V0": () => (/* binding */ isInside),
696+
/* harmony export */ "VJ": () => (/* binding */ copyGrid),
697+
/* harmony export */ "u1": () => (/* binding */ createEmptyGrid),
697698
/* harmony export */ "vk": () => (/* binding */ setColor),
698-
/* harmony export */ "Dy": () => (/* binding */ setColorEmpty),
699-
/* harmony export */ "u1": () => (/* binding */ createEmptyGrid)
699+
/* harmony export */ "xb": () => (/* binding */ isEmpty)
700700
/* harmony export */ });
701701
/* unused harmony exports isGridEmpty, gridEquals */
702702
const isInside = (grid, x, y) => x >= 0 && y >= 0 && x < grid.width && y < grid.height;
@@ -733,13 +733,13 @@ const createEmptyGrid = (width, height) => ({
733733
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
734734

735735
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
736-
/* harmony export */ "If": () => (/* binding */ getHeadX),
737736
/* harmony export */ "IP": () => (/* binding */ getHeadY),
737+
/* harmony export */ "If": () => (/* binding */ getHeadX),
738738
/* harmony export */ "JJ": () => (/* binding */ getSnakeLength),
739+
/* harmony export */ "Ks": () => (/* binding */ snakeToCells),
739740
/* harmony export */ "kE": () => (/* binding */ snakeEquals),
740741
/* harmony export */ "kv": () => (/* binding */ nextSnake),
741742
/* harmony export */ "nJ": () => (/* binding */ snakeWillSelfCollide),
742-
/* harmony export */ "Ks": () => (/* binding */ snakeToCells),
743743
/* harmony export */ "xG": () => (/* binding */ createSnakeFromCells)
744744
/* harmony export */ });
745745
/* unused harmony export copySnake */

‎svg-only/dist/index.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,7 +2991,7 @@ var external_path_ = __nccwpck_require__(1017);
29912991
// EXTERNAL MODULE: ../../node_modules/@actions/core/lib/core.js
29922992
var core = __nccwpck_require__(7117);
29932993
;// CONCATENATED MODULE: ./palettes.ts
2994-
const palettes = {
2994+
const basePalettes = {
29952995
"github-light": {
29962996
colorDotBorder: "#1b1f230a",
29972997
colorDots: ["#ebedf0", "#9be9a8", "#40c463", "#30a14e", "#216e39"],
@@ -3006,10 +3006,8 @@ const palettes = {
30063006
},
30073007
};
30083008
// aliases
3009-
palettes["github"] = {
3010-
...palettes["github-light"],
3011-
dark: { ...palettes["github-dark"] },
3012-
};
3009+
const palettes = { ...basePalettes };
3010+
palettes["github"] = palettes["github-light"];
30133011
palettes["default"] = palettes["github"];
30143012

30153013
;// CONCATENATED MODULE: ./outputsOptions.ts
@@ -3039,6 +3037,7 @@ const parseEntry = (entry) => {
30393037
sizeCell: 16,
30403038
sizeDot: 12,
30413039
...palettes["default"],
3040+
dark: palettes["default"].dark && { ...palettes["default"].dark },
30423041
};
30433042
const animationOptions = { step: 1, frameDuration: 100 };
30443043
{
@@ -3048,6 +3047,13 @@ const parseEntry = (entry) => {
30483047
drawOptions.dark = palette.dark && { ...palette.dark };
30493048
}
30503049
}
3050+
{
3051+
const dark_palette = palettes[sp.get("dark_palette")];
3052+
if (dark_palette) {
3053+
const clone = { ...dark_palette, dark: undefined };
3054+
drawOptions.dark = clone;
3055+
}
3056+
}
30513057
if (sp.has("color_snake"))
30523058
drawOptions.colorSnake = sp.get("color_snake");
30533059
if (sp.has("color_dots")) {
@@ -3061,6 +3067,8 @@ const parseEntry = (entry) => {
30613067
if (sp.has("dark_color_dots")) {
30623068
const colors = sp.get("dark_color_dots").split(/[,;]/);
30633069
drawOptions.dark = {
3070+
colorDotBorder: drawOptions.colorDotBorder,
3071+
colorSnake: drawOptions.colorSnake,
30643072
...drawOptions.dark,
30653073
colorDots: colors,
30663074
colorEmpty: colors[0],

0 commit comments

Comments
 (0)