OctoPrint-Wrapped 1.1.0__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0/OctoPrint_Wrapped.egg-info}/PKG-INFO +8 -6
- {octoprint_wrapped-1.1.0/OctoPrint_Wrapped.egg-info → octoprint_wrapped-1.2.0}/PKG-INFO +8 -6
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/README.md +7 -5
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/__init__.py +0 -3
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/js/wrapped.js +13 -2
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.css +11 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.js +2 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_about.jinja2 +18 -1
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/pyproject.toml +1 -1
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/MANIFEST.in +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/SOURCES.txt +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/dependency_links.txt +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/entry_points.txt +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/requires.txt +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/top_level.txt +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/clientjs/wrapped.js +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/fonts/LICENSE +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/fonts/open-sans-v15-latin-700.woff +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/js/ko.src.svgtopng.js +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/LICENSE +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped.svg.jinja2 +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_navbar_snowfall.jinja2 +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_navbar_wrapped.jinja2 +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/setup.cfg +0 -0
- {octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: OctoPrint-Wrapped
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Get your yearly OctoPrint stats and let it snow! Depends on the Achievements plugin.
|
|
5
5
|
Author-email: Gina Häußge <gina@octoprint.org>
|
|
6
6
|
License: AGPL-3.0-or-later
|
|
@@ -14,20 +14,22 @@ Dynamic: license
|
|
|
14
14
|
|
|
15
15
|
# OctoPrint Wrapped! 🎁
|
|
16
16
|
|
|
17
|
-
Get your yearly OctoPrint stats a shareable
|
|
17
|
+
Get your yearly OctoPrint stats as a shareable **#OctoPrintWrapped** picture - and let it snow!
|
|
18
18
|
|
|
19
19
|
<img src="https://raw.githubusercontent.com/OctoPrint/OctoPrint-Wrapped/main/extras/wrapped-demo.png" width="400" height="400" alt="Demo OctoPrint Wrapped share picture" />
|
|
20
20
|
|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
The
|
|
24
|
-
the stats collection during the year) and can be opened via the little gift package icon
|
|
23
|
+
The Wrapped picture depends on the Achievements plugin being enabled (as it takes care of
|
|
24
|
+
the stats collection during the year) and can be opened via the little gift package icon 🎁
|
|
25
25
|
in the navbar.
|
|
26
26
|
|
|
27
|
-
The snow effect can always be toggled during the season using the little snowflake icon
|
|
27
|
+
The snow effect can always be toggled during the season using the little snowflake icon ❄️
|
|
28
28
|
in the navbar, and its setting persists through the browser's local storage.
|
|
29
29
|
|
|
30
|
-
Both
|
|
30
|
+
Both Wrapped and snowfall are only available from December 1st until January 10th.
|
|
31
|
+
|
|
32
|
+
**If you post your Wrapped on social media, make sure to use the hashtag `#OctoPrintWrapped`! 😊**
|
|
31
33
|
|
|
32
34
|
## Setup
|
|
33
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: OctoPrint-Wrapped
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Get your yearly OctoPrint stats and let it snow! Depends on the Achievements plugin.
|
|
5
5
|
Author-email: Gina Häußge <gina@octoprint.org>
|
|
6
6
|
License: AGPL-3.0-or-later
|
|
@@ -14,20 +14,22 @@ Dynamic: license
|
|
|
14
14
|
|
|
15
15
|
# OctoPrint Wrapped! 🎁
|
|
16
16
|
|
|
17
|
-
Get your yearly OctoPrint stats a shareable
|
|
17
|
+
Get your yearly OctoPrint stats as a shareable **#OctoPrintWrapped** picture - and let it snow!
|
|
18
18
|
|
|
19
19
|
<img src="https://raw.githubusercontent.com/OctoPrint/OctoPrint-Wrapped/main/extras/wrapped-demo.png" width="400" height="400" alt="Demo OctoPrint Wrapped share picture" />
|
|
20
20
|
|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
The
|
|
24
|
-
the stats collection during the year) and can be opened via the little gift package icon
|
|
23
|
+
The Wrapped picture depends on the Achievements plugin being enabled (as it takes care of
|
|
24
|
+
the stats collection during the year) and can be opened via the little gift package icon 🎁
|
|
25
25
|
in the navbar.
|
|
26
26
|
|
|
27
|
-
The snow effect can always be toggled during the season using the little snowflake icon
|
|
27
|
+
The snow effect can always be toggled during the season using the little snowflake icon ❄️
|
|
28
28
|
in the navbar, and its setting persists through the browser's local storage.
|
|
29
29
|
|
|
30
|
-
Both
|
|
30
|
+
Both Wrapped and snowfall are only available from December 1st until January 10th.
|
|
31
|
+
|
|
32
|
+
**If you post your Wrapped on social media, make sure to use the hashtag `#OctoPrintWrapped`! 😊**
|
|
31
33
|
|
|
32
34
|
## Setup
|
|
33
35
|
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
# OctoPrint Wrapped! 🎁
|
|
2
2
|
|
|
3
|
-
Get your yearly OctoPrint stats a shareable
|
|
3
|
+
Get your yearly OctoPrint stats as a shareable **#OctoPrintWrapped** picture - and let it snow!
|
|
4
4
|
|
|
5
5
|
<img src="https://raw.githubusercontent.com/OctoPrint/OctoPrint-Wrapped/main/extras/wrapped-demo.png" width="400" height="400" alt="Demo OctoPrint Wrapped share picture" />
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|
|
|
9
|
-
The
|
|
10
|
-
the stats collection during the year) and can be opened via the little gift package icon
|
|
9
|
+
The Wrapped picture depends on the Achievements plugin being enabled (as it takes care of
|
|
10
|
+
the stats collection during the year) and can be opened via the little gift package icon 🎁
|
|
11
11
|
in the navbar.
|
|
12
12
|
|
|
13
|
-
The snow effect can always be toggled during the season using the little snowflake icon
|
|
13
|
+
The snow effect can always be toggled during the season using the little snowflake icon ❄️
|
|
14
14
|
in the navbar, and its setting persists through the browser's local storage.
|
|
15
15
|
|
|
16
|
-
Both
|
|
16
|
+
Both Wrapped and snowfall are only available from December 1st until January 10th.
|
|
17
|
+
|
|
18
|
+
**If you post your Wrapped on social media, make sure to use the hashtag `#OctoPrintWrapped`! 😊**
|
|
17
19
|
|
|
18
20
|
## Setup
|
|
19
21
|
|
|
@@ -47,7 +47,7 @@ $(function () {
|
|
|
47
47
|
: now.getFullYear() - 1; // already January
|
|
48
48
|
const years = self.availableYears();
|
|
49
49
|
|
|
50
|
-
if (years.indexOf(year) !== -1
|
|
50
|
+
if (years.indexOf(year) !== -1) {
|
|
51
51
|
return year;
|
|
52
52
|
} else {
|
|
53
53
|
return false;
|
|
@@ -62,7 +62,14 @@ $(function () {
|
|
|
62
62
|
const year = self.currentWrapped();
|
|
63
63
|
if (!year) return false;
|
|
64
64
|
|
|
65
|
-
return
|
|
65
|
+
return self.svgUrlForYear(year);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
self.pastYears = ko.pureComputed(() => {
|
|
69
|
+
const now = new Date();
|
|
70
|
+
const year = now.getFullYear();
|
|
71
|
+
const years = self.availableYears();
|
|
72
|
+
return years.filter((y) => y < year).sort((a, b) => b - a);
|
|
66
73
|
});
|
|
67
74
|
|
|
68
75
|
self.withinWrappedSeason = ko.pureComputed(() => {
|
|
@@ -74,6 +81,10 @@ $(function () {
|
|
|
74
81
|
);
|
|
75
82
|
});
|
|
76
83
|
|
|
84
|
+
self.svgUrlForYear = (year) => {
|
|
85
|
+
return OctoPrint.plugins.wrapped.getYearSvgUrl(year);
|
|
86
|
+
};
|
|
87
|
+
|
|
77
88
|
self.requestData = () => {
|
|
78
89
|
if (
|
|
79
90
|
!self.loginState.hasPermission(
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.js
RENAMED
|
@@ -88,6 +88,8 @@ function getRandomArbitrary(min, max) {
|
|
|
88
88
|
|
|
89
89
|
// Create style for snowflake
|
|
90
90
|
function generateSnowCSS(snowDensity = 200) {
|
|
91
|
+
document.getElementById("snow").style.height = `${pageHeightVh}vh`;
|
|
92
|
+
|
|
91
93
|
let snowflakeName = "snowflake";
|
|
92
94
|
let rule = baseCSS;
|
|
93
95
|
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_about.jinja2
RENAMED
|
@@ -19,6 +19,23 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
<p data-bind="visible: !withinWrappedSeason()">
|
|
21
21
|
{% trans %}
|
|
22
|
-
Nothing to see
|
|
22
|
+
Nothing to see for this year yet! Come back between December 1st and January 10th!
|
|
23
23
|
{% endtrans %}
|
|
24
24
|
</p>
|
|
25
|
+
|
|
26
|
+
<div id="plugin_wrapped_pastyears"
|
|
27
|
+
data-bind="visible: pastYears().length > 0">
|
|
28
|
+
<h4>
|
|
29
|
+
<a href="javascript:void()"
|
|
30
|
+
data-bind="toggleContent: { class: 'fa-caret-right fa-caret-down', parent: '#plugin_wrapped_pastyears', container: '.hide' }"><i class="fas fa-caret-right"></i> {{ _("Past years") }}</a>
|
|
31
|
+
</h4>
|
|
32
|
+
|
|
33
|
+
<div class="hide" data-bind="foreach: pastYears">
|
|
34
|
+
<h5 data-bind="text: $data"></h5>
|
|
35
|
+
<img data-bind="src.svgtopng: $root.svgUrlForYear($data)"
|
|
36
|
+
alt="OctoPrint Wrapped sharepic"
|
|
37
|
+
width="400"
|
|
38
|
+
height="400" />
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
</div>
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "OctoPrint-Wrapped"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.2.0"
|
|
8
8
|
description = "Get your yearly OctoPrint stats and let it snow! Depends on the Achievements plugin."
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "Gina Häußge", email = "gina@octoprint.org"}
|
|
File without changes
|
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/top_level.txt
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/clientjs/wrapped.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/js/ko.src.svgtopng.js
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/LICENSE
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.0 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped.svg.jinja2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|