Skip to content

Commit

Permalink
MINIMUM DONE. URA
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 2, 2015
1 parent 303ac77 commit cf4564b
Show file tree
Hide file tree
Showing 28 changed files with 570 additions and 160 deletions.
78 changes: 60 additions & 18 deletions .hidev/config.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,70 @@
{
"package": {
"type": "package",
"name": "hidev",
"label": "HiDev",
"title": "HiDev - integrate your development",
"license": "BSD-3-clause",
"keywords": [
"hiqdev",
"tool",
"continuous integration",
"code generator"
],
"description": "Mix all the tools to make your code shine",
"name": "hidev",
"label": "HiDev",
"title": "HiDev - integrate your development",
"type": "project",
"features": "yii2, tool",
"license": "BSD-3-Clause",
"source": "https://github.com/hiqdev/hidev",
"forum": "https://forum.hidev.com/",
"language": "PHP",
"homepage": "https://hidev.me/",
"keywords": "hiqdev, tool, continuous integration, code generator",
"namespace": "hiqdev\\hidev",
"description": "Mix all the tools to make your code shine",
"year": 2014
},
"vendor": {
"name": "hiqdev",
"title": "HiQDev",
"site": "http://hiqdev.com/"
"name": "hiqdev",
"title": "HiQDev",
"homepage": "http://hiqdev.com/",
"email": "support@hiqdev.com",
"authors": {
"Andrii Vasyliev": {
"role": "Project lead",
"email": "sol@hiqdev.com",
"homepage": "https://hipanel.com/"
},
"Dmitry Naumenko": {
"role": "Lead backend developer",
"email": "silverfire@hiqdev.com",
"homepage": "http://silverfire.me/"
},
"Andrey Klochok": {
"role": "Lead frontend developer",
"email": "tafid@hiqdev.com",
"homepage": "https://hiqdev.com/"
},
"Yuriy Myronchuk": {
"role": "QA Lead",
"email": "bladeroot@hiqdev.com",
"homepage": "https://hiqdev.com/"
}
}
},
"all": {
"LICENSE": [],
".gitignore": []
"LICENSE": [],
"composer": [],
".gitignore": [],
"README.md": [],
"CHANGELOG.md": []
},
"install": {
"composer self-update": []
},
"LICENSE.md": []
"composer.json": {
"data": {
"require": {
"yiisoft/yii2-gii": "2.*",
"hiqdev/yii2-collection": "*@dev"
},
"autoload": {
"psr-4": {
"hiqdev\\hidev\\": ""
}
},
"bin": ["hidev"]
}
}
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
changelog
----------

### 0.1.0 under development

- inited

3 changes: 0 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
The HiDev package is free software.
It is released under the terms of the following BSD 3-clause License.

Copyright © 2014-2015, HiQDev (http://hiqdev.com/)
All rights reserved.

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HiDev - integrate your development
----------------------------------

Mix all the tools to make your code shine

For more info see wiki:
https://github.com/hiqdev/hidev/wiki
6 changes: 3 additions & 3 deletions components/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @link https://hiqdev.com/hidev
* @package hidev
* @license BSD 3-clause
* @copyright Copyright (c) 2015 HiQDev
* @copyright Copyright (c) 2015 HiQDev
*/

namespace hiqdev\hidev\components;
Expand Down Expand Up @@ -173,7 +173,7 @@ public function save($data = null)
if ($data !== null) {
$this->data = $data;
}

return $this->handler->renderPath($this->path,$this->data);
}

Expand All @@ -186,7 +186,7 @@ public function getHandler()
{
if (!is_object($this->_handler)) {
$this->_handler = Yii::createObject([
'class' => 'hiqdev\hidev\components\\' . $this->getCtype() . 'Handler',
'class' => 'hiqdev\hidev\handlers\\' . $this->getCtype(),
'template' => $this->template,
]);
}
Expand Down
35 changes: 0 additions & 35 deletions components/JsonHandler.php

This file was deleted.

46 changes: 0 additions & 46 deletions components/Maker.php

This file was deleted.

20 changes: 20 additions & 0 deletions components/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,24 @@ public function getConfig()
{
return Yii::$app->config;
}

/**
* Returns rendering context.
*
* TODO think of moving to other object from Config Goal
*/
public function getContext()
{
return $this->getConfig();
}

public function existsTemplate($template)
{
return file_exists($this->findViewFile($template, $this->getContext()));
}

public function render($template, $data)
{
return parent::render($template, $data, $this->getContext());
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"continuous integration",
"code generator"
],
"homepage": "https://hiqdev.com/hidev",
"homepage": "https://hidev.me/",
"license": "BSD-3-Clause",
"support": {
"email": "support@hiqdev.com",
Expand Down
31 changes: 31 additions & 0 deletions goals/Author.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/*
* HiDev
*
* @link https://hiqdev.com/hidev
* @package hidev
* @license BSD 3-clause
* @copyright Copyright (c) 2015 HiQDev
*/

namespace hiqdev\hidev\goals;

use Yii;

/**
* Authors for the config.
*/
class Author extends \hiqdev\collection\Model
{
public function rules()
{
return [
['name', 'safe'],
['role', 'safe'],
['email', 'safe'],
['homepage', 'safe'],
];
}

}
Loading

0 comments on commit cf4564b

Please sign in to comment.