Compare commits
2 Commits
b86a4ddd73
...
2088fedeee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2088fedeee | ||
|
|
6ebb2fbd51 |
@@ -359,6 +359,8 @@ const NatusWheel = (() => {
|
|||||||
const asc = _currentData.houses.asc;
|
const asc = _currentData.houses.asc;
|
||||||
const degrees = {};
|
const degrees = {};
|
||||||
Object.entries(_currentData.planets).forEach(([n, p]) => { degrees[n] = p.degree; });
|
Object.entries(_currentData.planets).forEach(([n, p]) => { degrees[n] = p.degree; });
|
||||||
|
degrees['ASC'] = _currentData.houses.asc;
|
||||||
|
degrees['MC'] = _currentData.houses.mc;
|
||||||
|
|
||||||
const myDeg = degrees[planetName];
|
const myDeg = degrees[planetName];
|
||||||
if (myDeg === undefined) return;
|
if (myDeg === undefined) return;
|
||||||
@@ -634,7 +636,7 @@ const NatusWheel = (() => {
|
|||||||
if (CLASSIC_ELEMENTS.has(item.key)) {
|
if (CLASSIC_ELEMENTS.has(item.key)) {
|
||||||
const contribs = elData.contributors || [];
|
const contribs = elData.contributors || [];
|
||||||
bodyHtml = `<div class="tt-el-body-line">${vecImg} +${count} (${pct}%)</div>`;
|
bodyHtml = `<div class="tt-el-body-line">${vecImg} +${count} (${pct}%)</div>`;
|
||||||
bodyHtml += `<div class="tt-sign-section-header">Planets</div>`;
|
bodyHtml += `<div class="tt-el-formation-header"><span class="tt-el-formation-label">Planets</span> +${contribs.length}</div>`;
|
||||||
if (contribs.length) {
|
if (contribs.length) {
|
||||||
bodyHtml += '<div class="tt-el-contribs">';
|
bodyHtml += '<div class="tt-el-contribs">';
|
||||||
contribs.forEach(c => {
|
contribs.forEach(c => {
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ from apps.applets.models import Applet
|
|||||||
class DashboardMaintenanceTest(FunctionalTest):
|
class DashboardMaintenanceTest(FunctionalTest):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
Applet.objects.get_or_create(slug="new-note", defaults={"name": "New Note"})
|
|
||||||
Applet.objects.get_or_create(slug="username", defaults={"name": "Username"})
|
Applet.objects.get_or_create(slug="username", defaults={"name": "Username"})
|
||||||
Applet.objects.get_or_create(slug="palette", defaults={"name": "Palette"})
|
Applet.objects.get_or_create(slug="palette", defaults={"name": "Palette"})
|
||||||
|
|
||||||
|
|||||||
@@ -40,8 +40,6 @@ class TrayTest(FunctionalTest):
|
|||||||
# media query is correct from first paint.
|
# media query is correct from first paint.
|
||||||
self.browser = self._make_browser(768, 1024)
|
self.browser = self._make_browser(768, 1024)
|
||||||
self.test_server = None
|
self.test_server = None
|
||||||
from apps.applets.models import Applet
|
|
||||||
Applet.objects.get_or_create(slug="new-note", defaults={"name": "New Note"})
|
|
||||||
|
|
||||||
def _switch_to_landscape(self):
|
def _switch_to_landscape(self):
|
||||||
"""Recreate the browser, navigate to about:blank, then resize to
|
"""Recreate the browser, navigate to about:blank, then resize to
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
<script src="{% static "apps/dashboard/dashboard.js" %}"></script>
|
<script src="{% static "apps/dashboard/dashboard.js" %}"></script>
|
||||||
|
<script src="{% static "apps/dashboard/note.js" %}"></script>
|
||||||
<script>
|
<script>
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
initialize("#id_text");
|
initialize("#id_text");
|
||||||
|
|||||||
Reference in New Issue
Block a user