Compare commits

..

3 Commits

Author SHA1 Message Date
A1Gard 9809517250 fixed read me
update version
5 months ago
A1Gard ce679db156 fixed search apl-menu 5 months ago
A1Gard 4acb148b16 added full screen button to mp4 player 5 months ago

@ -18,9 +18,6 @@
- UI/UX is more specific - UI/UX is more specific
- Developer Friendlier - Developer Friendlier
## Access to xShop/v1
> [!WARNING]
> xShop/v1 available here: <a href="https://github.com/4xmen/xshop.v1">https://github.com/4xmen/xshop.v1</a>
## Installation ## Installation
@ -36,6 +33,12 @@ php artisan migrate:fresh --seed
php artisan storage:link php artisan storage:link
php artisan key:generate php artisan key:generate
php artisan serv php artisan serv
# to develop front-end
npm install -g yarn
yarn install
yarn dev
``` ```
> [!TIP] > [!TIP]
@ -48,18 +51,20 @@ php artisan serv
```bash ```bash
php artisan seeding:prepare php artisan seeding:prepare
``` ```
- Seeding image for models: [Group, Category, Post, Product, Slider] - nor copy your image folder to `database/seeders/images/`
- then: Seeding image for models: [Group, Category, Post, Product, Slider]
```bash ```bash
php artisan seeding:image Product digital php artisan seeding:image Product digital
``` ```
> First parameter is Model, Second is image seeder directory available [bag, clothe, digital, sport, posts, makeup] > First parameter is Model, Second is image seeder directory available [bag, clothe, digital, sport, posts, makeup]
> You can create your directory and put your image into new directory then use image seeder > You can create your directory and put your image into new directory then use image seeder
## Requirement ## Requirement
- php 8.3.9 [ `php-gd`, `sqlite3`, `php-soap` ] - php 8.2.x or above [ `php-gd`, `sqlite3`, `php-soap`]
- mysql or mariadb - mysql or mariadb or sqlite
- composer - composer
- recommends install imagemagick on server to more image performance
## Deploy guide ## Deploy guide
@ -71,12 +76,20 @@ git clone https://github.com/4xmen/xshop.git . # if this command not work make
cp .env.example .env cp .env.example .env
nano .env # edit your config db, url, etc. nano .env # edit your config db, url, etc.
composer install composer install
php artisan migrate php artisan migrate:fresh --seed
php artisan db:seed --class=UserSeeder
php artisan db:seed --class=SettingSeeder
nano .env # make APP_DEBUG false, APP_ENV production
php artisan storage:link php artisan storage:link
php key:generate php key:generate
npm install
php artisan client
npm run build
```
## Make your site optimize & production mode
```bash
nano .env # make APP_DEBUG false, APP_ENV production
php artisan optimize
composer install --optimize-autoloader --no-dev composer install --optimize-autoloader --no-dev
``` ```
@ -106,7 +119,7 @@ php artisan make:part PartName segmentName
Optimize client assets, `scss`,`js`,`css` Optimize client assets, `scss`,`js`,`css`
```bash ```bash
php artisan client php artisan client
``` ```
### theme parts file ### theme parts file
@ -130,6 +143,12 @@ php artisan client
![5](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot5.jpg) ![5](https://raw.githubusercontent.com/A1Gard/xshop-installer-assets/master/screenshots/xshop-screenshot5.jpg)
## Access to xShop/v1
> [!WARNING]
> xShop/v1 available here: <a href="https://github.com/4xmen/xshop.v1">https://github.com/4xmen/xshop.v1</a>
<p align="center"> <p align="center">
Developed With Love ! ❤️ Developed With Love ! ❤️
</p> </p>

@ -16,7 +16,7 @@ return [
*/ */
'name' => env('APP_NAME', 'Laravel'), 'name' => env('APP_NAME', 'Laravel'),
'version' => env('APP_VERSION', '2.0.0-alpha'), 'version' => env('APP_VERSION', '2.0.0-beta'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

@ -27,6 +27,11 @@
<button type="button" class="sp p-btn" @click="timeOffset(10)"> <button type="button" class="sp p-btn" @click="timeOffset(10)">
<i class="ri-speed-line"></i> <i class="ri-speed-line"></i>
</button> </button>
<button type="button" class="sp p-btn" @click="fullScreen">
<i class="ri-fullscreen-line"></i>
</button>
<div> <div>
{{ fullTime }} {{ fullTime }}
</div> </div>
@ -36,7 +41,7 @@
<script> <script>
export default { export default {
name: "mp3-player", name: "video-player",
components: {}, components: {},
data: () => { data: () => {
return { return {
@ -87,6 +92,9 @@ export default {
} }
}, },
methods: { methods: {
fullScreen(){
this.$refs.p.requestFullscreen();
},
speedChange() { speedChange() {
this.speed++; this.speed++;
if (this.speed === this.speeds.length){ if (this.speed === this.speeds.length){

@ -82,7 +82,7 @@
@endforeach @endforeach
<li class="icon-menu"> <li class="icon-menu">
<a href="#"> <a data-bs-toggle="modal" data-bs-target="#apl-search">
<i class="ri-search-line"></i> <i class="ri-search-line"></i>
</a> </a>
</li> </li>
@ -105,3 +105,30 @@
<div id="reps-menu"> <div id="reps-menu">
</div> </div>
</nav> </nav>
<!-- Modal -->
<div class="modal fade" id="apl-search" tabindex="-1" aria-labelledby="apl-search" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="apl-search">
{{__("Search")}}
</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="{{route('client.search')}}" class="side-data">
<div class="input-group mb-3">
<input type="search" name="q" class="form-control" placeholder="{{__('Search')}}...">
<button class="btn btn-outline-secondary" type="submit" id="button-addon2">
<i class="ri-search-2-line"></i>
</button>
</div>
</form>
</div>
{{-- <div class="modal-footer">--}}
{{-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>--}}
{{-- </div>--}}
</div>
</div>
</div>

Loading…
Cancel
Save