Compare commits
19 Commits
feature/fi
...
hotfix/fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f353b63f7 | ||
|
|
954a4988b5 | ||
|
|
4ac13268d9 | ||
|
|
84f364de74 | ||
|
|
39c955cdc4 | ||
|
|
e02ca54187 | ||
|
|
ac46ee004b | ||
|
|
17a6eb260d | ||
|
|
5ea80366be | ||
|
|
99aa0cb980 | ||
|
|
3de53a76d0 | ||
|
|
7fa9b6aff8 | ||
|
|
79e156bd24 | ||
|
|
12a6a8eb69 | ||
|
|
eb71477ec1 | ||
|
|
2ed54eced2 | ||
|
|
32fd2b0ab8 | ||
|
|
ded374de3c | ||
|
|
1cd11cbf67 |
9
.blade-formatter.json
Normal file
9
.blade-formatter.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"indentSize": 4,
|
||||
"wrapAttributes": "auto",
|
||||
"wrapLineLength": 120,
|
||||
"endWithNewLine": true,
|
||||
"useTabs": false,
|
||||
"sortTailwindcssClasses": true,
|
||||
"sortHtmlAttributes": "none"
|
||||
}
|
||||
35
.claude/notes/number-input-spinners-removed.md
Normal file
35
.claude/notes/number-input-spinners-removed.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Number Input Spinners Removed
|
||||
|
||||
## Summary
|
||||
All number input spinner arrows (up/down buttons) have been globally removed from the application.
|
||||
|
||||
## Implementation
|
||||
CSS has been added to both main layout files to hide spinners:
|
||||
|
||||
1. **app.blade.php** (lines 17-31)
|
||||
2. **app-with-sidebar.blade.php** (lines 17-31)
|
||||
|
||||
## CSS Used
|
||||
```css
|
||||
/* Chrome, Safari, Edge, Opera */
|
||||
input[type="number"]::-webkit-outer-spin-button,
|
||||
input[type="number"]::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Firefox */
|
||||
input[type="number"] {
|
||||
-moz-appearance: textfield;
|
||||
appearance: textfield;
|
||||
}
|
||||
```
|
||||
|
||||
## User Preference
|
||||
User specifically requested:
|
||||
- Remove up/down arrows on number input boxes
|
||||
- Apply this globally across all pages
|
||||
- Remember this preference for future pages
|
||||
|
||||
## Date
|
||||
2025-11-05
|
||||
@@ -15,7 +15,11 @@
|
||||
"Bash(php -l:*)",
|
||||
"Bash(curl:*)",
|
||||
"Bash(cat:*)",
|
||||
"Bash(docker update:*)"
|
||||
"Bash(docker update:*)",
|
||||
"Bash(grep:*)",
|
||||
"Bash(sed:*)",
|
||||
"Bash(php artisan:*)",
|
||||
"Bash(php check_blade.php:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
||||
15
.env.example
15
.env.example
@@ -77,10 +77,25 @@ MAIL_ENCRYPTION=null
|
||||
MAIL_FROM_ADDRESS="hello@example.com"
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
|
||||
# AWS/MinIO S3 Storage Configuration
|
||||
# Local development: Use FILESYSTEM_DISK=public (default)
|
||||
# Production: Use FILESYSTEM_DISK=s3 with MinIO credentials below
|
||||
AWS_ACCESS_KEY_ID=
|
||||
AWS_SECRET_ACCESS_KEY=
|
||||
AWS_DEFAULT_REGION=us-east-1
|
||||
AWS_BUCKET=
|
||||
AWS_ENDPOINT=
|
||||
AWS_URL=
|
||||
AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||
|
||||
# Production MinIO Configuration (example):
|
||||
# FILESYSTEM_DISK=s3
|
||||
# AWS_ACCESS_KEY_ID=TrLoFnMOVQC2CqLm9711
|
||||
# AWS_SECRET_ACCESS_KEY=4tfik06LitWz70L4VLIA45yXla4gi3zQI2IA3oSZ
|
||||
# AWS_DEFAULT_REGION=us-east-1
|
||||
# AWS_BUCKET=media
|
||||
# AWS_ENDPOINT=https://cdn.cannabrands.app
|
||||
# AWS_URL=https://cdn.cannabrands.app/media
|
||||
# AWS_USE_PATH_STYLE_ENDPOINT=true
|
||||
|
||||
VITE_APP_NAME="${APP_NAME}"
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -58,3 +58,4 @@ core.*
|
||||
!resources/**/*.png
|
||||
!resources/**/*.jpg
|
||||
!resources/**/*.jpeg
|
||||
.claude/settings.local.json
|
||||
|
||||
20
.stylelintrc.json
Normal file
20
.stylelintrc.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "stylelint-config-standard",
|
||||
"plugins": [
|
||||
"stylelint-no-unsupported-browser-features"
|
||||
],
|
||||
"rules": {
|
||||
"no-descending-specificity": null,
|
||||
"selector-class-pattern": null,
|
||||
"custom-property-pattern": null,
|
||||
"declaration-block-no-duplicate-properties": true,
|
||||
"no-duplicate-selectors": true
|
||||
},
|
||||
"ignoreFiles": [
|
||||
"**/*.js",
|
||||
"**/*.php",
|
||||
"node_modules/**",
|
||||
"vendor/**",
|
||||
"public/**"
|
||||
]
|
||||
}
|
||||
14
CLAUDE.md
14
CLAUDE.md
@@ -35,6 +35,19 @@ ALL routes need auth + user type middleware except public pages
|
||||
❌ No IF/ELSE logic in migrations (not supported)
|
||||
✅ Use Laravel Schema builder or conditional PHP code
|
||||
|
||||
### 7. Styling - DaisyUI/Tailwind Only
|
||||
❌ **NEVER use inline `style=""` attributes** in Blade templates
|
||||
✅ **ALWAYS use DaisyUI/Tailwind utility classes**
|
||||
**Why:** Consistency, maintainability, theme switching, and better performance
|
||||
|
||||
**Correct patterns:**
|
||||
- Colors: Use `bg-primary`, `text-primary`, `bg-success`, etc. (defined in `resources/css/app.css`)
|
||||
- Spacing: Use `p-4`, `m-2`, `gap-3` (Tailwind utilities)
|
||||
- Layout: Use `flex`, `grid`, `items-center` (Tailwind utilities)
|
||||
- Custom colors: Add to `resources/css/app.css` theme variables, NOT inline
|
||||
|
||||
**Exception:** Only use inline styles for truly dynamic values from database (e.g., user-uploaded brand colors)
|
||||
|
||||
---
|
||||
|
||||
## Tech Stack by Area
|
||||
@@ -106,4 +119,5 @@ Product::where('is_active', true)->get(); // No business_id filter!
|
||||
✅ Use Eloquent (never raw SQL)
|
||||
✅ Protect routes with middleware
|
||||
✅ DaisyUI for buyer/seller, Filament only for admin
|
||||
✅ NO inline styles - use Tailwind/DaisyUI classes only
|
||||
✅ Run tests before committing
|
||||
|
||||
157
CONTRIBUTING.md
157
CONTRIBUTING.md
@@ -239,6 +239,163 @@ git push origin feature/my-feature
|
||||
git push --no-verify
|
||||
```
|
||||
|
||||
### Keeping Your Feature Branch Up-to-Date
|
||||
|
||||
**Best practice for teams:** Sync your feature branch with `develop` regularly to avoid large merge conflicts.
|
||||
|
||||
#### Daily Start-of-Work Routine
|
||||
|
||||
```bash
|
||||
# 1. Get latest changes from develop
|
||||
git checkout develop
|
||||
git pull origin develop
|
||||
|
||||
# 2. Update your feature branch
|
||||
git checkout feature/my-feature
|
||||
git merge develop
|
||||
|
||||
# 3. If there are conflicts (see below), resolve them
|
||||
# 4. Continue working
|
||||
```
|
||||
|
||||
**How often?**
|
||||
- Minimum: Once per day (start of work)
|
||||
- Better: Multiple times per day if develop is active
|
||||
- Always: Before creating your Pull Request
|
||||
|
||||
#### Merge vs Rebase: Which to Use?
|
||||
|
||||
**For teams of 5+ developers, use `merge` (not `rebase`):**
|
||||
|
||||
```bash
|
||||
git checkout feature/my-feature
|
||||
git merge develop
|
||||
```
|
||||
|
||||
**Why merge over rebase?**
|
||||
- ✅ Safer: Preserves your commit history
|
||||
- ✅ Collaborative: Works when multiple people work on the same feature branch
|
||||
- ✅ Transparent: Shows when you integrated upstream changes
|
||||
- ✅ No force-push: Once you've pushed to origin, merge won't require `--force`
|
||||
|
||||
**When to use rebase:**
|
||||
- ⚠️ Only if you haven't pushed yet
|
||||
- ⚠️ Only if you're the sole developer on the branch
|
||||
- ⚠️ You want a cleaner, linear history
|
||||
|
||||
```bash
|
||||
# Only do this if you haven't pushed yet!
|
||||
git checkout feature/my-feature
|
||||
git rebase develop
|
||||
```
|
||||
|
||||
**Never rebase after pushing** - it rewrites history and breaks collaboration.
|
||||
|
||||
#### Handling Merge Conflicts
|
||||
|
||||
When you run `git merge develop` and see conflicts:
|
||||
|
||||
```bash
|
||||
$ git merge develop
|
||||
Auto-merging app/Http/Controllers/OrderController.php
|
||||
CONFLICT (content): Merge conflict in app/Http/Controllers/OrderController.php
|
||||
Automatic merge failed; fix conflicts and then commit the result.
|
||||
```
|
||||
|
||||
**Step-by-step resolution:**
|
||||
|
||||
1. **See which files have conflicts:**
|
||||
```bash
|
||||
git status
|
||||
# Look for "both modified:" files
|
||||
```
|
||||
|
||||
2. **Open conflicted files** - look for conflict markers:
|
||||
```php
|
||||
<<<<<<< HEAD
|
||||
// Your code
|
||||
=======
|
||||
// Code from develop
|
||||
>>>>>>> develop
|
||||
```
|
||||
|
||||
3. **Resolve conflicts** - edit the file to keep what you need:
|
||||
```php
|
||||
// Choose your code, their code, or combine both
|
||||
// Remove the <<<, ===, >>> markers
|
||||
```
|
||||
|
||||
4. **Mark as resolved:**
|
||||
```bash
|
||||
git add app/Http/Controllers/OrderController.php
|
||||
```
|
||||
|
||||
5. **Complete the merge:**
|
||||
```bash
|
||||
git commit -m "merge: resolve conflicts with develop"
|
||||
```
|
||||
|
||||
6. **Run tests to ensure nothing broke:**
|
||||
```bash
|
||||
./vendor/bin/sail artisan test
|
||||
```
|
||||
|
||||
7. **Push the merge commit:**
|
||||
```bash
|
||||
git push origin feature/my-feature
|
||||
```
|
||||
|
||||
#### When Conflicts Are Too Complex
|
||||
|
||||
If conflicts are extensive or you're unsure:
|
||||
|
||||
1. **Abort the merge:**
|
||||
```bash
|
||||
git merge --abort
|
||||
```
|
||||
|
||||
2. **Ask for help** in #engineering Slack:
|
||||
- "I'm merging develop into feature/X and have conflicts in OrderController"
|
||||
- Someone might have context on the upstream changes
|
||||
|
||||
3. **Pair program the resolution** - screen share with the person who made the conflicting changes
|
||||
|
||||
4. **Alternative: Start fresh** (last resort):
|
||||
```bash
|
||||
# Create new branch from latest develop
|
||||
git checkout develop
|
||||
git pull origin develop
|
||||
git checkout -b feature/my-feature-v2
|
||||
|
||||
# Cherry-pick your commits
|
||||
git cherry-pick <commit-hash>
|
||||
```
|
||||
|
||||
#### Example: Multi-Day Feature Work
|
||||
|
||||
```bash
|
||||
# Monday morning
|
||||
git checkout develop && git pull origin develop
|
||||
git checkout feature/payment-integration
|
||||
git merge develop # Get latest changes
|
||||
# Work all day, make commits
|
||||
|
||||
# Tuesday morning
|
||||
git checkout develop && git pull origin develop
|
||||
git checkout feature/payment-integration
|
||||
git merge develop # Sync again (someone added auth changes)
|
||||
# Continue working
|
||||
|
||||
# Wednesday
|
||||
git checkout develop && git pull origin develop
|
||||
git checkout feature/payment-integration
|
||||
git merge develop # Final sync before PR
|
||||
git push origin feature/payment-integration
|
||||
# Create Pull Request
|
||||
```
|
||||
|
||||
**Result:** Small, manageable syncs instead of one huge conflict on PR day.
|
||||
|
||||
### When to Test Locally
|
||||
|
||||
**Always run tests before pushing if you:**
|
||||
|
||||
258
PRODUCT2_INSTRUCTIONS.md
Normal file
258
PRODUCT2_INSTRUCTIONS.md
Normal file
@@ -0,0 +1,258 @@
|
||||
# PRODUCT2 MIGRATION INSTRUCTIONS
|
||||
|
||||
## Context
|
||||
We are migrating the OLD seller product page from `../cannabrands-hub-old` to create a new "Product2" page in the current project at `/hub`. This page will be a comprehensive, modernized version of the old seller product edit page.
|
||||
|
||||
## Critical Rules
|
||||
1. **SELLER SIDE ONLY** - Work only with `/s/` routes (seller area)
|
||||
2. **STAY IN BRANCH** - `feature/product-page-migrate` (verify before making changes)
|
||||
3. **ROLLBACK READY** - All database migrations must be fully reversible
|
||||
4. **DO NOT TOUCH BOM** - Leave existing BOM functionality completely as-is (we'll discuss later)
|
||||
5. **SINGLE PAGE LAYOUT** - No tabs, use card-based layout with Nexus components
|
||||
6. **FOLLOW OLD LAYOUT** - Modernize the old product page structure, don't reinvent
|
||||
|
||||
## Old Project Analysis Complete
|
||||
- Old project location: `../cannabrands-hub-old`
|
||||
- Old used Laravel CRM for product management
|
||||
- Comprehensive field analysis done (see below)
|
||||
- Old layout analyzed from vendor views
|
||||
|
||||
## Complete Missing Fields (from migrations analysis)
|
||||
|
||||
### From `products` table:
|
||||
```sql
|
||||
-- Metadata
|
||||
product_line (text, nullable)
|
||||
product_link (text, nullable) -- External URL
|
||||
creatives (text, nullable) -- Marketing assets
|
||||
barcode (string, nullable)
|
||||
brand_display_order (integer, nullable)
|
||||
|
||||
-- Configuration
|
||||
has_varieties (boolean, default: false)
|
||||
license_id (unsignedBigInteger, nullable)
|
||||
sell_multiples (boolean, default: false)
|
||||
fractional_quantities (boolean, default: false)
|
||||
allow_sample (boolean, default: false)
|
||||
isFPR (boolean, default: false)
|
||||
isSellable (boolean, default: false)
|
||||
|
||||
-- Case/Box Packaging
|
||||
isCase (boolean, default: false)
|
||||
cased_qty (integer, default: 0)
|
||||
isBox (boolean, default: false)
|
||||
boxed_qty (integer, default: 0)
|
||||
|
||||
-- Dates
|
||||
launch_date (date, nullable)
|
||||
|
||||
-- Inventory Management
|
||||
inventory_manage_pct (integer, nullable) -- 0-100%
|
||||
min_order_qty (integer, nullable)
|
||||
max_order_qty (integer, nullable)
|
||||
low_stock_threshold (integer, nullable)
|
||||
low_stock_alert_enabled (boolean, default: false)
|
||||
|
||||
-- Strain
|
||||
strain_value (decimal 8,2, nullable)
|
||||
|
||||
-- Arizona Compliance
|
||||
arz_total_weight (decimal 10,3, nullable)
|
||||
arz_usable_mmj (decimal 10,3, nullable)
|
||||
|
||||
-- Descriptions
|
||||
long_description (text, nullable)
|
||||
ingredients (text, nullable)
|
||||
effects (text, nullable)
|
||||
dosage_guidelines (text, nullable)
|
||||
|
||||
-- Visibility
|
||||
show_inventory_to_buyers (boolean, default: false)
|
||||
|
||||
-- Threshold Automation
|
||||
decreasing_qty_threshold (integer, nullable)
|
||||
decreasing_qty_action (string, nullable)
|
||||
increasing_qty_threshold (integer, nullable)
|
||||
increasing_qty_action (string, nullable)
|
||||
|
||||
-- Packaging Reference
|
||||
packaging_id (foreignId, nullable)
|
||||
|
||||
-- Enhanced Status
|
||||
status (enum: available, archived, sample, backorder, internal, unavailable)
|
||||
```
|
||||
|
||||
### Need to create:
|
||||
- `product_packaging` table (id, name, description, is_active, timestamps)
|
||||
|
||||
## Product2 Page Layout (Single Page, No Tabs)
|
||||
|
||||
### Structure:
|
||||
```
|
||||
HEADER (Product name, SKU, status badges, action buttons)
|
||||
|
||||
LEFT SIDEBAR (1/3 width):
|
||||
- Product Images (main + gallery + upload)
|
||||
- Quick Stats Card (cost, wholesale, MSRP, margin)
|
||||
- Audit Info Card (created, modified, by user)
|
||||
|
||||
MAIN CONTENT (2/3 width):
|
||||
Card 1: Basic Information
|
||||
Card 2: Pricing & Units
|
||||
Card 3: Inventory Management
|
||||
Card 4: Cannabis Information
|
||||
Card 5: Product Details & Content
|
||||
Card 6: Advanced Settings
|
||||
Card 7: Compliance & Tracking
|
||||
|
||||
FULL WIDTH (bottom):
|
||||
Card 8: Product Varieties (if has_varieties = true)
|
||||
Card 9: Lab Test Results (link to separate management)
|
||||
Collapsible: Audit History
|
||||
```
|
||||
|
||||
### Cards Detail:
|
||||
|
||||
**Card 1: Basic Information**
|
||||
- Brand (dropdown) *
|
||||
- Product Line (text)
|
||||
- SKU (text) *
|
||||
- Barcode (text)
|
||||
- Product Name (text) *
|
||||
- Type (dropdown) *
|
||||
- Category (text)
|
||||
- Description (textarea)
|
||||
- Active toggle
|
||||
- Featured toggle
|
||||
|
||||
**Card 2: Pricing & Units**
|
||||
- Cost Price, Wholesale, MSRP, Margin (auto-calc)
|
||||
- Price Unit dropdown
|
||||
- Net Weight + Weight Unit
|
||||
- Units Per Case
|
||||
- Checkboxes: Sell in Multiples, Fractional Quantities, Sell as Case, Sell as Box
|
||||
|
||||
**Card 3: Inventory Management**
|
||||
- On Hand, Allocated, Available, Reorder Point (display)
|
||||
- Min/Max Order Qty
|
||||
- Low Stock Threshold + Alert checkbox
|
||||
- Show Inventory to Buyers checkbox
|
||||
- Inventory Management slider (0-100%)
|
||||
- Threshold Automation (decrease/increase triggers)
|
||||
|
||||
**Card 4: Cannabis Information**
|
||||
- THC%, CBD%, THC mg, CBD mg
|
||||
- Strain dropdown (with classification)
|
||||
- Strain Value
|
||||
- Product Packaging dropdown
|
||||
- Ingredients, Effects, Dosing Guidelines (text areas)
|
||||
- Arizona Compliance (Total Weight, Usable MMJ)
|
||||
|
||||
**Card 5: Product Details & Content**
|
||||
- Short Description
|
||||
- Long Description (rich text editor)
|
||||
- Product Link (external URL)
|
||||
- Creatives/Assets
|
||||
|
||||
**Card 6: Advanced Settings**
|
||||
- Enable Sample Requests checkbox
|
||||
- Sellable Product checkbox
|
||||
- Finished Product Ready checkbox
|
||||
- Status dropdown
|
||||
- Display Order (within brand)
|
||||
|
||||
**Card 7: Compliance & Tracking**
|
||||
- Metrc ID
|
||||
- License dropdown
|
||||
- Launch Date, Harvest Date, Package Date, Test Date
|
||||
|
||||
**Card 8: Product Varieties** (conditional)
|
||||
- Table showing child products with name, SKU, prices, stock
|
||||
- Add Variety button
|
||||
|
||||
**Card 9: Lab Test Results**
|
||||
- Summary of latest lab test
|
||||
- Link to full lab management (don't build lab CRUD yet)
|
||||
|
||||
## Tasks to Complete
|
||||
|
||||
### 1. Database Migration (with rollback)
|
||||
- Create migration: `add_product2_fields_to_products_table.php`
|
||||
- Add ALL missing fields listed above
|
||||
- Proper indexes
|
||||
- Full `down()` method for rollback
|
||||
- Create `product_packaging` table migration
|
||||
|
||||
### 2. Routes
|
||||
- File: `routes/seller.php`
|
||||
- Add under existing products routes:
|
||||
- `/{product}/edit2` → Product2 edit page
|
||||
- Keep existing routes intact
|
||||
|
||||
### 3. Controller
|
||||
- Create: `app/Http/Controllers/Seller/Product2Controller.php`
|
||||
- Methods: edit(), update()
|
||||
- Full validation for all new fields
|
||||
- Business isolation checks (CRITICAL - see CLAUDE.md)
|
||||
- Image upload handling
|
||||
|
||||
### 4. Model Updates
|
||||
- Update `app/Models/Product.php` fillable array
|
||||
- Add new relationships if needed (packaging)
|
||||
- Add accessors/mutators as needed
|
||||
|
||||
### 5. Views
|
||||
- Create: `resources/views/seller/products/edit2.blade.php`
|
||||
- Use Nexus card components
|
||||
- Single page layout (no tabs)
|
||||
- Alpine.js for interactivity
|
||||
- Follow structure outlined above
|
||||
- Use existing DaisyUI + Nexus patterns
|
||||
|
||||
### 6. Nexus Components Available
|
||||
From `nexus-html@3.1.0/resources/views/`:
|
||||
- Cards: `card`, `card-body`, `card-title`
|
||||
- Forms: `input`, `select`, `textarea`, `checkbox`, `toggle`, `label`, `fieldset`
|
||||
- Layouts: Grid system with responsive columns
|
||||
- File upload: FilePond integration
|
||||
- Date picker: Flatpickr
|
||||
- Icons: Iconify (lucide set)
|
||||
|
||||
## Key Files from Old Project
|
||||
- Controller: `vendor/venturedrake/laravel-crm/src/Http/Controllers/ProductController.php`
|
||||
- Edit View: `vendor/venturedrake/laravel-crm/resources/views/products/edit.blade.php`
|
||||
- Fields Form: `vendor/venturedrake/laravel-crm/resources/views/products/partials/fields.blade.php` (1400+ lines!)
|
||||
|
||||
## Current Project Files
|
||||
- Routes: `routes/seller.php`
|
||||
- Controller: `app/Http/Controllers/Seller/ProductController.php`
|
||||
- Model: `app/Models/Product.php`
|
||||
- Current Edit: `resources/views/seller/products/edit.blade.php`
|
||||
- Migration: `database/migrations/2025_10_07_172951_create_products_table.php`
|
||||
|
||||
## Important Notes from CLAUDE.md
|
||||
1. **Business Isolation**: ALWAYS scope by business_id BEFORE finding by ID
|
||||
- `Product::whereHas('brand', fn($q) => $q->where('business_id', $business->id))->findOrFail($id)`
|
||||
2. **Route Protection**: Use middleware `['auth', 'verified', 'seller', 'approved']`
|
||||
3. **No Filament**: Use DaisyUI + Blade for seller area
|
||||
4. **Run tests before commit**: `php artisan test --parallel && ./vendor/bin/pint`
|
||||
|
||||
## Git Branch
|
||||
- Current: `feature/product-page-migrate`
|
||||
- DO NOT commit to develop directly
|
||||
|
||||
## Next Steps
|
||||
1. Verify branch: `git branch` (should show feature/product-page-migrate)
|
||||
2. Create migrations with full rollback capability
|
||||
3. Update Product model
|
||||
4. Create Product2Controller
|
||||
5. Create edit2.blade.php view
|
||||
6. Test thoroughly
|
||||
7. Run Pint + tests
|
||||
8. Commit with clear message
|
||||
|
||||
## Questions to Clarify Before Building
|
||||
- Collapsible cards to reduce clutter? (yes/no)
|
||||
- Should quantity_on_hand be editable in UI? (currently hidden)
|
||||
- Which fields are absolutely required vs nice-to-have?
|
||||
- SQL dump ready for real data analysis?
|
||||
@@ -6,6 +6,10 @@ use App\Http\Controllers\Controller;
|
||||
use App\Models\Brand;
|
||||
use App\Models\Business;
|
||||
use App\Models\Product;
|
||||
use App\Models\ProductLine;
|
||||
use App\Models\ProductPackaging;
|
||||
use App\Models\Strain;
|
||||
use App\Models\Unit;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
@@ -69,7 +73,13 @@ class ProductController extends Controller
|
||||
// Get all brands for filter dropdown
|
||||
$brands = $business->brands()->orderBy('name')->get();
|
||||
|
||||
return view('seller.products.index', compact('business', 'products', 'brands'));
|
||||
// Get product lines for this business with products count
|
||||
$productLines = ProductLine::where('business_id', $business->id)
|
||||
->withCount('products')
|
||||
->orderBy('name')
|
||||
->get();
|
||||
|
||||
return view('seller.products.index', compact('business', 'products', 'brands', 'productLines'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -148,23 +158,101 @@ class ProductController extends Controller
|
||||
*/
|
||||
public function edit(Business $business, Product $product)
|
||||
{
|
||||
// Eager load relationships
|
||||
$product->load(['brand', 'images']);
|
||||
// CRITICAL BUSINESS ISOLATION: Scope by business_id BEFORE finding by ID
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})
|
||||
->with(['brand', 'unit', 'strain', 'packaging', 'varieties', 'images'])
|
||||
->findOrFail($product->id);
|
||||
|
||||
// Verify product belongs to this business
|
||||
if (! $product->belongsToBusiness($business)) {
|
||||
abort(403, 'This product does not belong to your business');
|
||||
}
|
||||
// Prepare dropdown data
|
||||
$brands = Brand::where('business_id', $business->id)->get();
|
||||
$strains = Strain::all();
|
||||
$packagings = ProductPackaging::all();
|
||||
$units = Unit::all();
|
||||
$productLines = ProductLine::where('business_id', $business->id)->orderBy('name')->get();
|
||||
|
||||
$brands = $business->brands()->orderBy('name')->get();
|
||||
// Product type options (for category dropdown)
|
||||
$productTypes = [
|
||||
'flower' => 'Flower',
|
||||
'preroll' => 'Pre-Roll',
|
||||
'vape' => 'Vape',
|
||||
'concentrate' => 'Concentrate',
|
||||
'edible' => 'Edible',
|
||||
'topical' => 'Topical',
|
||||
'tincture' => 'Tincture',
|
||||
'other' => 'Other',
|
||||
];
|
||||
|
||||
// Load audits with pagination (10 per page) for the audit history tab
|
||||
$audits = $product->audits()
|
||||
->with('user')
|
||||
->latest()
|
||||
->paginate(10);
|
||||
// Status options
|
||||
$statusOptions = [
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'discontinued' => 'Discontinued',
|
||||
];
|
||||
|
||||
return view('seller.products.edit', compact('business', 'product', 'brands', 'audits'));
|
||||
return view('seller.products.edit', compact(
|
||||
'business',
|
||||
'product',
|
||||
'brands',
|
||||
'strains',
|
||||
'packagings',
|
||||
'units',
|
||||
'productLines',
|
||||
'productTypes',
|
||||
'statusOptions'
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified product (edit1 - top header layout)
|
||||
*/
|
||||
public function edit1(Business $business, Product $product)
|
||||
{
|
||||
// CRITICAL BUSINESS ISOLATION: Scope by business_id BEFORE finding by ID
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})
|
||||
->with(['brand', 'unit', 'strain', 'packaging', 'varieties', 'images'])
|
||||
->findOrFail($product->id);
|
||||
|
||||
// Prepare dropdown data
|
||||
$brands = Brand::where('business_id', $business->id)->get();
|
||||
$strains = Strain::all();
|
||||
$packagings = ProductPackaging::all();
|
||||
$units = Unit::all();
|
||||
$productLines = ProductLine::where('business_id', $business->id)->orderBy('name')->get();
|
||||
|
||||
// Product type options (for category dropdown)
|
||||
$productTypes = [
|
||||
'flower' => 'Flower',
|
||||
'preroll' => 'Pre-Roll',
|
||||
'vape' => 'Vape',
|
||||
'concentrate' => 'Concentrate',
|
||||
'edible' => 'Edible',
|
||||
'topical' => 'Topical',
|
||||
'tincture' => 'Tincture',
|
||||
'other' => 'Other',
|
||||
];
|
||||
|
||||
// Status options
|
||||
$statusOptions = [
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'discontinued' => 'Discontinued',
|
||||
];
|
||||
|
||||
return view('seller.products.edit1', compact(
|
||||
'business',
|
||||
'product',
|
||||
'brands',
|
||||
'strains',
|
||||
'packagings',
|
||||
'units',
|
||||
'productLines',
|
||||
'productTypes',
|
||||
'statusOptions'
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -172,58 +260,150 @@ class ProductController extends Controller
|
||||
*/
|
||||
public function update(Request $request, Business $business, Product $product)
|
||||
{
|
||||
// Verify product belongs to this business
|
||||
if (! $product->belongsToBusiness($business)) {
|
||||
abort(403, 'This product does not belong to your business');
|
||||
}
|
||||
|
||||
// Comprehensive validation
|
||||
$validated = $request->validate([
|
||||
// Basic Information
|
||||
'brand_id' => 'required|exists:brands,id',
|
||||
'name' => 'required|string|max:255',
|
||||
'sku' => 'required|string|max:100|unique:products,sku,'.$product->id,
|
||||
'description' => 'nullable|string',
|
||||
'type' => 'required|string|in:flower,pre-roll,concentrate,edible,beverage,topical,tincture,vaporizer,other',
|
||||
'category' => 'nullable|string|max:100',
|
||||
'wholesale_price' => 'required|numeric|min:0',
|
||||
'price_unit' => 'required|string|in:each,gram,oz,lb,kg,ml,l',
|
||||
'sku' => 'required|string|max:100',
|
||||
'barcode' => 'nullable|string|max:100',
|
||||
'type' => 'nullable|string',
|
||||
'product_line_id' => 'nullable|exists:product_lines,id',
|
||||
'unit_id' => 'required|exists:units,id',
|
||||
'sell_multiples' => 'nullable|boolean',
|
||||
'fractional_quantities' => 'nullable|boolean',
|
||||
'allow_sample' => 'nullable|boolean',
|
||||
'is_active' => 'nullable|boolean',
|
||||
'is_featured' => 'nullable|boolean',
|
||||
|
||||
// Inventory - now includes threshold type
|
||||
'status' => 'required|string',
|
||||
'launch_date' => 'nullable|date',
|
||||
'quantity_on_hand' => 'nullable|integer|min:0',
|
||||
'quantity_allocated' => 'nullable|integer|min:0',
|
||||
'sync_bamboo' => 'nullable|boolean',
|
||||
'low_stock_threshold' => 'nullable|numeric|min:0',
|
||||
'low_stock_threshold_type' => 'nullable|string|in:qty,percent',
|
||||
'low_stock_alert_enabled' => 'nullable|boolean',
|
||||
'is_assembly' => 'nullable|boolean',
|
||||
'show_inventory_to_buyers' => 'nullable|boolean',
|
||||
'packaging_id' => 'nullable|exists:product_packagings,id',
|
||||
|
||||
// Pricing & Units
|
||||
'cost_per_unit' => 'nullable|numeric|min:0',
|
||||
'wholesale_price' => 'nullable|numeric|min:0',
|
||||
'msrp' => 'nullable|numeric|min:0',
|
||||
'net_weight' => 'nullable|numeric|min:0',
|
||||
'weight_unit' => 'nullable|string|in:g,oz,lb,kg,ml,l',
|
||||
'units_per_case' => 'nullable|integer|min:1',
|
||||
'weight_unit' => 'nullable|string|max:20',
|
||||
'units_per_case' => 'nullable|integer|min:0',
|
||||
'cased_qty' => 'nullable|integer|min:0',
|
||||
'boxed_qty' => 'nullable|integer|min:0',
|
||||
'min_order_qty' => 'nullable|integer|min:0',
|
||||
'max_order_qty' => 'nullable|integer|min:0',
|
||||
'is_case' => 'nullable|boolean',
|
||||
'is_box' => 'nullable|boolean',
|
||||
'has_varieties' => 'nullable|boolean',
|
||||
|
||||
// Cannabis Information
|
||||
'thc_percentage' => 'nullable|numeric|min:0|max:100',
|
||||
'cbd_percentage' => 'nullable|numeric|min:0|max:100',
|
||||
'is_active' => 'boolean',
|
||||
'is_featured' => 'boolean',
|
||||
'strain_id' => 'nullable|exists:strains,id',
|
||||
'thc_content_mg' => 'nullable|numeric|min:0',
|
||||
'cbd_content_mg' => 'nullable|numeric|min:0',
|
||||
'strain_value' => 'nullable|numeric|min:0',
|
||||
'ingredients' => 'nullable|string',
|
||||
'effects' => 'nullable|string',
|
||||
'dosage_guidelines' => 'nullable|string',
|
||||
|
||||
// Arizona Compliance
|
||||
'arz_total_weight' => 'nullable|numeric|min:0',
|
||||
'arz_usable_mmj' => 'nullable|numeric|min:0',
|
||||
'metrc_id' => 'nullable|string|max:255',
|
||||
|
||||
// Compliance & Tracking
|
||||
'license_number' => 'nullable|string|max:255',
|
||||
'harvest_date' => 'nullable|date',
|
||||
'package_date' => 'nullable|date',
|
||||
'test_date' => 'nullable|date',
|
||||
|
||||
// Product Details
|
||||
'description' => 'nullable|string|max:100',
|
||||
'long_description' => 'nullable|string',
|
||||
'product_link' => 'nullable|url|max:255',
|
||||
'creatives_json' => 'nullable|json',
|
||||
|
||||
// Advanced Settings
|
||||
'is_sellable' => 'nullable|boolean',
|
||||
'is_fpr' => 'nullable|boolean',
|
||||
'is_raw_material' => 'nullable|boolean',
|
||||
'brand_display_order' => 'nullable|integer|min:0',
|
||||
'parent_product_id' => 'nullable|exists:products,id',
|
||||
'category' => 'nullable|string|max:100',
|
||||
]);
|
||||
|
||||
// Verify new brand belongs to this business
|
||||
$brand = Brand::forBusiness($business)
|
||||
->findOrFail($validated['brand_id']);
|
||||
|
||||
// Update slug if name changed
|
||||
if ($validated['name'] !== $product->name) {
|
||||
$validated['slug'] = Str::slug($validated['name']);
|
||||
}
|
||||
|
||||
// Handle checkbox fields - set to false if not present in request
|
||||
// Convert checkboxes to boolean
|
||||
$validated['is_active'] = $request->has('is_active');
|
||||
$validated['is_featured'] = $request->has('is_featured');
|
||||
$validated['sell_multiples'] = $request->has('sell_multiples');
|
||||
$validated['fractional_quantities'] = $request->has('fractional_quantities');
|
||||
$validated['allow_sample'] = $request->has('allow_sample');
|
||||
$validated['is_case'] = $request->has('is_case');
|
||||
$validated['is_box'] = $request->has('is_box');
|
||||
$validated['has_varieties'] = $request->has('has_varieties');
|
||||
$validated['sync_bamboo'] = $request->has('sync_bamboo');
|
||||
$validated['low_stock_alert_enabled'] = $request->has('low_stock_alert_enabled');
|
||||
$validated['is_assembly'] = $request->has('is_assembly');
|
||||
$validated['show_inventory_to_buyers'] = $request->has('show_inventory_to_buyers');
|
||||
$validated['is_sellable'] = $request->has('is_sellable');
|
||||
$validated['is_fpr'] = $request->has('is_fpr');
|
||||
$validated['is_raw_material'] = $request->has('is_raw_material');
|
||||
|
||||
// Store creatives JSON
|
||||
if (isset($validated['creatives_json'])) {
|
||||
$validated['creatives'] = $validated['creatives_json'];
|
||||
unset($validated['creatives_json']);
|
||||
}
|
||||
|
||||
// CRITICAL BUSINESS ISOLATION: Verify brand belongs to the business
|
||||
$brand = Brand::where('id', $validated['brand_id'])
|
||||
->where('business_id', $business->id)
|
||||
->firstOrFail();
|
||||
|
||||
// CRITICAL BUSINESS ISOLATION: Ensure the product belongs to this business through brand relationship
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})
|
||||
->findOrFail($product->id);
|
||||
|
||||
// BUSINESS RULE: Only one active product per brand
|
||||
if ($request->has('is_active') && $request->boolean('is_active')) {
|
||||
$existingActiveProduct = Product::where('brand_id', $validated['brand_id'])
|
||||
->where('is_active', true)
|
||||
->where('id', '!=', $product->id)
|
||||
->first();
|
||||
|
||||
if ($existingActiveProduct) {
|
||||
// Check if user wants to force-activate this product
|
||||
if ($request->has('force_activate') && $request->boolean('force_activate')) {
|
||||
// Deactivate the existing active product
|
||||
$existingActiveProduct->update(['is_active' => false]);
|
||||
} else {
|
||||
// Show error with option to force activate
|
||||
return redirect()
|
||||
->back()
|
||||
->withInput()
|
||||
->with('existing_active_product', $existingActiveProduct)
|
||||
->withErrors(['is_active' => "Only one product can be active per brand at a time. '{$existingActiveProduct->name}' (SKU: {$existingActiveProduct->sku}) is currently active."]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Update product
|
||||
$product->update($validated);
|
||||
|
||||
// Handle new image uploads if present
|
||||
if ($request->hasFile('images')) {
|
||||
foreach ($request->file('images') as $index => $image) {
|
||||
$path = $image->store('products', 'public');
|
||||
$product->images()->create([
|
||||
'path' => $path,
|
||||
'type' => 'product',
|
||||
'is_primary' => $product->images()->count() === 0 && $index === 0,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
return back()->with('success', "Product '{$product->name}' updated successfully!");
|
||||
return redirect()
|
||||
->route('seller.business.products.edit', [$business->slug, $product->id])
|
||||
->with('success', 'Product updated successfully!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
166
app/Http/Controllers/Seller/ProductImageController.php
Normal file
166
app/Http/Controllers/Seller/ProductImageController.php
Normal file
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Seller;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Business;
|
||||
use App\Models\Product;
|
||||
use App\Models\ProductImage;
|
||||
use App\Traits\FileStorageHelper;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class ProductImageController extends Controller
|
||||
{
|
||||
use FileStorageHelper;
|
||||
|
||||
/**
|
||||
* Upload a new product image
|
||||
*/
|
||||
public function upload(Request $request, Business $business, Product $product)
|
||||
{
|
||||
// CRITICAL: Ensure product belongs to this business through brand
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})->findOrFail($product->id);
|
||||
|
||||
// Validate image
|
||||
$request->validate([
|
||||
'image' => 'required|image|mimes:jpeg,jpg,png|max:2048|dimensions:min_width=750,min_height=384', // 2MB max, 750x384 min
|
||||
]);
|
||||
|
||||
// Check if product already has 6 images
|
||||
if ($product->images()->count() >= 6) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => 'Maximum of 6 images allowed per product',
|
||||
], 422);
|
||||
}
|
||||
|
||||
// Store the image using trait method
|
||||
$path = $this->storeFile($request->file('image'), 'products');
|
||||
|
||||
// Determine if this should be the primary image (first one)
|
||||
$isPrimary = $product->images()->count() === 0;
|
||||
|
||||
// If setting as primary, unset other primary images
|
||||
if ($isPrimary) {
|
||||
$product->images()->update(['is_primary' => false]);
|
||||
}
|
||||
|
||||
// Create the image record
|
||||
$image = $product->images()->create([
|
||||
'path' => $path,
|
||||
'is_primary' => $isPrimary,
|
||||
'sort_order' => $product->images()->max('sort_order') + 1,
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'image' => [
|
||||
'id' => $image->id,
|
||||
'path' => $image->path,
|
||||
'is_primary' => $image->is_primary,
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a product image
|
||||
*/
|
||||
public function delete(Business $business, Product $product, ProductImage $image)
|
||||
{
|
||||
// CRITICAL: Ensure product belongs to this business through brand
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})->findOrFail($product->id);
|
||||
|
||||
// Ensure image belongs to this product
|
||||
if ($image->product_id !== $product->id) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => 'Image not found',
|
||||
], 404);
|
||||
}
|
||||
|
||||
// Delete the file from storage using trait method
|
||||
$this->deleteFile($image->path);
|
||||
|
||||
// If deleting primary image, set next image as primary
|
||||
if ($image->is_primary) {
|
||||
$nextImage = $product->images()
|
||||
->where('id', '!=', $image->id)
|
||||
->orderBy('sort_order')
|
||||
->first();
|
||||
|
||||
if ($nextImage) {
|
||||
$nextImage->update(['is_primary' => true]);
|
||||
}
|
||||
}
|
||||
|
||||
$image->delete();
|
||||
|
||||
return response()->json(['success' => true]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reorder product images
|
||||
*/
|
||||
public function reorder(Request $request, Business $business, Product $product)
|
||||
{
|
||||
// CRITICAL: Ensure product belongs to this business through brand
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})->findOrFail($product->id);
|
||||
|
||||
$request->validate([
|
||||
'order' => 'required|array',
|
||||
'order.*' => 'required|integer|exists:product_images,id',
|
||||
]);
|
||||
|
||||
$order = $request->input('order');
|
||||
|
||||
// Update sort order and set first image as primary
|
||||
foreach ($order as $index => $imageId) {
|
||||
$image = ProductImage::where('id', $imageId)
|
||||
->where('product_id', $product->id)
|
||||
->first();
|
||||
|
||||
if ($image) {
|
||||
$image->update([
|
||||
'sort_order' => $index,
|
||||
'is_primary' => $index === 0, // First image is primary
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
return response()->json(['success' => true]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set an image as primary
|
||||
*/
|
||||
public function setPrimary(Business $business, Product $product, ProductImage $image)
|
||||
{
|
||||
// CRITICAL: Ensure product belongs to this business through brand
|
||||
$product = Product::whereHas('brand', function ($query) use ($business) {
|
||||
$query->where('business_id', $business->id);
|
||||
})->findOrFail($product->id);
|
||||
|
||||
// Ensure image belongs to this product
|
||||
if ($image->product_id !== $product->id) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => 'Image not found',
|
||||
], 404);
|
||||
}
|
||||
|
||||
// Unset all primary flags for this product
|
||||
$product->images()->update(['is_primary' => false]);
|
||||
|
||||
// Set this image as primary
|
||||
$image->update(['is_primary' => true]);
|
||||
|
||||
return response()->json(['success' => true]);
|
||||
}
|
||||
}
|
||||
70
app/Http/Controllers/Seller/ProductLineController.php
Normal file
70
app/Http/Controllers/Seller/ProductLineController.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Seller;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Business;
|
||||
use App\Models\ProductLine;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ProductLineController extends Controller
|
||||
{
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request, Business $business)
|
||||
{
|
||||
$request->validate([
|
||||
'name' => 'required|string|max:255|unique:product_lines,name,NULL,id,business_id,'.$business->id,
|
||||
]);
|
||||
|
||||
ProductLine::create([
|
||||
'business_id' => $business->id,
|
||||
'name' => $request->name,
|
||||
]);
|
||||
|
||||
return redirect()
|
||||
->route('seller.business.products.index', $business->slug)
|
||||
->with('success', 'Product line created successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Request $request, Business $business, ProductLine $productLine)
|
||||
{
|
||||
// Ensure business isolation
|
||||
if ($productLine->business_id !== $business->id) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
$request->validate([
|
||||
'name' => 'required|string|max:255|unique:product_lines,name,'.$productLine->id.',id,business_id,'.$business->id,
|
||||
]);
|
||||
|
||||
$productLine->update([
|
||||
'name' => $request->name,
|
||||
]);
|
||||
|
||||
return redirect()
|
||||
->route('seller.business.products.index', $business->slug)
|
||||
->with('success', 'Product line updated successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(Business $business, ProductLine $productLine)
|
||||
{
|
||||
// Ensure business isolation
|
||||
if ($productLine->business_id !== $business->id) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
$productLine->delete();
|
||||
|
||||
return redirect()
|
||||
->route('seller.business.products.index', $business->slug)
|
||||
->with('success', 'Product line deleted successfully.');
|
||||
}
|
||||
}
|
||||
@@ -17,65 +17,152 @@ class Product extends Model implements Auditable
|
||||
use BelongsToBusinessViaBrand, HasFactory, \OwenIt\Auditing\Auditable, SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
// Foreign Keys
|
||||
'brand_id',
|
||||
'strain_id',
|
||||
'parent_product_id',
|
||||
'packaging_id',
|
||||
'unit_id',
|
||||
|
||||
// Product Identity
|
||||
'name',
|
||||
'slug',
|
||||
'sku',
|
||||
'barcode',
|
||||
'description',
|
||||
'long_description',
|
||||
|
||||
// Product Type & Classification
|
||||
'type',
|
||||
'category',
|
||||
'product_line',
|
||||
'product_link',
|
||||
'creatives',
|
||||
|
||||
// BOM Flags
|
||||
'is_assembly',
|
||||
'is_raw_material',
|
||||
|
||||
// Configuration Flags
|
||||
'has_varieties',
|
||||
'sell_multiples',
|
||||
'fractional_quantities',
|
||||
'allow_sample',
|
||||
'is_fpr',
|
||||
'is_sellable',
|
||||
|
||||
// Pricing
|
||||
'wholesale_price',
|
||||
'msrp_price',
|
||||
'msrp',
|
||||
'cost_per_unit',
|
||||
'price_unit',
|
||||
|
||||
// Packaging & Units
|
||||
'net_weight',
|
||||
'weight_unit',
|
||||
'units_per_case',
|
||||
'is_case',
|
||||
'cased_qty',
|
||||
'is_box',
|
||||
'boxed_qty',
|
||||
|
||||
// Cannabis-specific
|
||||
'thc_percentage',
|
||||
'cbd_percentage',
|
||||
'thc_content_mg',
|
||||
'cbd_content_mg',
|
||||
'strain_value',
|
||||
'ingredients',
|
||||
'effects',
|
||||
'dosage_guidelines',
|
||||
|
||||
// Inventory & Status
|
||||
'quantity_on_hand',
|
||||
'quantity_allocated',
|
||||
'reorder_point',
|
||||
'min_order_qty',
|
||||
'max_order_qty',
|
||||
'low_stock_threshold',
|
||||
'low_stock_alert_enabled',
|
||||
'sync_bamboo',
|
||||
'is_active',
|
||||
'is_featured',
|
||||
'show_inventory_to_buyers',
|
||||
'status',
|
||||
|
||||
// Compliance & Tracking
|
||||
'metrc_id',
|
||||
'license_number',
|
||||
'arz_total_weight',
|
||||
'arz_usable_mmj',
|
||||
'harvest_date',
|
||||
'package_date',
|
||||
'test_date',
|
||||
'launch_date',
|
||||
|
||||
// Display & SEO
|
||||
'sort_order',
|
||||
'brand_display_order',
|
||||
'image_path',
|
||||
'meta_title',
|
||||
'meta_description',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
// Pricing
|
||||
'wholesale_price' => 'decimal:2',
|
||||
'msrp_price' => 'decimal:2',
|
||||
'msrp' => 'decimal:2',
|
||||
'cost_per_unit' => 'decimal:2',
|
||||
|
||||
// Measurements
|
||||
'net_weight' => 'decimal:3',
|
||||
'strain_value' => 'decimal:2',
|
||||
'arz_total_weight' => 'decimal:3',
|
||||
'arz_usable_mmj' => 'decimal:3',
|
||||
|
||||
// Cannabis
|
||||
'thc_percentage' => 'decimal:2',
|
||||
'cbd_percentage' => 'decimal:2',
|
||||
'thc_content_mg' => 'decimal:2',
|
||||
'cbd_content_mg' => 'decimal:2',
|
||||
|
||||
// Inventory
|
||||
'quantity_on_hand' => 'integer',
|
||||
'quantity_allocated' => 'integer',
|
||||
'reorder_point' => 'integer',
|
||||
'min_order_qty' => 'integer',
|
||||
'max_order_qty' => 'integer',
|
||||
'low_stock_threshold' => 'integer',
|
||||
|
||||
// Packaging
|
||||
'units_per_case' => 'integer',
|
||||
'cased_qty' => 'integer',
|
||||
'boxed_qty' => 'integer',
|
||||
'brand_display_order' => 'integer',
|
||||
'sort_order' => 'integer',
|
||||
|
||||
// Booleans
|
||||
'is_assembly' => 'boolean',
|
||||
'is_raw_material' => 'boolean',
|
||||
'has_varieties' => 'boolean',
|
||||
'sell_multiples' => 'boolean',
|
||||
'fractional_quantities' => 'boolean',
|
||||
'allow_sample' => 'boolean',
|
||||
'is_fpr' => 'boolean',
|
||||
'is_sellable' => 'boolean',
|
||||
'is_case' => 'boolean',
|
||||
'is_box' => 'boolean',
|
||||
'is_active' => 'boolean',
|
||||
'is_featured' => 'boolean',
|
||||
'sort_order' => 'integer',
|
||||
'show_inventory_to_buyers' => 'boolean',
|
||||
'low_stock_alert_enabled' => 'boolean',
|
||||
'sync_bamboo' => 'boolean',
|
||||
|
||||
// Dates
|
||||
'harvest_date' => 'date',
|
||||
'package_date' => 'date',
|
||||
'test_date' => 'date',
|
||||
'launch_date' => 'date',
|
||||
];
|
||||
|
||||
// Audit configuration - exclude timestamps and system-managed fields
|
||||
@@ -107,11 +194,26 @@ class Product extends Model implements Auditable
|
||||
return $this->belongsTo(Brand::class);
|
||||
}
|
||||
|
||||
public function productLine(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ProductLine::class);
|
||||
}
|
||||
|
||||
public function strain(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Strain::class);
|
||||
}
|
||||
|
||||
public function packaging(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ProductPackaging::class, 'packaging_id');
|
||||
}
|
||||
|
||||
public function unit(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Unit::class);
|
||||
}
|
||||
|
||||
public function parent(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Product::class, 'parent_product_id');
|
||||
@@ -124,7 +226,7 @@ class Product extends Model implements Auditable
|
||||
|
||||
public function images(): HasMany
|
||||
{
|
||||
return $this->hasMany(ProductImage::class)->orderBy('order');
|
||||
return $this->hasMany(ProductImage::class)->orderBy('sort_order');
|
||||
}
|
||||
|
||||
public function primaryImage(): HasMany
|
||||
|
||||
@@ -12,12 +12,14 @@ class ProductImage extends Model
|
||||
'path',
|
||||
'type',
|
||||
'order',
|
||||
'sort_order',
|
||||
'is_primary',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_primary' => 'boolean',
|
||||
'order' => 'integer',
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
|
||||
public function product(): BelongsTo
|
||||
|
||||
31
app/Models/ProductLine.php
Normal file
31
app/Models/ProductLine.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class ProductLine extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'business_id',
|
||||
'name',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the business that owns the product line.
|
||||
*/
|
||||
public function business(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Business::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the products for this product line.
|
||||
*/
|
||||
public function products(): HasMany
|
||||
{
|
||||
return $this->hasMany(Product::class);
|
||||
}
|
||||
}
|
||||
39
app/Models/ProductPackaging.php
Normal file
39
app/Models/ProductPackaging.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class ProductPackaging extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'images',
|
||||
'is_recyclable',
|
||||
'compliance_details',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'images' => 'array',
|
||||
'is_recyclable' => 'boolean',
|
||||
'is_active' => 'boolean',
|
||||
];
|
||||
|
||||
// Relationships
|
||||
public function products(): HasMany
|
||||
{
|
||||
return $this->hasMany(Product::class, 'packaging_id');
|
||||
}
|
||||
|
||||
// Scopes
|
||||
public function scopeActive($query)
|
||||
{
|
||||
return $query->where('is_active', true);
|
||||
}
|
||||
}
|
||||
37
app/Models/Unit.php
Normal file
37
app/Models/Unit.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Unit extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
'unit',
|
||||
'name',
|
||||
'abbreviation',
|
||||
'type',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_active' => 'boolean',
|
||||
];
|
||||
|
||||
// Relationships
|
||||
public function products(): HasMany
|
||||
{
|
||||
return $this->hasMany(Product::class);
|
||||
}
|
||||
|
||||
// Scopes
|
||||
public function scopeActive($query)
|
||||
{
|
||||
return $query->where('is_active', true);
|
||||
}
|
||||
}
|
||||
122
app/Traits/FileStorageHelper.php
Normal file
122
app/Traits/FileStorageHelper.php
Normal file
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
trait FileStorageHelper
|
||||
{
|
||||
/**
|
||||
* Get the current storage disk
|
||||
*/
|
||||
protected function getStorageDisk(): string
|
||||
{
|
||||
return config('filesystems.default');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if using S3/MinIO storage
|
||||
*/
|
||||
protected function isUsingS3(): bool
|
||||
{
|
||||
return $this->getStorageDisk() === 's3';
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a file and return its path
|
||||
*
|
||||
* @param \Illuminate\Http\UploadedFile $file
|
||||
*/
|
||||
protected function storeFile($file, string $folder, ?string $filename = null): string
|
||||
{
|
||||
$disk = Storage::disk($this->getStorageDisk());
|
||||
|
||||
if ($filename) {
|
||||
$path = $folder.'/'.$filename;
|
||||
$disk->put($path, file_get_contents($file));
|
||||
|
||||
return $path;
|
||||
}
|
||||
|
||||
return $file->store($folder, $this->getStorageDisk());
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate unique filename
|
||||
*/
|
||||
protected function generateUniqueFilename(string $originalName): string
|
||||
{
|
||||
$extension = pathinfo($originalName, PATHINFO_EXTENSION);
|
||||
$basename = pathinfo($originalName, PATHINFO_FILENAME);
|
||||
$slug = Str::slug($basename);
|
||||
|
||||
return $slug.'-'.Str::random(8).'.'.$extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get public URL for a file
|
||||
*/
|
||||
protected function getFileUrl(?string $path): ?string
|
||||
{
|
||||
if (! $path) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($this->isUsingS3()) {
|
||||
// For S3/MinIO, return full CDN URL
|
||||
return Storage::disk('s3')->url($path);
|
||||
}
|
||||
|
||||
// For local storage, return app URL + storage path
|
||||
return asset('storage/'.$path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a file
|
||||
*/
|
||||
protected function deleteFile(?string $path): bool
|
||||
{
|
||||
if (! $path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$disk = Storage::disk($this->getStorageDisk());
|
||||
|
||||
if ($disk->exists($path)) {
|
||||
return $disk->delete($path);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete old file and store new one
|
||||
*
|
||||
* @param \Illuminate\Http\UploadedFile $newFile
|
||||
*/
|
||||
protected function replaceFile($newFile, ?string $oldPath, string $folder): string
|
||||
{
|
||||
// Delete old file if it exists
|
||||
if ($oldPath) {
|
||||
$this->deleteFile($oldPath);
|
||||
}
|
||||
|
||||
// Store new file
|
||||
return $this->storeFile($newFile, $folder);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get storage info for debugging
|
||||
*/
|
||||
protected function getStorageInfo(): array
|
||||
{
|
||||
return [
|
||||
'disk' => $this->getStorageDisk(),
|
||||
'is_s3' => $this->isUsingS3(),
|
||||
'driver' => config('filesystems.disks.'.$this->getStorageDisk().'.driver'),
|
||||
'endpoint' => config('filesystems.disks.'.$this->getStorageDisk().'.endpoint'),
|
||||
'bucket' => config('filesystems.disks.'.$this->getStorageDisk().'.bucket'),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
"laravel/reverb": "^1.6",
|
||||
"laravel/telescope": "*",
|
||||
"laravel/tinker": "^2.10.1",
|
||||
"league/flysystem-aws-s3-v3": "^3.0",
|
||||
"owen-it/laravel-auditing": "^14.0",
|
||||
"predis/predis": "*",
|
||||
"rahulhaque/laravel-filepond": "*",
|
||||
|
||||
274
composer.lock
generated
274
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "8862e7bdefe037022f988b1c4ff4b298",
|
||||
"content-hash": "6045e661b5737a9c8dd40aeeaf8c9897",
|
||||
"packages": [
|
||||
{
|
||||
"name": "anourvalar/eloquent-serialize",
|
||||
@@ -72,6 +72,157 @@
|
||||
},
|
||||
"time": "2025-07-30T15:45:57+00:00"
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-crt-php",
|
||||
"version": "v1.2.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/awslabs/aws-crt-php.git",
|
||||
"reference": "d71d9906c7bb63a28295447ba12e74723bd3730e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/d71d9906c7bb63a28295447ba12e74723bd3730e",
|
||||
"reference": "d71d9906c7bb63a28295447ba12e74723bd3730e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35||^5.6.3||^9.5",
|
||||
"yoast/phpunit-polyfills": "^1.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-awscrt": "Make sure you install awscrt native extension to use any of the functionality."
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "AWS SDK Common Runtime Team",
|
||||
"email": "aws-sdk-common-runtime@amazon.com"
|
||||
}
|
||||
],
|
||||
"description": "AWS Common Runtime for PHP",
|
||||
"homepage": "https://github.com/awslabs/aws-crt-php",
|
||||
"keywords": [
|
||||
"amazon",
|
||||
"aws",
|
||||
"crt",
|
||||
"sdk"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/awslabs/aws-crt-php/issues",
|
||||
"source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.7"
|
||||
},
|
||||
"time": "2024-10-18T22:15:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "aws/aws-sdk-php",
|
||||
"version": "3.359.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-php.git",
|
||||
"reference": "8d2ab3687196f15209c316080a431911f2e02bb5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/8d2ab3687196f15209c316080a431911f2e02bb5",
|
||||
"reference": "8d2ab3687196f15209c316080a431911f2e02bb5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"aws/aws-crt-php": "^1.2.3",
|
||||
"ext-json": "*",
|
||||
"ext-pcre": "*",
|
||||
"ext-simplexml": "*",
|
||||
"guzzlehttp/guzzle": "^7.4.5",
|
||||
"guzzlehttp/promises": "^2.0",
|
||||
"guzzlehttp/psr7": "^2.4.5",
|
||||
"mtdowling/jmespath.php": "^2.8.0",
|
||||
"php": ">=8.1",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"andrewsville/php-token-reflection": "^1.4",
|
||||
"aws/aws-php-sns-message-validator": "~1.0",
|
||||
"behat/behat": "~3.0",
|
||||
"composer/composer": "^2.7.8",
|
||||
"dms/phpunit-arraysubset-asserts": "^0.4.0",
|
||||
"doctrine/cache": "~1.4",
|
||||
"ext-dom": "*",
|
||||
"ext-openssl": "*",
|
||||
"ext-pcntl": "*",
|
||||
"ext-sockets": "*",
|
||||
"phpunit/phpunit": "^5.6.3 || ^8.5 || ^9.5",
|
||||
"psr/cache": "^2.0 || ^3.0",
|
||||
"psr/simple-cache": "^2.0 || ^3.0",
|
||||
"sebastian/comparator": "^1.2.3 || ^4.0 || ^5.0",
|
||||
"symfony/filesystem": "^v6.4.0 || ^v7.1.0",
|
||||
"yoast/phpunit-polyfills": "^2.0"
|
||||
},
|
||||
"suggest": {
|
||||
"aws/aws-php-sns-message-validator": "To validate incoming SNS notifications",
|
||||
"doctrine/cache": "To use the DoctrineCacheAdapter",
|
||||
"ext-curl": "To send requests using cURL",
|
||||
"ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages",
|
||||
"ext-sockets": "To use client-side monitoring"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/functions.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"Aws\\": "src/"
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"src/data/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Amazon Web Services",
|
||||
"homepage": "http://aws.amazon.com"
|
||||
}
|
||||
],
|
||||
"description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project",
|
||||
"homepage": "http://aws.amazon.com/sdkforphp",
|
||||
"keywords": [
|
||||
"amazon",
|
||||
"aws",
|
||||
"cloud",
|
||||
"dynamodb",
|
||||
"ec2",
|
||||
"glacier",
|
||||
"s3",
|
||||
"sdk"
|
||||
],
|
||||
"support": {
|
||||
"forum": "https://github.com/aws/aws-sdk-php/discussions",
|
||||
"issues": "https://github.com/aws/aws-sdk-php/issues",
|
||||
"source": "https://github.com/aws/aws-sdk-php/tree/3.359.6"
|
||||
},
|
||||
"time": "2025-11-05T19:08:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "barryvdh/laravel-dompdf",
|
||||
"version": "v3.1.1",
|
||||
@@ -3431,6 +3582,61 @@
|
||||
},
|
||||
"time": "2025-10-20T15:35:26+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/flysystem-aws-s3-v3",
|
||||
"version": "3.30.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git",
|
||||
"reference": "d286e896083bed3190574b8b088b557b59eb66f5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/d286e896083bed3190574b8b088b557b59eb66f5",
|
||||
"reference": "d286e896083bed3190574b8b088b557b59eb66f5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"aws/aws-sdk-php": "^3.295.10",
|
||||
"league/flysystem": "^3.10.0",
|
||||
"league/mime-type-detection": "^1.0.0",
|
||||
"php": "^8.0.2"
|
||||
},
|
||||
"conflict": {
|
||||
"guzzlehttp/guzzle": "<7.0",
|
||||
"guzzlehttp/ringphp": "<1.1.1"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"League\\Flysystem\\AwsS3V3\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Frank de Jonge",
|
||||
"email": "info@frankdejonge.nl"
|
||||
}
|
||||
],
|
||||
"description": "AWS S3 filesystem adapter for Flysystem.",
|
||||
"keywords": [
|
||||
"Flysystem",
|
||||
"aws",
|
||||
"file",
|
||||
"files",
|
||||
"filesystem",
|
||||
"s3",
|
||||
"storage"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.30.1"
|
||||
},
|
||||
"time": "2025-10-20T15:27:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/flysystem-local",
|
||||
"version": "3.30.0",
|
||||
@@ -4038,6 +4244,72 @@
|
||||
],
|
||||
"time": "2025-03-24T10:02:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "mtdowling/jmespath.php",
|
||||
"version": "2.8.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jmespath/jmespath.php.git",
|
||||
"reference": "a2a865e05d5f420b50cc2f85bb78d565db12a6bc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/a2a865e05d5f420b50cc2f85bb78d565db12a6bc",
|
||||
"reference": "a2a865e05d5f420b50cc2f85bb78d565db12a6bc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2.5 || ^8.0",
|
||||
"symfony/polyfill-mbstring": "^1.17"
|
||||
},
|
||||
"require-dev": {
|
||||
"composer/xdebug-handler": "^3.0.3",
|
||||
"phpunit/phpunit": "^8.5.33"
|
||||
},
|
||||
"bin": [
|
||||
"bin/jp.php"
|
||||
],
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.8-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/JmesPath.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"JmesPath\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Graham Campbell",
|
||||
"email": "hello@gjcampbell.co.uk",
|
||||
"homepage": "https://github.com/GrahamCampbell"
|
||||
},
|
||||
{
|
||||
"name": "Michael Dowling",
|
||||
"email": "mtdowling@gmail.com",
|
||||
"homepage": "https://github.com/mtdowling"
|
||||
}
|
||||
],
|
||||
"description": "Declaratively specify how to extract elements from a JSON document",
|
||||
"keywords": [
|
||||
"json",
|
||||
"jsonpath"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/jmespath/jmespath.php/issues",
|
||||
"source": "https://github.com/jmespath/jmespath.php/tree/2.8.0"
|
||||
},
|
||||
"time": "2024-09-04T18:46:31+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "3.10.3",
|
||||
|
||||
37
database/migrations/2025_11_05_060900_create_units_table.php
Normal file
37
database/migrations/2025_11_05_060900_create_units_table.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('units', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('unit'); // Short code (EA, GM, OZ, etc.)
|
||||
$table->string('name')->nullable(); // Full name (Each, Grams, Ounces, etc.)
|
||||
$table->string('abbreviation')->nullable(); // Alternative abbreviation
|
||||
$table->string('type')->default('weight'); // weight, volume, count
|
||||
$table->boolean('is_active')->default(true);
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
// Indexes
|
||||
$table->index('unit');
|
||||
$table->index('is_active');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('units');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('product_packagings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->text('description')->nullable();
|
||||
$table->json('images')->nullable();
|
||||
$table->boolean('is_recyclable')->default(false);
|
||||
$table->text('compliance_details')->nullable(); // Compliance information
|
||||
$table->boolean('is_active')->default(true);
|
||||
$table->timestamps();
|
||||
|
||||
// Indexes
|
||||
$table->index('is_active');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('product_packagings');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('products', function (Blueprint $table) {
|
||||
// Foreign Keys
|
||||
$table->foreignId('packaging_id')->nullable()->after('strain_id')->constrained('product_packagings')->onDelete('set null');
|
||||
$table->foreignId('unit_id')->nullable()->after('packaging_id')->constrained('units')->onDelete('set null');
|
||||
|
||||
// Metadata
|
||||
$table->string('product_line')->nullable()->after('category');
|
||||
$table->text('product_link')->nullable()->after('product_line'); // External URL
|
||||
$table->text('creatives')->nullable()->after('product_link'); // Marketing assets
|
||||
$table->string('barcode')->nullable()->after('sku');
|
||||
$table->integer('brand_display_order')->nullable()->after('sort_order');
|
||||
|
||||
// Configuration Flags
|
||||
$table->boolean('has_varieties')->default(false)->after('is_raw_material');
|
||||
$table->boolean('sell_multiples')->default(false)->after('has_varieties');
|
||||
$table->boolean('fractional_quantities')->default(false)->after('sell_multiples');
|
||||
$table->boolean('allow_sample')->default(false)->after('fractional_quantities');
|
||||
$table->boolean('is_fpr')->default(false)->after('allow_sample'); // Finished Product Ready
|
||||
$table->boolean('is_sellable')->default(false)->after('is_fpr');
|
||||
|
||||
// Case/Box Packaging
|
||||
$table->boolean('is_case')->default(false)->after('units_per_case');
|
||||
$table->integer('cased_qty')->default(0)->after('is_case');
|
||||
$table->boolean('is_box')->default(false)->after('cased_qty');
|
||||
$table->integer('boxed_qty')->default(0)->after('is_box');
|
||||
|
||||
// Dates
|
||||
$table->date('launch_date')->nullable()->after('test_date');
|
||||
|
||||
// Inventory Management
|
||||
$table->integer('inventory_manage_pct')->nullable()->after('reorder_point'); // 0-100%
|
||||
$table->integer('min_order_qty')->nullable()->after('inventory_manage_pct');
|
||||
$table->integer('max_order_qty')->nullable()->after('min_order_qty');
|
||||
$table->integer('low_stock_threshold')->nullable()->after('max_order_qty');
|
||||
$table->boolean('low_stock_alert_enabled')->default(false)->after('low_stock_threshold');
|
||||
|
||||
// Strain Value
|
||||
$table->decimal('strain_value', 8, 2)->nullable()->after('cbd_content_mg');
|
||||
|
||||
// Arizona Compliance
|
||||
$table->decimal('arz_total_weight', 10, 3)->nullable()->after('license_number');
|
||||
$table->decimal('arz_usable_mmj', 10, 3)->nullable()->after('arz_total_weight');
|
||||
|
||||
// Extended Descriptions
|
||||
$table->text('long_description')->nullable()->after('description');
|
||||
$table->text('ingredients')->nullable()->after('long_description');
|
||||
$table->text('effects')->nullable()->after('ingredients');
|
||||
$table->text('dosage_guidelines')->nullable()->after('effects');
|
||||
|
||||
// Visibility
|
||||
$table->boolean('show_inventory_to_buyers')->default(false)->after('is_featured');
|
||||
|
||||
// Threshold Automation
|
||||
$table->integer('decreasing_qty_threshold')->nullable()->after('low_stock_alert_enabled');
|
||||
$table->string('decreasing_qty_action')->nullable()->after('decreasing_qty_threshold');
|
||||
$table->integer('increasing_qty_threshold')->nullable()->after('decreasing_qty_action');
|
||||
$table->string('increasing_qty_action')->nullable()->after('increasing_qty_threshold');
|
||||
|
||||
// Enhanced Status (update from boolean to enum)
|
||||
$table->enum('status', ['available', 'archived', 'sample', 'backorder', 'internal', 'unavailable'])
|
||||
->default('available')
|
||||
->after('is_active');
|
||||
|
||||
// MSRP for retail pricing
|
||||
$table->decimal('msrp', 10, 2)->nullable()->after('wholesale_price');
|
||||
|
||||
// Add indexes for new foreign keys and frequently queried fields
|
||||
$table->index('packaging_id');
|
||||
$table->index('unit_id');
|
||||
$table->index('status');
|
||||
$table->index('is_sellable');
|
||||
$table->index('launch_date');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('products', function (Blueprint $table) {
|
||||
// Drop indexes first
|
||||
$table->dropIndex(['packaging_id']);
|
||||
$table->dropIndex(['unit_id']);
|
||||
$table->dropIndex(['status']);
|
||||
$table->dropIndex(['is_sellable']);
|
||||
$table->dropIndex(['launch_date']);
|
||||
|
||||
// Drop foreign keys
|
||||
$table->dropForeign(['packaging_id']);
|
||||
$table->dropForeign(['unit_id']);
|
||||
|
||||
// Drop columns in reverse order
|
||||
$table->dropColumn([
|
||||
'packaging_id',
|
||||
'unit_id',
|
||||
'product_line',
|
||||
'product_link',
|
||||
'creatives',
|
||||
'barcode',
|
||||
'brand_display_order',
|
||||
'has_varieties',
|
||||
'sell_multiples',
|
||||
'fractional_quantities',
|
||||
'allow_sample',
|
||||
'is_fpr',
|
||||
'is_sellable',
|
||||
'is_case',
|
||||
'cased_qty',
|
||||
'is_box',
|
||||
'boxed_qty',
|
||||
'launch_date',
|
||||
'inventory_manage_pct',
|
||||
'min_order_qty',
|
||||
'max_order_qty',
|
||||
'low_stock_threshold',
|
||||
'low_stock_alert_enabled',
|
||||
'strain_value',
|
||||
'arz_total_weight',
|
||||
'arz_usable_mmj',
|
||||
'long_description',
|
||||
'ingredients',
|
||||
'effects',
|
||||
'dosage_guidelines',
|
||||
'show_inventory_to_buyers',
|
||||
'decreasing_qty_threshold',
|
||||
'decreasing_qty_action',
|
||||
'increasing_qty_threshold',
|
||||
'increasing_qty_action',
|
||||
'status',
|
||||
'msrp',
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('products', function (Blueprint $table) {
|
||||
// Add sync_bamboo field - when enabled, inventory is synced from Bamboo
|
||||
$table->boolean('sync_bamboo')->default(false)->after('show_inventory_to_buyers');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('products', function (Blueprint $table) {
|
||||
$table->dropColumn('sync_bamboo');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('product_lines', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('business_id')->constrained()->onDelete('cascade');
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
|
||||
// Ensure unique product line names per business
|
||||
$table->unique(['business_id', 'name']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('product_lines');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('products', function (Blueprint $table) {
|
||||
// Drop the old text column
|
||||
$table->dropColumn('product_line');
|
||||
|
||||
// Add foreign key to product_lines table (nullable to allow products without a line)
|
||||
$table->foreignId('product_line_id')->nullable()->after('brand_id')->constrained()->onDelete('set null');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('products', function (Blueprint $table) {
|
||||
// Drop the foreign key
|
||||
$table->dropForeign(['product_line_id']);
|
||||
$table->dropColumn('product_line_id');
|
||||
|
||||
// Restore the old text column
|
||||
$table->string('product_line')->nullable();
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('product_images', function (Blueprint $table) {
|
||||
$table->integer('sort_order')->default(0)->after('is_primary');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('product_images', function (Blueprint $table) {
|
||||
$table->dropColumn('sort_order');
|
||||
});
|
||||
}
|
||||
};
|
||||
41
database/seeders/ProductLineSeeder.php
Normal file
41
database/seeders/ProductLineSeeder.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Business;
|
||||
use App\Models\ProductLine;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ProductLineSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// Default product line names
|
||||
$defaultLines = [
|
||||
'Flower',
|
||||
'Resin',
|
||||
'Rosin',
|
||||
'Pre-Rolls',
|
||||
'Wax',
|
||||
];
|
||||
|
||||
// Get all seller businesses
|
||||
$sellerBusinesses = Business::where('type', 'seller')
|
||||
->orWhere('type', 'both')
|
||||
->get();
|
||||
|
||||
foreach ($sellerBusinesses as $business) {
|
||||
foreach ($defaultLines as $lineName) {
|
||||
ProductLine::firstOrCreate(
|
||||
[
|
||||
'business_id' => $business->id,
|
||||
'name' => $lineName,
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
81
database/seeders/ProductPackagingSeeder.php
Normal file
81
database/seeders/ProductPackagingSeeder.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\ProductPackaging;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ProductPackagingSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$packagings = [
|
||||
[
|
||||
'name' => 'Glass Jar',
|
||||
'description' => 'Standard glass jar packaging for flower products',
|
||||
'is_recyclable' => true,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Plastic Container',
|
||||
'description' => 'Child-resistant plastic container',
|
||||
'is_recyclable' => false,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Mylar Bag',
|
||||
'description' => 'Resealable mylar bag packaging',
|
||||
'is_recyclable' => false,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Pre-Roll Tube',
|
||||
'description' => 'Individual pre-roll tube packaging',
|
||||
'is_recyclable' => false,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Tin Container',
|
||||
'description' => 'Metal tin container for concentrates',
|
||||
'is_recyclable' => true,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Cartridge Box',
|
||||
'description' => 'Cardboard box for vape cartridges',
|
||||
'is_recyclable' => true,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Bottle',
|
||||
'description' => 'Bottle packaging for tinctures and oils',
|
||||
'is_recyclable' => true,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Blister Pack',
|
||||
'description' => 'Blister pack for edibles',
|
||||
'is_recyclable' => false,
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'name' => 'Miscellaneous',
|
||||
'description' => 'Other packaging types',
|
||||
'is_recyclable' => false,
|
||||
'is_active' => true,
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($packagings as $packagingData) {
|
||||
ProductPackaging::updateOrCreate(
|
||||
['name' => $packagingData['name']],
|
||||
$packagingData
|
||||
);
|
||||
}
|
||||
|
||||
$this->command->info('Created '.count($packagings).' product packaging types');
|
||||
}
|
||||
}
|
||||
16
database/seeders/StrainClassificationSeeder.php
Normal file
16
database/seeders/StrainClassificationSeeder.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class StrainClassificationSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
83
database/seeders/UnitSeeder.php
Normal file
83
database/seeders/UnitSeeder.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Unit;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class UnitSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$units = [
|
||||
[
|
||||
'unit' => 'EA',
|
||||
'name' => 'Each',
|
||||
'abbreviation' => 'ea',
|
||||
'type' => 'count',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'GM',
|
||||
'name' => 'Grams',
|
||||
'abbreviation' => 'g',
|
||||
'type' => 'weight',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'OZ',
|
||||
'name' => 'Ounces',
|
||||
'abbreviation' => 'oz',
|
||||
'type' => 'weight',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'FL OZ',
|
||||
'name' => 'Fluid Ounces',
|
||||
'abbreviation' => 'fl oz',
|
||||
'type' => 'volume',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'ML',
|
||||
'name' => 'Milliliters',
|
||||
'abbreviation' => 'ml',
|
||||
'type' => 'volume',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'LB',
|
||||
'name' => 'Pounds',
|
||||
'abbreviation' => 'lb',
|
||||
'type' => 'weight',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'KG',
|
||||
'name' => 'Kilograms',
|
||||
'abbreviation' => 'kg',
|
||||
'type' => 'weight',
|
||||
'is_active' => true,
|
||||
],
|
||||
[
|
||||
'unit' => 'L',
|
||||
'name' => 'Liters',
|
||||
'abbreviation' => 'l',
|
||||
'type' => 'volume',
|
||||
'is_active' => true,
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($units as $unitData) {
|
||||
Unit::updateOrCreate(
|
||||
['unit' => $unitData['unit']],
|
||||
$unitData
|
||||
);
|
||||
}
|
||||
|
||||
$this->command->info('Created '.count($units).' units');
|
||||
}
|
||||
}
|
||||
BIN
nexus-html@3.1.0/.DS_Store
vendored
BIN
nexus-html@3.1.0/.DS_Store
vendored
Binary file not shown.
@@ -1,112 +1,77 @@
|
||||
# Nexus HTML - AI Assistant Prompt (Detailed Version)
|
||||
# Nexus Laravel - AI Assistant Prompt (Detailed Version)
|
||||
|
||||
### ROLE AND PERSONA
|
||||
|
||||
You are an expert-level senior frontend developer and the official AI assistant for the **Nexus Admin Dashboard Template**. Your entire purpose is to act as a live, interactive extension of the official documentation. You specialize in creating beautiful, responsive, and highly functional user interfaces using a specific technology stack: **Tailwind CSS v4**, the **daisyUI v5** component library, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's internal architecture, design system, component library, and file structure is exhaustive and precise. You are a patient and thorough guide, dedicated to helping users get the most out of the Nexus template.
|
||||
You are an expert-level senior full-stack developer and the official AI assistant for the **Nexus Admin Dashboard Template (Laravel Version)**. You specialize in creating beautiful, responsive, and highly functional user interfaces within a Laravel project, using a specific technology stack: **Laravel Blade**, **Tailwind CSS**, **daisyUI**, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's Blade layout and partials system, asset bundling, and file structure is exhaustive and precise.
|
||||
|
||||
### TEMPLATE CONTEXT
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template
|
||||
|
||||
- **Core Technologies:** HTML, **Tailwind CSS v4**, **daisyUI v5**, Alpine.js, **Vite** (for the build process), and **Iconify** for icons.
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template (Laravel Version)
|
||||
- **Framework:** **Laravel** using the **Blade** templating engine.
|
||||
- **Core Technologies:** Blade, Tailwind CSS, daisyUI, Alpine.js, and Iconify for icons.
|
||||
- **Product Vision:** Nexus is designed to be a flexible, quick, and effortless solution for developers. Its mission is to empower users to launch powerful, modern admin dashboards with a rich set of customizable apps, components, and modular blocks. The ultimate goal is to accelerate development workflows, reduce boilerplate, and boost overall efficiency.
|
||||
|
||||
- **Backend:** The template provides the frontend views only. No database or backend services are pre-configured.
|
||||
- **License:** The terms of use for this template are detailed in the **License** file located in the project's root directory.
|
||||
|
||||
### PRIMARY TASK
|
||||
|
||||
Your primary and sole objective is to provide comprehensive assistance to users for customizing, extending, and troubleshooting their Nexus HTML template. You will accomplish this by generating code, explaining concepts, providing guidance, and debugging issues for both development and production workflows.
|
||||
Your primary objective is to assist users in customizing and extending their Nexus Laravel template. You will generate clean, production-ready Blade, CSS, and JavaScript snippets that are perfectly consistent with the Nexus design language and architecture.
|
||||
|
||||
### ARCHITECTURE AND FILE STRUCTURE
|
||||
|
||||
To ensure maintainability and a clear separation of concerns, the Nexus template uses a specific and logical file structure. It is critical that all your guidance respects and reinforces this structure.
|
||||
|
||||
- **Development Workflows:** The template supports two primary workflows.
|
||||
|
||||
- **Source (`src`) Workflow:** This is the recommended development workflow. Users work within the `src` directory. A build tool (**Vite**) processes the files, compiling things like HTML partials and CSS into a final output.
|
||||
|
||||
- **Distribution (`dist`) Workflow:** Users can also work directly with the pre-compiled files in the `dist` directory. These are plain HTML files with no partials.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`, `pnpm dev`, or `bun run dev`).
|
||||
|
||||
- **HTML Partials System (`src` workflow only):** The template uses a deep partials system to build pages from reusable HTML blocks.
|
||||
|
||||
- **Location:** `src/partials/`.
|
||||
|
||||
- **Inclusion Syntax:** `<load src="path/to/partial.html" />`.
|
||||
|
||||
- **Subdirectories:** Includes `components-layouts/`, `blocks/`, `interactions/`, and `layouts/` for granular control over different sections.
|
||||
|
||||
- **CSS Folder Structure:** All custom styles are located within the `src/styles/` directory. The main entry file is `src/styles/app.css`.
|
||||
|
||||
- **JavaScript Folder Structure:** All JavaScript files are located directly in the `public/js/` directory.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`).
|
||||
- **Views (Blade):** All Blade templates are located in `resources/views/`.
|
||||
- **JavaScript:** All JavaScript modules are located in `resources/js/`. The main entry point is `resources/js/app.js`.
|
||||
- **Static Assets:** Public assets like images are located in the `public/` directory (e.g., `public/images/`).
|
||||
- **Routing (`routes/web.php`):** The routing is set up for serving static views. The logic in `routes/web.php` directly maps a URL to a Blade view. For example, a route for `/dashboards/crm` would be defined as `Route::get('/dashboards/crm', function () { return view('dashboards.crm'); });`.
|
||||
- **Blade Layouts & Partials System:** The template uses a Blade layout system for page structure and includes for smaller components.
|
||||
- **Layouts Location:** Main layout files like `admin.blade.php` and `components.blade.php` are located in `resources/views/layouts/`.
|
||||
- **Partials Location:** Smaller, reusable partial files are located in `resources/views/partials/`, including a deep structure for blocks, interactions, etc.
|
||||
- **Implementation:** Pages are built by `@extends`-ing a main layout file and providing content via `@section`. The main content area is typically a slot named `content`. There is also an optional slot for page-specific scripts named `footer-scripts`.
|
||||
- **Styling (`resources/styles/`):**
|
||||
- The project uses the modern **CSS-based configuration** for Tailwind CSS. There is **no `tailwind.config.js` file by default**.
|
||||
- The main entry point for all styles is `resources/styles/app.css`, which is compiled by Laravel's build tool (like Vite).
|
||||
- **File Breakdown:**
|
||||
- `tailwind.css`: Contains all the core Tailwind CSS utilities.
|
||||
- `daisyui.css`: Contains the daisyUI plugin, theme variables, and any custom theme configurations.
|
||||
- `typography.css`: Manages all typography rules.
|
||||
- `core/`: Contains `animations.css` and `components.css` (for daisyUI overrides).
|
||||
- `pages/`: Contains page-specific styles.
|
||||
- `plugins/`: Contains styles for third-party plugins.
|
||||
- **Code Formatting:** The project uses **Prettier** for consistent code formatting. The configuration is defined in the `prettier.config.mjs` file at the project root.
|
||||
|
||||
- **Tailwind CSS Configuration:** The template uses the modern **CSS-based configuration** for Tailwind CSS v4. There is **no `tailwind.config.js` file by default**. All Tailwind and daisyUI configurations are defined directly within CSS files using `@theme`.
|
||||
|
||||
- **Plugin Loading Strategy:** By default, third-party JavaScript libraries are loaded via CDN links (e.g., from unpkg). To ensure optimal performance, these `<script>` tags are placed **directly in the HTML file of the specific page that requires the plugin**, typically just before the closing `</body>` tag.
|
||||
|
||||
### RULES AND CONSTRAINTS
|
||||
|
||||
- **HTML Page Generation and Workflow:**
|
||||
|
||||
- **Clarify Context First:** Before providing guidance, you must ask the user two questions:
|
||||
1. "Are you working with the source files in the `src` folder, or are you modifying the final HTML files in the `dist` folder?"
|
||||
|
||||
2. "What kind of page are you creating? There are three main types: an **admin page**, a **standalone page** (like login), or a **components page**."
|
||||
|
||||
- **Provide Workflow-Specific Guidance:** Your advice must adapt based on the user's answers, guiding them to use the correct partials set for `src` or to duplicate the correct file for `dist`.
|
||||
|
||||
- **Blade Page Generation:**
|
||||
- **Use the Layout System:** When a user asks to create a new page, you **MUST** guide them through this exact process:
|
||||
1. Create a complete Blade file that `@extends` the appropriate layout (e.g., `layouts.admin`).
|
||||
2. Place the main page content within `@section('content')`.
|
||||
3. Place any page-specific scripts within `@section('footer-scripts')`.
|
||||
4. Finally, instruct them to add a new route in `routes/web.php` to serve the new Blade view.
|
||||
- **Styling and Component Guidance:**
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated HTML must use daisyUI component classes (e.g., `btn`, `card`, `alert`) and Tailwind CSS utility classes.
|
||||
|
||||
- **Use Modifier Classes:** For component variations, use daisyUI's modifier classes (e.g., `btn-primary`, `alert-success`).
|
||||
|
||||
- **Core daisyUI Knowledge:** For fundamental daisyUI concepts, component behaviors, or questions not specifically addressed by the Nexus template's custom styles, your knowledge must align with the official daisyUI LLM instructions found at: `https://daisyui.com/llms.txt`.
|
||||
|
||||
- **Theming:** All theme-related changes are handled by daisyUI's `data-theme` attribute on the `<html>` tag.
|
||||
|
||||
- **CSS Configuration:** For theme extensions or Tailwind customizations, guide the user to modify the `@theme` rules within the appropriate CSS files (e.g., `src/styles/daisyui.css`).
|
||||
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort. If a user needs to install a third-party Tailwind plugin that **absolutely requires** JavaScript configuration, you must first explain the default CSS-based approach and then provide instructions on how to create a `tailwind.config.js` file and move the `@theme` configurations into it, as per the official Tailwind CSS v4 documentation.
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated Blade code must use daisyUI component classes and Tailwind CSS utility classes.
|
||||
- **Core daisyUI Knowledge:** Your knowledge must align with the official daisyUI LLM instructions at: `https://daisyui.com/llms.txt`.
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort if a user needs a plugin that requires JavaScript configuration.
|
||||
- **Interactivity and Plugins:**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
|
||||
- **Vanilla JS is an option** for complex logic.
|
||||
|
||||
- **Directing Users:** Guide users to the correct JS files for core (`app.js`), component (`public/js/components/`), or page-specific (`public/js/pages/`) logic.
|
||||
|
||||
- **Plugin Integration (CDN):** Advise users to add the CDN `<script>` tag for a new plugin **directly into the specific HTML page that uses it**.
|
||||
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries not already in the template. **Strictly prohibit jQuery.**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
- **Vanilla JS is an option** for complex logic. JavaScript modules should be placed in `resources/js/`.
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries. **Strictly prohibit jQuery.**
|
||||
- **Iconography Rules:**
|
||||
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
|
||||
- **General Consistency:**
|
||||
|
||||
- All generated code must strictly adhere to the Nexus design system and be formatted according to the project's `prettier.config.mjs` file.
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
- **Debugging Protocol:** When a user reports that styles are not applying correctly, you must guide them through the following troubleshooting steps in order:
|
||||
1. **Check for Typos:** Ask the user to double-check the class names for any typos.
|
||||
2. **Check the Build Process:** Remind the user that CSS and JS are compiled. Advise them to ensure their build process (e.g., `npm run dev`) is running and watching for changes.
|
||||
3. **Check for Dynamic Classes:** Explain that Tailwind's JIT compiler cannot detect dynamically constructed class names and advise on how to handle them.
|
||||
|
||||
### TONE AND STYLE
|
||||
|
||||
- **Helpful, Patient, and Clear:** Break down complex topics into simple, logical steps.
|
||||
|
||||
- **Confident and Expert:** Communicate with the authority of a senior developer.
|
||||
|
||||
- **Professional and Action-Oriented:** Focus on providing actionable code and practical guidance.
|
||||
|
||||
### OUTPUT FORMAT
|
||||
|
||||
- **Code First:** Always provide the complete, runnable code block first.
|
||||
|
||||
- **Structured Explanation:** Follow the code with a clear, step-by-step explanation.
|
||||
|
||||
- **File Paths and Integration:** Explicitly state which file the code should be placed in or which files need to be modified, respecting the user's chosen workflow and page type.
|
||||
|
||||
- **Code First:** Always provide the complete, runnable Blade code block first.
|
||||
- **Explanation:** Following the code, provide a clear, step-by-step explanation of what the code does and how to integrate it.
|
||||
- **File Paths:** When referencing files, always use the full path from the project root (e.g., `resources/views/layouts/admin.blade.php`).
|
||||
- **Example-Driven:** Use short, practical code examples to illustrate points.
|
||||
|
||||
BIN
nexus-html@3.1.0/.cursor/.DS_Store
vendored
BIN
nexus-html@3.1.0/.cursor/.DS_Store
vendored
Binary file not shown.
@@ -1,112 +1,77 @@
|
||||
# Nexus HTML - AI Assistant Prompt (Detailed Version)
|
||||
# Nexus Laravel - AI Assistant Prompt (Detailed Version)
|
||||
|
||||
### ROLE AND PERSONA
|
||||
|
||||
You are an expert-level senior frontend developer and the official AI assistant for the **Nexus Admin Dashboard Template**. Your entire purpose is to act as a live, interactive extension of the official documentation. You specialize in creating beautiful, responsive, and highly functional user interfaces using a specific technology stack: **Tailwind CSS v4**, the **daisyUI v5** component library, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's internal architecture, design system, component library, and file structure is exhaustive and precise. You are a patient and thorough guide, dedicated to helping users get the most out of the Nexus template.
|
||||
You are an expert-level senior full-stack developer and the official AI assistant for the **Nexus Admin Dashboard Template (Laravel Version)**. You specialize in creating beautiful, responsive, and highly functional user interfaces within a Laravel project, using a specific technology stack: **Laravel Blade**, **Tailwind CSS**, **daisyUI**, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's Blade layout and partials system, asset bundling, and file structure is exhaustive and precise.
|
||||
|
||||
### TEMPLATE CONTEXT
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template
|
||||
|
||||
- **Core Technologies:** HTML, **Tailwind CSS v4**, **daisyUI v5**, Alpine.js, **Vite** (for the build process), and **Iconify** for icons.
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template (Laravel Version)
|
||||
- **Framework:** **Laravel** using the **Blade** templating engine.
|
||||
- **Core Technologies:** Blade, Tailwind CSS, daisyUI, Alpine.js, and Iconify for icons.
|
||||
- **Product Vision:** Nexus is designed to be a flexible, quick, and effortless solution for developers. Its mission is to empower users to launch powerful, modern admin dashboards with a rich set of customizable apps, components, and modular blocks. The ultimate goal is to accelerate development workflows, reduce boilerplate, and boost overall efficiency.
|
||||
|
||||
- **Backend:** The template provides the frontend views only. No database or backend services are pre-configured.
|
||||
- **License:** The terms of use for this template are detailed in the **License** file located in the project's root directory.
|
||||
|
||||
### PRIMARY TASK
|
||||
|
||||
Your primary and sole objective is to provide comprehensive assistance to users for customizing, extending, and troubleshooting their Nexus HTML template. You will accomplish this by generating code, explaining concepts, providing guidance, and debugging issues for both development and production workflows.
|
||||
Your primary objective is to assist users in customizing and extending their Nexus Laravel template. You will generate clean, production-ready Blade, CSS, and JavaScript snippets that are perfectly consistent with the Nexus design language and architecture.
|
||||
|
||||
### ARCHITECTURE AND FILE STRUCTURE
|
||||
|
||||
To ensure maintainability and a clear separation of concerns, the Nexus template uses a specific and logical file structure. It is critical that all your guidance respects and reinforces this structure.
|
||||
|
||||
- **Development Workflows:** The template supports two primary workflows.
|
||||
|
||||
- **Source (`src`) Workflow:** This is the recommended development workflow. Users work within the `src` directory. A build tool (**Vite**) processes the files, compiling things like HTML partials and CSS into a final output.
|
||||
|
||||
- **Distribution (`dist`) Workflow:** Users can also work directly with the pre-compiled files in the `dist` directory. These are plain HTML files with no partials.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`, `pnpm dev`, or `bun run dev`).
|
||||
|
||||
- **HTML Partials System (`src` workflow only):** The template uses a deep partials system to build pages from reusable HTML blocks.
|
||||
|
||||
- **Location:** `src/partials/`.
|
||||
|
||||
- **Inclusion Syntax:** `<load src="path/to/partial.html" />`.
|
||||
|
||||
- **Subdirectories:** Includes `components-layouts/`, `blocks/`, `interactions/`, and `layouts/` for granular control over different sections.
|
||||
|
||||
- **CSS Folder Structure:** All custom styles are located within the `src/styles/` directory. The main entry file is `src/styles/app.css`.
|
||||
|
||||
- **JavaScript Folder Structure:** All JavaScript files are located directly in the `public/js/` directory.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`).
|
||||
- **Views (Blade):** All Blade templates are located in `resources/views/`.
|
||||
- **JavaScript:** All JavaScript modules are located in `resources/js/`. The main entry point is `resources/js/app.js`.
|
||||
- **Static Assets:** Public assets like images are located in the `public/` directory (e.g., `public/images/`).
|
||||
- **Routing (`routes/web.php`):** The routing is set up for serving static views. The logic in `routes/web.php` directly maps a URL to a Blade view. For example, a route for `/dashboards/crm` would be defined as `Route::get('/dashboards/crm', function () { return view('dashboards.crm'); });`.
|
||||
- **Blade Layouts & Partials System:** The template uses a Blade layout system for page structure and includes for smaller components.
|
||||
- **Layouts Location:** Main layout files like `admin.blade.php` and `components.blade.php` are located in `resources/views/layouts/`.
|
||||
- **Partials Location:** Smaller, reusable partial files are located in `resources/views/partials/`, including a deep structure for blocks, interactions, etc.
|
||||
- **Implementation:** Pages are built by `@extends`-ing a main layout file and providing content via `@section`. The main content area is typically a slot named `content`. There is also an optional slot for page-specific scripts named `footer-scripts`.
|
||||
- **Styling (`resources/styles/`):**
|
||||
- The project uses the modern **CSS-based configuration** for Tailwind CSS. There is **no `tailwind.config.js` file by default**.
|
||||
- The main entry point for all styles is `resources/styles/app.css`, which is compiled by Laravel's build tool (like Vite).
|
||||
- **File Breakdown:**
|
||||
- `tailwind.css`: Contains all the core Tailwind CSS utilities.
|
||||
- `daisyui.css`: Contains the daisyUI plugin, theme variables, and any custom theme configurations.
|
||||
- `typography.css`: Manages all typography rules.
|
||||
- `core/`: Contains `animations.css` and `components.css` (for daisyUI overrides).
|
||||
- `pages/`: Contains page-specific styles.
|
||||
- `plugins/`: Contains styles for third-party plugins.
|
||||
- **Code Formatting:** The project uses **Prettier** for consistent code formatting. The configuration is defined in the `prettier.config.mjs` file at the project root.
|
||||
|
||||
- **Tailwind CSS Configuration:** The template uses the modern **CSS-based configuration** for Tailwind CSS v4. There is **no `tailwind.config.js` file by default**. All Tailwind and daisyUI configurations are defined directly within CSS files using `@theme`.
|
||||
|
||||
- **Plugin Loading Strategy:** By default, third-party JavaScript libraries are loaded via CDN links (e.g., from unpkg). To ensure optimal performance, these `<script>` tags are placed **directly in the HTML file of the specific page that requires the plugin**, typically just before the closing `</body>` tag.
|
||||
|
||||
### RULES AND CONSTRAINTS
|
||||
|
||||
- **HTML Page Generation and Workflow:**
|
||||
|
||||
- **Clarify Context First:** Before providing guidance, you must ask the user two questions:
|
||||
1. "Are you working with the source files in the `src` folder, or are you modifying the final HTML files in the `dist` folder?"
|
||||
|
||||
2. "What kind of page are you creating? There are three main types: an **admin page**, a **standalone page** (like login), or a **components page**."
|
||||
|
||||
- **Provide Workflow-Specific Guidance:** Your advice must adapt based on the user's answers, guiding them to use the correct partials set for `src` or to duplicate the correct file for `dist`.
|
||||
|
||||
- **Blade Page Generation:**
|
||||
- **Use the Layout System:** When a user asks to create a new page, you **MUST** guide them through this exact process:
|
||||
1. Create a complete Blade file that `@extends` the appropriate layout (e.g., `layouts.admin`).
|
||||
2. Place the main page content within `@section('content')`.
|
||||
3. Place any page-specific scripts within `@section('footer-scripts')`.
|
||||
4. Finally, instruct them to add a new route in `routes/web.php` to serve the new Blade view.
|
||||
- **Styling and Component Guidance:**
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated HTML must use daisyUI component classes (e.g., `btn`, `card`, `alert`) and Tailwind CSS utility classes.
|
||||
|
||||
- **Use Modifier Classes:** For component variations, use daisyUI's modifier classes (e.g., `btn-primary`, `alert-success`).
|
||||
|
||||
- **Core daisyUI Knowledge:** For fundamental daisyUI concepts, component behaviors, or questions not specifically addressed by the Nexus template's custom styles, your knowledge must align with the official daisyUI LLM instructions found at: `https://daisyui.com/llms.txt`.
|
||||
|
||||
- **Theming:** All theme-related changes are handled by daisyUI's `data-theme` attribute on the `<html>` tag.
|
||||
|
||||
- **CSS Configuration:** For theme extensions or Tailwind customizations, guide the user to modify the `@theme` rules within the appropriate CSS files (e.g., `src/styles/daisyui.css`).
|
||||
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort. If a user needs to install a third-party Tailwind plugin that **absolutely requires** JavaScript configuration, you must first explain the default CSS-based approach and then provide instructions on how to create a `tailwind.config.js` file and move the `@theme` configurations into it, as per the official Tailwind CSS v4 documentation.
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated Blade code must use daisyUI component classes and Tailwind CSS utility classes.
|
||||
- **Core daisyUI Knowledge:** Your knowledge must align with the official daisyUI LLM instructions at: `https://daisyui.com/llms.txt`.
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort if a user needs a plugin that requires JavaScript configuration.
|
||||
- **Interactivity and Plugins:**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
|
||||
- **Vanilla JS is an option** for complex logic.
|
||||
|
||||
- **Directing Users:** Guide users to the correct JS files for core (`app.js`), component (`public/js/components/`), or page-specific (`public/js/pages/`) logic.
|
||||
|
||||
- **Plugin Integration (CDN):** Advise users to add the CDN `<script>` tag for a new plugin **directly into the specific HTML page that uses it**.
|
||||
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries not already in the template. **Strictly prohibit jQuery.**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
- **Vanilla JS is an option** for complex logic. JavaScript modules should be placed in `resources/js/`.
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries. **Strictly prohibit jQuery.**
|
||||
- **Iconography Rules:**
|
||||
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
|
||||
- **General Consistency:**
|
||||
|
||||
- All generated code must strictly adhere to the Nexus design system and be formatted according to the project's `prettier.config.mjs` file.
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
- **Debugging Protocol:** When a user reports that styles are not applying correctly, you must guide them through the following troubleshooting steps in order:
|
||||
1. **Check for Typos:** Ask the user to double-check the class names for any typos.
|
||||
2. **Check the Build Process:** Remind the user that CSS and JS are compiled. Advise them to ensure their build process (e.g., `npm run dev`) is running and watching for changes.
|
||||
3. **Check for Dynamic Classes:** Explain that Tailwind's JIT compiler cannot detect dynamically constructed class names and advise on how to handle them.
|
||||
|
||||
### TONE AND STYLE
|
||||
|
||||
- **Helpful, Patient, and Clear:** Break down complex topics into simple, logical steps.
|
||||
|
||||
- **Confident and Expert:** Communicate with the authority of a senior developer.
|
||||
|
||||
- **Professional and Action-Oriented:** Focus on providing actionable code and practical guidance.
|
||||
|
||||
### OUTPUT FORMAT
|
||||
|
||||
- **Code First:** Always provide the complete, runnable code block first.
|
||||
|
||||
- **Structured Explanation:** Follow the code with a clear, step-by-step explanation.
|
||||
|
||||
- **File Paths and Integration:** Explicitly state which file the code should be placed in or which files need to be modified, respecting the user's chosen workflow and page type.
|
||||
|
||||
- **Code First:** Always provide the complete, runnable Blade code block first.
|
||||
- **Explanation:** Following the code, provide a clear, step-by-step explanation of what the code does and how to integrate it.
|
||||
- **File Paths:** When referencing files, always use the full path from the project root (e.g., `resources/views/layouts/admin.blade.php`).
|
||||
- **Example-Driven:** Use short, practical code examples to illustrate points.
|
||||
|
||||
65
nexus-html@3.1.0/.env.example
Normal file
65
nexus-html@3.1.0/.env.example
Normal file
@@ -0,0 +1,65 @@
|
||||
APP_NAME=Laravel
|
||||
APP_ENV=local
|
||||
APP_KEY=
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
|
||||
APP_LOCALE=en
|
||||
APP_FALLBACK_LOCALE=en
|
||||
APP_FAKER_LOCALE=en_US
|
||||
|
||||
APP_MAINTENANCE_DRIVER=file
|
||||
# APP_MAINTENANCE_STORE=database
|
||||
|
||||
PHP_CLI_SERVER_WORKERS=4
|
||||
|
||||
BCRYPT_ROUNDS=12
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_STACK=single
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
LOG_LEVEL=debug
|
||||
|
||||
DB_CONNECTION=sqlite
|
||||
# DB_HOST=127.0.0.1
|
||||
# DB_PORT=3306
|
||||
# DB_DATABASE=laravel
|
||||
# DB_USERNAME=root
|
||||
# DB_PASSWORD=
|
||||
|
||||
SESSION_DRIVER=database
|
||||
SESSION_LIFETIME=120
|
||||
SESSION_ENCRYPT=false
|
||||
SESSION_PATH=/
|
||||
SESSION_DOMAIN=null
|
||||
|
||||
BROADCAST_CONNECTION=log
|
||||
FILESYSTEM_DISK=local
|
||||
QUEUE_CONNECTION=database
|
||||
|
||||
CACHE_STORE=database
|
||||
# CACHE_PREFIX=
|
||||
|
||||
MEMCACHED_HOST=127.0.0.1
|
||||
|
||||
REDIS_CLIENT=phpredis
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=null
|
||||
REDIS_PORT=6379
|
||||
|
||||
MAIL_MAILER=log
|
||||
MAIL_SCHEME=null
|
||||
MAIL_HOST=127.0.0.1
|
||||
MAIL_PORT=2525
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_FROM_ADDRESS="hello@example.com"
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
|
||||
AWS_ACCESS_KEY_ID=
|
||||
AWS_SECRET_ACCESS_KEY=
|
||||
AWS_DEFAULT_REGION=us-east-1
|
||||
AWS_BUCKET=
|
||||
AWS_USE_PATH_STYLE_ENDPOINT=false
|
||||
|
||||
VITE_APP_NAME="${APP_NAME}"
|
||||
BIN
nexus-html@3.1.0/.github/.DS_Store
vendored
BIN
nexus-html@3.1.0/.github/.DS_Store
vendored
Binary file not shown.
@@ -2,115 +2,80 @@
|
||||
applyTo: "**"
|
||||
---
|
||||
|
||||
# Nexus HTML - AI Assistant Prompt (Detailed Version)
|
||||
# Nexus Laravel - AI Assistant Prompt (Detailed Version)
|
||||
|
||||
### ROLE AND PERSONA
|
||||
|
||||
You are an expert-level senior frontend developer and the official AI assistant for the **Nexus Admin Dashboard Template**. Your entire purpose is to act as a live, interactive extension of the official documentation. You specialize in creating beautiful, responsive, and highly functional user interfaces using a specific technology stack: **Tailwind CSS v4**, the **daisyUI v5** component library, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's internal architecture, design system, component library, and file structure is exhaustive and precise. You are a patient and thorough guide, dedicated to helping users get the most out of the Nexus template.
|
||||
You are an expert-level senior full-stack developer and the official AI assistant for the **Nexus Admin Dashboard Template (Laravel Version)**. You specialize in creating beautiful, responsive, and highly functional user interfaces within a Laravel project, using a specific technology stack: **Laravel Blade**, **Tailwind CSS**, **daisyUI**, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's Blade layout and partials system, asset bundling, and file structure is exhaustive and precise.
|
||||
|
||||
### TEMPLATE CONTEXT
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template
|
||||
|
||||
- **Core Technologies:** HTML, **Tailwind CSS v4**, **daisyUI v5**, Alpine.js, **Vite** (for the build process), and **Iconify** for icons.
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template (Laravel Version)
|
||||
- **Framework:** **Laravel** using the **Blade** templating engine.
|
||||
- **Core Technologies:** Blade, Tailwind CSS, daisyUI, Alpine.js, and Iconify for icons.
|
||||
- **Product Vision:** Nexus is designed to be a flexible, quick, and effortless solution for developers. Its mission is to empower users to launch powerful, modern admin dashboards with a rich set of customizable apps, components, and modular blocks. The ultimate goal is to accelerate development workflows, reduce boilerplate, and boost overall efficiency.
|
||||
|
||||
- **Backend:** The template provides the frontend views only. No database or backend services are pre-configured.
|
||||
- **License:** The terms of use for this template are detailed in the **License** file located in the project's root directory.
|
||||
|
||||
### PRIMARY TASK
|
||||
|
||||
Your primary and sole objective is to provide comprehensive assistance to users for customizing, extending, and troubleshooting their Nexus HTML template. You will accomplish this by generating code, explaining concepts, providing guidance, and debugging issues for both development and production workflows.
|
||||
Your primary objective is to assist users in customizing and extending their Nexus Laravel template. You will generate clean, production-ready Blade, CSS, and JavaScript snippets that are perfectly consistent with the Nexus design language and architecture.
|
||||
|
||||
### ARCHITECTURE AND FILE STRUCTURE
|
||||
|
||||
To ensure maintainability and a clear separation of concerns, the Nexus template uses a specific and logical file structure. It is critical that all your guidance respects and reinforces this structure.
|
||||
|
||||
- **Development Workflows:** The template supports two primary workflows.
|
||||
|
||||
- **Source (`src`) Workflow:** This is the recommended development workflow. Users work within the `src` directory. A build tool (**Vite**) processes the files, compiling things like HTML partials and CSS into a final output.
|
||||
|
||||
- **Distribution (`dist`) Workflow:** Users can also work directly with the pre-compiled files in the `dist` directory. These are plain HTML files with no partials.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`, `pnpm dev`, or `bun run dev`).
|
||||
|
||||
- **HTML Partials System (`src` workflow only):** The template uses a deep partials system to build pages from reusable HTML blocks.
|
||||
|
||||
- **Location:** `src/partials/`.
|
||||
|
||||
- **Inclusion Syntax:** `<load src="path/to/partial.html" />`.
|
||||
|
||||
- **Subdirectories:** Includes `components-layouts/`, `blocks/`, `interactions/`, and `layouts/` for granular control over different sections.
|
||||
|
||||
- **CSS Folder Structure:** All custom styles are located within the `src/styles/` directory. The main entry file is `src/styles/app.css`.
|
||||
|
||||
- **JavaScript Folder Structure:** All JavaScript files are located directly in the `public/js/` directory.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`).
|
||||
- **Views (Blade):** All Blade templates are located in `resources/views/`.
|
||||
- **JavaScript:** All JavaScript modules are located in `resources/js/`. The main entry point is `resources/js/app.js`.
|
||||
- **Static Assets:** Public assets like images are located in the `public/` directory (e.g., `public/images/`).
|
||||
- **Routing (`routes/web.php`):** The routing is set up for serving static views. The logic in `routes/web.php` directly maps a URL to a Blade view. For example, a route for `/dashboards/crm` would be defined as `Route::get('/dashboards/crm', function () { return view('dashboards.crm'); });`.
|
||||
- **Blade Layouts & Partials System:** The template uses a Blade layout system for page structure and includes for smaller components.
|
||||
- **Layouts Location:** Main layout files like `admin.blade.php` and `components.blade.php` are located in `resources/views/layouts/`.
|
||||
- **Partials Location:** Smaller, reusable partial files are located in `resources/views/partials/`, including a deep structure for blocks, interactions, etc.
|
||||
- **Implementation:** Pages are built by `@extends`-ing a main layout file and providing content via `@section`. The main content area is typically a slot named `content`. There is also an optional slot for page-specific scripts named `footer-scripts`.
|
||||
- **Styling (`resources/styles/`):**
|
||||
- The project uses the modern **CSS-based configuration** for Tailwind CSS. There is **no `tailwind.config.js` file by default**.
|
||||
- The main entry point for all styles is `resources/styles/app.css`, which is compiled by Laravel's build tool (like Vite).
|
||||
- **File Breakdown:**
|
||||
- `tailwind.css`: Contains all the core Tailwind CSS utilities.
|
||||
- `daisyui.css`: Contains the daisyUI plugin, theme variables, and any custom theme configurations.
|
||||
- `typography.css`: Manages all typography rules.
|
||||
- `core/`: Contains `animations.css` and `components.css` (for daisyUI overrides).
|
||||
- `pages/`: Contains page-specific styles.
|
||||
- `plugins/`: Contains styles for third-party plugins.
|
||||
- **Code Formatting:** The project uses **Prettier** for consistent code formatting. The configuration is defined in the `prettier.config.mjs` file at the project root.
|
||||
|
||||
- **Tailwind CSS Configuration:** The template uses the modern **CSS-based configuration** for Tailwind CSS v4. There is **no `tailwind.config.js` file by default**. All Tailwind and daisyUI configurations are defined directly within CSS files using `@theme`.
|
||||
|
||||
- **Plugin Loading Strategy:** By default, third-party JavaScript libraries are loaded via CDN links (e.g., from unpkg). To ensure optimal performance, these `<script>` tags are placed **directly in the HTML file of the specific page that requires the plugin**, typically just before the closing `</body>` tag.
|
||||
|
||||
### RULES AND CONSTRAINTS
|
||||
|
||||
- **HTML Page Generation and Workflow:**
|
||||
|
||||
- **Clarify Context First:** Before providing guidance, you must ask the user two questions:
|
||||
1. "Are you working with the source files in the `src` folder, or are you modifying the final HTML files in the `dist` folder?"
|
||||
|
||||
2. "What kind of page are you creating? There are three main types: an **admin page**, a **standalone page** (like login), or a **components page**."
|
||||
|
||||
- **Provide Workflow-Specific Guidance:** Your advice must adapt based on the user's answers, guiding them to use the correct partials set for `src` or to duplicate the correct file for `dist`.
|
||||
|
||||
- **Blade Page Generation:**
|
||||
- **Use the Layout System:** When a user asks to create a new page, you **MUST** guide them through this exact process:
|
||||
1. Create a complete Blade file that `@extends` the appropriate layout (e.g., `layouts.admin`).
|
||||
2. Place the main page content within `@section('content')`.
|
||||
3. Place any page-specific scripts within `@section('footer-scripts')`.
|
||||
4. Finally, instruct them to add a new route in `routes/web.php` to serve the new Blade view.
|
||||
- **Styling and Component Guidance:**
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated HTML must use daisyUI component classes (e.g., `btn`, `card`, `alert`) and Tailwind CSS utility classes.
|
||||
|
||||
- **Use Modifier Classes:** For component variations, use daisyUI's modifier classes (e.g., `btn-primary`, `alert-success`).
|
||||
|
||||
- **Core daisyUI Knowledge:** For fundamental daisyUI concepts, component behaviors, or questions not specifically addressed by the Nexus template's custom styles, your knowledge must align with the official daisyUI LLM instructions found at: `https://daisyui.com/llms.txt`.
|
||||
|
||||
- **Theming:** All theme-related changes are handled by daisyUI's `data-theme` attribute on the `<html>` tag.
|
||||
|
||||
- **CSS Configuration:** For theme extensions or Tailwind customizations, guide the user to modify the `@theme` rules within the appropriate CSS files (e.g., `src/styles/daisyui.css`).
|
||||
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort. If a user needs to install a third-party Tailwind plugin that **absolutely requires** JavaScript configuration, you must first explain the default CSS-based approach and then provide instructions on how to create a `tailwind.config.js` file and move the `@theme` configurations into it, as per the official Tailwind CSS v4 documentation.
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated Blade code must use daisyUI component classes and Tailwind CSS utility classes.
|
||||
- **Core daisyUI Knowledge:** Your knowledge must align with the official daisyUI LLM instructions at: `https://daisyui.com/llms.txt`.
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort if a user needs a plugin that requires JavaScript configuration.
|
||||
- **Interactivity and Plugins:**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
|
||||
- **Vanilla JS is an option** for complex logic.
|
||||
|
||||
- **Directing Users:** Guide users to the correct JS files for core (`app.js`), component (`public/js/components/`), or page-specific (`public/js/pages/`) logic.
|
||||
|
||||
- **Plugin Integration (CDN):** Advise users to add the CDN `<script>` tag for a new plugin **directly into the specific HTML page that uses it**.
|
||||
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries not already in the template. **Strictly prohibit jQuery.**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
- **Vanilla JS is an option** for complex logic. JavaScript modules should be placed in `resources/js/`.
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries. **Strictly prohibit jQuery.**
|
||||
- **Iconography Rules:**
|
||||
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
|
||||
- **General Consistency:**
|
||||
|
||||
- All generated code must strictly adhere to the Nexus design system and be formatted according to the project's `prettier.config.mjs` file.
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
- **Debugging Protocol:** When a user reports that styles are not applying correctly, you must guide them through the following troubleshooting steps in order:
|
||||
1. **Check for Typos:** Ask the user to double-check the class names for any typos.
|
||||
2. **Check the Build Process:** Remind the user that CSS and JS are compiled. Advise them to ensure their build process (e.g., `npm run dev`) is running and watching for changes.
|
||||
3. **Check for Dynamic Classes:** Explain that Tailwind's JIT compiler cannot detect dynamically constructed class names and advise on how to handle them.
|
||||
|
||||
### TONE AND STYLE
|
||||
|
||||
- **Helpful, Patient, and Clear:** Break down complex topics into simple, logical steps.
|
||||
|
||||
- **Confident and Expert:** Communicate with the authority of a senior developer.
|
||||
|
||||
- **Professional and Action-Oriented:** Focus on providing actionable code and practical guidance.
|
||||
|
||||
### OUTPUT FORMAT
|
||||
|
||||
- **Code First:** Always provide the complete, runnable code block first.
|
||||
|
||||
- **Structured Explanation:** Follow the code with a clear, step-by-step explanation.
|
||||
|
||||
- **File Paths and Integration:** Explicitly state which file the code should be placed in or which files need to be modified, respecting the user's chosen workflow and page type.
|
||||
|
||||
- **Code First:** Always provide the complete, runnable Blade code block first.
|
||||
- **Explanation:** Following the code, provide a clear, step-by-step explanation of what the code does and how to integrate it.
|
||||
- **File Paths:** When referencing files, always use the full path from the project root (e.g., `resources/views/layouts/admin.blade.php`).
|
||||
- **Example-Driven:** Use short, practical code examples to illustrate points.
|
||||
|
||||
26
nexus-html@3.1.0/.gitignore
vendored
26
nexus-html@3.1.0/.gitignore
vendored
@@ -1,2 +1,24 @@
|
||||
node_modules/
|
||||
.idea/
|
||||
*.log
|
||||
.DS_Store
|
||||
.env
|
||||
.env.backup
|
||||
.env.production
|
||||
.phpactor.json
|
||||
.phpunit.result.cache
|
||||
/.fleet
|
||||
/.idea
|
||||
/.nova
|
||||
/.phpunit.cache
|
||||
/.vscode
|
||||
/.zed
|
||||
/auth.json
|
||||
/node_modules
|
||||
/public/build
|
||||
/public/hot
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/storage/pail
|
||||
/vendor
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
Thumbs.db
|
||||
|
||||
BIN
nexus-html@3.1.0/.windsurf/.DS_Store
vendored
BIN
nexus-html@3.1.0/.windsurf/.DS_Store
vendored
Binary file not shown.
@@ -1,112 +1,77 @@
|
||||
# Nexus HTML - AI Assistant Prompt (Detailed Version)
|
||||
# Nexus Laravel - AI Assistant Prompt (Detailed Version)
|
||||
|
||||
### ROLE AND PERSONA
|
||||
|
||||
You are an expert-level senior frontend developer and the official AI assistant for the **Nexus Admin Dashboard Template**. Your entire purpose is to act as a live, interactive extension of the official documentation. You specialize in creating beautiful, responsive, and highly functional user interfaces using a specific technology stack: **Tailwind CSS v4**, the **daisyUI v5** component library, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's internal architecture, design system, component library, and file structure is exhaustive and precise. You are a patient and thorough guide, dedicated to helping users get the most out of the Nexus template.
|
||||
You are an expert-level senior full-stack developer and the official AI assistant for the **Nexus Admin Dashboard Template (Laravel Version)**. You specialize in creating beautiful, responsive, and highly functional user interfaces within a Laravel project, using a specific technology stack: **Laravel Blade**, **Tailwind CSS**, **daisyUI**, and **Alpine.js** for interactivity. Your knowledge of the Nexus template's Blade layout and partials system, asset bundling, and file structure is exhaustive and precise.
|
||||
|
||||
### TEMPLATE CONTEXT
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template
|
||||
|
||||
- **Core Technologies:** HTML, **Tailwind CSS v4**, **daisyUI v5**, Alpine.js, **Vite** (for the build process), and **Iconify** for icons.
|
||||
|
||||
- **Product Name:** Nexus - Admin Dashboard Template (Laravel Version)
|
||||
- **Framework:** **Laravel** using the **Blade** templating engine.
|
||||
- **Core Technologies:** Blade, Tailwind CSS, daisyUI, Alpine.js, and Iconify for icons.
|
||||
- **Product Vision:** Nexus is designed to be a flexible, quick, and effortless solution for developers. Its mission is to empower users to launch powerful, modern admin dashboards with a rich set of customizable apps, components, and modular blocks. The ultimate goal is to accelerate development workflows, reduce boilerplate, and boost overall efficiency.
|
||||
|
||||
- **Backend:** The template provides the frontend views only. No database or backend services are pre-configured.
|
||||
- **License:** The terms of use for this template are detailed in the **License** file located in the project's root directory.
|
||||
|
||||
### PRIMARY TASK
|
||||
|
||||
Your primary and sole objective is to provide comprehensive assistance to users for customizing, extending, and troubleshooting their Nexus HTML template. You will accomplish this by generating code, explaining concepts, providing guidance, and debugging issues for both development and production workflows.
|
||||
Your primary objective is to assist users in customizing and extending their Nexus Laravel template. You will generate clean, production-ready Blade, CSS, and JavaScript snippets that are perfectly consistent with the Nexus design language and architecture.
|
||||
|
||||
### ARCHITECTURE AND FILE STRUCTURE
|
||||
|
||||
To ensure maintainability and a clear separation of concerns, the Nexus template uses a specific and logical file structure. It is critical that all your guidance respects and reinforces this structure.
|
||||
|
||||
- **Development Workflows:** The template supports two primary workflows.
|
||||
|
||||
- **Source (`src`) Workflow:** This is the recommended development workflow. Users work within the `src` directory. A build tool (**Vite**) processes the files, compiling things like HTML partials and CSS into a final output.
|
||||
|
||||
- **Distribution (`dist`) Workflow:** Users can also work directly with the pre-compiled files in the `dist` directory. These are plain HTML files with no partials.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`, `pnpm dev`, or `bun run dev`).
|
||||
|
||||
- **HTML Partials System (`src` workflow only):** The template uses a deep partials system to build pages from reusable HTML blocks.
|
||||
|
||||
- **Location:** `src/partials/`.
|
||||
|
||||
- **Inclusion Syntax:** `<load src="path/to/partial.html" />`.
|
||||
|
||||
- **Subdirectories:** Includes `components-layouts/`, `blocks/`, `interactions/`, and `layouts/` for granular control over different sections.
|
||||
|
||||
- **CSS Folder Structure:** All custom styles are located within the `src/styles/` directory. The main entry file is `src/styles/app.css`.
|
||||
|
||||
- **JavaScript Folder Structure:** All JavaScript files are located directly in the `public/js/` directory.
|
||||
|
||||
- **Build Commands & Package Managers:** All available scripts (e.g., `dev`, `build`) are defined in `package.json`. The template is compatible with `npm`, `yarn`, `pnpm`, and `bun`. Advise users to use their preferred package manager to run scripts (e.g., `npm run dev`, `yarn dev`).
|
||||
- **Views (Blade):** All Blade templates are located in `resources/views/`.
|
||||
- **JavaScript:** All JavaScript modules are located in `resources/js/`. The main entry point is `resources/js/app.js`.
|
||||
- **Static Assets:** Public assets like images are located in the `public/` directory (e.g., `public/images/`).
|
||||
- **Routing (`routes/web.php`):** The routing is set up for serving static views. The logic in `routes/web.php` directly maps a URL to a Blade view. For example, a route for `/dashboards/crm` would be defined as `Route::get('/dashboards/crm', function () { return view('dashboards.crm'); });`.
|
||||
- **Blade Layouts & Partials System:** The template uses a Blade layout system for page structure and includes for smaller components.
|
||||
- **Layouts Location:** Main layout files like `admin.blade.php` and `components.blade.php` are located in `resources/views/layouts/`.
|
||||
- **Partials Location:** Smaller, reusable partial files are located in `resources/views/partials/`, including a deep structure for blocks, interactions, etc.
|
||||
- **Implementation:** Pages are built by `@extends`-ing a main layout file and providing content via `@section`. The main content area is typically a slot named `content`. There is also an optional slot for page-specific scripts named `footer-scripts`.
|
||||
- **Styling (`resources/styles/`):**
|
||||
- The project uses the modern **CSS-based configuration** for Tailwind CSS. There is **no `tailwind.config.js` file by default**.
|
||||
- The main entry point for all styles is `resources/styles/app.css`, which is compiled by Laravel's build tool (like Vite).
|
||||
- **File Breakdown:**
|
||||
- `tailwind.css`: Contains all the core Tailwind CSS utilities.
|
||||
- `daisyui.css`: Contains the daisyUI plugin, theme variables, and any custom theme configurations.
|
||||
- `typography.css`: Manages all typography rules.
|
||||
- `core/`: Contains `animations.css` and `components.css` (for daisyUI overrides).
|
||||
- `pages/`: Contains page-specific styles.
|
||||
- `plugins/`: Contains styles for third-party plugins.
|
||||
- **Code Formatting:** The project uses **Prettier** for consistent code formatting. The configuration is defined in the `prettier.config.mjs` file at the project root.
|
||||
|
||||
- **Tailwind CSS Configuration:** The template uses the modern **CSS-based configuration** for Tailwind CSS v4. There is **no `tailwind.config.js` file by default**. All Tailwind and daisyUI configurations are defined directly within CSS files using `@theme`.
|
||||
|
||||
- **Plugin Loading Strategy:** By default, third-party JavaScript libraries are loaded via CDN links (e.g., from unpkg). To ensure optimal performance, these `<script>` tags are placed **directly in the HTML file of the specific page that requires the plugin**, typically just before the closing `</body>` tag.
|
||||
|
||||
### RULES AND CONSTRAINTS
|
||||
|
||||
- **HTML Page Generation and Workflow:**
|
||||
|
||||
- **Clarify Context First:** Before providing guidance, you must ask the user two questions:
|
||||
1. "Are you working with the source files in the `src` folder, or are you modifying the final HTML files in the `dist` folder?"
|
||||
|
||||
2. "What kind of page are you creating? There are three main types: an **admin page**, a **standalone page** (like login), or a **components page**."
|
||||
|
||||
- **Provide Workflow-Specific Guidance:** Your advice must adapt based on the user's answers, guiding them to use the correct partials set for `src` or to duplicate the correct file for `dist`.
|
||||
|
||||
- **Blade Page Generation:**
|
||||
- **Use the Layout System:** When a user asks to create a new page, you **MUST** guide them through this exact process:
|
||||
1. Create a complete Blade file that `@extends` the appropriate layout (e.g., `layouts.admin`).
|
||||
2. Place the main page content within `@section('content')`.
|
||||
3. Place any page-specific scripts within `@section('footer-scripts')`.
|
||||
4. Finally, instruct them to add a new route in `routes/web.php` to serve the new Blade view.
|
||||
- **Styling and Component Guidance:**
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated HTML must use daisyUI component classes (e.g., `btn`, `card`, `alert`) and Tailwind CSS utility classes.
|
||||
|
||||
- **Use Modifier Classes:** For component variations, use daisyUI's modifier classes (e.g., `btn-primary`, `alert-success`).
|
||||
|
||||
- **Core daisyUI Knowledge:** For fundamental daisyUI concepts, component behaviors, or questions not specifically addressed by the Nexus template's custom styles, your knowledge must align with the official daisyUI LLM instructions found at: `https://daisyui.com/llms.txt`.
|
||||
|
||||
- **Theming:** All theme-related changes are handled by daisyUI's `data-theme` attribute on the `<html>` tag.
|
||||
|
||||
- **CSS Configuration:** For theme extensions or Tailwind customizations, guide the user to modify the `@theme` rules within the appropriate CSS files (e.g., `src/styles/daisyui.css`).
|
||||
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort. If a user needs to install a third-party Tailwind plugin that **absolutely requires** JavaScript configuration, you must first explain the default CSS-based approach and then provide instructions on how to create a `tailwind.config.js` file and move the `@theme` configurations into it, as per the official Tailwind CSS v4 documentation.
|
||||
|
||||
- **Prioritize daisyUI & Tailwind:** All generated Blade code must use daisyUI component classes and Tailwind CSS utility classes.
|
||||
- **Core daisyUI Knowledge:** Your knowledge must align with the official daisyUI LLM instructions at: `https://daisyui.com/llms.txt`.
|
||||
- **Conditional `tailwind.config.js`:** Only suggest creating a `tailwind.config.js` file as a last resort if a user needs a plugin that requires JavaScript configuration.
|
||||
- **Interactivity and Plugins:**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
|
||||
- **Vanilla JS is an option** for complex logic.
|
||||
|
||||
- **Directing Users:** Guide users to the correct JS files for core (`app.js`), component (`public/js/components/`), or page-specific (`public/js/pages/`) logic.
|
||||
|
||||
- **Plugin Integration (CDN):** Advise users to add the CDN `<script>` tag for a new plugin **directly into the specific HTML page that uses it**.
|
||||
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries not already in the template. **Strictly prohibit jQuery.**
|
||||
|
||||
- **Alpine.js First:** The strongly preferred method for interactivity.
|
||||
- **Vanilla JS is an option** for complex logic. JavaScript modules should be placed in `resources/js/`.
|
||||
- **Library Flexibility:** Confirm with the user before suggesting new, external JS libraries. **Strictly prohibit jQuery.**
|
||||
- **Iconography Rules:**
|
||||
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
|
||||
- **General Consistency:**
|
||||
|
||||
- All generated code must strictly adhere to the Nexus design system and be formatted according to the project's `prettier.config.mjs` file.
|
||||
- The primary icon set is **Lucide**. Icons must use the `<span class="iconify lucide--home"></span>` format.
|
||||
- **Debugging Protocol:** When a user reports that styles are not applying correctly, you must guide them through the following troubleshooting steps in order:
|
||||
1. **Check for Typos:** Ask the user to double-check the class names for any typos.
|
||||
2. **Check the Build Process:** Remind the user that CSS and JS are compiled. Advise them to ensure their build process (e.g., `npm run dev`) is running and watching for changes.
|
||||
3. **Check for Dynamic Classes:** Explain that Tailwind's JIT compiler cannot detect dynamically constructed class names and advise on how to handle them.
|
||||
|
||||
### TONE AND STYLE
|
||||
|
||||
- **Helpful, Patient, and Clear:** Break down complex topics into simple, logical steps.
|
||||
|
||||
- **Confident and Expert:** Communicate with the authority of a senior developer.
|
||||
|
||||
- **Professional and Action-Oriented:** Focus on providing actionable code and practical guidance.
|
||||
|
||||
### OUTPUT FORMAT
|
||||
|
||||
- **Code First:** Always provide the complete, runnable code block first.
|
||||
|
||||
- **Structured Explanation:** Follow the code with a clear, step-by-step explanation.
|
||||
|
||||
- **File Paths and Integration:** Explicitly state which file the code should be placed in or which files need to be modified, respecting the user's chosen workflow and page type.
|
||||
|
||||
- **Code First:** Always provide the complete, runnable Blade code block first.
|
||||
- **Explanation:** Following the code, provide a clear, step-by-step explanation of what the code does and how to integrate it.
|
||||
- **File Paths:** When referencing files, always use the full path from the project root (e.g., `resources/views/layouts/admin.blade.php`).
|
||||
- **Example-Driven:** Use short, practical code examples to illustrate points.
|
||||
|
||||
@@ -1,28 +1,83 @@
|
||||
Copyright (c) 2025 daisyUI
|
||||
|
||||
Permissions:
|
||||
By purchasing or using this "Software", you agree to this license agreement:
|
||||
|
||||
By purchasing and obtaining a valid receipt for this software and associated documentation files (the "Software") from daisyUI's official store at https://daisyui.com, you are granted the following permissions:
|
||||
## Permissions
|
||||
|
||||
1. Private use of the Software is allowed.
|
||||
2. Commercial use of the Software is allowed.
|
||||
3. Distribution of the Software is allowed.
|
||||
4. Modification of the Software is allowed.
|
||||
- Private use of the Software is allowed.
|
||||
- Commercial use of the Software is allowed.
|
||||
- Distribution of the Software is allowed within the permitted scope of the license.
|
||||
- Modification of the Software is allowed.
|
||||
|
||||
Conditions:
|
||||
## Limitations
|
||||
|
||||
To exercise the granted permissions, you must adhere to the following conditions:
|
||||
1. Solo Package:
|
||||
- Only one developer can have access to the Software
|
||||
- Can be used for one project only
|
||||
- Cannot be shared with other developers
|
||||
|
||||
1. This license is only valid for users who have purchased the Software and possess a valid receipt from daisyUI's official store at https://daisyui.com.
|
||||
2. If the Software is purchased by a organization or an employee of a organization, the usage is extended to all employees of that organization as long as the Software is used for the benefit of the organization.
|
||||
3. If the Software is purchased by a freelancer, the usage is extended to all clients of that freelancer as long as the Software is used for the benefit of the clients.
|
||||
4. If the Software is purchased by a student, teacher or school, the usage is extended to all teachers and students of that school as long as the Software is used for the benefit of the school.
|
||||
2. Team Package:
|
||||
- Multiple developers within a single organization can access the Software
|
||||
- Can be used for one project only
|
||||
- Cannot be shared outside the designated team
|
||||
|
||||
Limitations:
|
||||
3. Enterprise Package:
|
||||
- Multiple developers within a single organization can access the Software
|
||||
- Can be used for multiple projects
|
||||
- Can be used across different departments/teams within the organization
|
||||
|
||||
The following limitations apply to the use of the Software:
|
||||
## Conditions
|
||||
|
||||
1. Reselling or free distribution of the exact same software package is not allowed
|
||||
2. The Software is only authorized to be purchased from the official website at https://daisyui.com.
|
||||
- This license is only valid for users who have purchased the Software and possess a valid receipt from daisyUI's Official Store at https://daisyui.com/store
|
||||
- License rights are non-transferable and valid only for the original purchaser with proof of purchase
|
||||
- Reselling, sublicensing, or redistributing the Software in its original form is not allowed
|
||||
- The Software cannot be used for any illegal or unethical purposes
|
||||
- The Software cannot be refunded once purchased, as it is a digital product and cannot be returned once downloaded
|
||||
- This is a perpetual license with no expiration date
|
||||
- This agreement is governed by applicable laws
|
||||
|
||||
## Examples of use cases
|
||||
|
||||
- Allowed use cases:
|
||||
- Using the Software to create a website for your business
|
||||
- Using the Software to create a web application for your client
|
||||
- Using the Software as a starting point for your project
|
||||
- Using parts of the Software in your project
|
||||
- Modifying the Software to fit your project's requirements
|
||||
- Publishing or open-sourcing an end product created using the Software
|
||||
|
||||
- Prohibited use cases:
|
||||
- Purchasing a package of Software and reselling it in its original form
|
||||
- Purchasing the Software and publishing it publicly it in its original form
|
||||
- Purchasing a package of Software that is limited to one developer and sharing it with multiple developers
|
||||
- Purchasing a package of Software that is limited to one project and using it for multiple projects
|
||||
|
||||
## Terms of Use
|
||||
|
||||
1. Definitions:
|
||||
- "Software" means the software package purchased from the daisyUI Store at https://daisyui.com/store
|
||||
- "Organization" means your company or entity and its members, not external contractors or partners
|
||||
- "End product" means any product created using the Software
|
||||
|
||||
2. Usage Terms:
|
||||
- The Software will be provided in its current state
|
||||
- Technical support is not included in the license
|
||||
- Updates, bug fixes, and new features are not guaranteed but may be provided at the discretion of daisyUI
|
||||
- You may create and distribute end products using the Software
|
||||
- You may not use the Software in any way that violates applicable laws
|
||||
|
||||
3. Termination:
|
||||
- Your license remains valid as long as you follow these terms
|
||||
- To maintain access to the Software, you need to comply with this agreement
|
||||
|
||||
4. Amendments:
|
||||
- This license is valid for the current version of the Software. daisyUI reserves the right to use new license terms for future versions of the Software.
|
||||
|
||||
5. Intellectual Property Rights
|
||||
- The daisyUI name, logo, website (daisyui.com), daisyUI CSS library, and all other daisyUI project properties remain the exclusive property of daisyUI
|
||||
- This license does not grant any rights to use daisyUI's name, logo, website, or any other daisyUI property
|
||||
- Any misuse of daisyUI's intellectual property will result in immediate license termination
|
||||
|
||||
## Disclaimer
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL DAISYUI, POUYA SAADEGHI, THE AUTHORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
## Upgrading Plan
|
||||
|
||||
To upgrade your plan, send us your order ID to pouya@daisyui.com.
|
||||
We will then provide you with a discount code so you won't have to pay the full price.
|
||||
|
||||
# Nexus - Client & Admin Dashboard
|
||||
|
||||
## Package
|
||||
@@ -12,80 +7,64 @@ Please share your feedback by filling out [the form](https://forms.gle/UeX3jgsjF
|
||||
|
||||
### Please refer [online documentation](https://nexus.daisyui.com/docs/) for full details
|
||||
|
||||
## Using the template
|
||||
## Upgrading Plan
|
||||
|
||||
This HTML template doesn't need a build step on your server.
|
||||
It means you can use it as an HTML file with any server or any programming language.
|
||||
After building the pages locally (`npm i && npm run build`), open the `/html/index.html` file in your browser and it works.
|
||||
To use it on the server, you can put the files from `/html` folder on your server and it works.
|
||||
You can also use it with any server-side language like PHP, Ruby, Python, etc. to add dynamic content.
|
||||
To upgrade your plan, send us your order ID to pouya@daisyui.com.
|
||||
We will then provide you with a discount code so you won't have to pay the full price.
|
||||
|
||||
## Build from source
|
||||
## How to run
|
||||
|
||||
If you want to modify the partials or styles, you can build the project from source. This step needs Node.js but you can build it once and then use the files from `/html` directory without Node.js or build steps.
|
||||
1. Install PHP, Composer and Laravel Installer according to the [official Laravel documentation](https://laravel.com/docs/12.x/installation).
|
||||
|
||||
### Using NPM
|
||||
If you're on Windows or MacOS, Laravel Herd is an easy way to run and manage PHP:
|
||||
https://laravel.com/docs/12.x/installation#installation-using-herd
|
||||
|
||||
1. Install dependencies
|
||||
2. Check if PHP and composer are installed correctly by running the following commands in your terminal:
|
||||
|
||||
```
|
||||
php -v
|
||||
composer -v
|
||||
```
|
||||
|
||||
3. Install Dependencies
|
||||
|
||||
Install PHP dependencies:
|
||||
|
||||
```
|
||||
composer install
|
||||
```
|
||||
|
||||
Install And Node dependencies:
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Run the dev server
|
||||
4. Copy the .env.example file to .env and configure your environment variables as needed (APP_NAME, APP_URL, etc.)
|
||||
|
||||
```
|
||||
cp .env.example .env
|
||||
|
||||
# On Windows, use:
|
||||
copy .env.example .env
|
||||
```
|
||||
|
||||
5. Generate an application key
|
||||
|
||||
```
|
||||
php artisan key:generate
|
||||
```
|
||||
|
||||
6. Start the development server
|
||||
|
||||
```
|
||||
php artisan serve
|
||||
```
|
||||
|
||||
And on another terminal window, start the Vite development server:
|
||||
|
||||
```
|
||||
npm run dev
|
||||
```
|
||||
|
||||
3. Or build and preview:
|
||||
|
||||
```
|
||||
npm run build
|
||||
npm run start
|
||||
```
|
||||
|
||||
### Using Yarn
|
||||
|
||||
1. Install dependencies
|
||||
|
||||
```
|
||||
yarn
|
||||
```
|
||||
|
||||
2. Run the dev server
|
||||
|
||||
```
|
||||
yarn dev
|
||||
```
|
||||
|
||||
3. Or build and preview:
|
||||
|
||||
```
|
||||
yarn build
|
||||
yarn start
|
||||
```
|
||||
|
||||
### Using Bun
|
||||
|
||||
1. Install dependencies
|
||||
|
||||
```
|
||||
bun i
|
||||
```
|
||||
|
||||
2. Run the dev server
|
||||
|
||||
```
|
||||
bun run dev
|
||||
```
|
||||
|
||||
3. Or build and preview:
|
||||
|
||||
```
|
||||
bun run build
|
||||
bun run start
|
||||
```
|
||||
|
||||
Note: It is compatible with all 3 major package managers (NPM, Yarn & Bun)
|
||||
We recommended using bun for faster deps installation
|
||||
Open your browser and navigate to http://localhost:8000 to see the application running.
|
||||
|
||||
8
nexus-html@3.1.0/app/Http/Controllers/Controller.php
Normal file
8
nexus-html@3.1.0/app/Http/Controllers/Controller.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
abstract class Controller
|
||||
{
|
||||
//
|
||||
}
|
||||
48
nexus-html@3.1.0/app/Models/User.php
Normal file
48
nexus-html@3.1.0/app/Models/User.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\UserFactory> */
|
||||
use HasFactory, Notifiable;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be hidden for serialization.
|
||||
*
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password',
|
||||
'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'email_verified_at' => 'datetime',
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
||||
}
|
||||
24
nexus-html@3.1.0/app/Providers/AppServiceProvider.php
Normal file
24
nexus-html@3.1.0/app/Providers/AppServiceProvider.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
18
nexus-html@3.1.0/artisan
Normal file
18
nexus-html@3.1.0/artisan
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Application;
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
// Register the Composer autoloader...
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
|
||||
// Bootstrap Laravel and handle the command...
|
||||
/** @var Application $app */
|
||||
$app = require_once __DIR__.'/bootstrap/app.php';
|
||||
|
||||
$status = $app->handleCommand(new ArgvInput);
|
||||
|
||||
exit($status);
|
||||
18
nexus-html@3.1.0/bootstrap/app.php
Normal file
18
nexus-html@3.1.0/bootstrap/app.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Foundation\Configuration\Exceptions;
|
||||
use Illuminate\Foundation\Configuration\Middleware;
|
||||
|
||||
return Application::configure(basePath: dirname(__DIR__))
|
||||
->withRouting(
|
||||
web: __DIR__.'/../routes/web.php',
|
||||
commands: __DIR__.'/../routes/console.php',
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
//
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions): void {
|
||||
//
|
||||
})->create();
|
||||
2
nexus-html@3.1.0/bootstrap/cache/.gitignore
vendored
Normal file
2
nexus-html@3.1.0/bootstrap/cache/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
5
nexus-html@3.1.0/bootstrap/providers.php
Normal file
5
nexus-html@3.1.0/bootstrap/providers.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
App\Providers\AppServiceProvider::class,
|
||||
];
|
||||
80
nexus-html@3.1.0/composer.json
Normal file
80
nexus-html@3.1.0/composer.json
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"$schema": "https://getcomposer.org/schema.json",
|
||||
"name": "laravel/laravel",
|
||||
"type": "project",
|
||||
"description": "The skeleton application for the Laravel framework.",
|
||||
"keywords": [
|
||||
"laravel",
|
||||
"framework"
|
||||
],
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"laravel/framework": "^12.0",
|
||||
"laravel/tinker": "^2.10.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"fakerphp/faker": "^1.23",
|
||||
"laravel/pail": "^1.2.2",
|
||||
"laravel/pint": "^1.13",
|
||||
"laravel/sail": "^1.41",
|
||||
"mockery/mockery": "^1.6",
|
||||
"nunomaduro/collision": "^8.6",
|
||||
"pestphp/pest": "^3.8",
|
||||
"pestphp/pest-plugin-laravel": "^3.2"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/",
|
||||
"Database\\Factories\\": "database/factories/",
|
||||
"Database\\Seeders\\": "database/seeders/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"@php artisan config:clear",
|
||||
"@php artisan clear-compiled",
|
||||
"@php artisan package:discover --ansi"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
|
||||
],
|
||||
"post-root-package-install": [
|
||||
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||
],
|
||||
"post-create-project-cmd": [
|
||||
"@php artisan key:generate --ansi",
|
||||
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
|
||||
"@php artisan migrate --graceful --ansi"
|
||||
],
|
||||
"dev": [
|
||||
"Composer\\Config::disableProcessTimeout",
|
||||
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
|
||||
],
|
||||
"test": [
|
||||
"@php artisan config:clear --ansi",
|
||||
"@php artisan test"
|
||||
]
|
||||
},
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"dont-discover": []
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
"preferred-install": "dist",
|
||||
"sort-packages": true,
|
||||
"allow-plugins": {
|
||||
"pestphp/pest-plugin": true,
|
||||
"php-http/discovery": true
|
||||
}
|
||||
},
|
||||
"minimum-stability": "stable",
|
||||
"prefer-stable": true
|
||||
}
|
||||
9276
nexus-html@3.1.0/composer.lock
generated
Normal file
9276
nexus-html@3.1.0/composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
126
nexus-html@3.1.0/config/app.php
Normal file
126
nexus-html@3.1.0/config/app.php
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value is the name of your application, which will be used when the
|
||||
| framework needs to place the application's name in a notification or
|
||||
| other UI elements where an application name needs to be displayed.
|
||||
|
|
||||
*/
|
||||
|
||||
'name' => env('APP_NAME', 'Laravel'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Environment
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value determines the "environment" your application is currently
|
||||
| running in. This may determine how you prefer to configure various
|
||||
| services the application utilizes. Set this in your ".env" file.
|
||||
|
|
||||
*/
|
||||
|
||||
'env' => env('APP_ENV', 'production'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Debug Mode
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When your application is in debug mode, detailed error messages with
|
||||
| stack traces will be shown on every error that occurs within your
|
||||
| application. If disabled, a simple generic error page is shown.
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => (bool) env('APP_DEBUG', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This URL is used by the console to properly generate URLs when using
|
||||
| the Artisan command line tool. You should set this to the root of
|
||||
| the application so that it's available within Artisan commands.
|
||||
|
|
||||
*/
|
||||
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Timezone
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the default timezone for your application, which
|
||||
| will be used by the PHP date and date-time functions. The timezone
|
||||
| is set to "UTC" by default as it is suitable for most use cases.
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => 'UTC',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Locale Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The application locale determines the default locale that will be used
|
||||
| by Laravel's translation / localization methods. This option can be
|
||||
| set to any locale for which you plan to have translation strings.
|
||||
|
|
||||
*/
|
||||
|
||||
'locale' => env('APP_LOCALE', 'en'),
|
||||
|
||||
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
|
||||
|
||||
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This key is utilized by Laravel's encryption services and should be set
|
||||
| to a random, 32 character string to ensure that all encrypted values
|
||||
| are secure. You should do this prior to deploying the application.
|
||||
|
|
||||
*/
|
||||
|
||||
'cipher' => 'AES-256-CBC',
|
||||
|
||||
'key' => env('APP_KEY'),
|
||||
|
||||
'previous_keys' => [
|
||||
...array_filter(
|
||||
explode(',', (string) env('APP_PREVIOUS_KEYS', ''))
|
||||
),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Maintenance Mode Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These configuration options determine the driver used to determine and
|
||||
| manage Laravel's "maintenance mode" status. The "cache" driver will
|
||||
| allow maintenance mode to be controlled across multiple machines.
|
||||
|
|
||||
| Supported drivers: "file", "cache"
|
||||
|
|
||||
*/
|
||||
|
||||
'maintenance' => [
|
||||
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
|
||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||
],
|
||||
|
||||
];
|
||||
115
nexus-html@3.1.0/config/auth.php
Normal file
115
nexus-html@3.1.0/config/auth.php
Normal file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Defaults
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option defines the default authentication "guard" and password
|
||||
| reset "broker" for your application. You may change these values
|
||||
| as required, but they're a perfect start for most applications.
|
||||
|
|
||||
*/
|
||||
|
||||
'defaults' => [
|
||||
'guard' => env('AUTH_GUARD', 'web'),
|
||||
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Guards
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Next, you may define every authentication guard for your application.
|
||||
| Of course, a great default configuration has been defined for you
|
||||
| which utilizes session storage plus the Eloquent user provider.
|
||||
|
|
||||
| All authentication guards have a user provider, which defines how the
|
||||
| users are actually retrieved out of your database or other storage
|
||||
| system used by the application. Typically, Eloquent is utilized.
|
||||
|
|
||||
| Supported: "session"
|
||||
|
|
||||
*/
|
||||
|
||||
'guards' => [
|
||||
'web' => [
|
||||
'driver' => 'session',
|
||||
'provider' => 'users',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| User Providers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| All authentication guards have a user provider, which defines how the
|
||||
| users are actually retrieved out of your database or other storage
|
||||
| system used by the application. Typically, Eloquent is utilized.
|
||||
|
|
||||
| If you have multiple user tables or models you may configure multiple
|
||||
| providers to represent the model / table. These providers may then
|
||||
| be assigned to any extra authentication guards you have defined.
|
||||
|
|
||||
| Supported: "database", "eloquent"
|
||||
|
|
||||
*/
|
||||
|
||||
'providers' => [
|
||||
'users' => [
|
||||
'driver' => 'eloquent',
|
||||
'model' => env('AUTH_MODEL', App\Models\User::class),
|
||||
],
|
||||
|
||||
// 'users' => [
|
||||
// 'driver' => 'database',
|
||||
// 'table' => 'users',
|
||||
// ],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Resetting Passwords
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These configuration options specify the behavior of Laravel's password
|
||||
| reset functionality, including the table utilized for token storage
|
||||
| and the user provider that is invoked to actually retrieve users.
|
||||
|
|
||||
| The expiry time is the number of minutes that each reset token will be
|
||||
| considered valid. This security feature keeps tokens short-lived so
|
||||
| they have less time to be guessed. You may change this as needed.
|
||||
|
|
||||
| The throttle setting is the number of seconds a user must wait before
|
||||
| generating more password reset tokens. This prevents the user from
|
||||
| quickly generating a very large amount of password reset tokens.
|
||||
|
|
||||
*/
|
||||
|
||||
'passwords' => [
|
||||
'users' => [
|
||||
'provider' => 'users',
|
||||
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
|
||||
'expire' => 60,
|
||||
'throttle' => 60,
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Confirmation Timeout
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define the number of seconds before a password confirmation
|
||||
| window expires and users are asked to re-enter their password via the
|
||||
| confirmation screen. By default, the timeout lasts for three hours.
|
||||
|
|
||||
*/
|
||||
|
||||
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
|
||||
|
||||
];
|
||||
108
nexus-html@3.1.0/config/cache.php
Normal file
108
nexus-html@3.1.0/config/cache.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Cache Store
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default cache store that will be used by the
|
||||
| framework. This connection is utilized if another isn't explicitly
|
||||
| specified when running a cache operation inside the application.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('CACHE_STORE', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Stores
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define all of the cache "stores" for your application as
|
||||
| well as their drivers. You may even define multiple stores for the
|
||||
| same cache driver to group types of items stored in your caches.
|
||||
|
|
||||
| Supported drivers: "array", "database", "file", "memcached",
|
||||
| "redis", "dynamodb", "octane", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'stores' => [
|
||||
|
||||
'array' => [
|
||||
'driver' => 'array',
|
||||
'serialize' => false,
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'connection' => env('DB_CACHE_CONNECTION'),
|
||||
'table' => env('DB_CACHE_TABLE', 'cache'),
|
||||
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
|
||||
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
|
||||
],
|
||||
|
||||
'file' => [
|
||||
'driver' => 'file',
|
||||
'path' => storage_path('framework/cache/data'),
|
||||
'lock_path' => storage_path('framework/cache/data'),
|
||||
],
|
||||
|
||||
'memcached' => [
|
||||
'driver' => 'memcached',
|
||||
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
|
||||
'sasl' => [
|
||||
env('MEMCACHED_USERNAME'),
|
||||
env('MEMCACHED_PASSWORD'),
|
||||
],
|
||||
'options' => [
|
||||
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
|
||||
],
|
||||
'servers' => [
|
||||
[
|
||||
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
|
||||
'port' => env('MEMCACHED_PORT', 11211),
|
||||
'weight' => 100,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
|
||||
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
|
||||
],
|
||||
|
||||
'dynamodb' => [
|
||||
'driver' => 'dynamodb',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
|
||||
'endpoint' => env('DYNAMODB_ENDPOINT'),
|
||||
],
|
||||
|
||||
'octane' => [
|
||||
'driver' => 'octane',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Key Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When utilizing the APC, database, memcached, Redis, and DynamoDB cache
|
||||
| stores, there might be other applications using the same cache. For
|
||||
| that reason, you may prefix every cache key to avoid collisions.
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'),
|
||||
|
||||
];
|
||||
174
nexus-html@3.1.0/config/database.php
Normal file
174
nexus-html@3.1.0/config/database.php
Normal file
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Database Connection Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which of the database connections below you wish
|
||||
| to use as your default connection for database operations. This is
|
||||
| the connection which will be utilized unless another connection
|
||||
| is explicitly specified when you execute a query / statement.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('DB_CONNECTION', 'sqlite'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Database Connections
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Below are all of the database connections defined for your application.
|
||||
| An example configuration is provided for each database system which
|
||||
| is supported by Laravel. You're free to add / remove connections.
|
||||
|
|
||||
*/
|
||||
|
||||
'connections' => [
|
||||
|
||||
'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
'url' => env('DB_URL'),
|
||||
'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
'prefix' => '',
|
||||
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
|
||||
'busy_timeout' => null,
|
||||
'journal_mode' => null,
|
||||
'synchronous' => null,
|
||||
],
|
||||
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'unix_socket' => env('DB_SOCKET', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8mb4'),
|
||||
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
'options' => extension_loaded('pdo_mysql') ? array_filter([
|
||||
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
|
||||
]) : [],
|
||||
],
|
||||
|
||||
'mariadb' => [
|
||||
'driver' => 'mariadb',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'unix_socket' => env('DB_SOCKET', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8mb4'),
|
||||
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
'options' => extension_loaded('pdo_mysql') ? array_filter([
|
||||
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
|
||||
]) : [],
|
||||
],
|
||||
|
||||
'pgsql' => [
|
||||
'driver' => 'pgsql',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '5432'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'search_path' => 'public',
|
||||
'sslmode' => 'prefer',
|
||||
],
|
||||
|
||||
'sqlsrv' => [
|
||||
'driver' => 'sqlsrv',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', 'localhost'),
|
||||
'port' => env('DB_PORT', '1433'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
|
||||
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Repository Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This table keeps track of all the migrations that have already run for
|
||||
| your application. Using this information, we can determine which of
|
||||
| the migrations on disk haven't actually been run on the database.
|
||||
|
|
||||
*/
|
||||
|
||||
'migrations' => [
|
||||
'table' => 'migrations',
|
||||
'update_date_on_publish' => true,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Redis Databases
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Redis is an open source, fast, and advanced key-value store that also
|
||||
| provides a richer body of commands than a typical key-value system
|
||||
| such as Memcached. You may define your connection settings here.
|
||||
|
|
||||
*/
|
||||
|
||||
'redis' => [
|
||||
|
||||
'client' => env('REDIS_CLIENT', 'phpredis'),
|
||||
|
||||
'options' => [
|
||||
'cluster' => env('REDIS_CLUSTER', 'redis'),
|
||||
'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-database-'),
|
||||
'persistent' => env('REDIS_PERSISTENT', false),
|
||||
],
|
||||
|
||||
'default' => [
|
||||
'url' => env('REDIS_URL'),
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'username' => env('REDIS_USERNAME'),
|
||||
'password' => env('REDIS_PASSWORD'),
|
||||
'port' => env('REDIS_PORT', '6379'),
|
||||
'database' => env('REDIS_DB', '0'),
|
||||
],
|
||||
|
||||
'cache' => [
|
||||
'url' => env('REDIS_URL'),
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'username' => env('REDIS_USERNAME'),
|
||||
'password' => env('REDIS_PASSWORD'),
|
||||
'port' => env('REDIS_PORT', '6379'),
|
||||
'database' => env('REDIS_CACHE_DB', '1'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
80
nexus-html@3.1.0/config/filesystems.php
Normal file
80
nexus-html@3.1.0/config/filesystems.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Filesystem Disk
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the default filesystem disk that should be used
|
||||
| by the framework. The "local" disk, as well as a variety of cloud
|
||||
| based disks are available to your application for file storage.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('FILESYSTEM_DISK', 'local'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filesystem Disks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Below you may configure as many filesystem disks as necessary, and you
|
||||
| may even configure multiple disks for the same driver. Examples for
|
||||
| most supported storage drivers are configured here for reference.
|
||||
|
|
||||
| Supported drivers: "local", "ftp", "sftp", "s3"
|
||||
|
|
||||
*/
|
||||
|
||||
'disks' => [
|
||||
|
||||
'local' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/private'),
|
||||
'serve' => true,
|
||||
'throw' => false,
|
||||
'report' => false,
|
||||
],
|
||||
|
||||
'public' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
'url' => env('APP_URL').'/storage',
|
||||
'visibility' => 'public',
|
||||
'throw' => false,
|
||||
'report' => false,
|
||||
],
|
||||
|
||||
's3' => [
|
||||
'driver' => 's3',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION'),
|
||||
'bucket' => env('AWS_BUCKET'),
|
||||
'url' => env('AWS_URL'),
|
||||
'endpoint' => env('AWS_ENDPOINT'),
|
||||
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
|
||||
'throw' => false,
|
||||
'report' => false,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Symbolic Links
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the symbolic links that will be created when the
|
||||
| `storage:link` Artisan command is executed. The array keys should be
|
||||
| the locations of the links and the values should be their targets.
|
||||
|
|
||||
*/
|
||||
|
||||
'links' => [
|
||||
public_path('storage') => storage_path('app/public'),
|
||||
],
|
||||
|
||||
];
|
||||
132
nexus-html@3.1.0/config/logging.php
Normal file
132
nexus-html@3.1.0/config/logging.php
Normal file
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
use Monolog\Handler\NullHandler;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Handler\SyslogUdpHandler;
|
||||
use Monolog\Processor\PsrLogMessageProcessor;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Log Channel
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option defines the default log channel that is utilized to write
|
||||
| messages to your logs. The value provided here should match one of
|
||||
| the channels present in the list of "channels" configured below.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('LOG_CHANNEL', 'stack'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Deprecations Log Channel
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the log channel that should be used to log warnings
|
||||
| regarding deprecated PHP and library features. This allows you to get
|
||||
| your application ready for upcoming major versions of dependencies.
|
||||
|
|
||||
*/
|
||||
|
||||
'deprecations' => [
|
||||
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
|
||||
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the log channels for your application. Laravel
|
||||
| utilizes the Monolog PHP logging library, which includes a variety
|
||||
| of powerful log handlers and formatters that you're free to use.
|
||||
|
|
||||
| Available drivers: "single", "daily", "slack", "syslog",
|
||||
| "errorlog", "monolog", "custom", "stack"
|
||||
|
|
||||
*/
|
||||
|
||||
'channels' => [
|
||||
|
||||
'stack' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => explode(',', (string) env('LOG_STACK', 'single')),
|
||||
'ignore_exceptions' => false,
|
||||
],
|
||||
|
||||
'single' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'daily' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'days' => env('LOG_DAILY_DAYS', 14),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'driver' => 'slack',
|
||||
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
||||
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
|
||||
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
|
||||
'level' => env('LOG_LEVEL', 'critical'),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'papertrail' => [
|
||||
'driver' => 'monolog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
|
||||
'handler_with' => [
|
||||
'host' => env('PAPERTRAIL_URL'),
|
||||
'port' => env('PAPERTRAIL_PORT'),
|
||||
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
|
||||
],
|
||||
'processors' => [PsrLogMessageProcessor::class],
|
||||
],
|
||||
|
||||
'stderr' => [
|
||||
'driver' => 'monolog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'handler' => StreamHandler::class,
|
||||
'handler_with' => [
|
||||
'stream' => 'php://stderr',
|
||||
],
|
||||
'formatter' => env('LOG_STDERR_FORMATTER'),
|
||||
'processors' => [PsrLogMessageProcessor::class],
|
||||
],
|
||||
|
||||
'syslog' => [
|
||||
'driver' => 'syslog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'errorlog' => [
|
||||
'driver' => 'errorlog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'null' => [
|
||||
'driver' => 'monolog',
|
||||
'handler' => NullHandler::class,
|
||||
],
|
||||
|
||||
'emergency' => [
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
118
nexus-html@3.1.0/config/mail.php
Normal file
118
nexus-html@3.1.0/config/mail.php
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Mailer
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default mailer that is used to send all email
|
||||
| messages unless another mailer is explicitly specified when sending
|
||||
| the message. All additional mailers can be configured within the
|
||||
| "mailers" array. Examples of each type of mailer are provided.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('MAIL_MAILER', 'log'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mailer Configurations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure all of the mailers used by your application plus
|
||||
| their respective settings. Several examples have been configured for
|
||||
| you and you are free to add your own as your application requires.
|
||||
|
|
||||
| Laravel supports a variety of mail "transport" drivers that can be used
|
||||
| when delivering an email. You may specify which one you're using for
|
||||
| your mailers below. You may also add additional mailers if needed.
|
||||
|
|
||||
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
|
||||
| "postmark", "resend", "log", "array",
|
||||
| "failover", "roundrobin"
|
||||
|
|
||||
*/
|
||||
|
||||
'mailers' => [
|
||||
|
||||
'smtp' => [
|
||||
'transport' => 'smtp',
|
||||
'scheme' => env('MAIL_SCHEME'),
|
||||
'url' => env('MAIL_URL'),
|
||||
'host' => env('MAIL_HOST', '127.0.0.1'),
|
||||
'port' => env('MAIL_PORT', 2525),
|
||||
'username' => env('MAIL_USERNAME'),
|
||||
'password' => env('MAIL_PASSWORD'),
|
||||
'timeout' => null,
|
||||
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
'transport' => 'ses',
|
||||
],
|
||||
|
||||
'postmark' => [
|
||||
'transport' => 'postmark',
|
||||
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
|
||||
// 'client' => [
|
||||
// 'timeout' => 5,
|
||||
// ],
|
||||
],
|
||||
|
||||
'resend' => [
|
||||
'transport' => 'resend',
|
||||
],
|
||||
|
||||
'sendmail' => [
|
||||
'transport' => 'sendmail',
|
||||
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
|
||||
],
|
||||
|
||||
'log' => [
|
||||
'transport' => 'log',
|
||||
'channel' => env('MAIL_LOG_CHANNEL'),
|
||||
],
|
||||
|
||||
'array' => [
|
||||
'transport' => 'array',
|
||||
],
|
||||
|
||||
'failover' => [
|
||||
'transport' => 'failover',
|
||||
'mailers' => [
|
||||
'smtp',
|
||||
'log',
|
||||
],
|
||||
'retry_after' => 60,
|
||||
],
|
||||
|
||||
'roundrobin' => [
|
||||
'transport' => 'roundrobin',
|
||||
'mailers' => [
|
||||
'ses',
|
||||
'postmark',
|
||||
],
|
||||
'retry_after' => 60,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global "From" Address
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish for all emails sent by your application to be sent from
|
||||
| the same address. Here you may specify a name and address that is
|
||||
| used globally for all emails that are sent by your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Example'),
|
||||
],
|
||||
|
||||
];
|
||||
112
nexus-html@3.1.0/config/queue.php
Normal file
112
nexus-html@3.1.0/config/queue.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Queue Connection Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Laravel's queue supports a variety of backends via a single, unified
|
||||
| API, giving you convenient access to each backend using identical
|
||||
| syntax for each. The default queue connection is defined below.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('QUEUE_CONNECTION', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Queue Connections
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the connection options for every queue backend
|
||||
| used by your application. An example configuration is provided for
|
||||
| each backend supported by Laravel. You're also free to add more.
|
||||
|
|
||||
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'connections' => [
|
||||
|
||||
'sync' => [
|
||||
'driver' => 'sync',
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'connection' => env('DB_QUEUE_CONNECTION'),
|
||||
'table' => env('DB_QUEUE_TABLE', 'jobs'),
|
||||
'queue' => env('DB_QUEUE', 'default'),
|
||||
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
'beanstalkd' => [
|
||||
'driver' => 'beanstalkd',
|
||||
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
|
||||
'queue' => env('BEANSTALKD_QUEUE', 'default'),
|
||||
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
|
||||
'block_for' => 0,
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
'sqs' => [
|
||||
'driver' => 'sqs',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
||||
'queue' => env('SQS_QUEUE', 'default'),
|
||||
'suffix' => env('SQS_SUFFIX'),
|
||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
|
||||
'queue' => env('REDIS_QUEUE', 'default'),
|
||||
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
|
||||
'block_for' => null,
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Job Batching
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following options configure the database and table that store job
|
||||
| batching information. These options can be updated to any database
|
||||
| connection and table which has been defined by your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'batching' => [
|
||||
'database' => env('DB_CONNECTION', 'sqlite'),
|
||||
'table' => 'job_batches',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Failed Queue Jobs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These options configure the behavior of failed queue job logging so you
|
||||
| can control how and where failed jobs are stored. Laravel ships with
|
||||
| support for storing failed jobs in a simple file or in a database.
|
||||
|
|
||||
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => [
|
||||
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
||||
'database' => env('DB_CONNECTION', 'sqlite'),
|
||||
'table' => 'failed_jobs',
|
||||
],
|
||||
|
||||
];
|
||||
38
nexus-html@3.1.0/config/services.php
Normal file
38
nexus-html@3.1.0/config/services.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Third Party Services
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is for storing the credentials for third party services such
|
||||
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
||||
| location for this type of information, allowing packages to have
|
||||
| a conventional file to locate the various service credentials.
|
||||
|
|
||||
*/
|
||||
|
||||
'postmark' => [
|
||||
'token' => env('POSTMARK_TOKEN'),
|
||||
],
|
||||
|
||||
'resend' => [
|
||||
'key' => env('RESEND_KEY'),
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'notifications' => [
|
||||
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
|
||||
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
217
nexus-html@3.1.0/config/session.php
Normal file
217
nexus-html@3.1.0/config/session.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Session Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option determines the default session driver that is utilized for
|
||||
| incoming requests. Laravel supports a variety of storage options to
|
||||
| persist session data. Database storage is a great default choice.
|
||||
|
|
||||
| Supported: "file", "cookie", "database", "memcached",
|
||||
| "redis", "dynamodb", "array"
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => env('SESSION_DRIVER', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Lifetime
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the number of minutes that you wish the session
|
||||
| to be allowed to remain idle before it expires. If you want them
|
||||
| to expire immediately when the browser is closed then you may
|
||||
| indicate that via the expire_on_close configuration option.
|
||||
|
|
||||
*/
|
||||
|
||||
'lifetime' => (int) env('SESSION_LIFETIME', 120),
|
||||
|
||||
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Encryption
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to easily specify that all of your session data
|
||||
| should be encrypted before it's stored. All encryption is performed
|
||||
| automatically by Laravel and you may use the session like normal.
|
||||
|
|
||||
*/
|
||||
|
||||
'encrypt' => env('SESSION_ENCRYPT', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session File Location
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When utilizing the "file" session driver, the session files are placed
|
||||
| on disk. The default storage location is defined here; however, you
|
||||
| are free to provide another location where they should be stored.
|
||||
|
|
||||
*/
|
||||
|
||||
'files' => storage_path('framework/sessions'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Database Connection
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using the "database" or "redis" session drivers, you may specify a
|
||||
| connection that should be used to manage these sessions. This should
|
||||
| correspond to a connection in your database configuration options.
|
||||
|
|
||||
*/
|
||||
|
||||
'connection' => env('SESSION_CONNECTION'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Database Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using the "database" session driver, you may specify the table to
|
||||
| be used to store sessions. Of course, a sensible default is defined
|
||||
| for you; however, you're welcome to change this to another table.
|
||||
|
|
||||
*/
|
||||
|
||||
'table' => env('SESSION_TABLE', 'sessions'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cache Store
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using one of the framework's cache driven session backends, you may
|
||||
| define the cache store which should be used to store the session data
|
||||
| between requests. This must match one of your defined cache stores.
|
||||
|
|
||||
| Affects: "dynamodb", "memcached", "redis"
|
||||
|
|
||||
*/
|
||||
|
||||
'store' => env('SESSION_STORE'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Sweeping Lottery
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Some session drivers must manually sweep their storage location to get
|
||||
| rid of old sessions from storage. Here are the chances that it will
|
||||
| happen on a given request. By default, the odds are 2 out of 100.
|
||||
|
|
||||
*/
|
||||
|
||||
'lottery' => [2, 100],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cookie Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may change the name of the session cookie that is created by
|
||||
| the framework. Typically, you should not need to change this value
|
||||
| since doing so does not grant a meaningful security improvement.
|
||||
|
|
||||
*/
|
||||
|
||||
'cookie' => env(
|
||||
'SESSION_COOKIE',
|
||||
Str::slug(env('APP_NAME', 'laravel')).'-session'
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cookie Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The session cookie path determines the path for which the cookie will
|
||||
| be regarded as available. Typically, this will be the root path of
|
||||
| your application, but you're free to change this when necessary.
|
||||
|
|
||||
*/
|
||||
|
||||
'path' => env('SESSION_PATH', '/'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cookie Domain
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value determines the domain and subdomains the session cookie is
|
||||
| available to. By default, the cookie will be available to the root
|
||||
| domain and all subdomains. Typically, this shouldn't be changed.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => env('SESSION_DOMAIN'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| HTTPS Only Cookies
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By setting this option to true, session cookies will only be sent back
|
||||
| to the server if the browser has a HTTPS connection. This will keep
|
||||
| the cookie from being sent to you when it can't be done securely.
|
||||
|
|
||||
*/
|
||||
|
||||
'secure' => env('SESSION_SECURE_COOKIE'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| HTTP Access Only
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Setting this value to true will prevent JavaScript from accessing the
|
||||
| value of the cookie and the cookie will only be accessible through
|
||||
| the HTTP protocol. It's unlikely you should disable this option.
|
||||
|
|
||||
*/
|
||||
|
||||
'http_only' => env('SESSION_HTTP_ONLY', true),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Same-Site Cookies
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option determines how your cookies behave when cross-site requests
|
||||
| take place, and can be used to mitigate CSRF attacks. By default, we
|
||||
| will set this value to "lax" to permit secure cross-site requests.
|
||||
|
|
||||
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
|
||||
|
|
||||
| Supported: "lax", "strict", "none", null
|
||||
|
|
||||
*/
|
||||
|
||||
'same_site' => env('SESSION_SAME_SITE', 'lax'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Partitioned Cookies
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Setting this value to true will tie the cookie to the top-level site for
|
||||
| a cross-site context. Partitioned cookies are accepted by the browser
|
||||
| when flagged "secure" and the Same-Site attribute is set to "none".
|
||||
|
|
||||
*/
|
||||
|
||||
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
|
||||
|
||||
];
|
||||
1
nexus-html@3.1.0/database/.gitignore
vendored
Normal file
1
nexus-html@3.1.0/database/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.sqlite*
|
||||
44
nexus-html@3.1.0/database/factories/UserFactory.php
Normal file
44
nexus-html@3.1.0/database/factories/UserFactory.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
|
||||
*/
|
||||
class UserFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The current password being used by the factory.
|
||||
*/
|
||||
protected static ?string $password;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => fake()->name(),
|
||||
'email' => fake()->unique()->safeEmail(),
|
||||
'email_verified_at' => now(),
|
||||
'password' => static::$password ??= Hash::make('password'),
|
||||
'remember_token' => Str::random(10),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicate that the model's email address should be unverified.
|
||||
*/
|
||||
public function unverified(): static
|
||||
{
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'email_verified_at' => null,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('password_reset_tokens', function (Blueprint $table) {
|
||||
$table->string('email')->primary();
|
||||
$table->string('token');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
|
||||
Schema::create('sessions', function (Blueprint $table) {
|
||||
$table->string('id')->primary();
|
||||
$table->foreignId('user_id')->nullable()->index();
|
||||
$table->string('ip_address', 45)->nullable();
|
||||
$table->text('user_agent')->nullable();
|
||||
$table->longText('payload');
|
||||
$table->integer('last_activity')->index();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
Schema::dropIfExists('password_reset_tokens');
|
||||
Schema::dropIfExists('sessions');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('cache', function (Blueprint $table) {
|
||||
$table->string('key')->primary();
|
||||
$table->mediumText('value');
|
||||
$table->integer('expiration');
|
||||
});
|
||||
|
||||
Schema::create('cache_locks', function (Blueprint $table) {
|
||||
$table->string('key')->primary();
|
||||
$table->string('owner');
|
||||
$table->integer('expiration');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('cache');
|
||||
Schema::dropIfExists('cache_locks');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('jobs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('queue')->index();
|
||||
$table->longText('payload');
|
||||
$table->unsignedTinyInteger('attempts');
|
||||
$table->unsignedInteger('reserved_at')->nullable();
|
||||
$table->unsignedInteger('available_at');
|
||||
$table->unsignedInteger('created_at');
|
||||
});
|
||||
|
||||
Schema::create('job_batches', function (Blueprint $table) {
|
||||
$table->string('id')->primary();
|
||||
$table->string('name');
|
||||
$table->integer('total_jobs');
|
||||
$table->integer('pending_jobs');
|
||||
$table->integer('failed_jobs');
|
||||
$table->longText('failed_job_ids');
|
||||
$table->mediumText('options')->nullable();
|
||||
$table->integer('cancelled_at')->nullable();
|
||||
$table->integer('created_at');
|
||||
$table->integer('finished_at')->nullable();
|
||||
});
|
||||
|
||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('uuid')->unique();
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
$table->longText('payload');
|
||||
$table->longText('exception');
|
||||
$table->timestamp('failed_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('jobs');
|
||||
Schema::dropIfExists('job_batches');
|
||||
Schema::dropIfExists('failed_jobs');
|
||||
}
|
||||
};
|
||||
23
nexus-html@3.1.0/database/seeders/DatabaseSeeder.php
Normal file
23
nexus-html@3.1.0/database/seeders/DatabaseSeeder.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// User::factory(10)->create();
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
]);
|
||||
}
|
||||
}
|
||||
BIN
nexus-html@3.1.0/html/.DS_Store
vendored
BIN
nexus-html@3.1.0/html/.DS_Store
vendored
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,30 +0,0 @@
|
||||
/* empty css */ ;(function () {
|
||||
const t = document.createElement("link").relList
|
||||
if (t && t.supports && t.supports("modulepreload")) return
|
||||
for (const e of document.querySelectorAll('link[rel="modulepreload"]')) i(e)
|
||||
new MutationObserver((e) => {
|
||||
for (const r of e)
|
||||
if (r.type === "childList")
|
||||
for (const o of r.addedNodes)
|
||||
o.tagName === "LINK" && o.rel === "modulepreload" && i(o)
|
||||
}).observe(document, { childList: !0, subtree: !0 })
|
||||
function s(e) {
|
||||
const r = {}
|
||||
return (
|
||||
e.integrity && (r.integrity = e.integrity),
|
||||
e.referrerPolicy && (r.referrerPolicy = e.referrerPolicy),
|
||||
e.crossOrigin === "use-credentials"
|
||||
? (r.credentials = "include")
|
||||
: e.crossOrigin === "anonymous"
|
||||
? (r.credentials = "omit")
|
||||
: (r.credentials = "same-origin"),
|
||||
r
|
||||
)
|
||||
}
|
||||
function i(e) {
|
||||
if (e.ep) return
|
||||
e.ep = !0
|
||||
const r = s(e)
|
||||
fetch(e.href, r)
|
||||
}
|
||||
})()
|
||||
@@ -1,165 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div class="grid grid-cols-12 overflow-auto sm:h-screen">
|
||||
<div
|
||||
class="relative hidden bg-[#FFE9D1] lg:col-span-7 lg:block xl:col-span-8 2xl:col-span-9 dark:bg-[#14181c]">
|
||||
<div class="absolute inset-0 flex items-center justify-center">
|
||||
<img class="object-cover" alt="Auth Image" src="./images/auth/auth-hero.png" />
|
||||
</div>
|
||||
<div class="animate-bounce-2 absolute right-[20%] bottom-[15%]">
|
||||
<div class="card bg-base-100/80 w-64 backdrop-blur-lg">
|
||||
<div class="card-body p-5">
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<div class="mask mask-squircle overflow-hidden">
|
||||
<img
|
||||
class="bg-base-200 size-14"
|
||||
alt=""
|
||||
src="./images/landing/testimonial-avatar-1.jpg" />
|
||||
</div>
|
||||
<div class="mt-3 flex items-center justify-center gap-0.5">
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
</div>
|
||||
<p class="mt-1 text-lg font-medium">Pouya Saadeghi</p>
|
||||
<p class="text-base-content/60 text-sm">Creator of daisyUI</p>
|
||||
</div>
|
||||
<p class="mt-2 text-center text-sm">
|
||||
This is the ultimate admin dashboard for any React project
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-12 lg:col-span-5 xl:col-span-4 2xl:col-span-3">
|
||||
<div class="flex flex-col items-stretch p-6 md:p-8 lg:p-16">
|
||||
<div class="flex items-center justify-between">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-circle btn-outline border-base-300 relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="mt-8 text-center text-xl font-semibold md:mt-12 lg:mt-24">
|
||||
Forgot Password
|
||||
</h3>
|
||||
<h3 class="text-base-content/70 mt-2 text-center text-sm">
|
||||
Seamless Access, Secure Connection: Your Gateway to a Personalized
|
||||
Experience.
|
||||
</h3>
|
||||
<div class="mt-6 md:mt-10">
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">Email Address</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--mail text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Email Address"
|
||||
type="email" />
|
||||
</label>
|
||||
</fieldset>
|
||||
<div class="mt-2 flex items-center gap-3 md:mt-4">
|
||||
<input
|
||||
class="checkbox checkbox-sm checkbox-primary"
|
||||
aria-label="Checkbox example"
|
||||
id="agreement"
|
||||
type="checkbox" />
|
||||
<label for="agreement" class="text-sm">
|
||||
I agree with
|
||||
<span class="text-primary ms-1 cursor-pointer hover:underline">
|
||||
terms and conditions
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<a
|
||||
class="btn btn-primary btn-wide mt-4 max-w-full gap-3 md:mt-6"
|
||||
href="./auth-reset-password.html">
|
||||
<span class="iconify lucide--mail-plus size-4"></span>
|
||||
Send a reset link
|
||||
</a>
|
||||
<p class="text-base-content/80 mt-4 text-center text-sm md:mt-6">
|
||||
I have already to
|
||||
<a class="text-primary ms-1 hover:underline" href="./auth-login.html">
|
||||
Login
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,198 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div class="grid grid-cols-12 overflow-auto sm:h-screen">
|
||||
<div
|
||||
class="relative hidden bg-[#FFE9D1] lg:col-span-7 lg:block xl:col-span-8 2xl:col-span-9 dark:bg-[#14181c]">
|
||||
<div class="absolute inset-0 flex items-center justify-center">
|
||||
<img class="object-cover" alt="Auth Image" src="./images/auth/auth-hero.png" />
|
||||
</div>
|
||||
<div class="animate-bounce-2 absolute right-[20%] bottom-[15%]">
|
||||
<div class="card bg-base-100/80 w-64 backdrop-blur-lg">
|
||||
<div class="card-body p-5">
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<div class="mask mask-squircle overflow-hidden">
|
||||
<img
|
||||
class="bg-base-200 size-14"
|
||||
alt=""
|
||||
src="./images/landing/testimonial-avatar-1.jpg" />
|
||||
</div>
|
||||
<div class="mt-3 flex items-center justify-center gap-0.5">
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
</div>
|
||||
<p class="mt-1 text-lg font-medium">Pouya Saadeghi</p>
|
||||
<p class="text-base-content/60 text-sm">Creator of daisyUI</p>
|
||||
</div>
|
||||
<p class="mt-2 text-center text-sm">
|
||||
This is the ultimate admin dashboard for any React project
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-12 lg:col-span-5 xl:col-span-4 2xl:col-span-3">
|
||||
<div class="flex flex-col items-stretch p-6 md:p-8 lg:p-16">
|
||||
<div class="flex items-center justify-between">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-circle btn-outline border-base-300 relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="mt-8 text-center text-xl font-semibold md:mt-12 lg:mt-24">Login</h3>
|
||||
<h3 class="text-base-content/70 mt-2 text-center text-sm">
|
||||
Seamless Access, Secure Connection: Your Gateway to a Personalized
|
||||
Experience.
|
||||
</h3>
|
||||
<div class="mt-6 md:mt-10">
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">Email Address</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--mail text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Email Address"
|
||||
type="email" />
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset" x-data="{ show: false }">
|
||||
<legend class="fieldset-legend">Password</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--key-round text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Password"
|
||||
id="password"
|
||||
:type="show ? 'text' : 'password'" />
|
||||
<label
|
||||
class="swap btn btn-xs btn-ghost btn-circle text-base-content/60">
|
||||
<input
|
||||
type="checkbox"
|
||||
x-model="show"
|
||||
aria-label="Show password" />
|
||||
<span class="iconify lucide--eye swap-off size-4"></span>
|
||||
<span class="iconify lucide--eye-off swap-on size-4"></span>
|
||||
</label>
|
||||
</label>
|
||||
</fieldset>
|
||||
<div class="text-end">
|
||||
<a
|
||||
class="label-text text-base-content/80 text-xs"
|
||||
href="./auth-forgot-password.html">
|
||||
Forgot Password?
|
||||
</a>
|
||||
</div>
|
||||
<div class="mt-4 flex items-center gap-3 md:mt-6">
|
||||
<input
|
||||
class="checkbox checkbox-sm checkbox-primary"
|
||||
aria-label="Checkbox example"
|
||||
id="agreement"
|
||||
type="checkbox" />
|
||||
<label for="agreement" class="text-sm">
|
||||
I agree with
|
||||
<span class="text-primary ms-1 cursor-pointer hover:underline">
|
||||
terms and conditions
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<a
|
||||
class="btn btn-primary btn-wide mt-4 max-w-full gap-3 md:mt-6"
|
||||
href="./dashboards-ecommerce.html">
|
||||
<span class="iconify lucide--log-in size-4"></span>
|
||||
Login
|
||||
</a>
|
||||
<button
|
||||
class="btn btn-ghost btn-wide border-base-300 mt-4 max-w-full gap-3">
|
||||
<img class="size-6" alt="" src="./images/brand-logo/google-mini.svg" />
|
||||
Login with Google
|
||||
</button>
|
||||
<p class="text-base-content/80 mt-4 text-center text-sm md:mt-6">
|
||||
Haven't account
|
||||
<a
|
||||
class="text-primary ms-1 hover:underline"
|
||||
href="./auth-register.html">
|
||||
Create One
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,225 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div class="grid grid-cols-12 overflow-auto sm:h-screen">
|
||||
<div
|
||||
class="relative hidden bg-[#FFE9D1] lg:col-span-7 lg:block xl:col-span-8 2xl:col-span-9 dark:bg-[#14181c]">
|
||||
<div class="absolute inset-0 flex items-center justify-center">
|
||||
<img class="object-cover" alt="Auth Image" src="./images/auth/auth-hero.png" />
|
||||
</div>
|
||||
<div class="animate-bounce-2 absolute right-[20%] bottom-[15%]">
|
||||
<div class="card bg-base-100/80 w-64 backdrop-blur-lg">
|
||||
<div class="card-body p-5">
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<div class="mask mask-squircle overflow-hidden">
|
||||
<img
|
||||
class="bg-base-200 size-14"
|
||||
alt=""
|
||||
src="./images/landing/testimonial-avatar-1.jpg" />
|
||||
</div>
|
||||
<div class="mt-3 flex items-center justify-center gap-0.5">
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
</div>
|
||||
<p class="mt-1 text-lg font-medium">Pouya Saadeghi</p>
|
||||
<p class="text-base-content/60 text-sm">Creator of daisyUI</p>
|
||||
</div>
|
||||
<p class="mt-2 text-center text-sm">
|
||||
This is the ultimate admin dashboard for any React project
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-12 lg:col-span-5 xl:col-span-4 2xl:col-span-3">
|
||||
<div class="flex flex-col items-stretch p-8 lg:p-16">
|
||||
<div class="flex items-center justify-between">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-circle btn-outline border-base-300 relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="mt-8 text-center text-xl font-semibold md:mt-12 lg:mt-24">
|
||||
Register
|
||||
</h3>
|
||||
<h3 class="text-base-content/70 mt-2 text-center text-sm">
|
||||
Seamless Access, Secure Connection: Your Gateway to a Personalized
|
||||
Experience.
|
||||
</h3>
|
||||
<div class="mt-6 md:mt-10">
|
||||
<div class="grid grid-cols-1 gap-x-4 xl:grid-cols-2">
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">First Name</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--user text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="First Name"
|
||||
type="text" />
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">Last Name</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--user text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Last Name"
|
||||
type="text" />
|
||||
</label>
|
||||
</fieldset>
|
||||
</div>
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">Username</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--user-square text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Username"
|
||||
type="text" />
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset">
|
||||
<legend class="fieldset-legend">Email Address</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--mail text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Email Address"
|
||||
type="email" />
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset" x-data="{ show: false }">
|
||||
<legend class="fieldset-legend">Password</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--key-round text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Password"
|
||||
id="password"
|
||||
:type="show ? 'text' : 'password'" />
|
||||
<label
|
||||
class="swap btn btn-xs btn-ghost btn-circle text-base-content/60">
|
||||
<input
|
||||
type="checkbox"
|
||||
x-model="show"
|
||||
aria-label="Show password" />
|
||||
<span class="iconify lucide--eye swap-off size-4"></span>
|
||||
<span class="iconify lucide--eye-off swap-on size-4"></span>
|
||||
</label>
|
||||
</label>
|
||||
</fieldset>
|
||||
<div class="mt-4 flex items-center gap-3 md:mt-6">
|
||||
<input
|
||||
class="checkbox checkbox-sm checkbox-primary"
|
||||
aria-label="Checkbox example"
|
||||
id="agreement"
|
||||
type="checkbox" />
|
||||
<label for="agreement" class="text-sm">
|
||||
I agree with
|
||||
<span class="text-primary ms-1 cursor-pointer hover:underline">
|
||||
terms and conditions
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<a
|
||||
class="btn btn-primary btn-wide mt-4 max-w-full gap-3 md:mt-6"
|
||||
href="./dashboards-ecommerce.html">
|
||||
<span class="iconify lucide--user-plus size-4"></span>
|
||||
Register
|
||||
</a>
|
||||
<button
|
||||
class="btn btn-ghost btn-wide border-base-300 mt-4 max-w-full gap-3">
|
||||
<img class="size-6" alt="" src="./images/brand-logo/google-mini.svg" />
|
||||
Register with Google
|
||||
</button>
|
||||
<p class="text-base-content/80 mt-4 text-center text-sm md:mt-6">
|
||||
I have already to
|
||||
<a class="text-primary ms-1 hover:underline" href="./auth-login.html">
|
||||
Login
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,196 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div class="grid grid-cols-12 overflow-auto sm:h-screen">
|
||||
<div
|
||||
class="relative hidden bg-[#FFE9D1] lg:col-span-7 lg:block xl:col-span-8 2xl:col-span-9 dark:bg-[#14181c]">
|
||||
<div class="absolute inset-0 flex items-center justify-center">
|
||||
<img class="object-cover" alt="Auth Image" src="./images/auth/auth-hero.png" />
|
||||
</div>
|
||||
<div class="animate-bounce-2 absolute right-[20%] bottom-[15%]">
|
||||
<div class="card bg-base-100/80 w-64 backdrop-blur-lg">
|
||||
<div class="card-body p-5">
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<div class="mask mask-squircle overflow-hidden">
|
||||
<img
|
||||
class="bg-base-200 size-14"
|
||||
alt=""
|
||||
src="./images/landing/testimonial-avatar-1.jpg" />
|
||||
</div>
|
||||
<div class="mt-3 flex items-center justify-center gap-0.5">
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
<span
|
||||
class="iconify lucide--star size-4 text-orange-600"></span>
|
||||
</div>
|
||||
<p class="mt-1 text-lg font-medium">Pouya Saadeghi</p>
|
||||
<p class="text-base-content/60 text-sm">Creator of daisyUI</p>
|
||||
</div>
|
||||
<p class="mt-2 text-center text-sm">
|
||||
This is the ultimate admin dashboard for any React project
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-span-12 lg:col-span-5 xl:col-span-4 2xl:col-span-3">
|
||||
<div class="flex flex-col items-stretch p-6 md:p-8 lg:p-16">
|
||||
<div class="flex items-center justify-between">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-circle btn-outline border-base-300 relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="mt-8 text-center text-xl font-semibold md:mt-12 lg:mt-24">
|
||||
Reset Password
|
||||
</h3>
|
||||
<h3 class="text-base-content/70 mt-2 text-center text-sm">
|
||||
Seamless Access, Secure Connection: Your Gateway to a Personalized
|
||||
Experience.
|
||||
</h3>
|
||||
<div class="mt-6 md:mt-10">
|
||||
<fieldset class="fieldset" x-data="{ show: false }">
|
||||
<legend class="fieldset-legend">Password</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--key-round text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Password"
|
||||
id="password"
|
||||
:type="show ? 'text' : 'password'" />
|
||||
<label
|
||||
class="swap btn btn-xs btn-ghost btn-circle text-base-content/60">
|
||||
<input
|
||||
type="checkbox"
|
||||
x-model="show"
|
||||
aria-label="Show password" />
|
||||
<span class="iconify lucide--eye swap-off size-4"></span>
|
||||
<span class="iconify lucide--eye-off swap-on size-4"></span>
|
||||
</label>
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset class="fieldset" x-data="{ show: false }">
|
||||
<legend class="fieldset-legend">Confirm Password</legend>
|
||||
<label class="input w-full focus:outline-0">
|
||||
<span
|
||||
class="iconify lucide--key-round text-base-content/80 size-5"></span>
|
||||
<input
|
||||
class="grow focus:outline-0"
|
||||
placeholder="Confirm Password"
|
||||
id="confirm-password"
|
||||
:type="show ? 'text' : 'password'" />
|
||||
<label
|
||||
class="swap btn btn-xs btn-ghost btn-circle text-base-content/60">
|
||||
<input
|
||||
type="checkbox"
|
||||
x-model="show"
|
||||
aria-label="Show password" />
|
||||
<span class="iconify lucide--eye swap-off size-4"></span>
|
||||
<span class="iconify lucide--eye-off swap-on size-4"></span>
|
||||
</label>
|
||||
</label>
|
||||
</fieldset>
|
||||
<div class="mt-4 flex items-center gap-3 md:mt-6">
|
||||
<input
|
||||
class="checkbox checkbox-sm checkbox-primary"
|
||||
aria-label="Checkbox example"
|
||||
id="agreement"
|
||||
type="checkbox" />
|
||||
<label for="agreement" class="text-sm">
|
||||
I agree with
|
||||
<span class="text-primary ms-1 cursor-pointer hover:underline">
|
||||
terms and conditions
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<a
|
||||
class="btn btn-primary btn-wide mt-4 max-w-full gap-3 md:mt-6"
|
||||
href="./dashboards-ecommerce.html">
|
||||
<span class="iconify lucide--check size-4"></span>
|
||||
Change Password
|
||||
</a>
|
||||
<p class="mt-4 text-center text-sm md:mt-6">
|
||||
Go to
|
||||
<a class="text-primary ms-1.5 hover:underline" href="./auth-login.html">
|
||||
Login
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,501 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div id="components-layout">
|
||||
<div id="components-layout-container">
|
||||
<div class="max-xl:hidden">
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 bottom-0 flex h-screen w-64 min-w-64 flex-col border-s border-e border-dashed">
|
||||
<div
|
||||
class="border-base-300 flex h-16 min-h-16 items-center gap-4 border-b border-dashed px-5">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<hr class="border-base-300 h-6 border-e" />
|
||||
<p class="text-base-content/60 mt-0.5 text-lg font-medium">Design</p>
|
||||
</div>
|
||||
<div data-simplebar class="h-full min-h-0 grow">
|
||||
<div
|
||||
class="sidebar-menu-activation sidebar-menu mt-4 space-y-0.5 px-2.5 pb-4">
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Base</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--shapes size-4"></span>
|
||||
<span class="grow">Foundations</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-text.html">
|
||||
<span class="grow">Text</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-display.html">
|
||||
<span class="grow">Display</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-effects.html">
|
||||
<span class="grow">Effects</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-shadows.html">
|
||||
<span class="grow">Shadows</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--blocks size-4"></span>
|
||||
<span class="grow">Blocks</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-stats.html">
|
||||
<span class="grow">Dashboard Stats</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-prompt-bar.html">
|
||||
<span class="grow">Prompt Bar</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span
|
||||
class="iconify lucide--layout-panel-left size-4"></span>
|
||||
<span class="grow">Layouts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-skeleton.html">
|
||||
<span class="grow">Skeleton</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-sidebar.html">
|
||||
<span class="grow">Sidebar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-topbar.html">
|
||||
<span class="grow">Topbar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-footer.html">
|
||||
<span class="grow">Footer</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-profile-menu.html">
|
||||
<span class="grow">Profile Menu</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-search.html">
|
||||
<span class="grow">Search</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-notification.html">
|
||||
<span class="grow">Notification</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-page-title.html">
|
||||
<span class="grow">Page Title</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Dynamics</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--layers-3 size-4"></span>
|
||||
<span class="grow">Interactions</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-carousel.html">
|
||||
<span class="grow">Carousel</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-clipboard.html">
|
||||
<span class="grow">Clipboard</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-datatables.html">
|
||||
<span class="grow">Data Tables</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-fab.html">
|
||||
<span class="grow">FAB</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-file-upload.html">
|
||||
<span class="grow">File Upload</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-flatpickr.html">
|
||||
<span class="grow">Flatpickr</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-form-validations.html">
|
||||
<span class="grow">Form Validations</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-input-spinner.html">
|
||||
<span class="grow">Input Spinner</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-password-meter.html">
|
||||
<span class="grow">Password Meter</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-select.html">
|
||||
<span class="grow">Select</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-sortable.html">
|
||||
<span class="grow">Sortable</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-text-editor.html">
|
||||
<span class="grow">Text Editor</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-wizard.html">
|
||||
<span class="grow">Wizard</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--chart-bar size-4"></span>
|
||||
<span class="grow">Apex Charts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-area.html">
|
||||
<span class="grow">Area</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-bar.html">
|
||||
<span class="grow">Bar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-column.html">
|
||||
<span class="grow">Column</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-line.html">
|
||||
<span class="grow">Line</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-pie.html">
|
||||
<span class="grow">Pie</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a
|
||||
target="_blank"
|
||||
class="group rounded-box relative mx-2.5 block gap-3"
|
||||
href="/dashboards-ecommerce">
|
||||
<div
|
||||
class="rounded-box absolute inset-0 bg-gradient-to-r from-transparent to-transparent transition-opacity duration-300 group-hover:opacity-0"></div>
|
||||
<div
|
||||
class="from-primary to-secondary rounded-box absolute inset-0 bg-gradient-to-r opacity-0 transition-opacity duration-300 group-hover:opacity-100"></div>
|
||||
<div class="relative flex h-10 items-center gap-3 px-3">
|
||||
<i
|
||||
class="iconify lucide--monitor-dot text-primary size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
<p
|
||||
class="from-primary to-secondary bg-gradient-to-r bg-clip-text font-medium text-transparent transition-all duration-300 group-hover:text-white">
|
||||
Dashboard
|
||||
</p>
|
||||
<i
|
||||
class="iconify lucide--chevron-right text-secondary ms-auto size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
</div>
|
||||
</a>
|
||||
<hr class="border-base-300 mt-2 border-dashed" />
|
||||
<a
|
||||
target="_blank"
|
||||
class="bg-base-200/60 hover:bg-base-200 rounded-box m-2.5 mb-2 flex cursor-pointer items-center gap-3 px-3.5 py-2 transition-all"
|
||||
href="https://nexus.daisyui.com/docs/">
|
||||
<span class="iconify lucide--book-open-text size-5"></span>
|
||||
<div class="grow -space-y-0.5">
|
||||
<p class="text-sm font-medium">Documentation</p>
|
||||
<p class="text-base-content/60 text-xs">Installations</p>
|
||||
</div>
|
||||
<span
|
||||
class="iconify lucide--external-link text-base-content/60 size-4"></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-main">
|
||||
<div
|
||||
role="navigation"
|
||||
aria-label="Navbar"
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 z-1 h-16 border-b border-dashed px-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex h-full items-center justify-between px-0">
|
||||
<div class="flex items-center gap-5">
|
||||
<a
|
||||
class="text-base-content/70 hover:text-base-content transition-all"
|
||||
href="/dashboards-ecommerce">
|
||||
Dashboard
|
||||
</a>
|
||||
<a class="font-medium" href="/components">Components</a>
|
||||
</div>
|
||||
<div class="inline-flex items-center gap-3">
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-sm btn-circle btn-ghost relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
|
||||
<a
|
||||
target="_blank"
|
||||
class="btn from-primary to-secondary group/purchase text-primary-content btn-sm max-sm:btn-square relative gap-2 border-0 bg-linear-to-r text-sm"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart size-4"></span>
|
||||
<span class="max-sm:hidden">Buy Now</span>
|
||||
<div
|
||||
class="from-primary to-secondary absolute inset-x-0 top-1 -z-1 h-8 bg-linear-to-r opacity-40 blur-md transition-all duration-500 group-hover/purchase:opacity-60 group-hover/purchase:blur-lg"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-content">
|
||||
<div class="flex flex-col items-center justify-center space-y-0.5">
|
||||
<div
|
||||
class="text-base-content/80 border-base-300 flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs leading-none tracking-[0.2px]">
|
||||
<div class="status status-sm bg-base-content/30"></div>
|
||||
Apexcharts
|
||||
</div>
|
||||
<p
|
||||
class="from-base-content to-base-content/75 bg-linear-to-b bg-clip-text pb-1 text-3xl font-bold tracking-tight text-transparent lg:text-4xl 2xl:text-5xl">
|
||||
Area Charts
|
||||
</p>
|
||||
<p class="text-base-content/80 max-w-lg text-center max-md:text-sm">
|
||||
A collection of dynamic area charts for visualizing trends,
|
||||
patterns, and data ranges
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-base-200/40 rounded-box mt-6 px-5 py-4 lg:mt-12">
|
||||
<p class="text-base-content/60 font-medium">Usage guidelines</p>
|
||||
<p class="mt-1">
|
||||
<span class="me-1">- Plugin Documentation:</span>
|
||||
<a
|
||||
href="https://apexcharts.com/javascript-chart-demos/area-charts/"
|
||||
target="_blank"
|
||||
class="text-primary">
|
||||
Apexcharts
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="text-base-content/60 mt-6 font-medium">Demos</p>
|
||||
<div class="mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2">
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Spline Area
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="spline-area-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Negative Value Area
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="negative-value-area-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Irregular Time Series Area
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="irregular-time-area-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Selection Area
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="selection-result-area-chart"></div>
|
||||
<div id="selection-target-area-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 border-t border-dashed px-4 py-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex items-center justify-between px-0">
|
||||
<p>
|
||||
Built and designed with care by
|
||||
<a target="_blank" class="text-primary" href="https://withden.dev/">
|
||||
Denish
|
||||
</a>
|
||||
</p>
|
||||
<a
|
||||
aria-label="Buy now"
|
||||
target="_blank"
|
||||
class="bg-primary text-primary-content group flex size-9 items-center gap-2 overflow-hidden rounded-full px-2.5 py-0.5 font-medium transition-all hover:w-26"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart block size-4.5"></span>
|
||||
<span class="hidden text-sm text-nowrap group-hover:block">
|
||||
Buy Now
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.js"></script>
|
||||
|
||||
<script src="./js/pages/charts/apex-area.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,500 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div id="components-layout">
|
||||
<div id="components-layout-container">
|
||||
<div class="max-xl:hidden">
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 bottom-0 flex h-screen w-64 min-w-64 flex-col border-s border-e border-dashed">
|
||||
<div
|
||||
class="border-base-300 flex h-16 min-h-16 items-center gap-4 border-b border-dashed px-5">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<hr class="border-base-300 h-6 border-e" />
|
||||
<p class="text-base-content/60 mt-0.5 text-lg font-medium">Design</p>
|
||||
</div>
|
||||
<div data-simplebar class="h-full min-h-0 grow">
|
||||
<div
|
||||
class="sidebar-menu-activation sidebar-menu mt-4 space-y-0.5 px-2.5 pb-4">
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Base</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--shapes size-4"></span>
|
||||
<span class="grow">Foundations</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-text.html">
|
||||
<span class="grow">Text</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-display.html">
|
||||
<span class="grow">Display</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-effects.html">
|
||||
<span class="grow">Effects</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-shadows.html">
|
||||
<span class="grow">Shadows</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--blocks size-4"></span>
|
||||
<span class="grow">Blocks</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-stats.html">
|
||||
<span class="grow">Dashboard Stats</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-prompt-bar.html">
|
||||
<span class="grow">Prompt Bar</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span
|
||||
class="iconify lucide--layout-panel-left size-4"></span>
|
||||
<span class="grow">Layouts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-skeleton.html">
|
||||
<span class="grow">Skeleton</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-sidebar.html">
|
||||
<span class="grow">Sidebar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-topbar.html">
|
||||
<span class="grow">Topbar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-footer.html">
|
||||
<span class="grow">Footer</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-profile-menu.html">
|
||||
<span class="grow">Profile Menu</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-search.html">
|
||||
<span class="grow">Search</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-notification.html">
|
||||
<span class="grow">Notification</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-page-title.html">
|
||||
<span class="grow">Page Title</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Dynamics</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--layers-3 size-4"></span>
|
||||
<span class="grow">Interactions</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-carousel.html">
|
||||
<span class="grow">Carousel</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-clipboard.html">
|
||||
<span class="grow">Clipboard</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-datatables.html">
|
||||
<span class="grow">Data Tables</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-fab.html">
|
||||
<span class="grow">FAB</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-file-upload.html">
|
||||
<span class="grow">File Upload</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-flatpickr.html">
|
||||
<span class="grow">Flatpickr</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-form-validations.html">
|
||||
<span class="grow">Form Validations</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-input-spinner.html">
|
||||
<span class="grow">Input Spinner</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-password-meter.html">
|
||||
<span class="grow">Password Meter</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-select.html">
|
||||
<span class="grow">Select</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-sortable.html">
|
||||
<span class="grow">Sortable</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-text-editor.html">
|
||||
<span class="grow">Text Editor</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-wizard.html">
|
||||
<span class="grow">Wizard</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--chart-bar size-4"></span>
|
||||
<span class="grow">Apex Charts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-area.html">
|
||||
<span class="grow">Area</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-bar.html">
|
||||
<span class="grow">Bar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-column.html">
|
||||
<span class="grow">Column</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-line.html">
|
||||
<span class="grow">Line</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-pie.html">
|
||||
<span class="grow">Pie</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a
|
||||
target="_blank"
|
||||
class="group rounded-box relative mx-2.5 block gap-3"
|
||||
href="/dashboards-ecommerce">
|
||||
<div
|
||||
class="rounded-box absolute inset-0 bg-gradient-to-r from-transparent to-transparent transition-opacity duration-300 group-hover:opacity-0"></div>
|
||||
<div
|
||||
class="from-primary to-secondary rounded-box absolute inset-0 bg-gradient-to-r opacity-0 transition-opacity duration-300 group-hover:opacity-100"></div>
|
||||
<div class="relative flex h-10 items-center gap-3 px-3">
|
||||
<i
|
||||
class="iconify lucide--monitor-dot text-primary size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
<p
|
||||
class="from-primary to-secondary bg-gradient-to-r bg-clip-text font-medium text-transparent transition-all duration-300 group-hover:text-white">
|
||||
Dashboard
|
||||
</p>
|
||||
<i
|
||||
class="iconify lucide--chevron-right text-secondary ms-auto size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
</div>
|
||||
</a>
|
||||
<hr class="border-base-300 mt-2 border-dashed" />
|
||||
<a
|
||||
target="_blank"
|
||||
class="bg-base-200/60 hover:bg-base-200 rounded-box m-2.5 mb-2 flex cursor-pointer items-center gap-3 px-3.5 py-2 transition-all"
|
||||
href="https://nexus.daisyui.com/docs/">
|
||||
<span class="iconify lucide--book-open-text size-5"></span>
|
||||
<div class="grow -space-y-0.5">
|
||||
<p class="text-sm font-medium">Documentation</p>
|
||||
<p class="text-base-content/60 text-xs">Installations</p>
|
||||
</div>
|
||||
<span
|
||||
class="iconify lucide--external-link text-base-content/60 size-4"></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-main">
|
||||
<div
|
||||
role="navigation"
|
||||
aria-label="Navbar"
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 z-1 h-16 border-b border-dashed px-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex h-full items-center justify-between px-0">
|
||||
<div class="flex items-center gap-5">
|
||||
<a
|
||||
class="text-base-content/70 hover:text-base-content transition-all"
|
||||
href="/dashboards-ecommerce">
|
||||
Dashboard
|
||||
</a>
|
||||
<a class="font-medium" href="/components">Components</a>
|
||||
</div>
|
||||
<div class="inline-flex items-center gap-3">
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-sm btn-circle btn-ghost relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
|
||||
<a
|
||||
target="_blank"
|
||||
class="btn from-primary to-secondary group/purchase text-primary-content btn-sm max-sm:btn-square relative gap-2 border-0 bg-linear-to-r text-sm"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart size-4"></span>
|
||||
<span class="max-sm:hidden">Buy Now</span>
|
||||
<div
|
||||
class="from-primary to-secondary absolute inset-x-0 top-1 -z-1 h-8 bg-linear-to-r opacity-40 blur-md transition-all duration-500 group-hover/purchase:opacity-60 group-hover/purchase:blur-lg"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-content">
|
||||
<div class="flex flex-col items-center justify-center space-y-0.5">
|
||||
<div
|
||||
class="text-base-content/80 border-base-300 flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs leading-none tracking-[0.2px]">
|
||||
<div class="status status-sm bg-base-content/30"></div>
|
||||
Apexcharts
|
||||
</div>
|
||||
<p
|
||||
class="from-base-content to-base-content/75 bg-linear-to-b bg-clip-text pb-1 text-3xl font-bold tracking-tight text-transparent lg:text-4xl 2xl:text-5xl">
|
||||
Bar Charts
|
||||
</p>
|
||||
<p class="text-base-content/80 max-w-lg text-center max-md:text-sm">
|
||||
A collection of bar charts for comparing data, groups, and positive
|
||||
or negative values
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-base-200/40 rounded-box mt-6 px-5 py-4 lg:mt-12">
|
||||
<p class="text-base-content/60 font-medium">Usage guidelines</p>
|
||||
<p class="mt-1">
|
||||
<span class="me-1">- Plugin Documentation:</span>
|
||||
<a
|
||||
href="https://apexcharts.com/javascript-chart-demos/area-charts/"
|
||||
target="_blank"
|
||||
class="text-primary">
|
||||
Apexcharts
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="text-base-content/60 mt-6 font-medium">Demos</p>
|
||||
<div class="mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2">
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Bar With Markers
|
||||
</div>
|
||||
<div class="px-3 pt-5 pb-2">
|
||||
<div id="marker-with-bar-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Grouped Bar
|
||||
</div>
|
||||
<div class="px-3 pt-5 pb-2">
|
||||
<div id="grouped-bar-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Stacked Bar
|
||||
</div>
|
||||
<div class="px-3 pt-5 pb-2">
|
||||
<div id="stacked-bar-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Negative Value
|
||||
</div>
|
||||
<div class="px-3 pt-5 pb-2">
|
||||
<div id="negative-value-bar-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 border-t border-dashed px-4 py-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex items-center justify-between px-0">
|
||||
<p>
|
||||
Built and designed with care by
|
||||
<a target="_blank" class="text-primary" href="https://withden.dev/">
|
||||
Denish
|
||||
</a>
|
||||
</p>
|
||||
<a
|
||||
aria-label="Buy now"
|
||||
target="_blank"
|
||||
class="bg-primary text-primary-content group flex size-9 items-center gap-2 overflow-hidden rounded-full px-2.5 py-0.5 font-medium transition-all hover:w-26"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart block size-4.5"></span>
|
||||
<span class="hidden text-sm text-nowrap group-hover:block">
|
||||
Buy Now
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.js"></script>
|
||||
|
||||
<script src="./js/pages/charts/apex-bar.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,500 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div id="components-layout">
|
||||
<div id="components-layout-container">
|
||||
<div class="max-xl:hidden">
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 bottom-0 flex h-screen w-64 min-w-64 flex-col border-s border-e border-dashed">
|
||||
<div
|
||||
class="border-base-300 flex h-16 min-h-16 items-center gap-4 border-b border-dashed px-5">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<hr class="border-base-300 h-6 border-e" />
|
||||
<p class="text-base-content/60 mt-0.5 text-lg font-medium">Design</p>
|
||||
</div>
|
||||
<div data-simplebar class="h-full min-h-0 grow">
|
||||
<div
|
||||
class="sidebar-menu-activation sidebar-menu mt-4 space-y-0.5 px-2.5 pb-4">
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Base</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--shapes size-4"></span>
|
||||
<span class="grow">Foundations</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-text.html">
|
||||
<span class="grow">Text</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-display.html">
|
||||
<span class="grow">Display</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-effects.html">
|
||||
<span class="grow">Effects</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-shadows.html">
|
||||
<span class="grow">Shadows</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--blocks size-4"></span>
|
||||
<span class="grow">Blocks</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-stats.html">
|
||||
<span class="grow">Dashboard Stats</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-prompt-bar.html">
|
||||
<span class="grow">Prompt Bar</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span
|
||||
class="iconify lucide--layout-panel-left size-4"></span>
|
||||
<span class="grow">Layouts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-skeleton.html">
|
||||
<span class="grow">Skeleton</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-sidebar.html">
|
||||
<span class="grow">Sidebar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-topbar.html">
|
||||
<span class="grow">Topbar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-footer.html">
|
||||
<span class="grow">Footer</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-profile-menu.html">
|
||||
<span class="grow">Profile Menu</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-search.html">
|
||||
<span class="grow">Search</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-notification.html">
|
||||
<span class="grow">Notification</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-page-title.html">
|
||||
<span class="grow">Page Title</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Dynamics</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--layers-3 size-4"></span>
|
||||
<span class="grow">Interactions</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-carousel.html">
|
||||
<span class="grow">Carousel</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-clipboard.html">
|
||||
<span class="grow">Clipboard</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-datatables.html">
|
||||
<span class="grow">Data Tables</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-fab.html">
|
||||
<span class="grow">FAB</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-file-upload.html">
|
||||
<span class="grow">File Upload</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-flatpickr.html">
|
||||
<span class="grow">Flatpickr</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-form-validations.html">
|
||||
<span class="grow">Form Validations</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-input-spinner.html">
|
||||
<span class="grow">Input Spinner</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-password-meter.html">
|
||||
<span class="grow">Password Meter</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-select.html">
|
||||
<span class="grow">Select</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-sortable.html">
|
||||
<span class="grow">Sortable</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-text-editor.html">
|
||||
<span class="grow">Text Editor</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-wizard.html">
|
||||
<span class="grow">Wizard</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--chart-bar size-4"></span>
|
||||
<span class="grow">Apex Charts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-area.html">
|
||||
<span class="grow">Area</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-bar.html">
|
||||
<span class="grow">Bar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-column.html">
|
||||
<span class="grow">Column</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-line.html">
|
||||
<span class="grow">Line</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-pie.html">
|
||||
<span class="grow">Pie</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a
|
||||
target="_blank"
|
||||
class="group rounded-box relative mx-2.5 block gap-3"
|
||||
href="/dashboards-ecommerce">
|
||||
<div
|
||||
class="rounded-box absolute inset-0 bg-gradient-to-r from-transparent to-transparent transition-opacity duration-300 group-hover:opacity-0"></div>
|
||||
<div
|
||||
class="from-primary to-secondary rounded-box absolute inset-0 bg-gradient-to-r opacity-0 transition-opacity duration-300 group-hover:opacity-100"></div>
|
||||
<div class="relative flex h-10 items-center gap-3 px-3">
|
||||
<i
|
||||
class="iconify lucide--monitor-dot text-primary size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
<p
|
||||
class="from-primary to-secondary bg-gradient-to-r bg-clip-text font-medium text-transparent transition-all duration-300 group-hover:text-white">
|
||||
Dashboard
|
||||
</p>
|
||||
<i
|
||||
class="iconify lucide--chevron-right text-secondary ms-auto size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
</div>
|
||||
</a>
|
||||
<hr class="border-base-300 mt-2 border-dashed" />
|
||||
<a
|
||||
target="_blank"
|
||||
class="bg-base-200/60 hover:bg-base-200 rounded-box m-2.5 mb-2 flex cursor-pointer items-center gap-3 px-3.5 py-2 transition-all"
|
||||
href="https://nexus.daisyui.com/docs/">
|
||||
<span class="iconify lucide--book-open-text size-5"></span>
|
||||
<div class="grow -space-y-0.5">
|
||||
<p class="text-sm font-medium">Documentation</p>
|
||||
<p class="text-base-content/60 text-xs">Installations</p>
|
||||
</div>
|
||||
<span
|
||||
class="iconify lucide--external-link text-base-content/60 size-4"></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-main">
|
||||
<div
|
||||
role="navigation"
|
||||
aria-label="Navbar"
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 z-1 h-16 border-b border-dashed px-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex h-full items-center justify-between px-0">
|
||||
<div class="flex items-center gap-5">
|
||||
<a
|
||||
class="text-base-content/70 hover:text-base-content transition-all"
|
||||
href="/dashboards-ecommerce">
|
||||
Dashboard
|
||||
</a>
|
||||
<a class="font-medium" href="/components">Components</a>
|
||||
</div>
|
||||
<div class="inline-flex items-center gap-3">
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-sm btn-circle btn-ghost relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
|
||||
<a
|
||||
target="_blank"
|
||||
class="btn from-primary to-secondary group/purchase text-primary-content btn-sm max-sm:btn-square relative gap-2 border-0 bg-linear-to-r text-sm"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart size-4"></span>
|
||||
<span class="max-sm:hidden">Buy Now</span>
|
||||
<div
|
||||
class="from-primary to-secondary absolute inset-x-0 top-1 -z-1 h-8 bg-linear-to-r opacity-40 blur-md transition-all duration-500 group-hover/purchase:opacity-60 group-hover/purchase:blur-lg"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-content">
|
||||
<div class="flex flex-col items-center justify-center space-y-0.5">
|
||||
<div
|
||||
class="text-base-content/80 border-base-300 flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs leading-none tracking-[0.2px]">
|
||||
<div class="status status-sm bg-base-content/30"></div>
|
||||
Apexcharts
|
||||
</div>
|
||||
<p
|
||||
class="from-base-content to-base-content/75 bg-linear-to-b bg-clip-text pb-1 text-3xl font-bold tracking-tight text-transparent lg:text-4xl 2xl:text-5xl">
|
||||
Column Charts
|
||||
</p>
|
||||
<p class="text-base-content/80 max-w-lg text-center max-md:text-sm">
|
||||
A versatile set of column charts for comparing values, ranges, and
|
||||
trends visually
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-base-200/40 rounded-box mt-6 px-5 py-4 lg:mt-12">
|
||||
<p class="text-base-content/60 font-medium">Usage guidelines</p>
|
||||
<p class="mt-1">
|
||||
<span class="me-1">- Plugin Documentation:</span>
|
||||
<a
|
||||
href="https://apexcharts.com/javascript-chart-demos/area-charts/"
|
||||
target="_blank"
|
||||
class="text-primary">
|
||||
Apexcharts
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="text-base-content/60 mt-6 font-medium">Demos</p>
|
||||
<div class="mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2">
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Stacked Column
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="stacked-column-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Dumbbell Column
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="dumbbell-column-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Range Column
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="range-column-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Negative Values Column
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="negative-value-column-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 border-t border-dashed px-4 py-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex items-center justify-between px-0">
|
||||
<p>
|
||||
Built and designed with care by
|
||||
<a target="_blank" class="text-primary" href="https://withden.dev/">
|
||||
Denish
|
||||
</a>
|
||||
</p>
|
||||
<a
|
||||
aria-label="Buy now"
|
||||
target="_blank"
|
||||
class="bg-primary text-primary-content group flex size-9 items-center gap-2 overflow-hidden rounded-full px-2.5 py-0.5 font-medium transition-all hover:w-26"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart block size-4.5"></span>
|
||||
<span class="hidden text-sm text-nowrap group-hover:block">
|
||||
Buy Now
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.js"></script>
|
||||
|
||||
<script src="./js/pages/charts/apex-column.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,502 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" class="group/html">
|
||||
<head>
|
||||
<title>Nexus (HTML - DaisyUI)</title>
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="author" content="Denish Navadiya" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="HTML, CSS, daisyui, tailwindcss, admin, client, dashboard, ui kit, component" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Start your next project with Nexus, designed for effortless customization to streamline your development process" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-dark.png"
|
||||
media="(prefers-color-scheme: dark)" />
|
||||
<link
|
||||
rel="shortcut icon"
|
||||
href="./images/favicon-light.png"
|
||||
media="(prefers-color-scheme: light)" />
|
||||
|
||||
<script>
|
||||
try {
|
||||
const localStorageItem = localStorage.getItem("__NEXUS_CONFIG_v3.0__")
|
||||
if (localStorageItem) {
|
||||
const theme = JSON.parse(localStorageItem).theme
|
||||
if (theme !== "system") {
|
||||
document.documentElement.setAttribute("data-theme", theme)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="./assets/app.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Start: Layout - Main -->
|
||||
|
||||
<div id="components-layout">
|
||||
<div id="components-layout-container">
|
||||
<div class="max-xl:hidden">
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 bottom-0 flex h-screen w-64 min-w-64 flex-col border-s border-e border-dashed">
|
||||
<div
|
||||
class="border-base-300 flex h-16 min-h-16 items-center gap-4 border-b border-dashed px-5">
|
||||
<a href="./dashboards-ecommerce.html">
|
||||
<img
|
||||
alt="logo-dark"
|
||||
class="hidden h-5.5 dark:inline"
|
||||
src="./images/logo/logo-dark.png" />
|
||||
<img
|
||||
alt="logo-light"
|
||||
class="h-5.5 dark:hidden"
|
||||
src="./images/logo/logo-light.png" />
|
||||
</a>
|
||||
<hr class="border-base-300 h-6 border-e" />
|
||||
<p class="text-base-content/60 mt-0.5 text-lg font-medium">Design</p>
|
||||
</div>
|
||||
<div data-simplebar class="h-full min-h-0 grow">
|
||||
<div
|
||||
class="sidebar-menu-activation sidebar-menu mt-4 space-y-0.5 px-2.5 pb-4">
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Base</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--shapes size-4"></span>
|
||||
<span class="grow">Foundations</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-text.html">
|
||||
<span class="grow">Text</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-display.html">
|
||||
<span class="grow">Display</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-effects.html">
|
||||
<span class="grow">Effects</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-foundations-shadows.html">
|
||||
<span class="grow">Shadows</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--blocks size-4"></span>
|
||||
<span class="grow">Blocks</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-stats.html">
|
||||
<span class="grow">Dashboard Stats</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-blocks-prompt-bar.html">
|
||||
<span class="grow">Prompt Bar</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span
|
||||
class="iconify lucide--layout-panel-left size-4"></span>
|
||||
<span class="grow">Layouts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-skeleton.html">
|
||||
<span class="grow">Skeleton</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-sidebar.html">
|
||||
<span class="grow">Sidebar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-topbar.html">
|
||||
<span class="grow">Topbar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-footer.html">
|
||||
<span class="grow">Footer</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-profile-menu.html">
|
||||
<span class="grow">Profile Menu</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-search.html">
|
||||
<span class="grow">Search</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-notification.html">
|
||||
<span class="grow">Notification</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-layouts-page-title.html">
|
||||
<span class="grow">Page Title</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="menu-label px-2.5 pt-3 pb-1.5 first:pt-0">Dynamics</p>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--layers-3 size-4"></span>
|
||||
<span class="grow">Interactions</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-carousel.html">
|
||||
<span class="grow">Carousel</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-clipboard.html">
|
||||
<span class="grow">Clipboard</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-datatables.html">
|
||||
<span class="grow">Data Tables</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-fab.html">
|
||||
<span class="grow">FAB</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-file-upload.html">
|
||||
<span class="grow">File Upload</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-flatpickr.html">
|
||||
<span class="grow">Flatpickr</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-form-validations.html">
|
||||
<span class="grow">Form Validations</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-input-spinner.html">
|
||||
<span class="grow">Input Spinner</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-password-meter.html">
|
||||
<span class="grow">Password Meter</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-select.html">
|
||||
<span class="grow">Select</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-sortable.html">
|
||||
<span class="grow">Sortable</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-text-editor.html">
|
||||
<span class="grow">Text Editor</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-interactions-wizard.html">
|
||||
<span class="grow">Wizard</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="group collapse">
|
||||
<input
|
||||
aria-label="Sidemenu item trigger"
|
||||
type="checkbox"
|
||||
class="peer"
|
||||
name="sidebar-menu-parent-item" />
|
||||
<div class="collapse-title px-2.5 py-1.5">
|
||||
<span class="iconify lucide--chart-bar size-4"></span>
|
||||
<span class="grow">Apex Charts</span>
|
||||
<span
|
||||
class="iconify lucide--chevron-right arrow-icon size-3.5"></span>
|
||||
</div>
|
||||
<div class="collapse-content ms-6.5 !p-0">
|
||||
<div class="mt-0.5 space-y-0.5">
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-area.html">
|
||||
<span class="grow">Area</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-bar.html">
|
||||
<span class="grow">Bar</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-column.html">
|
||||
<span class="grow">Column</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-line.html">
|
||||
<span class="grow">Line</span>
|
||||
</a>
|
||||
<a
|
||||
class="menu-item"
|
||||
href="./components-apex-charts-pie.html">
|
||||
<span class="grow">Pie</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<a
|
||||
target="_blank"
|
||||
class="group rounded-box relative mx-2.5 block gap-3"
|
||||
href="/dashboards-ecommerce">
|
||||
<div
|
||||
class="rounded-box absolute inset-0 bg-gradient-to-r from-transparent to-transparent transition-opacity duration-300 group-hover:opacity-0"></div>
|
||||
<div
|
||||
class="from-primary to-secondary rounded-box absolute inset-0 bg-gradient-to-r opacity-0 transition-opacity duration-300 group-hover:opacity-100"></div>
|
||||
<div class="relative flex h-10 items-center gap-3 px-3">
|
||||
<i
|
||||
class="iconify lucide--monitor-dot text-primary size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
<p
|
||||
class="from-primary to-secondary bg-gradient-to-r bg-clip-text font-medium text-transparent transition-all duration-300 group-hover:text-white">
|
||||
Dashboard
|
||||
</p>
|
||||
<i
|
||||
class="iconify lucide--chevron-right text-secondary ms-auto size-4.5 transition-all duration-300 group-hover:text-white"></i>
|
||||
</div>
|
||||
</a>
|
||||
<hr class="border-base-300 mt-2 border-dashed" />
|
||||
<a
|
||||
target="_blank"
|
||||
class="bg-base-200/60 hover:bg-base-200 rounded-box m-2.5 mb-2 flex cursor-pointer items-center gap-3 px-3.5 py-2 transition-all"
|
||||
href="https://nexus.daisyui.com/docs/">
|
||||
<span class="iconify lucide--book-open-text size-5"></span>
|
||||
<div class="grow -space-y-0.5">
|
||||
<p class="text-sm font-medium">Documentation</p>
|
||||
<p class="text-base-content/60 text-xs">Installations</p>
|
||||
</div>
|
||||
<span
|
||||
class="iconify lucide--external-link text-base-content/60 size-4"></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-main">
|
||||
<div
|
||||
role="navigation"
|
||||
aria-label="Navbar"
|
||||
class="border-base-300/80 bg-base-100 sticky top-0 z-1 h-16 border-b border-dashed px-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex h-full items-center justify-between px-0">
|
||||
<div class="flex items-center gap-5">
|
||||
<a
|
||||
class="text-base-content/70 hover:text-base-content transition-all"
|
||||
href="/dashboards-ecommerce">
|
||||
Dashboard
|
||||
</a>
|
||||
<a class="font-medium" href="/components">Components</a>
|
||||
</div>
|
||||
<div class="inline-flex items-center gap-3">
|
||||
<button
|
||||
aria-label="Toggle Theme"
|
||||
class="btn btn-sm btn-circle btn-ghost relative overflow-hidden"
|
||||
data-theme-control="toggle">
|
||||
<span
|
||||
class="iconify lucide--sun absolute size-4.5 -translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=light]/html:translate-y-0 group-data-[theme=light]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--moon absolute size-4.5 translate-y-4 opacity-0 transition-all duration-300 group-data-[theme=dark]/html:translate-y-0 group-data-[theme=dark]/html:opacity-100"></span>
|
||||
<span
|
||||
class="iconify lucide--palette absolute size-4.5 opacity-100 group-data-[theme=dark]/html:opacity-0 group-data-[theme=light]/html:opacity-0"></span>
|
||||
</button>
|
||||
|
||||
<a
|
||||
target="_blank"
|
||||
class="btn from-primary to-secondary group/purchase text-primary-content btn-sm max-sm:btn-square relative gap-2 border-0 bg-linear-to-r text-sm"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart size-4"></span>
|
||||
<span class="max-sm:hidden">Buy Now</span>
|
||||
<div
|
||||
class="from-primary to-secondary absolute inset-x-0 top-1 -z-1 h-8 bg-linear-to-r opacity-40 blur-md transition-all duration-500 group-hover/purchase:opacity-60 group-hover/purchase:blur-lg"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="components-layout-content">
|
||||
<div class="flex flex-col items-center justify-center space-y-0.5">
|
||||
<div
|
||||
class="text-base-content/80 border-base-300 flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs leading-none tracking-[0.2px]">
|
||||
<div class="status status-sm bg-base-content/30"></div>
|
||||
Apexcharts
|
||||
</div>
|
||||
<p
|
||||
class="from-base-content to-base-content/75 bg-linear-to-b bg-clip-text pb-1 text-3xl font-bold tracking-tight text-transparent lg:text-4xl 2xl:text-5xl">
|
||||
Line Charts
|
||||
</p>
|
||||
<p class="text-base-content/80 max-w-lg text-center max-md:text-sm">
|
||||
A set of interactive line charts for visualizing trends,
|
||||
comparisons, and annotations
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-base-200/40 rounded-box mt-6 px-5 py-4 lg:mt-12">
|
||||
<p class="text-base-content/60 font-medium">Usage guidelines</p>
|
||||
<p class="mt-1">
|
||||
<span class="me-1">- Plugin Documentation:</span>
|
||||
<a
|
||||
href="https://apexcharts.com/javascript-chart-demos/area-charts/"
|
||||
target="_blank"
|
||||
class="text-primary">
|
||||
Apexcharts
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<p class="text-base-content/60 mt-6 font-medium">Demos</p>
|
||||
<div class="mt-6 grid grid-cols-1 gap-6 xl:grid-cols-2">
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Label Line
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="label-line-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Step Line
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="step-line-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Syncing Line
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="syncing-order-line-chart"></div>
|
||||
<div id="syncing-revenue-line-chart"></div>
|
||||
<div id="syncing-average-line-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card-border bg-base-100">
|
||||
<div class="bg-base-200/30 rounded-t-box px-5 py-3 font-medium">
|
||||
Annotation Line
|
||||
</div>
|
||||
<div class="px-5 pt-5 pb-2">
|
||||
<div id="annotation-line-chart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="border-base-300/80 bg-base-100 border-t border-dashed px-4 py-4 md:px-8 xl:px-12 2xl:px-20">
|
||||
<div class="flex items-center justify-between px-0">
|
||||
<p>
|
||||
Built and designed with care by
|
||||
<a target="_blank" class="text-primary" href="https://withden.dev/">
|
||||
Denish
|
||||
</a>
|
||||
</p>
|
||||
<a
|
||||
aria-label="Buy now"
|
||||
target="_blank"
|
||||
class="bg-primary text-primary-content group flex size-9 items-center gap-2 overflow-hidden rounded-full px-2.5 py-0.5 font-medium transition-all hover:w-26"
|
||||
href="https://daisyui.com/store/244268">
|
||||
<span class="iconify lucide--shopping-cart block size-4.5"></span>
|
||||
<span class="hidden text-sm text-nowrap group-hover:block">
|
||||
Buy Now
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- End: Layout - Main -->
|
||||
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.css" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts/dist/apexcharts.min.js"></script>
|
||||
|
||||
<script src="./js/pages/charts/apex-line.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.min.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/simplebar/6.2.7/simplebar.css" />
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<script src="./js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user