Skip to content

Commit

Permalink
[#72] Remove asset bundle. Inline edit button css
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed Dec 22, 2023
1 parent 4ed7c46 commit 9572db3
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 561 deletions.
32 changes: 0 additions & 32 deletions src/Bundle.php

This file was deleted.

20 changes: 13 additions & 7 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use yii\base\Event;
use craft\events\RegisterCpNavItemsEvent;
use craft\events\RegisterTemplateRootsEvent;
use craft\events\RegisterUrlRulesEvent;
use craft\web\UrlManager;
use craft\web\twig\variables\Cp;
use craft\web\View;
use craft\web\twig\variables\CraftVariable;
Expand Down Expand Up @@ -52,10 +50,6 @@ public function bootstrap($app)
$this->_bindEvents();

Craft::$app->view->registerTwigExtension(new Extension());

if (!Craft::$app->request->getIsAjax() && !Craft::$app->request->getIsConsoleRequest()) {
Craft::$app->view->registerAssetBundle(Bundle::class);
}
}

if (Craft::$app->request->getIsCpRequest()) {
Expand Down Expand Up @@ -147,7 +141,19 @@ static function (Event $e) {

echo '<a
href="' . $element->cpEditUrl . '"
class="edit-entry"
style="
background: #e5422b;
border-top-right-radius: 5px;
bottom: 0;
color: #fff;
font-size: 14px;
left: 0;
line-height: 1;
padding: 10px;
position: fixed;
text-decoration: none;
z-index: 10;
"
target="_blank"
rel="noopener"
>
Expand Down
231 changes: 0 additions & 231 deletions src/resources/css/parts-kit.css

This file was deleted.

13 changes: 0 additions & 13 deletions src/resources/css/style.css

This file was deleted.

3 changes: 0 additions & 3 deletions src/resources/icons/caret.svg

This file was deleted.

4 changes: 0 additions & 4 deletions src/resources/icons/close-circle.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/resources/icons/pk-component.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/resources/icons/pk-expand.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/resources/icons/pk-sidebar.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/resources/icons/search.svg

This file was deleted.

Loading

0 comments on commit 9572db3

Please sign in to comment.