https://github.com/azzarip/utilities
Utility Package for my website
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.3%) to scientific vocabulary
Repository
Utility Package for my website
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 15
Metadata Files
README.md
Contains utilities classes used on all Pizza Azzari websites.
CHF
Contains the CHF object. It reads rappe integers as
CHF::int(142) // 1.42 CHF
CHF::chf(1.42) // 1.42 CHF
The CHF objects outputs the string value as
$chf = CHF::int(100)
{{ $chf }} // 1.00
$chf->format() // 1.-
$chf->label() // CHF 1.-
Cookie
Add before the end of the html document
@livewire('cookie-consent')
It will spawn a modal with three options:
- Accept all
- Only Essentials
- Modify Depending on the choice of the user, it will deploy a cookie that will confirm the acceptance of the cookie policy.
The cookie is calle cookie_consent is not encrypted, and contains a timestamp, the three consent (optional, marketing, analytics) and a version of the cookie banner.
The cookie is refreshed every time, expires after one year or with a change of version.
Admin Panel
Installation
Run the following artisan command:
php artisan admin-panel:install
It will create a view/admin-panel directory with home.blade.php inside.
This file access the admin home page at home.DOMAIN_BASE.
Other console commands
Install a new panel, which is automatically discovered.
php artisan admin-panel:make panel_name
Creates a new panel with name panel_name. It is automatically discovered, when the 1 day cache expires.
To refresh the cache use
php artisan admin-panel:refresh
Owner
- Name: Paride Azzari
- Login: azzarip
- Kind: user
- Location: Zurich
- Company: ETH Zurich
- Repositories: 1
- Profile: https://github.com/azzarip
Theoretical Physicist and Computational Scientist at ETH Zurich
GitHub Events
Total
- Push event: 6
Last Year
- Push event: 6
Packages
- Total packages: 1
-
Total downloads:
- packagist 510 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 15
- Total maintainers: 1
packagist.org: azzarip/utilities
Utilities for websites using Laravel
- License: MIT
-
Latest release: 2.2.0
published about 2 years ago