Frontent dev env (#247)

* Added frontend development files/environment

* More items-categories related removals

* Improvements in pages templates (inc. static pages)

* Improvements in video player

* Added empty home page message + cta

* Updates in media, playlist and management pages

* Improvements in material icons font loading

* Replaced media & playlists links in frontend dev-env

* frontend package version update

* chnaged frontend dev url port

* static files update

* Changed default position of theme switcher

* enabled frontend docker container
This commit is contained in:
Yiannis Stergiou
2021-07-11 18:01:34 +03:00
committed by GitHub
parent 060bb45725
commit aa6520daac
555 changed files with 201927 additions and 66002 deletions

View File

@ -14,8 +14,8 @@
{% endblock headermeta %}
{% block topimports %}
<link href="{% static "css/profile-home.css" %}" rel="preload" as="style">
<link href="{% static "css/profile-home.css" %}" rel="stylesheet">
<link href="{% static "css/profile-media.css" %}" rel="preload" as="style">
<link href="{% static "css/profile-media.css" %}" rel="stylesheet">
{%endblock topimports %}
{% block innercontent %}
@ -25,9 +25,9 @@ No such user
{% endblock %}
{% block content %}
{% if user %}<div id="page-profile-home"></div>{% endif %}
{% if user %}<div id="page-profile-media"></div>{% endif %}
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/profile-home.js" %}"></script>
{% endblock bottomimports %}
<script src="{% static "js/profile-media.js" %}"></script>
{% endblock bottomimports %}

View File

@ -1,24 +1,21 @@
MediaCMS.url = {
home: "/",
search: "/search",
search: "/search",
latestMedia: "/latest",
featuredMedia: "/featured",
recommendedMedia: "/recommended",
members: "/members",
/* Error pages */
error404: "/error",
/* Taxonomies pages */
/* Archive pages */
tags: "/tags",
categories: "/categories",
topics: "/topics",
languages: "/languages",
countries: "/countries",
/* User pages */
likedMedia: "/liked",
history: "/history",
/* Add/edit pages */
/* Add pages */
addMedia: "/upload",
/* User account pages */
/* Profile/account edit pages */
editProfile: "{{user.edit_url}}",
{% if request.user.is_authenticated %}
signout: "/accounts/logout/",

View File

@ -21,7 +21,7 @@ MediaCMS.user = {
manageComments: {% if IS_MEDIACMS_ADMIN or IS_MEDIACMS_MANAGER or IS_MEDIACMS_EDITOR %}true{% else %}false{% endif %},
},
pages: {
home: '/user/{{request.user.username}}',
media: '/user/{{request.user.username}}',
about: '/user/{{request.user.username}}/about',
playlists: '/user/{{request.user.username}}/playlists',
}

View File

@ -9,6 +9,11 @@ MediaCMS.features = {
hideLogin: {% if CAN_LOGIN %}false{% else %}true{% endif %},
hideRegister: {% if CAN_REGISTER %}false{% else %}true{% endif %},
},
sideBar: {
hideHomeLink: false,
hideTagsLink: false,
hideCategoriesLink: false,
},
media:{
actions:{
share: {% if CAN_SHARE_MEDIA %}true{% else %}false{% endif %},

View File

@ -6,7 +6,7 @@ MediaCMS.site = {
theme: {
mode: '{{DEFAULT_THEME}}',
switch: {
position: 'header', // Valid values: 'header', 'sidebar'.
position: 'sidebar', // Valid values: 'header', 'sidebar'.
},
},
logo:{