Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/change-repository-name #346

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/create-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
coverage: none
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer create-project --prefer-dist juzaweb/juzacms blog ${{ matrix.version }}
run: composer create-project --prefer-dist juzaweb/cms blog ${{ matrix.version }}
- name: Copy .env
working-directory: blog
run: rm .env && cp .env.testing.example .env
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ JUZACMS - Laravel CMS for Your Project

## About
![https://buymeacoffee.com/juzaweb](https://i.imgur.com/toObY8s.png)
[![Total Downloads](https://img.shields.io/packagist/dt/juzaweb/juzacms.svg?style=social)](https://packagist.org/packages/juzaweb/juzacms)
[![GitHub Repo stars](https://img.shields.io/github/stars/juzaweb/juzacms?style=social)](https://github.com/juzaweb/juzacms)
[![Total Downloads](https://img.shields.io/packagist/dt/juzaweb/juzacms.svg?style=social)](https://packagist.org/packages/juzaweb/cms)
[![GitHub Repo stars](https://img.shields.io/github/stars/juzaweb/cms?style=social)](https://github.com/juzaweb/cms)
[![GitHub followers](https://img.shields.io/github/followers/juzaweb?style=social)](https://github.com/juzaweb)
[![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCo6Dz9HjjBOJpgWsxkln0-A?style=social)](https://www.youtube.com/@juzaweb)

Expand All @@ -25,7 +25,7 @@ JUZACMS - Laravel CMS for Your Project
## Install
### Create project with composer
```
composer create-project --prefer-dist juzaweb/juzacms blog
composer create-project --prefer-dist juzaweb/cms blog
```
### Install

Expand All @@ -40,7 +40,7 @@ View all [JuzaWeb CMS documentation](https://juzaweb.com/documentation/plugin/cm

## Contributing
- Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.
[https://github.com/juzaweb/juzacms/blob/master/CONTRIBUTING.md](https://github.com/juzaweb/juzacms/blob/master/CONTRIBUTING.md)
[https://github.com/juzaweb/cms/blob/master/CONTRIBUTING.md](https://github.com/juzaweb/cms/blob/master/CONTRIBUTING.md)

## Features
- [x] File manager
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "juzaweb/juzacms",
"name": "juzaweb/cms",
"type": "project",
"description": "Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Framework and web platform whose sole purpose is to make your development workflow simple again. Project develop by Juzaweb",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion define.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author The Anh Dang <dangtheanh16@gmail.com>
* @link https://juzaweb.com/cms
* @license MIT
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Actions/APIAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/Admin/AdminApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license MIT
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/Admin/DataTableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license MIT
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/Admin/GeneralController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license MIT
Expand Down
8 changes: 4 additions & 4 deletions modules/API/Http/Controllers/Admin/Media/FileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand All @@ -23,16 +23,16 @@ class FileController extends ApiController
public function __construct(protected MediaFileRepository $fileRepository)
{
}

public function index(Request $request): JsonResponse
{
$queries = $request->all();
$this->fileRepository->pushCriteria(new SearchCriteria($queries));
$this->fileRepository->pushCriteria(new FilterCriteria($queries));
$this->fileRepository->pushCriteria(new SortCriteria($queries));

$results = $this->fileRepository->paginate($this->getQueryLimit($request));

return $this->restPaginate($results);
}
}
8 changes: 4 additions & 4 deletions modules/API/Http/Controllers/Admin/Media/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand All @@ -23,16 +23,16 @@ class FolderController extends ApiController
public function __construct(protected MediaFolderRepository $folderRepository)
{
}

public function index(Request $request): JsonResponse
{
$queries = $request->all();
$this->folderRepository->pushCriteria(new SearchCriteria($queries));
$this->folderRepository->pushCriteria(new FilterCriteria($queries));
$this->folderRepository->pushCriteria(new SortCriteria($queries));

$results = $this->folderRepository->paginate($this->getQueryLimit($request));

return $this->restPaginate($results);
}
}
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/Admin/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - Laravel CMS for Your Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author The Anh Dang
* @link https://juzaweb.com/cms
* @license GNU V2
Expand Down
4 changes: 2 additions & 2 deletions modules/API/Http/Controllers/Admin/SettingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license MIT
Expand All @@ -21,7 +21,7 @@ class SettingController extends ApiController
public function __construct(protected ConfigContract $config)
{
}

/**
* @OA\Get(
* path="/api/admin/setting/configs",
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/Admin/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license MIT
Expand Down
8 changes: 4 additions & 4 deletions modules/API/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - Laravel CMS for Your Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author The Anh Dang
* @link https://juzaweb.com/cms
* @license GNU V2
Expand Down Expand Up @@ -31,13 +31,13 @@ public function login(LoginRequest $request): JsonResponse

return $this->respondWithToken($token, $user);
}

public function profile(Request $request): JsonResponse
{
$user = $request->user('api');

$token = $user->token();

return $this->respondWithToken(
new PersonalAccessTokenResult($request->bearerToken(), $token),
$user
Expand Down
4 changes: 2 additions & 2 deletions modules/API/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/**
* JUZAWEB CMS - Laravel CMS for Your Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author The Anh Dang
* @link https://juzaweb.com/cms
* @link https://juzaweb.com
* @license GNU V2
*/

Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand All @@ -21,15 +21,15 @@ public function __construct(protected HookAction $hookAction)
{
do_action(Action::API_DOCUMENT_INIT);
}

public function index(string $document): JsonResponse
{
$documentation = $this->hookAction->getAPIDocuments($document);

if (empty($documentation)) {
abort(404);
}

return response()->json(
$documentation,
200,
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/MenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - Laravel CMS for Your Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author The Anh Dang
* @link https://juzaweb.com/cms
* @license GNU V2
Expand Down
12 changes: 6 additions & 6 deletions modules/API/Http/Controllers/SettingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand All @@ -25,7 +25,7 @@ public function __construct(
protected ConfigContract $configContract
) {
}

public function index(): \Illuminate\Http\JsonResponse
{
$showApiKeys = $this->hookAction->getConfigs()->where('show_api', true)->keys()->toArray();
Expand All @@ -39,7 +39,7 @@ function ($item) {
);
}
);

/*$taxonomies = $this->hookAction->getTaxonomies()->map(
function ($item) {
dd($item);
Expand All @@ -49,7 +49,7 @@ function ($item) {
);
}
);*/

$permalinks = collect($this->hookAction->getPermalinks())->keyBy('base')->map(
function ($item) {
return Arr::only(
Expand All @@ -58,12 +58,12 @@ function ($item) {
);
}
);

$register = Arr::only(
Theme::find(jw_current_theme())->getRegister(),
['templates', 'sidebars', 'widgets', 'blocks', 'nav_menus']
);

return $this->restSuccess(
[
'general' => $configs,
Expand Down
4 changes: 2 additions & 2 deletions modules/API/Http/Controllers/SidebarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand All @@ -17,7 +17,7 @@ class SidebarController extends ApiController
public function show(string $sidebar): \Illuminate\Http\JsonResponse
{
$config = get_theme_config("sidebar_{$sidebar}", []);

return $this->restSuccess(array_values($config));
}
}
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/TaxonomyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license GNU General Public License v2.0
Expand Down
2 changes: 1 addition & 1 deletion modules/API/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - Laravel CMS for Your Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author The Anh Dang
* @link https://juzaweb.com/cms
* @license GNU V2
Expand Down
8 changes: 4 additions & 4 deletions modules/API/Http/Middleware/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* JUZAWEB CMS - The Best CMS for Laravel Project
*
* @package juzaweb/juzacms
* @package juzaweb/cms
* @author Juzaweb Team <admin@juzaweb.com>
* @link https://juzaweb.com
* @license MIT
Expand All @@ -21,13 +21,13 @@ public function handle($request, Closure $next)
if (!$user = Auth::guard('api')->user()) {
abort(403, __('You can not access this page.'));
}

if (!has_permission($user)) {
abort(403, __('You can not access this page.'));
}

do_action(Action::BACKEND_INIT, $request);

return $next($request);
}
}
Loading
Loading