Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
mzymela committed Aug 3, 2023
0 parents commit de33fc8
Show file tree
Hide file tree
Showing 9 changed files with 415 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Magento_Backend/layout/default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
</head>
<body>
<referenceContainer name="root">
<block name="menu.mobile_trigger" before="-" template="Magento_Backend::menu-trigger.phtml" />
</referenceContainer>
<referenceBlock name="head.additional">
<block name="responsive.js" template="Magento_Backend::js.phtml" />
</referenceBlock>
</body>
</page>
7 changes: 7 additions & 0 deletions Magento_Backend/templates/js.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script type="text/x-magento-init">
{
"*": {
"js/responsive": {}
}
}
</script>
5 changes: 5 additions & 0 deletions Magento_Backend/templates/menu-trigger.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="mobile-menu-trigger">
<div class="btn">
<div class="icon"></div>
</div>
</div>
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "flexydev/theme-responsive-adminhtml-backend",
"description": "N/A",
"type": "magento2-theme",
"license": [
"OSL-3.0"
],
"config": {
"sort-packages": true
},
"require": {
"php": ">=7.0",
"magento/framework": ">=100.0"
},
"autoload": {
"files": [
"registration.php"
]
}
}

61 changes: 61 additions & 0 deletions etc/view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0"?>
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
<vars module="Js_Bundle">
<var name="bundle_size">1MB</var>
</vars>
<media>
<images module="Magento_Catalog">
<image id="product_listing_thumbnail" type="thumbnail">
<width>75</width>
<height>75</height>
</image>
<image id="product_listing_thumbnail_preview" type="thumbnail"/>
<image id="product_thumbnail_image" type="thumbnail">
<width>75</width>
<height>75</height>
</image>
</images>
</media>
<exclude>
<item type="file">Lib::mage/captcha.js</item>
<item type="file">Lib::mage/common.js</item>
<item type="file">Lib::mage/cookies.js</item>
<item type="file">Lib::mage/dataPost.js</item>
<item type="file">Lib::mage/decorate.js</item>
<item type="file">Lib::mage/deletable-item.js</item>
<item type="file">Lib::mage/dropdown.js</item>
<item type="file">Lib::mage/dropdowns.js</item>
<item type="file">Lib::mage/fieldset-controls.js</item>
<item type="file">Lib::mage/item-table.js</item>
<item type="file">Lib::mage/list.js</item>
<item type="file">Lib::mage/loader.js</item>
<item type="file">Lib::mage/menu.js</item>
<item type="file">Lib::mage/redirect-url.js</item>
<item type="file">Lib::mage/sticky.js</item>
<item type="file">Lib::mage/terms.js</item>
<item type="file">Lib::mage/toggle.js</item>
<item type="file">Lib::mage/tooltip.js</item>
<item type="file">Lib::mage/validation/validation.js</item>
<item type="file">Lib::mage/adminhtml/varienLoader.js</item>
<item type="file">Lib::mage/adminhtml/tools.js</item>
<item type="file">Lib::mage/gallery/gallery.js</item>
<item type="file">Lib::mage/requirejs/mixins.js</item>
<item type="file">Lib::mage/requirejs/static.js</item>
<item type="file">Lib::jquery/jquery.min.js</item>
<item type="file">Lib::jquery/jquery.parsequery.js</item>
<item type="file">Lib::jquery/jquery-ui.js</item>
<item type="file">Lib::matchMedia.js</item>
<item type="file">Lib::requirejs/require.js</item>
<item type="file">Lib::requirejs/text.js</item>
<item type="file">Lib::varien/js.js</item>
<item type="directory">Lib::css</item>
<item type="directory">Lib::lib</item>
<item type="directory">Lib::prototype</item>
<item type="directory">Lib::scriptaculous</item>
<item type="directory">Lib::extjs</item>
<item type="directory">Lib::less</item>
<item type="directory">Lib::fotorama</item>
<item type="directory">Lib::magnifier</item>
<item type="directory">Lib::tiny_mce</item>
</exclude>
</view>
5 changes: 5 additions & 0 deletions registration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

use Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(ComponentRegistrar::THEME, 'adminhtml/Flexydev/responsive', __DIR__);
4 changes: 4 additions & 0 deletions theme.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>Magento 2 responsive backend</title>
<parent>Magento/backend</parent>
</theme>
Loading

0 comments on commit de33fc8

Please sign in to comment.