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

Updating the package for ARCANESOFT v4 #3

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

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

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
22 changes: 13 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/_docs export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/CONTRIBUTING.md export-ignore
/phpunit.xml.dist export-ignore
* text=auto

/.github export-ignore
/_docs export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
phpcs.xml.dist export-ignore
phpunit.xml.dist export-ignore
CONTRIBUTING.md export-ignore
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/build/
/vendor/
composer.lock
composer.phar
/composer.phar
/composer.lock
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 | ARCANEDEV <[email protected]> - Backups
Copyright (c) 2017-2020 | ARCANEDEV <[email protected]> - Backups

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 27 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
"type": "library",
"license": "MIT",
"require": {
"php": ">=7.0",
"arcanesoft/auth": "~3.0",
"arcanesoft/core": "~2.6",
"spatie/laravel-backup": "~5.0"
"php": "^7.3|^8.0",
"arcanedev/laravel-backup": "^3.2",
"arcanesoft/foundation": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "~6.0",
"phpunit/phpcov": "~4.0"
"orchestra/testbench-core": "^6.0",
"phpunit/phpunit": "^9.3"
},
"autoload": {
"psr-4": {
Expand All @@ -34,6 +33,26 @@
}
},
"scripts": {
"testbench": "composer require --dev \"orchestra/testbench=~3.5.0\""
}
"test": "phpunit",
"test:dox": "phpunit --testdox"
},
"extra": {
"branch-alias": {
"dev-develop": "4.x-dev"
},
"laravel": {
"providers": [
"Arcanesoft\\Backups\\BackupsServiceProvider"
]
},
"arcanesoft": {
"install": "Arcanesoft\\Backups\\Console\\InstallCommand",
"publish": "Arcanesoft\\Backups\\Console\\PublishCommand"
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
14 changes: 0 additions & 14 deletions config/backups.php

This file was deleted.

12 changes: 12 additions & 0 deletions config/policies.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/* -----------------------------------------------------------------
| Policies
| -----------------------------------------------------------------
*/

return [

Arcanesoft\Backups\Policies\StatusesPolicy::class

];
21 changes: 21 additions & 0 deletions config/sidebar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

use Arcanesoft\Foundation\Authorization\Models\Role;
use Arcanesoft\Backups\Policies\StatusesPolicy;

return [

'items' => [
[
'name' => 'foundation::backups',
'title' => 'Backups',
'icon' => 'fas fa-fw fa-database',
'route' => 'admin::backups.statuses.index',
'roles' => [],
'permissions' => [
'admin::backups.statuses.index',
],
],
],

];
18 changes: 0 additions & 18 deletions config/sidebar/main.php

This file was deleted.

32 changes: 13 additions & 19 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-text" target="build/logs/coverage.txt"/>
<log type="coverage-html" target="build/logs/coverage" charset="UTF-8" yui="true" highlight="true"/>
</logging>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<clover outputFile="build/coverage/clover.xml"/>
<html outputDirectory="build/coverage/html"/>
<text outputFile="build/coverage/coverage.txt" showOnlySummary="true"/>
</report>
</coverage>
</phpunit>
7 changes: 0 additions & 7 deletions resources/lang/en/sidebar.php

This file was deleted.

79 changes: 0 additions & 79 deletions resources/lang/en/statuses.php

This file was deleted.

7 changes: 0 additions & 7 deletions resources/lang/fr/sidebar.php

This file was deleted.

Loading