Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
381 changes: 163 additions & 218 deletions AUTHORS.md

Large diffs are not rendered by default.

89 changes: 89 additions & 0 deletions wger/core/static/css/react-simple-wysiwyg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
This file is part of Workout Manager

Workout Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Workout Manager is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.
*/

/*
* Hack: this is the copied CSS from https://github.com/megahertz/react-simple-wysiwyg
* so that the styles are loaded when loading this in a shadow dom in the django
* application.
*/
.rsw-editor {
border: 1px solid #ddd;
border-radius: 0.375rem;
display: flex;
flex-direction: column;
min-height: 100px;
overflow: hidden;
}

.rsw-ce {
flex: 1 0 auto;
padding: 0.5rem;
}

.rsw-ce:focus {
outline: 1px solid #668;
}

.rsw-ce[contentEditable='true']:empty:not(:focus):before {
content: attr(placeholder);
color: grey;
}

.rsw-html {
background: transparent;
border: none;
font-family: monospace, 'Courier New';
}

.rsw-separator {
align-self: stretch;
border-right: 1px solid #ddd;
display: flex;
margin: 0 3px;
}

.rsw-dd {
box-sizing: border-box;
outline: none;
}

.rsw-btn {
background: transparent;
border: 0;
cursor: pointer;
color: #222;
font-size: 1em;
height: 2em;
outline: none;
padding: 0;
width: 2em;
}

.rsw-btn:hover {
background: #eaeaea;
}

.rsw-btn[data-active='true'] {
background: #e0e0e0;
}

.rsw-toolbar {
align-items: center;
background-color: #f5f5f5;
border-bottom: 1px solid #ddd;
display: flex;
}
31 changes: 31 additions & 0 deletions wger/core/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{% extends "base_wide.html" %}
{% load i18n static wger_extras %}

{% block title %}{% translate "Dashboard" %}{% endblock %}

{# #}
{# Header #}
{# #}
{% block header %}
{% endblock %}



{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4">
<div id="react-routine-dashboard"></div>
</div>

<div class="col-sm-6 col-md-4">
<div id="react-nutrition-dashboard"></div>
</div>

<div class="col-sm-6 col-md-4">
<div id="react-weight-dashboard"></div>
</div>

</div>
</div>
{% endblock %}
Loading