Skip to content

Commit

Permalink
filament v3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jul 24, 2023
1 parent 6ae1cfa commit 9f6464a
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 101 deletions.
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 4
indent_size = 2
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug Report
description: Report an Issue or Bug with the Package
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: What did you expect to happen?
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
validations:
required: true
- type: textarea
id: how-to-reproduce
attributes:
label: How to reproduce the bug
description: How did this occur, please add any config values used and provide a set of reliable steps if possible.
placeholder: When I do X I see Y.
validations:
required: true
- type: input
id: package-version
attributes:
label: Package Version
description: What version of our Package are you running? Please be as specific as possible
placeholder: 2.0.0
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP Version
description: What version of PHP are you running? Please be as specific as possible
placeholder: 8.2.0
validations:
required: true
- type: input
id: laravel-version
attributes:
label: Laravel Version
description: What version of Laravel are you running? Please be as specific as possible
placeholder: 9.0.0
validations:
required: true
- type: dropdown
id: operating-systems
attributes:
label: Which operating systems does with happen with?
description: You may select more than one.
multiple: true
options:
- macOS
- Windows
- Linux
- type: textarea
id: notes
attributes:
label: Notes
description: Use this field to provide any other notes that you feel might be relevant to the issue.
validations:
required: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
116 changes: 60 additions & 56 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,62 @@
{
"name": "lara-zeus/artemis",
"description": "artistic themes for lara zeus sky",
"keywords": [
"laravel",
"lara-zeus",
"sky",
"cms",
"pages",
"posts",
"menu",
"news",
"wordpress laravel",
"wordpress alternative",
"laravel cms"
],
"homepage": "https://larazeus.com",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "php coder",
"email": "[email protected]",
"role": "Owner"
}
],
"require": {
"php": "^8.0",
"lara-zeus/core": "3.x-dev"
},
"require-dev": {
"orchestra/testbench": "^7.0 || ^8.0",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.0.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0"
},
"autoload": {
"psr-4": {
"LaraZeus\\Artemis\\": "src"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"extra": {
"laravel": {
"providers": [
"LaraZeus\\Artemis\\ArtemisServiceProvider"
]
}
},
"minimum-stability": "dev"
"name": "lara-zeus/artemis",
"description": "artistic themes for lara zeus sky",
"keywords": [
"laravel",
"lara-zeus",
"sky",
"cms",
"pages",
"posts",
"menu",
"news",
"wordpress laravel",
"wordpress alternative",
"laravel cms"
],
"homepage": "https://larazeus.com/artemis",
"support": {
"issues": "https://github.com/lara-zeus/artemis/issues",
"source": "https://github.com/lara-zeus/artemis"
},
"license": "MIT",
"type": "library",
"authors": [
{
"name": "php coder",
"email": "[email protected]",
"role": "Owner"
}
],
"require": {
"php": "^8.0",
"lara-zeus/core": "3.x-dev"
},
"require-dev": {
"orchestra/testbench": "^7.0 || ^8.0",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.0.1",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0"
},
"autoload": {
"psr-4": {
"LaraZeus\\Artemis\\": "src"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"extra": {
"laravel": {
"providers": [
"LaraZeus\\Artemis\\ArtemisServiceProvider"
]
}
},
"minimum-stability": "dev"
}
5 changes: 2 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ includes:
- phpstan-baseline.neon

parameters:
level: 4
level: 6
paths:
- src
- config
- database
- tests
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false

5 changes: 4 additions & 1 deletion pint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"spacing": "one"
},
"method_argument_space": true,
"single_trait_insert_per_statement": true
"single_trait_insert_per_statement": true,
"types_spaces": {
"space": "single"
}
}
}
32 changes: 0 additions & 32 deletions src/ArtemisPlugin.php

This file was deleted.

12 changes: 6 additions & 6 deletions src/ArtemisServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@

class ArtemisServiceProvider extends PackageServiceProvider
{
public static string $name = 'zeus-artemis';

public function packageBooted(): void
{
//$this->package->hasViews('zeus');
//CoreServiceProvider::setThemePath('artemis');

$themePath = 'zeus::themes.' . config('zeus.theme');
View::share('artemisTheme', $themePath);
App::singleton('artemisTheme', function () use ($themePath) {
// not needed in app level
/*App::singleton('artemisTheme', function () use ($themePath) {
return $themePath;
});
});*/
}

public function configurePackage(Package $package): void
{
$package
->name('zeus-artemis')
->name(static::$name)
->hasAssets()
->hasConfigFile()
->hasViews('zeus')
Expand Down

0 comments on commit 9f6464a

Please sign in to comment.