simo 2.3.3__py3-none-any.whl → 2.3.5__py3-none-any.whl

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.

Potentially problematic release.


This version of simo might be problematic. Click here for more details.

Files changed (45) hide show
  1. simo/__pycache__/asgi.cpython-38.pyc +0 -0
  2. simo/__pycache__/settings.cpython-38.pyc +0 -0
  3. simo/backups/__init__.py +0 -0
  4. simo/backups/__pycache__/__init__.cpython-38.pyc +0 -0
  5. simo/backups/__pycache__/admin.cpython-38.pyc +0 -0
  6. simo/backups/__pycache__/dynamic_settings.cpython-38.pyc +0 -0
  7. simo/backups/__pycache__/models.cpython-38.pyc +0 -0
  8. simo/backups/admin.py +19 -0
  9. simo/backups/dynamic_settings.py +21 -0
  10. simo/backups/migrations/0001_initial.py +27 -0
  11. simo/backups/migrations/__init__.py +0 -0
  12. simo/backups/migrations/__pycache__/0001_initial.cpython-38.pyc +0 -0
  13. simo/backups/migrations/__pycache__/__init__.cpython-38.pyc +0 -0
  14. simo/backups/models.py +18 -0
  15. simo/backups/tasks.py +272 -0
  16. simo/core/__pycache__/context.cpython-38.pyc +0 -0
  17. simo/core/__pycache__/dynamic_settings.cpython-38.pyc +0 -0
  18. simo/core/__pycache__/middleware.cpython-38.pyc +0 -0
  19. simo/core/__pycache__/serializers.cpython-38.pyc +0 -0
  20. simo/core/__pycache__/tasks.cpython-38.pyc +0 -0
  21. simo/core/context.py +2 -2
  22. simo/core/middleware.py +16 -0
  23. simo/core/serializers.py +3 -1
  24. simo/core/tasks.py +0 -2
  25. simo/fleet/__pycache__/controllers.cpython-38.pyc +0 -0
  26. simo/fleet/__pycache__/forms.cpython-38.pyc +0 -0
  27. simo/fleet/controllers.py +1 -2
  28. simo/fleet/forms.py +6 -0
  29. simo/generic/__pycache__/forms.cpython-38.pyc +0 -0
  30. simo/generic/__pycache__/socket_consumers.cpython-38.pyc +0 -0
  31. simo/generic/forms.py +4 -2
  32. simo/settings.py +1 -0
  33. simo/users/__pycache__/admin.cpython-38.pyc +0 -0
  34. simo/users/__pycache__/models.cpython-38.pyc +0 -0
  35. simo/users/admin.py +14 -15
  36. simo/users/models.py +22 -20
  37. {simo-2.3.3.dist-info → simo-2.3.5.dist-info}/METADATA +1 -1
  38. {simo-2.3.3.dist-info → simo-2.3.5.dist-info}/RECORD +42 -32
  39. simo/core/templates/admin/formset_widget_old.html +0 -122
  40. simo/core/templates/setup_wizard/clearable_easy_thumbnails_widget.html +0 -15
  41. simo/core/templates/setup_wizard/form.html +0 -225
  42. {simo-2.3.3.dist-info → simo-2.3.5.dist-info}/LICENSE.md +0 -0
  43. {simo-2.3.3.dist-info → simo-2.3.5.dist-info}/WHEEL +0 -0
  44. {simo-2.3.3.dist-info → simo-2.3.5.dist-info}/entry_points.txt +0 -0
  45. {simo-2.3.3.dist-info → simo-2.3.5.dist-info}/top_level.txt +0 -0
@@ -1,225 +0,0 @@
1
- {% load static i18n bootstrap4 %}
2
- <!DOCTYPE html>
3
- <html lang="en">
4
-
5
- <head>
6
- <meta charset="UTF-8">
7
- <title>SIMO.io HUB setup wizard</title>
8
- <link rel="shortcut icon" type="image/png" href="{% static 'logo/favicon_color_bg_w.svg' %}"/>
9
-
10
- <script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script>
11
- <script type="text/javascript" src="{% static 'admin/js/jquery.init.js' %}"></script>
12
- <script>
13
- var $ = django.jQuery;
14
- var jQuery = django.jQuery;
15
- </script>
16
- <script type="text/javascript" src="/admin/jsi18n/"></script>
17
-
18
- <link rel="stylesheet" href="https://simo.io/static/css/bootstrap.min.css">
19
- <link rel="stylesheet" href="{% static 'third_party/fontawesome-pro/css/all.min.css' %}" rel="stylesheet">
20
-
21
- <style>
22
- html, body, form{
23
- height:100%;
24
- }
25
- body{
26
- background-image: url("{% static 'img/setup_bg.jpg' %}");
27
- background-size: cover;
28
- }
29
- #branding{
30
- padding-top: 30px;
31
- padding-left:40px;
32
- height: 15%;
33
- position: relative;
34
- }
35
- #branding img{
36
- width: 160px;
37
- }
38
- #branding .brand_lead{
39
- position: absolute;
40
- top: 46px;
41
- left: 223px;
42
- color: #e2e2e2;
43
- display: block;
44
- text-align: center;
45
- }
46
- .form-group{
47
- text-align:center;
48
- }
49
- .form-group label{
50
- color: #e2e2e2;
51
- font-size: 1.25rem;
52
- display: block;
53
- text-align: center;
54
- }
55
- .form-group .form-control{
56
- color: #e2e2e2;
57
- border-color: #B3B3B3;
58
- background-color: #23252c;
59
- text-align: center;
60
- background-repeat: no-repeat;
61
- background-position: left 0.8rem center;
62
- background-size: calc(.75em + .375rem) calc(.75em + .375rem);
63
- }
64
-
65
- .help-text{
66
- color: #e2e2e2;
67
- }
68
- footer{
69
- height:15%;
70
- padding: 0 50px;
71
- }
72
- footer .c_button{
73
- margin-bottom: 30px
74
- }
75
-
76
- .form-group input.form-control[name=name] {
77
- background-image: url("{% static 'img/icons/home-solid.svg' %}");
78
- }
79
- .form-group .form-control[name=time_zone] {
80
- background-image: url("{% static 'img/icons/clock-regular.svg' %}");
81
- padding-left: 40px;
82
- text-align: left;
83
- }
84
- .mw-wrap{
85
- width: 100% !important;
86
- }
87
- .mw-map-wrapper{
88
- height:450px !important;
89
- }
90
- .mw-map{
91
- height: 440px !important;
92
- }
93
- .mw-coordinates-wrap{
94
- display: none !important;
95
- }
96
- iframe{
97
- height: 80%;
98
- width: 100%;
99
- border: 1px solid #000000;
100
- border-radius: 5px;
101
- background-color: #000000;
102
- box-shadow: 5px 5px 7px #000000;
103
- }
104
- .form-check{
105
- text-align: left;
106
- margin-left: 15px;
107
- }
108
- .form-check-style .form-group{
109
- background-color: #131822;
110
- border-radius: 5px;
111
- border: 1px solid #21262a;
112
- padding: 9px 0;
113
- box-shadow: 5px 5px 7px #000000;
114
- }
115
- .form-check-style .form-group label{
116
- text-align: left;
117
- font-size: 1rem;
118
- }
119
- .btn-secondary{
120
- background: linear-gradient(.45turn,#1e242a,#17191a);
121
- }
122
- .btn-secondary:not([disabled]):not(.disabled).active, .btn-secondary:not([disabled]):not(.disabled):active, .btn-secondary:not([disabled]):not(.disabled):focus, .btn-secondary:not([disabled]):not(.disabled):hover{
123
- background: linear-gradient(#282b2e,#181818 40%,#0e0e0e);
124
- background-color: #000000;
125
- border-color: #000000;
126
- }
127
- #map_location{
128
- width: 100% !important;
129
- height: 400px !important;
130
- }
131
- .location-widget .form-group{
132
- padding: 15px
133
- }
134
- label[for=id_location]{
135
- text-align: center !important;
136
- }
137
- /*input[name=location]{*/
138
- /* display:none;*/
139
- /*}*/
140
- </style>
141
- </head>
142
- <body>
143
- {{ form.media }}
144
- <form method="post" enctype="multipart/form-data">
145
- <div id="branding">
146
- <img src="{% static 'logo/logo_color_bg_b.svg' %}"/>
147
- <span class="brand_lead">hub setup wizard</span>
148
- <div style="float: right; color: white; margin-right: 50px; margin-top: 10px; text-align: right">
149
- Hello, <strong>{{ user.name }}</strong>. <br>
150
- Let's configure you hub!
151
- </div>
152
- </div>
153
-
154
- <div class="container" style="height: 70%">
155
- {% csrf_token %}
156
-
157
- {% if step == 1 %}
158
- <div class="row align-items-center" style="height:100%">
159
- <div class="col-sm-4 offset-sm-4">
160
- {% bootstrap_form form %}
161
- </div>
162
- </div>
163
- <input type="hidden" name="location-guess" id="location-guess">
164
- <script>
165
- var $location_field = $('#location-guess');
166
- function setPosition(position){
167
- $location_field.val(
168
- position.coords.latitude + ', ' + position.coords.longitude
169
- );
170
- console.log($location_field.val());
171
- }
172
- if (navigator.geolocation){
173
- navigator.geolocation.getCurrentPosition(setPosition);
174
- };
175
- </script>
176
- {% elif step == 2 %}
177
- <div style="padding-top:50px"></div>
178
- <span class="form-check-style location-widget">
179
- {% bootstrap_field form.location %}
180
- </span>
181
-
182
- <span class="form-check-style">
183
- {% bootstrap_field form.share_location %}
184
- </span>
185
- <div class="clearfix"></div>
186
- <p class="text-center help-text">
187
- {% blocktrans %}
188
- Location is used for weather, sunset/sunrise and other location related tasks on your HUB.<br>
189
- Please set it accurately.
190
- {% endblocktrans %}
191
- </p>
192
- {% elif step == 3 %}
193
- <div style="padding-top:50px"></div>
194
- <iframe src="https://simo.io/hub-terms/" title="SIMO.io Hub terms and conditions"></iframe>
195
- <br><br>
196
- <span class="form-check-style">
197
- {% bootstrap_form form %}
198
- </span>
199
- {% endif %}
200
- </div>
201
-
202
- <div class="clearfix"></div>
203
- <footer class="d-flex">
204
- {% if step != 1 %}
205
- <div class="mr-auto mt-auto c_button">
206
- <button type="submit" name="back" class="btn btn-secondary">
207
- <i class="fa fa-angle-double-left"></i> {% trans 'Prev' %}
208
- </button>
209
- </div>
210
- {% endif %}
211
- <div class="ml-auto mt-auto c_button">
212
- <button type="submit" class="btn btn-primary">
213
- {% if step == 3 %}
214
- <i class="fa fa-check"></i> {% trans 'Finish' %}
215
- {% else %}
216
- {% trans 'Next' %} <i class="fa fa-angle-double-right"></i>
217
- {% endif %}
218
- </button>
219
- </div>
220
- <div class="clearfix"></div>
221
- </footer>
222
-
223
- </form>
224
- </body>
225
- </html>
File without changes