Mathias Markl
3 years ago
164 changed files with 1985 additions and 218241 deletions
-
51muk_web_theme/.gitignore
-
165muk_web_theme/LICENSE
-
12muk_web_theme/__init__.py
-
85muk_web_theme/__manifest__.py
-
8muk_web_theme/doc/changelog.rst
-
8muk_web_theme/models/__init__.py
-
15muk_web_theme/models/ir_http.py
-
12muk_web_theme/models/res_company.py
-
303muk_web_theme/models/res_config_settings.py
-
4muk_web_theme/models/res_users.py
-
146muk_web_theme/models/scss_editor.py
-
71muk_web_theme/models/web_editor_assets.py
-
0muk_web_theme/static/img/background.png
-
BINmuk_web_theme/static/img/default_icon.png
-
183muk_web_theme/static/libs/simplebar/simplebar.css
-
4391muk_web_theme/static/libs/simplebar/simplebar.js
-
2muk_web_theme/static/src/colors.scss
-
70muk_web_theme/static/src/components/control_panel.js
-
65muk_web_theme/static/src/components/control_panel.xml
-
202muk_web_theme/static/src/fonts/Noto/LICENSE.txt
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Black.eot
-
12282muk_web_theme/static/src/fonts/Noto/Noto-Black.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Black.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Black.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.eot
-
12580muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Bold.eot
-
12225muk_web_theme/static/src/fonts/Noto/Noto-Bold.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Bold.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Bold.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.eot
-
12575muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Italic.eot
-
12594muk_web_theme/static/src/fonts/Noto/Noto-Italic.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Italic.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Italic.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Light.eot
-
12045muk_web_theme/static/src/fonts/Noto/Noto-Light.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Light.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Light.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-LightItalic.eot
-
12610muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-LightItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-LightItalic.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Medium.eot
-
12193muk_web_theme/static/src/fonts/Noto/Noto-Medium.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Medium.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Medium.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.eot
-
12580muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Regular.eot
-
12169muk_web_theme/static/src/fonts/Noto/Noto-Regular.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Regular.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Regular.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Thin.eot
-
12237muk_web_theme/static/src/fonts/Noto/Noto-Thin.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Thin.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-Thin.woff
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.eot
-
12702muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.svg
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.woff
-
202muk_web_theme/static/src/fonts/Roboto/LICENSE.txt
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Black.eot
-
5333muk_web_theme/static/src/fonts/Roboto/Roboto-Black.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Black.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Black.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.eot
-
5333muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Bold.eot
-
5333muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Bold.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Bold.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.eot
-
5333muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Italic.eot
-
4956muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Italic.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Italic.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Light.eot
-
4956muk_web_theme/static/src/fonts/Roboto/Roboto-Light.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Light.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Light.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.eot
-
4956muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.ttf
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.woff
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Medium.eot
-
5333muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.svg
-
BINmuk_web_theme/static/src/fonts/Roboto/Roboto-Medium.ttf
@ -1,51 +0,0 @@ |
|||
# Byte-compiled / optimized / DLL files |
|||
__pycache__/ |
|||
*.py[cod] |
|||
|
|||
# C extensions |
|||
*.so |
|||
|
|||
# Distribution / packaging |
|||
.Python |
|||
env/ |
|||
bin/ |
|||
develop-eggs/ |
|||
dist/ |
|||
eggs/ |
|||
parts/ |
|||
sdist/ |
|||
var/ |
|||
*.egg-info/ |
|||
.installed.cfg |
|||
*.egg |
|||
*.eggs |
|||
|
|||
# Installer logs |
|||
pip-log.txt |
|||
pip-delete-this-directory.txt |
|||
|
|||
# Unit test / coverage reports |
|||
htmlcov/ |
|||
.tox/ |
|||
.coverage |
|||
.cache |
|||
nosetests.xml |
|||
coverage.xml |
|||
|
|||
# Pycharm |
|||
.idea |
|||
|
|||
# Eclipse |
|||
.project |
|||
.pydevproject |
|||
.settings/ |
|||
|
|||
# Rope |
|||
.ropeproject |
|||
|
|||
# Sphinx documentation |
|||
docs/_build/ |
|||
|
|||
# Backup files |
|||
*~ |
|||
*.swp |
@ -1,165 +0,0 @@ |
|||
GNU LESSER GENERAL PUBLIC LICENSE |
|||
Version 3, 29 June 2007 |
|||
|
|||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> |
|||
Everyone is permitted to copy and distribute verbatim copies |
|||
of this license document, but changing it is not allowed. |
|||
|
|||
|
|||
This version of the GNU Lesser General Public License incorporates |
|||
the terms and conditions of version 3 of the GNU General Public |
|||
License, supplemented by the additional permissions listed below. |
|||
|
|||
0. Additional Definitions. |
|||
|
|||
As used herein, "this License" refers to version 3 of the GNU Lesser |
|||
General Public License, and the "GNU GPL" refers to version 3 of the GNU |
|||
General Public License. |
|||
|
|||
"The Library" refers to a covered work governed by this License, |
|||
other than an Application or a Combined Work as defined below. |
|||
|
|||
An "Application" is any work that makes use of an interface provided |
|||
by the Library, but which is not otherwise based on the Library. |
|||
Defining a subclass of a class defined by the Library is deemed a mode |
|||
of using an interface provided by the Library. |
|||
|
|||
A "Combined Work" is a work produced by combining or linking an |
|||
Application with the Library. The particular version of the Library |
|||
with which the Combined Work was made is also called the "Linked |
|||
Version". |
|||
|
|||
The "Minimal Corresponding Source" for a Combined Work means the |
|||
Corresponding Source for the Combined Work, excluding any source code |
|||
for portions of the Combined Work that, considered in isolation, are |
|||
based on the Application, and not on the Linked Version. |
|||
|
|||
The "Corresponding Application Code" for a Combined Work means the |
|||
object code and/or source code for the Application, including any data |
|||
and utility programs needed for reproducing the Combined Work from the |
|||
Application, but excluding the System Libraries of the Combined Work. |
|||
|
|||
1. Exception to Section 3 of the GNU GPL. |
|||
|
|||
You may convey a covered work under sections 3 and 4 of this License |
|||
without being bound by section 3 of the GNU GPL. |
|||
|
|||
2. Conveying Modified Versions. |
|||
|
|||
If you modify a copy of the Library, and, in your modifications, a |
|||
facility refers to a function or data to be supplied by an Application |
|||
that uses the facility (other than as an argument passed when the |
|||
facility is invoked), then you may convey a copy of the modified |
|||
version: |
|||
|
|||
a) under this License, provided that you make a good faith effort to |
|||
ensure that, in the event an Application does not supply the |
|||
function or data, the facility still operates, and performs |
|||
whatever part of its purpose remains meaningful, or |
|||
|
|||
b) under the GNU GPL, with none of the additional permissions of |
|||
this License applicable to that copy. |
|||
|
|||
3. Object Code Incorporating Material from Library Header Files. |
|||
|
|||
The object code form of an Application may incorporate material from |
|||
a header file that is part of the Library. You may convey such object |
|||
code under terms of your choice, provided that, if the incorporated |
|||
material is not limited to numerical parameters, data structure |
|||
layouts and accessors, or small macros, inline functions and templates |
|||
(ten or fewer lines in length), you do both of the following: |
|||
|
|||
a) Give prominent notice with each copy of the object code that the |
|||
Library is used in it and that the Library and its use are |
|||
covered by this License. |
|||
|
|||
b) Accompany the object code with a copy of the GNU GPL and this license |
|||
document. |
|||
|
|||
4. Combined Works. |
|||
|
|||
You may convey a Combined Work under terms of your choice that, |
|||
taken together, effectively do not restrict modification of the |
|||
portions of the Library contained in the Combined Work and reverse |
|||
engineering for debugging such modifications, if you also do each of |
|||
the following: |
|||
|
|||
a) Give prominent notice with each copy of the Combined Work that |
|||
the Library is used in it and that the Library and its use are |
|||
covered by this License. |
|||
|
|||
b) Accompany the Combined Work with a copy of the GNU GPL and this license |
|||
document. |
|||
|
|||
c) For a Combined Work that displays copyright notices during |
|||
execution, include the copyright notice for the Library among |
|||
these notices, as well as a reference directing the user to the |
|||
copies of the GNU GPL and this license document. |
|||
|
|||
d) Do one of the following: |
|||
|
|||
0) Convey the Minimal Corresponding Source under the terms of this |
|||
License, and the Corresponding Application Code in a form |
|||
suitable for, and under terms that permit, the user to |
|||
recombine or relink the Application with a modified version of |
|||
the Linked Version to produce a modified Combined Work, in the |
|||
manner specified by section 6 of the GNU GPL for conveying |
|||
Corresponding Source. |
|||
|
|||
1) Use a suitable shared library mechanism for linking with the |
|||
Library. A suitable mechanism is one that (a) uses at run time |
|||
a copy of the Library already present on the user's computer |
|||
system, and (b) will operate properly with a modified version |
|||
of the Library that is interface-compatible with the Linked |
|||
Version. |
|||
|
|||
e) Provide Installation Information, but only if you would otherwise |
|||
be required to provide such information under section 6 of the |
|||
GNU GPL, and only to the extent that such information is |
|||
necessary to install and execute a modified version of the |
|||
Combined Work produced by recombining or relinking the |
|||
Application with a modified version of the Linked Version. (If |
|||
you use option 4d0, the Installation Information must accompany |
|||
the Minimal Corresponding Source and Corresponding Application |
|||
Code. If you use option 4d1, you must provide the Installation |
|||
Information in the manner specified by section 6 of the GNU GPL |
|||
for conveying Corresponding Source.) |
|||
|
|||
5. Combined Libraries. |
|||
|
|||
You may place library facilities that are a work based on the |
|||
Library side by side in a single library together with other library |
|||
facilities that are not Applications and are not covered by this |
|||
License, and convey such a combined library under terms of your |
|||
choice, if you do both of the following: |
|||
|
|||
a) Accompany the combined library with a copy of the same work based |
|||
on the Library, uncombined with any other library facilities, |
|||
conveyed under the terms of this License. |
|||
|
|||
b) Give prominent notice with the combined library that part of it |
|||
is a work based on the Library, and explaining where to find the |
|||
accompanying uncombined form of the same work. |
|||
|
|||
6. Revised Versions of the GNU Lesser General Public License. |
|||
|
|||
The Free Software Foundation may publish revised and/or new versions |
|||
of the GNU Lesser General Public License from time to time. Such new |
|||
versions will be similar in spirit to the present version, but may |
|||
differ in detail to address new problems or concerns. |
|||
|
|||
Each version is given a distinguishing version number. If the |
|||
Library as you received it specifies that a certain numbered version |
|||
of the GNU Lesser General Public License "or any later version" |
|||
applies to it, you have the option of following the terms and |
|||
conditions either of that published version or of any later version |
|||
published by the Free Software Foundation. If the Library as you |
|||
received it does not specify a version number of the GNU Lesser |
|||
General Public License, you may choose any version of the GNU Lesser |
|||
General Public License ever published by the Free Software Foundation. |
|||
|
|||
If the Library as you received it specifies that a proxy can decide |
|||
whether future versions of the GNU Lesser General Public License shall |
|||
apply, that proxy's public statement of acceptance of any version is |
|||
permanent authorization for you to choose that version for the |
|||
Library. |
@ -1,4 +1,4 @@ |
|||
`1.0.0` |
|||
------- |
|||
|
|||
- Init version |
|||
`1.0.0` |
|||
------- |
|||
|
|||
- Init version |
@ -1,154 +1,149 @@ |
|||
################################################################################### |
|||
# |
|||
# Copyright (c) 2017-today MuK IT GmbH. |
|||
# |
|||
# This file is part of MuK Grid Snippets |
|||
# (see https://mukit.at). |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Lesser General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program 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 Lesser General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Lesser General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
import re |
|||
import uuid |
|||
import base64 |
|||
|
|||
from odoo import api, fields, models |
|||
|
|||
XML_ID = "muk_web_theme._assets_primary_variables" |
|||
SCSS_URL = "/muk_web_theme/static/src/scss/colors.scss" |
|||
|
|||
|
|||
class ResConfigSettings(models.TransientModel): |
|||
|
|||
_inherit = 'res.config.settings' |
|||
|
|||
#---------------------------------------------------------- |
|||
# Database |
|||
#---------------------------------------------------------- |
|||
|
|||
theme_favicon = fields.Binary( |
|||
related="company_id.favicon", |
|||
readonly=False |
|||
) |
|||
|
|||
theme_background_image = fields.Binary( |
|||
related="company_id.background_image", |
|||
readonly=False |
|||
) |
|||
|
|||
theme_background_blend_mode = fields.Selection( |
|||
related="company_id.background_blend_mode", |
|||
readonly=False |
|||
) |
|||
|
|||
theme_default_sidebar_preference = fields.Selection( |
|||
related="company_id.default_sidebar_preference", |
|||
readonly=False |
|||
) |
|||
|
|||
theme_default_chatter_preference = fields.Selection( |
|||
related="company_id.default_chatter_preference", |
|||
readonly=False |
|||
) |
|||
|
|||
theme_color_brand = fields.Char( |
|||
string="Theme Brand Color" |
|||
) |
|||
|
|||
theme_color_primary = fields.Char( |
|||
string="Theme Primary Color" |
|||
) |
|||
|
|||
theme_color_required = fields.Char( |
|||
string="Theme Required Color" |
|||
) |
|||
|
|||
theme_color_menu = fields.Char( |
|||
string="Theme Menu Color" |
|||
) |
|||
|
|||
theme_color_appbar_color = fields.Char( |
|||
string="Theme AppBar Color" |
|||
) |
|||
|
|||
theme_color_appbar_background = fields.Char( |
|||
string="Theme AppBar Background" |
|||
) |
|||
|
|||
#---------------------------------------------------------- |
|||
# Functions |
|||
#---------------------------------------------------------- |
|||
|
|||
def set_values(self): |
|||
res = super(ResConfigSettings, self).set_values() |
|||
param = self.env['ir.config_parameter'].sudo() |
|||
variables = [ |
|||
'o-brand-odoo', |
|||
'o-brand-primary', |
|||
'mk-required-color', |
|||
'mk-apps-color', |
|||
'mk-appbar-color', |
|||
'mk-appbar-background', |
|||
] |
|||
colors = self.env['muk_web_theme.scss_editor'].get_values( |
|||
SCSS_URL, XML_ID, variables |
|||
) |
|||
colors_changed = [] |
|||
colors_changed.append(self.theme_color_brand != colors['o-brand-odoo']) |
|||
colors_changed.append(self.theme_color_primary != colors['o-brand-primary']) |
|||
colors_changed.append(self.theme_color_required != colors['mk-required-color']) |
|||
colors_changed.append(self.theme_color_menu != colors['mk-apps-color']) |
|||
colors_changed.append(self.theme_color_appbar_color != colors['mk-appbar-color']) |
|||
colors_changed.append(self.theme_color_appbar_background != colors['mk-appbar-background']) |
|||
if(any(colors_changed)): |
|||
variables = [ |
|||
{'name': 'o-brand-odoo', 'value': self.theme_color_brand or "#243742"}, |
|||
{'name': 'o-brand-primary', 'value': self.theme_color_primary or "#5D8DA8"}, |
|||
{'name': 'mk-required-color', 'value': self.theme_color_required or "#d1dfe6"}, |
|||
{'name': 'mk-apps-color', 'value': self.theme_color_menu or "#f8f9fa"}, |
|||
{'name': 'mk-appbar-color', 'value': self.theme_color_appbar_color or "#dee2e6"}, |
|||
{'name': 'mk-appbar-background', 'value': self.theme_color_appbar_background or "#000000"}, |
|||
] |
|||
self.env['muk_web_theme.scss_editor'].replace_values( |
|||
SCSS_URL, XML_ID, variables |
|||
) |
|||
param.set_param('muk_web_theme.background_blend_mode', self.theme_background_blend_mode) |
|||
return res |
|||
|
|||
@api.model |
|||
def get_values(self): |
|||
res = super(ResConfigSettings, self).get_values() |
|||
params = self.env['ir.config_parameter'].sudo() |
|||
variables = [ |
|||
'o-brand-odoo', |
|||
'o-brand-primary', |
|||
'mk-required-color', |
|||
'mk-apps-color', |
|||
'mk-appbar-color', |
|||
'mk-appbar-background', |
|||
] |
|||
colors = self.env['muk_web_theme.scss_editor'].get_values( |
|||
SCSS_URL, XML_ID, variables |
|||
) |
|||
res.update({ |
|||
'theme_color_brand': colors['o-brand-odoo'], |
|||
'theme_color_primary': colors['o-brand-primary'], |
|||
'theme_color_required': colors['mk-required-color'], |
|||
'theme_color_menu': colors['mk-apps-color'], |
|||
'theme_color_appbar_color': colors['mk-appbar-color'], |
|||
'theme_color_appbar_background': colors['mk-appbar-background'], |
|||
'theme_background_blend_mode': params.get_param('muk_web_theme.background_blend_mode', 'normal'), |
|||
}) |
|||
return res |
|||
################################################################################### |
|||
# |
|||
# Copyright (c) 2017-today MuK IT GmbH. |
|||
# |
|||
# This file is part of MuK Theme |
|||
# (see https://mukit.at). |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Lesser General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program 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 Lesser General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Lesser General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
import re |
|||
import uuid |
|||
import base64 |
|||
|
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class ResConfigSettings(models.TransientModel): |
|||
|
|||
_inherit = 'res.config.settings' |
|||
|
|||
#---------------------------------------------------------- |
|||
# Database |
|||
#---------------------------------------------------------- |
|||
|
|||
theme_favicon = fields.Binary( |
|||
related='company_id.favicon', |
|||
readonly=False |
|||
) |
|||
|
|||
theme_background_image = fields.Binary( |
|||
related='company_id.background_image', |
|||
readonly=False |
|||
) |
|||
|
|||
theme_background_blend_mode = fields.Selection( |
|||
related='company_id.background_blend_mode', |
|||
readonly=False |
|||
) |
|||
|
|||
theme_default_sidebar_preference = fields.Selection( |
|||
related='company_id.default_sidebar_preference', |
|||
readonly=False |
|||
) |
|||
|
|||
theme_default_chatter_preference = fields.Selection( |
|||
related='company_id.default_chatter_preference', |
|||
readonly=False |
|||
) |
|||
|
|||
theme_color_brand = fields.Char( |
|||
string='Theme Brand Color' |
|||
) |
|||
|
|||
theme_color_primary = fields.Char( |
|||
string='Theme Primary Color' |
|||
) |
|||
|
|||
theme_color_required = fields.Char( |
|||
string='Theme Required Color' |
|||
) |
|||
|
|||
theme_color_menu = fields.Char( |
|||
string='Theme Menu Color' |
|||
) |
|||
|
|||
theme_color_appbar_color = fields.Char( |
|||
string='Theme AppBar Color' |
|||
) |
|||
|
|||
theme_color_appbar_background = fields.Char( |
|||
string='Theme AppBar Background' |
|||
) |
|||
|
|||
#---------------------------------------------------------- |
|||
# Functions |
|||
#---------------------------------------------------------- |
|||
|
|||
def set_values(self): |
|||
res = super(ResConfigSettings, self).set_values() |
|||
param = self.env['ir.config_parameter'].sudo() |
|||
variables = [ |
|||
'o-brand-odoo', |
|||
'o-brand-primary', |
|||
'mk-required-color', |
|||
'mk-apps-color', |
|||
'mk-appbar-color', |
|||
'mk-appbar-background', |
|||
] |
|||
colors = self.env['web_editor.assets'].get_variables_values( |
|||
'/muk_web_theme/static/src/colors.scss', 'web._assets_primary_variables', variables |
|||
) |
|||
colors_changed = [] |
|||
colors_changed.append(self.theme_color_brand != colors['o-brand-odoo']) |
|||
colors_changed.append(self.theme_color_primary != colors['o-brand-primary']) |
|||
colors_changed.append(self.theme_color_required != colors['mk-required-color']) |
|||
colors_changed.append(self.theme_color_menu != colors['mk-apps-color']) |
|||
colors_changed.append(self.theme_color_appbar_color != colors['mk-appbar-color']) |
|||
colors_changed.append(self.theme_color_appbar_background != colors['mk-appbar-background']) |
|||
if(any(colors_changed)): |
|||
variables = [ |
|||
{'name': 'o-brand-odoo', 'value': self.theme_color_brand or "#243742"}, |
|||
{'name': 'o-brand-primary', 'value': self.theme_color_primary or "#5D8DA8"}, |
|||
{'name': 'mk-required-color', 'value': self.theme_color_required or "#d1dfe6"}, |
|||
{'name': 'mk-apps-color', 'value': self.theme_color_menu or "#f8f9fa"}, |
|||
{'name': 'mk-appbar-color', 'value': self.theme_color_appbar_color or "#dee2e6"}, |
|||
{'name': 'mk-appbar-background', 'value': self.theme_color_appbar_background or "#000000"}, |
|||
] |
|||
self.env['web_editor.assets'].replace_variables_values( |
|||
'/muk_web_theme/static/src/colors.scss', 'web._assets_primary_variables', variables |
|||
) |
|||
return res |
|||
|
|||
@api.model |
|||
def get_values(self): |
|||
res = super(ResConfigSettings, self).get_values() |
|||
params = self.env['ir.config_parameter'].sudo() |
|||
variables = [ |
|||
'o-brand-odoo', |
|||
'o-brand-primary', |
|||
'mk-required-color', |
|||
'mk-apps-color', |
|||
'mk-appbar-color', |
|||
'mk-appbar-background', |
|||
] |
|||
colors = self.env['web_editor.assets'].get_variables_values( |
|||
'/muk_web_theme/static/src/colors.scss', 'web._assets_primary_variables', variables |
|||
) |
|||
res.update({ |
|||
'theme_color_brand': colors['o-brand-odoo'], |
|||
'theme_color_primary': colors['o-brand-primary'], |
|||
'theme_color_required': colors['mk-required-color'], |
|||
'theme_color_menu': colors['mk-apps-color'], |
|||
'theme_color_appbar_color': colors['mk-appbar-color'], |
|||
'theme_color_appbar_background': colors['mk-appbar-background'], |
|||
}) |
|||
return res |
@ -1,146 +0,0 @@ |
|||
################################################################################### |
|||
# |
|||
# Copyright (c) 2017-today MuK IT GmbH. |
|||
# |
|||
# This file is part of MuK Grid Snippets |
|||
# (see https://mukit.at). |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Lesser General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program 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 Lesser General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Lesser General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
import re |
|||
import uuid |
|||
import base64 |
|||
|
|||
from odoo import models, fields, api |
|||
from odoo.modules import module |
|||
|
|||
|
|||
class ScssEditor(models.AbstractModel): |
|||
_name = 'muk_web_theme.scss_editor' |
|||
_description = 'Scss Editor' |
|||
|
|||
# ---------------------------------------------------------- |
|||
# Helper |
|||
# ---------------------------------------------------------- |
|||
|
|||
def _build_custom_url(self, url_parts, xmlid): |
|||
return "%s.custom.%s.%s" % (url_parts[0], xmlid, url_parts[1]) |
|||
|
|||
def _get_custom_url(self, url, xmlid): |
|||
return self._build_custom_url(url.rsplit(".", 1), xmlid) |
|||
|
|||
def _get_custom_attachment(self, url): |
|||
return self.env["ir.attachment"].with_context( |
|||
bin_size=False, bin_size_datas=False |
|||
).search([("url", '=', url)], limit=1) |
|||
|
|||
def _get_custom_view(self, url): |
|||
return self.env["ir.ui.view"].search([("name", '=', url)]) |
|||
|
|||
def _get_variable(self, content, variable): |
|||
regex = r'{0}\:?\s(.*?);'.format(variable) |
|||
value = re.search(regex, content) |
|||
return value and value.group(1) |
|||
|
|||
def _get_variables(self, content, variables): |
|||
return {var: self._get_variable(content, var) for var in variables} |
|||
|
|||
def _replace_variables(self, content, variables): |
|||
for variable in variables: |
|||
variable_content = '{0}: {1};'.format( |
|||
variable['name'], |
|||
variable['value'] |
|||
) |
|||
regex = r'{0}\:?\s(.*?);'.format(variable['name']) |
|||
content = re.sub(regex, variable_content, content) |
|||
return content |
|||
|
|||
# ---------------------------------------------------------- |
|||
# Read |
|||
# ---------------------------------------------------------- |
|||
|
|||
def get_content(self, url, xmlid): |
|||
custom_url = self._get_custom_url(url, xmlid) |
|||
custom_attachment = self._get_custom_attachment(custom_url) |
|||
if custom_attachment.exists(): |
|||
return base64.b64decode(custom_attachment.datas).decode('utf-8') |
|||
else: |
|||
match = re.compile("^/(\w+)/(.+?)(\.custom\.(.+))?\.(\w+)$").match(url) |
|||
module_path = module.get_module_path(match.group(1)) |
|||
resource_path = "%s.%s" % (match.group(2), match.group(5)) |
|||
module_resource_path = module.get_resource_path(module_path, resource_path) |
|||
with open(module_resource_path, "rb") as file: |
|||
return file.read().decode('utf-8') |
|||
|
|||
def get_values(self, url, xmlid, variables): |
|||
return self._get_variables(self.get_content(url, xmlid), variables) |
|||
|
|||
# ---------------------------------------------------------- |
|||
# Write |
|||
# ---------------------------------------------------------- |
|||
|
|||
def replace_content(self, url, xmlid, content): |
|||
custom_url = self._get_custom_url(url, xmlid) |
|||
custom_view = self._get_custom_view(custom_url) |
|||
custom_attachment = self._get_custom_attachment(custom_url) |
|||
datas = base64.b64encode((content or "\n").encode("utf-8")) |
|||
if custom_attachment.exists(): |
|||
custom_attachment.write({"datas": datas}) |
|||
else: |
|||
self.env["ir.attachment"].create({ |
|||
'name': custom_url, |
|||
'type': "binary", |
|||
'mimetype': "text/scss", |
|||
'datas': datas, |
|||
# TODO: old field datas_fname got removed, check if store_fname is correct and write migration |
|||
'store_fname': url.split("/")[-1], |
|||
'url': custom_url, |
|||
}) |
|||
if not custom_view.exists(): |
|||
view_to_xpath = self.env["ir.ui.view"].get_related_views( |
|||
xmlid, bundles=True |
|||
).filtered(lambda v: v.arch.find(url) >= 0) |
|||
self.env["ir.ui.view"].create({ |
|||
'name': custom_url, |
|||
'key': 'web_editor.scss_%s' % str(uuid.uuid4())[:6], |
|||
'mode': "extension", |
|||
'priority': view_to_xpath.priority, |
|||
'inherit_id': view_to_xpath.id, |
|||
'arch': """ |
|||
<data inherit_id="%(inherit_xml_id)s" name="%(name)s"> |
|||
<xpath expr="//link[@href='%(url_to_replace)s']" position="attributes"> |
|||
<attribute name="href">%(new_url)s</attribute> |
|||
</xpath> |
|||
</data> |
|||
""" % { |
|||
'inherit_xml_id': view_to_xpath.xml_id, |
|||
'name': custom_url, |
|||
'url_to_replace': url, |
|||
'new_url': custom_url, |
|||
} |
|||
}) |
|||
self.env["ir.qweb"].clear_caches() |
|||
|
|||
def replace_values(self, url, xmlid, variables): |
|||
content = self._replace_variables( |
|||
self.get_content(url, xmlid), variables |
|||
) |
|||
self.replace_content(url, xmlid, content) |
|||
|
|||
def reset_values(self, url, xmlid): |
|||
custom_url = self._get_custom_url(url, xmlid) |
|||
self._get_custom_attachment(custom_url).unlink() |
|||
self._get_custom_view(custom_url).unlink() |
@ -0,0 +1,71 @@ |
|||
################################################################################### |
|||
# |
|||
# Copyright (c) 2017-today MuK IT GmbH. |
|||
# |
|||
# This file is part of MuK Theme |
|||
# (see https://mukit.at). |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Lesser General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program 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 Lesser General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Lesser General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
import re |
|||
import uuid |
|||
import base64 |
|||
|
|||
from odoo import models, fields, api |
|||
from odoo.modules import module |
|||
|
|||
|
|||
class ScssEditor(models.AbstractModel): |
|||
|
|||
_inherit = 'web_editor.assets' |
|||
|
|||
# ---------------------------------------------------------- |
|||
# Helper |
|||
# ---------------------------------------------------------- |
|||
|
|||
def _get_variable(self, content, variable): |
|||
regex = r'{0}\:?\s(.*?);'.format(variable) |
|||
value = re.search(regex, content) |
|||
return value and value.group(1) |
|||
|
|||
def _get_variables(self, content, variables): |
|||
return {var: self._get_variable(content, var) for var in variables} |
|||
|
|||
def _replace_variables(self, content, variables): |
|||
for variable in variables: |
|||
variable_content = '{0}: {1};'.format( |
|||
variable['name'], |
|||
variable['value'] |
|||
) |
|||
regex = r'{0}\:?\s(.*?);'.format(variable['name']) |
|||
content = re.sub(regex, variable_content, content) |
|||
return content |
|||
|
|||
# ---------------------------------------------------------- |
|||
# Functions |
|||
# ---------------------------------------------------------- |
|||
|
|||
def get_variables_values(self, url, bundle, variables): |
|||
custom_url = self.make_custom_asset_file_url(url, bundle) |
|||
content = self.get_asset_content(custom_url) |
|||
if not content: |
|||
content = self.get_asset_content(url) |
|||
return self._get_variables(content.decode('utf-8'), variables) |
|||
|
|||
def replace_variables_values(self, url, bundle, variables): |
|||
original = self.get_asset_content(url).decode('utf-8') |
|||
content = self._replace_variables(original, variables) |
|||
self.save_asset(url, bundle, content, 'scss') |
Before Width: 1600 | Height: 900 | Size: 494 KiB After Width: 1600 | Height: 900 | Size: 494 KiB |
After Width: 300 | Height: 300 | Size: 32 KiB |
@ -1,183 +0,0 @@ |
|||
[data-simplebar] { |
|||
position: relative; |
|||
flex-direction: column; |
|||
flex-wrap: wrap; |
|||
justify-content: flex-start; |
|||
align-content: flex-start; |
|||
align-items: flex-start; |
|||
width: inherit; |
|||
height: inherit; |
|||
max-width: inherit; |
|||
max-height: inherit; |
|||
} |
|||
|
|||
.simplebar-wrapper { |
|||
overflow: hidden; |
|||
width: inherit; |
|||
height: inherit; |
|||
max-width: inherit; |
|||
max-height: inherit; |
|||
} |
|||
|
|||
.simplebar-mask { |
|||
direction: inherit; |
|||
position: absolute; |
|||
overflow: hidden; |
|||
padding: 0; |
|||
margin: 0; |
|||
left: 0; |
|||
top: 0; |
|||
bottom: 0; |
|||
right: 0; |
|||
width: auto !important; |
|||
height: auto !important; |
|||
z-index: 0; |
|||
} |
|||
|
|||
.simplebar-offset { |
|||
direction: inherit !important; |
|||
box-sizing: inherit !important; |
|||
resize: none !important; |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
bottom: 0; |
|||
right: 0; |
|||
padding: 0; |
|||
margin: 0; |
|||
-webkit-overflow-scrolling: touch; |
|||
} |
|||
|
|||
.simplebar-content { |
|||
direction: inherit; |
|||
box-sizing: border-box !important; |
|||
position: relative; |
|||
display: block; |
|||
height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */ |
|||
width: auto; |
|||
visibility: visible; |
|||
overflow: scroll; /* Scroll on this element otherwise element can't have a padding applied properly */ |
|||
max-width: 100%; /* Not required for horizontal scroll to trigger */ |
|||
max-height: 100%; /* Needed for vertical scroll to trigger */ |
|||
} |
|||
|
|||
.simplebar-placeholder { |
|||
max-height: 100%; |
|||
max-width: 100%; |
|||
width: 100%; |
|||
pointer-events: none; |
|||
} |
|||
|
|||
.simplebar-height-auto-observer-wrapper { |
|||
box-sizing: inherit !important; |
|||
height: 100%; |
|||
width: inherit; |
|||
max-width: 1px; |
|||
position: relative; |
|||
float: left; |
|||
max-height: 1px; |
|||
overflow: hidden; |
|||
z-index: -1; |
|||
padding: 0; |
|||
margin: 0; |
|||
pointer-events: none; |
|||
flex-grow: inherit; |
|||
flex-shrink: 0; |
|||
flex-basis: 0; |
|||
} |
|||
|
|||
.simplebar-height-auto-observer { |
|||
box-sizing: inherit; |
|||
display: block; |
|||
opacity: 0; |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
height: 1000%; |
|||
width: 1000%; |
|||
min-height: 1px; |
|||
min-width: 1px; |
|||
overflow: hidden; |
|||
pointer-events: none; |
|||
z-index: -1; |
|||
} |
|||
|
|||
.simplebar-track { |
|||
z-index: 1; |
|||
position: absolute; |
|||
right: 0; |
|||
bottom: 0; |
|||
pointer-events: none; |
|||
} |
|||
|
|||
.simplebar-scrollbar { |
|||
position: absolute; |
|||
right: 2px; |
|||
width: 7px; |
|||
min-height: 10px; |
|||
} |
|||
|
|||
.simplebar-scrollbar:before { |
|||
position: absolute; |
|||
content: ""; |
|||
background: black; |
|||
border-radius: 7px; |
|||
left: 0; |
|||
right: 0; |
|||
opacity: 0; |
|||
transition: opacity 0.2s linear; |
|||
} |
|||
|
|||
.simplebar-track .simplebar-scrollbar.simplebar-visible:before { |
|||
/* When hovered, remove all transitions from drag handle */ |
|||
opacity: 0.5; |
|||
transition: opacity 0s linear; |
|||
} |
|||
|
|||
.simplebar-track.simplebar-vertical { |
|||
top: 0; |
|||
width: 11px; |
|||
} |
|||
|
|||
.simplebar-track.simplebar-vertical .simplebar-scrollbar:before { |
|||
top: 2px; |
|||
bottom: 2px; |
|||
} |
|||
|
|||
.simplebar-track.simplebar-horizontal { |
|||
left: 0; |
|||
height: 11px; |
|||
} |
|||
|
|||
.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before { |
|||
height: 100%; |
|||
left: 2px; |
|||
right: 2px; |
|||
} |
|||
|
|||
.simplebar-track.simplebar-horizontal .simplebar-scrollbar { |
|||
right: auto; |
|||
left: 0; |
|||
top: 2px; |
|||
height: 7px; |
|||
min-height: 0; |
|||
min-width: 10px; |
|||
width: auto; |
|||
} |
|||
|
|||
/* Rtl support */ |
|||
[data-simplebar-direction="rtl"] .simplebar-track.simplebar-vertical { |
|||
right: auto; |
|||
left: 0; |
|||
} |
|||
|
|||
.hs-dummy-scrollbar-size { |
|||
direction: rtl; |
|||
position: fixed; |
|||
opacity: 0; |
|||
visibility: hidden; |
|||
height: 500px; |
|||
width: 500px; |
|||
overflow-y: hidden; |
|||
overflow-x: scroll; |
|||
} |
4391
muk_web_theme/static/libs/simplebar/simplebar.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,70 +0,0 @@ |
|||
/********************************************************************************** |
|||
* |
|||
* Copyright (c) 2017-today MuK IT GmbH. |
|||
* |
|||
* This file is part of MuK Grid Snippets |
|||
* (see https://mukit.at).
|
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU Lesser General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* |
|||
* This program 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 Lesser General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU Lesser General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
* |
|||
**********************************************************************************/ |
|||
|
|||
odoo.define('muk_web_theme.ControlPanel', function (require) { |
|||
"use strict"; |
|||
|
|||
const ControlPanel = require('web.ControlPanel'); |
|||
const config = require('web.config'); |
|||
|
|||
const { useState } = owl.hooks; |
|||
|
|||
if (!config.device.isMobile) { |
|||
return; |
|||
} |
|||
|
|||
ControlPanel.patch('muk_web_theme.ControlPanel', T => { |
|||
|
|||
class ControlPanelPatch extends T { |
|||
constructor() { |
|||
super(...arguments); |
|||
this.state = useState({ |
|||
showViewSwitcherButtons: false, |
|||
}); |
|||
this.isMobile = true; |
|||
} |
|||
mounted() { |
|||
super.mounted(); |
|||
this.onWindowClickEvent = this._onWindowClick.bind(this); |
|||
window.addEventListener('click', this.onWindowClickEvent); |
|||
} |
|||
willUnmount() { |
|||
super.willUnmount(); |
|||
window.removeEventListener('click', this.onWindowClickEvent); |
|||
} |
|||
_onWindowClick(event) { |
|||
if (this.state.showViewSwitcherButtons && !event.target.closest('.o_cp_switch_buttons')) { |
|||
this.state.showViewSwitcherButtons = false; |
|||
} |
|||
} |
|||
_getCurrentViewIcon() { |
|||
const currentView = this.props.views.find((view) => { |
|||
return view.type === this.env.view.type |
|||
}) |
|||
return currentView.icon; |
|||
} |
|||
} |
|||
|
|||
return ControlPanelPatch; |
|||
}); |
|||
|
|||
}); |
@ -1,65 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<!-- |
|||
|
|||
Copyright (c) 2017-today MuK IT GmbH. |
|||
|
|||
This file is part of MuK Grid Snippets |
|||
(see https://mukit.at). |
|||
|
|||
This program is free software: you can redistribute it and/or modify |
|||
it under the terms of the GNU Lesser General Public License as published by |
|||
the Free Software Foundation, either version 3 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program 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 Lesser General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Lesser General Public License |
|||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
|
|||
--> |
|||
|
|||
<templates xml:space="preserve"> |
|||
|
|||
<t t-inherit="web.ControlPanel" t-inherit-mode="extension"> |
|||
<xpath expr="//nav[hasclass('o_cp_switch_buttons')]" position="replace"> |
|||
<nav |
|||
t-if="props.views.length gt 1" |
|||
class="btn-group o_cp_switch_buttons" |
|||
role="toolbar" |
|||
aria-label="View switcher" |
|||
t-att-class="{ show: state and state.showViewSwitcherButtons }" |
|||
> |
|||
<t t-if="isMobile"> |
|||
<button |
|||
type="button" |
|||
class="btn btn-link btn-sm" |
|||
t-on-click="state.showViewSwitcherButtons = !state.showViewSwitcherButtons" |
|||
> |
|||
<span |
|||
class="fa fa-lg" |
|||
t-att-class="_getCurrentViewIcon()" |
|||
/> |
|||
</button> |
|||
<ul t-if="state.showViewSwitcherButtons" |
|||
t-att-class="{ show: state.showViewSwitcherButtons }" |
|||
class="dropdown-menu dropdown-menu-right" |
|||
> |
|||
<li t-foreach="props.views" t-as="view" t-key="view.type"> |
|||
<t t-call="web.ViewSwitcherButton"/> |
|||
</li> |
|||
</ul> |
|||
</t> |
|||
<t t-else=""> |
|||
<t t-foreach="props.views" t-as="view" t-key="view.type"> |
|||
<t t-call="web.ViewSwitcherButton"/> |
|||
</t> |
|||
</t> |
|||
</nav> |
|||
</xpath> |
|||
</t> |
|||
|
|||
</templates> |
@ -1,202 +0,0 @@ |
|||
|
|||
Apache License |
|||
Version 2.0, January 2004 |
|||
http://www.apache.org/licenses/ |
|||
|
|||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
|||
|
|||
1. Definitions. |
|||
|
|||
"License" shall mean the terms and conditions for use, reproduction, |
|||
and distribution as defined by Sections 1 through 9 of this document. |
|||
|
|||
"Licensor" shall mean the copyright owner or entity authorized by |
|||
the copyright owner that is granting the License. |
|||
|
|||
"Legal Entity" shall mean the union of the acting entity and all |
|||
other entities that control, are controlled by, or are under common |
|||
control with that entity. For the purposes of this definition, |
|||
"control" means (i) the power, direct or indirect, to cause the |
|||
direction or management of such entity, whether by contract or |
|||
otherwise, or (ii) ownership of fifty percent (50%) or more of the |
|||
outstanding shares, or (iii) beneficial ownership of such entity. |
|||
|
|||
"You" (or "Your") shall mean an individual or Legal Entity |
|||
exercising permissions granted by this License. |
|||
|
|||
"Source" form shall mean the preferred form for making modifications, |
|||
including but not limited to software source code, documentation |
|||
source, and configuration files. |
|||
|
|||
"Object" form shall mean any form resulting from mechanical |
|||
transformation or translation of a Source form, including but |
|||
not limited to compiled object code, generated documentation, |
|||
and conversions to other media types. |
|||
|
|||
"Work" shall mean the work of authorship, whether in Source or |
|||
Object form, made available under the License, as indicated by a |
|||
copyright notice that is included in or attached to the work |
|||
(an example is provided in the Appendix below). |
|||
|
|||
"Derivative Works" shall mean any work, whether in Source or Object |
|||
form, that is based on (or derived from) the Work and for which the |
|||
editorial revisions, annotations, elaborations, or other modifications |
|||
represent, as a whole, an original work of authorship. For the purposes |
|||
of this License, Derivative Works shall not include works that remain |
|||
separable from, or merely link (or bind by name) to the interfaces of, |
|||
the Work and Derivative Works thereof. |
|||
|
|||
"Contribution" shall mean any work of authorship, including |
|||
the original version of the Work and any modifications or additions |
|||
to that Work or Derivative Works thereof, that is intentionally |
|||
submitted to Licensor for inclusion in the Work by the copyright owner |
|||
or by an individual or Legal Entity authorized to submit on behalf of |
|||
the copyright owner. For the purposes of this definition, "submitted" |
|||
means any form of electronic, verbal, or written communication sent |
|||
to the Licensor or its representatives, including but not limited to |
|||
communication on electronic mailing lists, source code control systems, |
|||
and issue tracking systems that are managed by, or on behalf of, the |
|||
Licensor for the purpose of discussing and improving the Work, but |
|||
excluding communication that is conspicuously marked or otherwise |
|||
designated in writing by the copyright owner as "Not a Contribution." |
|||
|
|||
"Contributor" shall mean Licensor and any individual or Legal Entity |
|||
on behalf of whom a Contribution has been received by Licensor and |
|||
subsequently incorporated within the Work. |
|||
|
|||
2. Grant of Copyright License. Subject to the terms and conditions of |
|||
this License, each Contributor hereby grants to You a perpetual, |
|||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|||
copyright license to reproduce, prepare Derivative Works of, |
|||
publicly display, publicly perform, sublicense, and distribute the |
|||
Work and such Derivative Works in Source or Object form. |
|||
|
|||
3. Grant of Patent License. Subject to the terms and conditions of |
|||
this License, each Contributor hereby grants to You a perpetual, |
|||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|||
(except as stated in this section) patent license to make, have made, |
|||
use, offer to sell, sell, import, and otherwise transfer the Work, |
|||
where such license applies only to those patent claims licensable |
|||
by such Contributor that are necessarily infringed by their |
|||
Contribution(s) alone or by combination of their Contribution(s) |
|||
with the Work to which such Contribution(s) was submitted. If You |
|||
institute patent litigation against any entity (including a |
|||
cross-claim or counterclaim in a lawsuit) alleging that the Work |
|||
or a Contribution incorporated within the Work constitutes direct |
|||
or contributory patent infringement, then any patent licenses |
|||
granted to You under this License for that Work shall terminate |
|||
as of the date such litigation is filed. |
|||
|
|||
4. Redistribution. You may reproduce and distribute copies of the |
|||
Work or Derivative Works thereof in any medium, with or without |
|||
modifications, and in Source or Object form, provided that You |
|||
meet the following conditions: |
|||
|
|||
(a) You must give any other recipients of the Work or |
|||
Derivative Works a copy of this License; and |
|||
|
|||
(b) You must cause any modified files to carry prominent notices |
|||
stating that You changed the files; and |
|||
|
|||
(c) You must retain, in the Source form of any Derivative Works |
|||
that You distribute, all copyright, patent, trademark, and |
|||
attribution notices from the Source form of the Work, |
|||
excluding those notices that do not pertain to any part of |
|||
the Derivative Works; and |
|||
|
|||
(d) If the Work includes a "NOTICE" text file as part of its |
|||
distribution, then any Derivative Works that You distribute must |
|||
include a readable copy of the attribution notices contained |
|||
within such NOTICE file, excluding those notices that do not |
|||
pertain to any part of the Derivative Works, in at least one |
|||
of the following places: within a NOTICE text file distributed |
|||
as part of the Derivative Works; within the Source form or |
|||
documentation, if provided along with the Derivative Works; or, |
|||
within a display generated by the Derivative Works, if and |
|||
wherever such third-party notices normally appear. The contents |
|||
of the NOTICE file are for informational purposes only and |
|||
do not modify the License. You may add Your own attribution |
|||
notices within Derivative Works that You distribute, alongside |
|||
or as an addendum to the NOTICE text from the Work, provided |
|||
that such additional attribution notices cannot be construed |
|||
as modifying the License. |
|||
|
|||
You may add Your own copyright statement to Your modifications and |
|||
may provide additional or different license terms and conditions |
|||
for use, reproduction, or distribution of Your modifications, or |
|||
for any such Derivative Works as a whole, provided Your use, |
|||
reproduction, and distribution of the Work otherwise complies with |
|||
the conditions stated in this License. |
|||
|
|||
5. Submission of Contributions. Unless You explicitly state otherwise, |
|||
any Contribution intentionally submitted for inclusion in the Work |
|||
by You to the Licensor shall be under the terms and conditions of |
|||
this License, without any additional terms or conditions. |
|||
Notwithstanding the above, nothing herein shall supersede or modify |
|||
the terms of any separate license agreement you may have executed |
|||
with Licensor regarding such Contributions. |
|||
|
|||
6. Trademarks. This License does not grant permission to use the trade |
|||
names, trademarks, service marks, or product names of the Licensor, |
|||
except as required for reasonable and customary use in describing the |
|||
origin of the Work and reproducing the content of the NOTICE file. |
|||
|
|||
7. Disclaimer of Warranty. Unless required by applicable law or |
|||
agreed to in writing, Licensor provides the Work (and each |
|||
Contributor provides its Contributions) on an "AS IS" BASIS, |
|||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
|||
implied, including, without limitation, any warranties or conditions |
|||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
|||
PARTICULAR PURPOSE. You are solely responsible for determining the |
|||
appropriateness of using or redistributing the Work and assume any |
|||
risks associated with Your exercise of permissions under this License. |
|||
|
|||
8. Limitation of Liability. In no event and under no legal theory, |
|||
whether in tort (including negligence), contract, or otherwise, |
|||
unless required by applicable law (such as deliberate and grossly |
|||
negligent acts) or agreed to in writing, shall any Contributor be |
|||
liable to You for damages, including any direct, indirect, special, |
|||
incidental, or consequential damages of any character arising as a |
|||
result of this License or out of the use or inability to use the |
|||
Work (including but not limited to damages for loss of goodwill, |
|||
work stoppage, computer failure or malfunction, or any and all |
|||
other commercial damages or losses), even if such Contributor |
|||
has been advised of the possibility of such damages. |
|||
|
|||
9. Accepting Warranty or Additional Liability. While redistributing |
|||
the Work or Derivative Works thereof, You may choose to offer, |
|||
and charge a fee for, acceptance of support, warranty, indemnity, |
|||
or other liability obligations and/or rights consistent with this |
|||
License. However, in accepting such obligations, You may act only |
|||
on Your own behalf and on Your sole responsibility, not on behalf |
|||
of any other Contributor, and only if You agree to indemnify, |
|||
defend, and hold each Contributor harmless for any liability |
|||
incurred by, or claims asserted against, such Contributor by reason |
|||
of your accepting any such warranty or additional liability. |
|||
|
|||
END OF TERMS AND CONDITIONS |
|||
|
|||
APPENDIX: How to apply the Apache License to your work. |
|||
|
|||
To apply the Apache License to your work, attach the following |
|||
boilerplate notice, with the fields enclosed by brackets "[]" |
|||
replaced with your own identifying information. (Don't include |
|||
the brackets!) The text should be enclosed in the appropriate |
|||
comment syntax for the file format. We also recommend that a |
|||
file or class name and description of purpose be included on the |
|||
same "printed page" as the copyright notice for easier |
|||
identification within third-party archives. |
|||
|
|||
Copyright [yyyy] [name of copyright owner] |
|||
|
|||
Licensed under the Apache License, Version 2.0 (the "License"); |
|||
you may not use this file except in compliance with the License. |
|||
You may obtain a copy of the License at |
|||
|
|||
http://www.apache.org/licenses/LICENSE-2.0 |
|||
|
|||
Unless required by applicable law or agreed to in writing, software |
|||
distributed under the License is distributed on an "AS IS" BASIS, |
|||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
See the License for the specific language governing permissions and |
|||
limitations under the License. |
12282
muk_web_theme/static/src/fonts/Noto/Noto-Black.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12580
muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12225
muk_web_theme/static/src/fonts/Noto/Noto-Bold.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12575
muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12594
muk_web_theme/static/src/fonts/Noto/Noto-Italic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12045
muk_web_theme/static/src/fonts/Noto/Noto-Light.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12610
muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12193
muk_web_theme/static/src/fonts/Noto/Noto-Medium.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12580
muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12169
muk_web_theme/static/src/fonts/Noto/Noto-Regular.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12237
muk_web_theme/static/src/fonts/Noto/Noto-Thin.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
12702
muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,202 +0,0 @@ |
|||
|
|||
Apache License |
|||
Version 2.0, January 2004 |
|||
http://www.apache.org/licenses/ |
|||
|
|||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
|||
|
|||
1. Definitions. |
|||
|
|||
"License" shall mean the terms and conditions for use, reproduction, |
|||
and distribution as defined by Sections 1 through 9 of this document. |
|||
|
|||
"Licensor" shall mean the copyright owner or entity authorized by |
|||
the copyright owner that is granting the License. |
|||
|
|||
"Legal Entity" shall mean the union of the acting entity and all |
|||
other entities that control, are controlled by, or are under common |
|||
control with that entity. For the purposes of this definition, |
|||
"control" means (i) the power, direct or indirect, to cause the |
|||
direction or management of such entity, whether by contract or |
|||
otherwise, or (ii) ownership of fifty percent (50%) or more of the |
|||
outstanding shares, or (iii) beneficial ownership of such entity. |
|||
|
|||
"You" (or "Your") shall mean an individual or Legal Entity |
|||
exercising permissions granted by this License. |
|||
|
|||
"Source" form shall mean the preferred form for making modifications, |
|||
including but not limited to software source code, documentation |
|||
source, and configuration files. |
|||
|
|||
"Object" form shall mean any form resulting from mechanical |
|||
transformation or translation of a Source form, including but |
|||
not limited to compiled object code, generated documentation, |
|||
and conversions to other media types. |
|||
|
|||
"Work" shall mean the work of authorship, whether in Source or |
|||
Object form, made available under the License, as indicated by a |
|||
copyright notice that is included in or attached to the work |
|||
(an example is provided in the Appendix below). |
|||
|
|||
"Derivative Works" shall mean any work, whether in Source or Object |
|||
form, that is based on (or derived from) the Work and for which the |
|||
editorial revisions, annotations, elaborations, or other modifications |
|||
represent, as a whole, an original work of authorship. For the purposes |
|||
of this License, Derivative Works shall not include works that remain |
|||
separable from, or merely link (or bind by name) to the interfaces of, |
|||
the Work and Derivative Works thereof. |
|||
|
|||
"Contribution" shall mean any work of authorship, including |
|||
the original version of the Work and any modifications or additions |
|||
to that Work or Derivative Works thereof, that is intentionally |
|||
submitted to Licensor for inclusion in the Work by the copyright owner |
|||
or by an individual or Legal Entity authorized to submit on behalf of |
|||
the copyright owner. For the purposes of this definition, "submitted" |
|||
means any form of electronic, verbal, or written communication sent |
|||
to the Licensor or its representatives, including but not limited to |
|||
communication on electronic mailing lists, source code control systems, |
|||
and issue tracking systems that are managed by, or on behalf of, the |
|||
Licensor for the purpose of discussing and improving the Work, but |
|||
excluding communication that is conspicuously marked or otherwise |
|||
designated in writing by the copyright owner as "Not a Contribution." |
|||
|
|||
"Contributor" shall mean Licensor and any individual or Legal Entity |
|||
on behalf of whom a Contribution has been received by Licensor and |
|||
subsequently incorporated within the Work. |
|||
|
|||
2. Grant of Copyright License. Subject to the terms and conditions of |
|||
this License, each Contributor hereby grants to You a perpetual, |
|||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|||
copyright license to reproduce, prepare Derivative Works of, |
|||
publicly display, publicly perform, sublicense, and distribute the |
|||
Work and such Derivative Works in Source or Object form. |
|||
|
|||
3. Grant of Patent License. Subject to the terms and conditions of |
|||
this License, each Contributor hereby grants to You a perpetual, |
|||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
|||
(except as stated in this section) patent license to make, have made, |
|||
use, offer to sell, sell, import, and otherwise transfer the Work, |
|||
where such license applies only to those patent claims licensable |
|||
by such Contributor that are necessarily infringed by their |
|||
Contribution(s) alone or by combination of their Contribution(s) |
|||
with the Work to which such Contribution(s) was submitted. If You |
|||
institute patent litigation against any entity (including a |
|||
cross-claim or counterclaim in a lawsuit) alleging that the Work |
|||
or a Contribution incorporated within the Work constitutes direct |
|||
or contributory patent infringement, then any patent licenses |
|||
granted to You under this License for that Work shall terminate |
|||
as of the date such litigation is filed. |
|||
|
|||
4. Redistribution. You may reproduce and distribute copies of the |
|||
Work or Derivative Works thereof in any medium, with or without |
|||
modifications, and in Source or Object form, provided that You |
|||
meet the following conditions: |
|||
|
|||
(a) You must give any other recipients of the Work or |
|||
Derivative Works a copy of this License; and |
|||
|
|||
(b) You must cause any modified files to carry prominent notices |
|||
stating that You changed the files; and |
|||
|
|||
(c) You must retain, in the Source form of any Derivative Works |
|||
that You distribute, all copyright, patent, trademark, and |
|||
attribution notices from the Source form of the Work, |
|||
excluding those notices that do not pertain to any part of |
|||
the Derivative Works; and |
|||
|
|||
(d) If the Work includes a "NOTICE" text file as part of its |
|||
distribution, then any Derivative Works that You distribute must |
|||
include a readable copy of the attribution notices contained |
|||
within such NOTICE file, excluding those notices that do not |
|||
pertain to any part of the Derivative Works, in at least one |
|||
of the following places: within a NOTICE text file distributed |
|||
as part of the Derivative Works; within the Source form or |
|||
documentation, if provided along with the Derivative Works; or, |
|||
within a display generated by the Derivative Works, if and |
|||
wherever such third-party notices normally appear. The contents |
|||
of the NOTICE file are for informational purposes only and |
|||
do not modify the License. You may add Your own attribution |
|||
notices within Derivative Works that You distribute, alongside |
|||
or as an addendum to the NOTICE text from the Work, provided |
|||
that such additional attribution notices cannot be construed |
|||
as modifying the License. |
|||
|
|||
You may add Your own copyright statement to Your modifications and |
|||
may provide additional or different license terms and conditions |
|||
for use, reproduction, or distribution of Your modifications, or |
|||
for any such Derivative Works as a whole, provided Your use, |
|||
reproduction, and distribution of the Work otherwise complies with |
|||
the conditions stated in this License. |
|||
|
|||
5. Submission of Contributions. Unless You explicitly state otherwise, |
|||
any Contribution intentionally submitted for inclusion in the Work |
|||
by You to the Licensor shall be under the terms and conditions of |
|||
this License, without any additional terms or conditions. |
|||
Notwithstanding the above, nothing herein shall supersede or modify |
|||
the terms of any separate license agreement you may have executed |
|||
with Licensor regarding such Contributions. |
|||
|
|||
6. Trademarks. This License does not grant permission to use the trade |
|||
names, trademarks, service marks, or product names of the Licensor, |
|||
except as required for reasonable and customary use in describing the |
|||
origin of the Work and reproducing the content of the NOTICE file. |
|||
|
|||
7. Disclaimer of Warranty. Unless required by applicable law or |
|||
agreed to in writing, Licensor provides the Work (and each |
|||
Contributor provides its Contributions) on an "AS IS" BASIS, |
|||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
|||
implied, including, without limitation, any warranties or conditions |
|||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
|||
PARTICULAR PURPOSE. You are solely responsible for determining the |
|||
appropriateness of using or redistributing the Work and assume any |
|||
risks associated with Your exercise of permissions under this License. |
|||
|
|||
8. Limitation of Liability. In no event and under no legal theory, |
|||
whether in tort (including negligence), contract, or otherwise, |
|||
unless required by applicable law (such as deliberate and grossly |
|||
negligent acts) or agreed to in writing, shall any Contributor be |
|||
liable to You for damages, including any direct, indirect, special, |
|||
incidental, or consequential damages of any character arising as a |
|||
result of this License or out of the use or inability to use the |
|||
Work (including but not limited to damages for loss of goodwill, |
|||
work stoppage, computer failure or malfunction, or any and all |
|||
other commercial damages or losses), even if such Contributor |
|||
has been advised of the possibility of such damages. |
|||
|
|||
9. Accepting Warranty or Additional Liability. While redistributing |
|||
the Work or Derivative Works thereof, You may choose to offer, |
|||
and charge a fee for, acceptance of support, warranty, indemnity, |
|||
or other liability obligations and/or rights consistent with this |
|||
License. However, in accepting such obligations, You may act only |
|||
on Your own behalf and on Your sole responsibility, not on behalf |
|||
of any other Contributor, and only if You agree to indemnify, |
|||
defend, and hold each Contributor harmless for any liability |
|||
incurred by, or claims asserted against, such Contributor by reason |
|||
of your accepting any such warranty or additional liability. |
|||
|
|||
END OF TERMS AND CONDITIONS |
|||
|
|||
APPENDIX: How to apply the Apache License to your work. |
|||
|
|||
To apply the Apache License to your work, attach the following |
|||
boilerplate notice, with the fields enclosed by brackets "[]" |
|||
replaced with your own identifying information. (Don't include |
|||
the brackets!) The text should be enclosed in the appropriate |
|||
comment syntax for the file format. We also recommend that a |
|||
file or class name and description of purpose be included on the |
|||
same "printed page" as the copyright notice for easier |
|||
identification within third-party archives. |
|||
|
|||
Copyright [yyyy] [name of copyright owner] |
|||
|
|||
Licensed under the Apache License, Version 2.0 (the "License"); |
|||
you may not use this file except in compliance with the License. |
|||
You may obtain a copy of the License at |
|||
|
|||
http://www.apache.org/licenses/LICENSE-2.0 |
|||
|
|||
Unless required by applicable law or agreed to in writing, software |
|||
distributed under the License is distributed on an "AS IS" BASIS, |
|||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|||
See the License for the specific language governing permissions and |
|||
limitations under the License. |
5333
muk_web_theme/static/src/fonts/Roboto/Roboto-Black.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
5333
muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
5333
muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
5333
muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
4956
muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
4956
muk_web_theme/static/src/fonts/Roboto/Roboto-Light.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
4956
muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
5333
muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue