Browse Source

Oct 25: [FIX] Bug Fixed 'hue_backend_theme'

pull/346/head
Cybrosys Technologies 6 months ago
parent
commit
c24711739e
  1. 9
      hue_backend_theme/__manifest__.py
  2. 0
      hue_backend_theme/static/description/banner.jpg
  3. 0
      hue_backend_theme/static/description/icon.png
  4. 4
      hue_backend_theme/static/description/index.html
  5. 0
      hue_backend_theme/static/description/theme_screenshot.jpg
  6. 22
      hue_backend_theme/static/src/components/app_menu/search_apps.js

9
hue_backend_theme/__manifest__.py

@ -42,17 +42,18 @@
"hue_backend_theme/static/src/layout/style/layout_style.scss",
"hue_backend_theme/static/src/layout/style/sidebar.scss",
"hue_backend_theme/static/src/components/app_menu/search_apps.js",
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/'
'jquery.min.js',
# 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/'
# 'jquery.min.js',
],
"web.assets_frontend": [
"hue_backend_theme/static/src/layout/style/login.scss",
],
},
"images": [
"static/description/template01.jpg",
"static/description/template02.jpg",
"static/description/banner.jpg",
"static/description/theme_screenshot.jpg",
],
'icon': 'static/description/icon.png',
"license": "LGPL-3",
"installable": True,
"auto_install": False,

0
hue_backend_theme/static/description/img/template01.jpg → hue_backend_theme/static/description/banner.jpg

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 152 KiB

0
hue_backend_theme/static/description/img/icon.png → hue_backend_theme/static/description/icon.png

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

4
hue_backend_theme/static/description/index.html

@ -59,7 +59,7 @@
</div>
<div class="text-center col"
style="font-size:0.8rem !important; border:1px solid #714b67; color:#714b67 !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">
<i class="fa fa-check" style="color:green"></i> Odoo.sh
<i class="fa fa-times" style="color:red"></i> Odoo.sh
</div>
<div class="text-center col"
style="font-size:0.8rem !important; color:#5B899E !important; border:1px solid #5B899E; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">
@ -76,7 +76,7 @@
<!-- banner-section -->
<div class="my-5">
<div class="">
<img src="./img/template01.jpg" class="img-fluid" style="border-radius: 16px; width:1300px;">
<img src="./banner.jpg" class="img-fluid" style="border-radius: 16px; width:1300px;">
</div>
</div>

0
hue_backend_theme/static/description/img/template02.jpg → hue_backend_theme/static/description/theme_screenshot.jpg

Before

Width:  |  Height:  |  Size: 338 KiB

After

Width:  |  Height:  |  Size: 338 KiB

22
hue_backend_theme/static/src/components/app_menu/search_apps.js

@ -14,7 +14,7 @@ patch(NavBar.prototype, {
setup() {
super.setup()
var self = this;
this._search_def = $.Deferred();
this._search_def = this.createDeferred();
let { apps, menuItems } = computeAppsAndMenuItems
(this.menuService.getMenuAsTree("root"));
this._apps = apps;
@ -27,6 +27,16 @@ patch(NavBar.prototype, {
onMounted(() => {
this.setClass();
})
},
createDeferred() {
let deferred = {};
deferred.promise = new Promise((resolve, reject) => {
deferred.resolve = resolve;
deferred.reject = reject;
});
return deferred;
},
async fetch_data() {
// To fetch colors from database.
@ -64,11 +74,11 @@ patch(NavBar.prototype, {
},
setClass() {
// Set variable for html elements.
this.$search_container = $(this.search_container.el)
this.$search_input = $(this.search_input.el);
this.$search_results = $(this.search_results.el);
this.$app_menu = $(this.app_menu.el);
this.$dropdown_menu = $(this.search_container.el.parentElement);
this.$search_container = this.search_container.el;
this.$search_input = this.search_input.el;
this.$search_results = this.search_results.el;
this.$app_menu = this.app_menu.el;
this.$dropdown_menu = this.search_container.el.parentElement;
},
_searchMenusSchedule() {
// Hide / Show based on search input.

Loading…
Cancel
Save