OctoPrint-Wrapped 1.1.1__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.1 → octoprint_wrapped-1.2.0/OctoPrint_Wrapped.egg-info}/PKG-INFO +1 -1
- {octoprint_wrapped-1.1.1/OctoPrint_Wrapped.egg-info → octoprint_wrapped-1.2.0}/PKG-INFO +1 -1
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/js/wrapped.js +13 -2
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_about.jinja2 +18 -1
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/pyproject.toml +1 -1
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/MANIFEST.in +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/SOURCES.txt +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/dependency_links.txt +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/entry_points.txt +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/requires.txt +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/top_level.txt +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/README.md +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/__init__.py +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/clientjs/wrapped.js +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/fonts/LICENSE +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/fonts/open-sans-v15-latin-700.woff +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/js/ko.src.svgtopng.js +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/LICENSE +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.css +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.js +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped.svg.jinja2 +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_navbar_snowfall.jinja2 +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/templates/wrapped_navbar_wrapped.jinja2 +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/setup.cfg +0 -0
- {octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/setup.py +0 -0
|
@@ -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.1 → 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.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/OctoPrint_Wrapped.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{octoprint_wrapped-1.1.1 → 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.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/js/ko.src.svgtopng.js
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/LICENSE
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.css
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.1 → octoprint_wrapped-1.2.0}/octoprint_wrapped/static/pure-snow/pure-snow.js
RENAMED
|
File without changes
|
{octoprint_wrapped-1.1.1 → 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
|