Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/django 3 #480

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
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
2 changes: 0 additions & 2 deletions jet/dashboard/models.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from importlib import import_module
import json
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from jet.utils import LazyDateTimeEncoder


@python_2_unicode_compatible
class UserDashboardModule(models.Model):
title = models.CharField(verbose_name=_('Title'), max_length=255)
module = models.CharField(verbose_name=_('module'), max_length=255)
Expand Down
2 changes: 1 addition & 1 deletion jet/dashboard/templates/admin/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_static jet_dashboard_tags static %}
{% load i18n static jet_dashboard_tags static %}

{% block html %}{% get_dashboard 'index' as dashboard %}{{ block.super }}{% endblock %}

Expand Down
4 changes: 1 addition & 3 deletions jet/models.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from django.db import models
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _


@python_2_unicode_compatible

class Bookmark(models.Model):
url = models.URLField(verbose_name=_('URL'))
title = models.CharField(verbose_name=_('title'), max_length=255)
Expand All @@ -20,7 +19,6 @@ def __str__(self):
return self.title


@python_2_unicode_compatible
class PinnedApplication(models.Model):
app_label = models.CharField(verbose_name=_('application name'), max_length=255)
user = models.PositiveIntegerField(verbose_name=_('user'))
Expand Down
3 changes: 1 addition & 2 deletions jet/static/jet/css/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

div.breadcrumbs {
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
font-family: 'Roboto-Bold';
line-height: $top-height;
color: $top-text-color;
padding: 10px 175px + 20px + 20px 10px 20px;
Expand Down
1 change: 0 additions & 1 deletion jet/static/jet/css/_changeform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,6 @@ form .related-widget-wrapper ul {

.changeform-navigation {
display: none;
float: left;
margin-bottom: 20px;

@include for-mobile {
Expand Down
Empty file added jet/static/jet/css/_font.scss
Empty file.
6 changes: 3 additions & 3 deletions jet/static/jet/css/_object-tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
float: none;
}

li {
display: list-item;
}
// li {
// display: list-item;
// }
}

a.addlink {
Expand Down
2 changes: 1 addition & 1 deletion jet/static/jet/css/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ table {
}

td, th {
padding: 8px;
padding: 10px 5px;
font-size: 13px;
}

Expand Down
3 changes: 1 addition & 2 deletions jet/static/jet/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@

$background-color: #ecf2f6 !default;
$text-color: #6f7e95 !default;
$dim-text-color: #d0dbe6 !default;
$dim-text-color: #919a9e !default;
$error-text-color: #c14747 !default;

$link-color: #47bac1 !default;
$hover-link-color: #639af5 !default;

$font: Arial, sans-serif !default;
$font-size: 14px !default;

$transitions-duration: 0.3s !default;
Expand Down
6 changes: 6 additions & 0 deletions jet/static/jet/css/fonts/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@font-face {
font-family: 'Quicksand';
src: url('Quicksand/Quicksand-Medium.ttf');
font-weight: normal;
font-style: normal;
}
93 changes: 93 additions & 0 deletions jet/static/jet/css/icons/Quicksand/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2011 The Quicksand Project Authors (https://github.com/andrew-paglinawan/QuicksandFamily), with Reserved Font Name “Quicksand”.

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added jet/static/jet/css/icons/Roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added jet/static/jet/css/icons/Roboto/Roboto-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added jet/static/jet/css/icons/Roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file modified jet/static/jet/css/icons/_variables.scss
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/icons/fonts/jet-icons.eot
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/icons/fonts/jet-icons.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified jet/static/jet/css/icons/fonts/jet-icons.ttf
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/icons/fonts/jet-icons.woff
100755 → 100644
Empty file.
39 changes: 39 additions & 0 deletions jet/static/jet/css/icons/style.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,45 @@
font-style: normal;
}

@font-face {
font-family: 'Roboto-Light';
src: url('Roboto/Roboto-Light.ttf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Roboto-Regular';
src: url('Roboto/Roboto-Regular.ttf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Roboto-Bold';
src: url('Roboto/Roboto-Bold.ttf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Roboto-Thin';
src: url('Roboto/Roboto-Thin.ttf');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Quicksand-Medium';
src: url('Quicksand/Quicksand-Medium.ttf');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'SF Pro Display Regular';
font-style: normal;
font-weight: normal;
src: local('SF Pro Display Regular'), url('SF/SFPRODISPLAYREGULAR.woff') format('woff');
}

[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'jet-icons' !important;
Expand Down
Empty file modified jet/static/jet/css/jquery-ui/_jquery-ui.theme.scss
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/select2/_layout.scss
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/select2/_multiple.scss
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/select2/_single.scss
100755 → 100644
Empty file.
23 changes: 22 additions & 1 deletion jet/static/jet/css/themes/default/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* These theme uses default variables at ../_variables.scss
*/
*/
$top-height: 32px !default;
$font: "Quicksand-Medium",sans-serif !default;;
$top-text-color: #465661 !default;
$top-separator-color: #c0d4e8 !default;
$top-link-color: #8296a5 !default;
$top-hover-link-color: #639af5 !default;
$top-border-color: #c0d4e8 !default;
$top-icon-color: #47bac1 !default;

$top-dropdown-background-color: #6f7e95 !default;
$top-dropdown-text-color: #ecf2f6 !default;
$top-dropdown-contrast-background-color: #59677e !default;
$top-dropdown-contrast-text-color: #c0cad8 !default;
$top-dropdown-border-color: #76849a !default;
$top-dropdown-link-color: #ecf2f6 !default;
$top-dropdown-hover-link-color: #ecf2f6 !default;
$top-dropdown-icon-color: #ecf2f6 !default;
$top-dropdown-selected-color: #e5e2a5 !default;

$success-color: #209233;
$text-color: #45505b;
12,081 changes: 12,080 additions & 1 deletion jet/static/jet/css/themes/default/base.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jet/static/jet/css/themes/default/base.css.map

Large diffs are not rendered by default.

Empty file modified jet/static/jet/css/themes/default/jquery-ui.theme.css
100755 → 100644
Empty file.
Empty file modified jet/static/jet/css/themes/default/jquery-ui.theme.scss
100755 → 100644
Empty file.
Loading