Browse Source

publish muk_web_theme

16.0
Mathias Markl 3 years ago
parent
commit
816dffad3e
  1. 51
      muk_web_theme/.gitignore
  2. 165
      muk_web_theme/LICENSE
  3. 12
      muk_web_theme/__init__.py
  4. 85
      muk_web_theme/__manifest__.py
  5. 8
      muk_web_theme/models/__init__.py
  6. 13
      muk_web_theme/models/ir_http.py
  7. 12
      muk_web_theme/models/res_company.py
  8. 41
      muk_web_theme/models/res_config_settings.py
  9. 4
      muk_web_theme/models/res_users.py
  10. 146
      muk_web_theme/models/scss_editor.py
  11. 71
      muk_web_theme/models/web_editor_assets.py
  12. 0
      muk_web_theme/static/img/background.png
  13. BIN
      muk_web_theme/static/img/default_icon.png
  14. 183
      muk_web_theme/static/libs/simplebar/simplebar.css
  15. 4391
      muk_web_theme/static/libs/simplebar/simplebar.js
  16. 2
      muk_web_theme/static/src/colors.scss
  17. 70
      muk_web_theme/static/src/components/control_panel.js
  18. 65
      muk_web_theme/static/src/components/control_panel.xml
  19. 202
      muk_web_theme/static/src/fonts/Noto/LICENSE.txt
  20. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Black.eot
  21. 12282
      muk_web_theme/static/src/fonts/Noto/Noto-Black.svg
  22. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Black.ttf
  23. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Black.woff
  24. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.eot
  25. 12580
      muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.svg
  26. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.ttf
  27. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.woff
  28. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Bold.eot
  29. 12225
      muk_web_theme/static/src/fonts/Noto/Noto-Bold.svg
  30. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Bold.ttf
  31. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Bold.woff
  32. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.eot
  33. 12575
      muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.svg
  34. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.ttf
  35. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.woff
  36. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Italic.eot
  37. 12594
      muk_web_theme/static/src/fonts/Noto/Noto-Italic.svg
  38. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Italic.ttf
  39. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Italic.woff
  40. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Light.eot
  41. 12045
      muk_web_theme/static/src/fonts/Noto/Noto-Light.svg
  42. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Light.ttf
  43. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Light.woff
  44. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.eot
  45. 12610
      muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.svg
  46. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.ttf
  47. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.woff
  48. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Medium.eot
  49. 12193
      muk_web_theme/static/src/fonts/Noto/Noto-Medium.svg
  50. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Medium.ttf
  51. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Medium.woff
  52. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.eot
  53. 12580
      muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.svg
  54. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.ttf
  55. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.woff
  56. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Regular.eot
  57. 12169
      muk_web_theme/static/src/fonts/Noto/Noto-Regular.svg
  58. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Regular.ttf
  59. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Regular.woff
  60. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Thin.eot
  61. 12237
      muk_web_theme/static/src/fonts/Noto/Noto-Thin.svg
  62. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Thin.ttf
  63. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-Thin.woff
  64. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.eot
  65. 12702
      muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.svg
  66. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.ttf
  67. BIN
      muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.woff
  68. 202
      muk_web_theme/static/src/fonts/Roboto/LICENSE.txt
  69. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Black.eot
  70. 5333
      muk_web_theme/static/src/fonts/Roboto/Roboto-Black.svg
  71. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Black.ttf
  72. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Black.woff
  73. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.eot
  74. 5333
      muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.svg
  75. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.ttf
  76. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.woff
  77. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.eot
  78. 5333
      muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.svg
  79. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.ttf
  80. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.woff
  81. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.eot
  82. 5333
      muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.svg
  83. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.ttf
  84. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.woff
  85. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.eot
  86. 4956
      muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.svg
  87. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.ttf
  88. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.woff
  89. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Light.eot
  90. 4956
      muk_web_theme/static/src/fonts/Roboto/Roboto-Light.svg
  91. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Light.ttf
  92. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Light.woff
  93. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.eot
  94. 4956
      muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.svg
  95. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.ttf
  96. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.woff
  97. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.eot
  98. 5333
      muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.svg
  99. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.ttf
  100. BIN
      muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.woff

51
muk_web_theme/.gitignore

@ -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

165
muk_web_theme/LICENSE

@ -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.

12
muk_web_theme/__init__.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -20,14 +20,14 @@
# #
################################################################################### ###################################################################################
from odoo import api, SUPERUSER_ID
from . import models from . import models
XML_ID = "muk_web_theme._assets_primary_variables"
SCSS_URL = "/muk_web_theme/static/src/scss/colors.scss"
from odoo import api, SUPERUSER_ID
def _uninstall_reset_changes(cr, registry): def _uninstall_reset_changes(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {}) env = api.Environment(cr, SUPERUSER_ID, {})
env['muk_web_theme.scss_editor'].reset_values(SCSS_URL, XML_ID)
env['web_editor.assets'].reset_asset(
'/muk_web_theme/static/src/colors.scss',
'web._assets_primary_variables'
)

85
muk_web_theme/__manifest__.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -21,45 +21,60 @@
################################################################################### ###################################################################################
{ {
"name": "MuK Backend Theme",
"summary": "Odoo Community Backend Theme",
"version": "14.0.1.0.1",
"category": "Themes/Backend",
"license": "LGPL-3",
"author": "MuK IT",
"website": "http://www.mukit.at",
'name': 'MuK Backend Theme',
'summary': 'Odoo Community Backend Theme',
'version': '15.0.1.0.0',
'category': 'Themes/Backend',
'license': 'LGPL-3',
'author': 'MuK IT',
'website': 'http://www.mukit.at',
'live_test_url': 'https://mukit.at/r/SgN', 'live_test_url': 'https://mukit.at/r/SgN',
"contributors": [
"Mathias Markl <mathias.markl@mukit.at>",
'contributors': [
'Mathias Markl <mathias.markl@mukit.at>',
], ],
"depends": [
"base_setup",
"web_editor",
'depends': [
'base_setup',
'web_editor',
'mail',
], ],
"excludes": [
"web_enterprise",
'excludes': [
'web_enterprise',
], ],
"data": [
"template/assets.xml",
"template/web.xml",
"views/res_users.xml",
"views/res_config_settings_view.xml",
"data/res_company.xml",
'data': [
'templates/webclient.xml',
'views/res_config_settings_view.xml',
'views/res_users.xml',
], ],
"qweb": [
"static/src/components/control_panel.xml",
"static/src/xml/*.xml",
],
"images": [
'static/description/banner.png',
'static/description/theme_screenshot.png'
'assets': {
'web.assets_qweb': [
'muk_web_theme/static/src/**/*.xml',
],
'web._assets_primary_variables': [
'muk_web_theme/static/src/colors.scss',
],
'web._assets_backend_helpers': [
'muk_web_theme/static/src/variables.scss',
'muk_web_theme/static/src/mixins.scss',
],
'web.assets_backend': [
'muk_web_theme/static/src/webclient/**/*.scss',
'muk_web_theme/static/src/webclient/**/*.js',
'muk_web_theme/static/src/search/**/*.scss',
'muk_web_theme/static/src/search/**/*.js',
'muk_web_theme/static/src/legacy/**/*.scss',
'muk_web_theme/static/src/legacy/**/*.js',
],
},
'images': [
# 'static/description/banner.png',
# 'static/description/theme_screenshot.png'
], ],
"external_dependencies": {
"python": [],
"bin": [],
'external_dependencies': {
'python': [],
'bin': [],
}, },
"application": False,
"installable": True,
"auto_install": False,
"uninstall_hook": "_uninstall_reset_changes",
'installable': True,
'application': False,
'auto_install': False,
'uninstall_hook': '_uninstall_reset_changes',
} }

8
muk_web_theme/models/__init__.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -20,8 +20,8 @@
# #
################################################################################### ###################################################################################
from . import res_company
from . import res_users
from . import ir_http from . import ir_http
from . import scss_editor
from . import res_company
from . import res_config_settings from . import res_config_settings
from . import res_users
from . import web_editor_assets

13
muk_web_theme/models/ir_http.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -26,11 +26,14 @@ from odoo.http import request
class IrHttp(models.AbstractModel): class IrHttp(models.AbstractModel):
_inherit = 'ir.http'
_inherit = "ir.http"
def session_info(self): def session_info(self):
result = super(IrHttp, self).session_info() result = super(IrHttp, self).session_info()
params = request.env['ir.config_parameter'].sudo()
blend_mode = params.get_param('muk_web_theme.background_blend_mode')
result.update(muk_web_theme_background_blend_mode=blend_mode or 'normal')
company = request.session.uid and request.env.user.company_id
blend_mode = company and company.background_blend_mode or False
result.update(
theme_background_blend_mode=blend_mode or "normal",
theme_has_background_image=bool(company and company.background_image)
)
return result return result

12
muk_web_theme/models/res_company.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -32,7 +32,7 @@ class ResCompany(models.Model):
#---------------------------------------------------------- #----------------------------------------------------------
background_image = fields.Binary( background_image = fields.Binary(
string="Apps Menu Background Image",
string='Apps Menu Background Image',
attachment=True attachment=True
) )
@ -55,7 +55,7 @@ class ResCompany(models.Model):
('color', 'Color'), ('color', 'Color'),
('luminosity', 'Luminosity'), ('luminosity', 'Luminosity'),
], ],
string="Apps Menu Background Blend Mode",
string='Apps Menu Background Blend Mode',
default='normal' default='normal'
) )
@ -65,8 +65,8 @@ class ResCompany(models.Model):
('small', 'Small'), ('small', 'Small'),
('large', 'Large') ('large', 'Large')
], ],
string="Sidebar Type",
default='small'
string='Sidebar Type',
default='large'
) )
default_chatter_preference = fields.Selection( default_chatter_preference = fields.Selection(
@ -74,6 +74,6 @@ class ResCompany(models.Model):
('normal', 'Normal'), ('normal', 'Normal'),
('sided', 'Sided'), ('sided', 'Sided'),
], ],
string="Chatter Position",
string='Chatter Position',
default='sided' default='sided'
) )

41
muk_web_theme/models/res_config_settings.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -26,9 +26,6 @@ import base64
from odoo import api, fields, models 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): class ResConfigSettings(models.TransientModel):
@ -39,52 +36,52 @@ class ResConfigSettings(models.TransientModel):
#---------------------------------------------------------- #----------------------------------------------------------
theme_favicon = fields.Binary( theme_favicon = fields.Binary(
related="company_id.favicon",
related='company_id.favicon',
readonly=False readonly=False
) )
theme_background_image = fields.Binary( theme_background_image = fields.Binary(
related="company_id.background_image",
related='company_id.background_image',
readonly=False readonly=False
) )
theme_background_blend_mode = fields.Selection( theme_background_blend_mode = fields.Selection(
related="company_id.background_blend_mode",
related='company_id.background_blend_mode',
readonly=False readonly=False
) )
theme_default_sidebar_preference = fields.Selection( theme_default_sidebar_preference = fields.Selection(
related="company_id.default_sidebar_preference",
related='company_id.default_sidebar_preference',
readonly=False readonly=False
) )
theme_default_chatter_preference = fields.Selection( theme_default_chatter_preference = fields.Selection(
related="company_id.default_chatter_preference",
related='company_id.default_chatter_preference',
readonly=False readonly=False
) )
theme_color_brand = fields.Char( theme_color_brand = fields.Char(
string="Theme Brand Color"
string='Theme Brand Color'
) )
theme_color_primary = fields.Char( theme_color_primary = fields.Char(
string="Theme Primary Color"
string='Theme Primary Color'
) )
theme_color_required = fields.Char( theme_color_required = fields.Char(
string="Theme Required Color"
string='Theme Required Color'
) )
theme_color_menu = fields.Char( theme_color_menu = fields.Char(
string="Theme Menu Color"
string='Theme Menu Color'
) )
theme_color_appbar_color = fields.Char( theme_color_appbar_color = fields.Char(
string="Theme AppBar Color"
string='Theme AppBar Color'
) )
theme_color_appbar_background = fields.Char( theme_color_appbar_background = fields.Char(
string="Theme AppBar Background"
string='Theme AppBar Background'
) )
#---------------------------------------------------------- #----------------------------------------------------------
@ -102,8 +99,8 @@ class ResConfigSettings(models.TransientModel):
'mk-appbar-color', 'mk-appbar-color',
'mk-appbar-background', 'mk-appbar-background',
] ]
colors = self.env['muk_web_theme.scss_editor'].get_values(
SCSS_URL, XML_ID, variables
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 = []
colors_changed.append(self.theme_color_brand != colors['o-brand-odoo']) colors_changed.append(self.theme_color_brand != colors['o-brand-odoo'])
@ -121,10 +118,9 @@ class ResConfigSettings(models.TransientModel):
{'name': 'mk-appbar-color', 'value': self.theme_color_appbar_color or "#dee2e6"}, {'name': 'mk-appbar-color', 'value': self.theme_color_appbar_color or "#dee2e6"},
{'name': 'mk-appbar-background', 'value': self.theme_color_appbar_background or "#000000"}, {'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
self.env['web_editor.assets'].replace_variables_values(
'/muk_web_theme/static/src/colors.scss', 'web._assets_primary_variables', variables
) )
param.set_param('muk_web_theme.background_blend_mode', self.theme_background_blend_mode)
return res return res
@api.model @api.model
@ -139,8 +135,8 @@ class ResConfigSettings(models.TransientModel):
'mk-appbar-color', 'mk-appbar-color',
'mk-appbar-background', 'mk-appbar-background',
] ]
colors = self.env['muk_web_theme.scss_editor'].get_values(
SCSS_URL, XML_ID, variables
colors = self.env['web_editor.assets'].get_variables_values(
'/muk_web_theme/static/src/colors.scss', 'web._assets_primary_variables', variables
) )
res.update({ res.update({
'theme_color_brand': colors['o-brand-odoo'], 'theme_color_brand': colors['o-brand-odoo'],
@ -149,6 +145,5 @@ class ResConfigSettings(models.TransientModel):
'theme_color_menu': colors['mk-apps-color'], 'theme_color_menu': colors['mk-apps-color'],
'theme_color_appbar_color': colors['mk-appbar-color'], 'theme_color_appbar_color': colors['mk-appbar-color'],
'theme_color_appbar_background': colors['mk-appbar-background'], 'theme_color_appbar_background': colors['mk-appbar-background'],
'theme_background_blend_mode': params.get_param('muk_web_theme.background_blend_mode', 'normal'),
}) })
return res return res

4
muk_web_theme/models/res_users.py

@ -2,7 +2,7 @@
# #
# Copyright (c) 2017-today MuK IT GmbH. # Copyright (c) 2017-today MuK IT GmbH.
# #
# This file is part of MuK Grid Snippets
# This file is part of MuK Theme
# (see https://mukit.at). # (see https://mukit.at).
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -33,7 +33,7 @@ class ResUsers(models.Model):
@api.model @api.model
def _default_sidebar_type(self): def _default_sidebar_type(self):
return self.env.user.company_id.default_sidebar_preference or 'small'
return self.env.user.company_id.default_sidebar_preference or 'large'
@api.model @api.model
def _default_chatter_position(self): def _default_chatter_position(self):

146
muk_web_theme/models/scss_editor.py

@ -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()

71
muk_web_theme/models/web_editor_assets.py

@ -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')

0
muk_web_theme/static/src/img/background.png → muk_web_theme/static/img/background.png

Before

Width: 1600  |  Height: 900  |  Size: 494 KiB

After

Width: 1600  |  Height: 900  |  Size: 494 KiB

BIN
muk_web_theme/static/img/default_icon.png

After

Width: 300  |  Height: 300  |  Size: 32 KiB

183
muk_web_theme/static/libs/simplebar/simplebar.css

@ -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

2
muk_web_theme/static/src/scss/colors.scss → muk_web_theme/static/src/colors.scss

@ -2,7 +2,7 @@
* *
* Copyright (c) 2017-today MuK IT GmbH. * Copyright (c) 2017-today MuK IT GmbH.
* *
* This file is part of MuK Grid Snippets
* This file is part of MuK Theme
* (see https://mukit.at). * (see https://mukit.at).
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify

70
muk_web_theme/static/src/components/control_panel.js

@ -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;
});
});

65
muk_web_theme/static/src/components/control_panel.xml

@ -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>

202
muk_web_theme/static/src/fonts/Noto/LICENSE.txt

@ -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.

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Black.eot

12282
muk_web_theme/static/src/fonts/Noto/Noto-Black.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Black.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Black.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.eot

12580
muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-BlackItalic.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Bold.eot

12225
muk_web_theme/static/src/fonts/Noto/Noto-Bold.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Bold.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Bold.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.eot

12575
muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-BoldItalic.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Italic.eot

12594
muk_web_theme/static/src/fonts/Noto/Noto-Italic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Italic.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Italic.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Light.eot

12045
muk_web_theme/static/src/fonts/Noto/Noto-Light.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Light.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Light.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.eot

12610
muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-LightItalic.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Medium.eot

12193
muk_web_theme/static/src/fonts/Noto/Noto-Medium.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Medium.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Medium.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.eot

12580
muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-MediumItalic.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Regular.eot

12169
muk_web_theme/static/src/fonts/Noto/Noto-Regular.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Regular.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Regular.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Thin.eot

12237
muk_web_theme/static/src/fonts/Noto/Noto-Thin.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Thin.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-Thin.woff

BIN
muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.eot

12702
muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.ttf

BIN
muk_web_theme/static/src/fonts/Noto/Noto-ThinItalic.woff

202
muk_web_theme/static/src/fonts/Roboto/LICENSE.txt

@ -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.

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Black.eot

5333
muk_web_theme/static/src/fonts/Roboto/Roboto-Black.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Black.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Black.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.eot

5333
muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-BlackItalic.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.eot

5333
muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Bold.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.eot

5333
muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-BoldItalic.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.eot

4956
muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Italic.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Light.eot

4956
muk_web_theme/static/src/fonts/Roboto/Roboto-Light.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Light.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Light.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.eot

4956
muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-LightItalic.woff

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.eot

5333
muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.svg
File diff suppressed because it is too large
View File

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.ttf

BIN
muk_web_theme/static/src/fonts/Roboto/Roboto-Medium.woff

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save