Skip to content

Commit

Permalink
Craft 3
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcs committed May 29, 2018
1 parent fbe81e7 commit 7ac915c
Show file tree
Hide file tree
Showing 55 changed files with 839 additions and 762 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
@@ -0,0 +1,16 @@
# editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
5 changes: 2 additions & 3 deletions .gitignore
@@ -1,3 +1,2 @@
*.DS_Store
*Thumbs.db
composer.lock
/node_modules/
/mix-manifest.json
42 changes: 42 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,42 @@
# Changelog

## 2.0.0 - 2018-05-29

### Added
- Added Craft 3 compatibility.

### Changed
- Each widget is now it’s own widget type and can be added to the Dashboard by selecting it from the “New widget” dropdown.
- Each widget can now provide its own icon.

## 1.2.1 - 2016-07-24

### Added
- Added plugin and widget icons.

## 1.2.0 - 2016-07-24

### Added
- Added a very basic “Welcome” example widget.

### Changed
- Made some UI improvements to the “Search” example widget, a spinner is now shown while results are loading.

### Fixed
- The “Recent Assets” example widget now really shows the latest assets.
- The widget’s ID passed in to the templates doesn’t contain the word `widget` any longer.
- The `Craft.DiyWidget` object is now only created in the example Javascripts if it doesn’t already exist.

## 1.1.0 - 2016-07-23

### Added
- Added a new “Entry Search” example widget.
- Added a `getHtml` controller action to request the templates using Ajax.

### Changed
- Templates starting with an underscore are no longer listed in the widget settings.

## 1.0.0 - 2016-07-22

### __other__
- First release
116 changes: 0 additions & 116 deletions DiyWidgetPlugin.php

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE.md
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Carl Christian Seelbach

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
16 changes: 16 additions & 0 deletions README.md
@@ -0,0 +1,16 @@
# Do It Yourself widget for Craft CMS

A super easy way to create dashboard widgets for the Control Panel.

## Installation

Do It Yourself widget is available in the Plugin Store. You can also install the plugin manually from the command line with the following commands.

```
> composer require carlcs/craft-diywidget
> ./craft install/plugin diy-widget
```

## License

[MIT](LICENSE.md)
61 changes: 0 additions & 61 deletions _examples/countdown.js

This file was deleted.

71 changes: 0 additions & 71 deletions _examples/cp.css

This file was deleted.

@@ -1,4 +1,4 @@
{% set query = craft.request.getParam('query') %}
{% set query = craft.app.request.getParam('query') %}

{% if query %}
{% set entries = craft.entries({
Expand All @@ -8,9 +8,9 @@
subRight: true,
},
status: null,
order: 'score',
orderBy: null,
limit: 10,
}) %}
}).all() %}

{% if entries|length %}
<table class="data fullwidth">
Expand Down
Binary file added _examples/diy-widget/assets/DSC_6489.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _examples/diy-widget/countdown.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ac915c

Please sign in to comment.