parent
0b44bf804f
commit
9f0c84fffc
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross-Origin Resource Sharing (CORS) Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure your settings for cross-origin resource sharing
|
||||
| or "CORS". This determines what cross-origin operations may execute
|
||||
| in web browsers. You are free to adjust these settings as needed.
|
||||
|
|
||||
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => ['*'],
|
||||
|
||||
'allowed_origins_patterns' => [],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
|
||||
'exposed_headers' => [],
|
||||
|
||||
'max_age' => 0,
|
||||
|
||||
'supports_credentials' => false,
|
||||
|
||||
];
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCacheTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('cache', function (Blueprint $table) {
|
||||
$table->string('key')->unique();
|
||||
$table->mediumText('value');
|
||||
$table->integer('expiration');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('cache');
|
||||
}
|
||||
}
|
@ -1,60 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Laravel - A PHP Framework For Web Artisans
|
||||
*
|
||||
* @package Laravel
|
||||
* @author Taylor Otwell <taylor@laravel.com>
|
||||
*/
|
||||
use Illuminate\Contracts\Http\Kernel;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Auto Loader
|
||||
| Check If Application Is Under Maintenance
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Composer provides a convenient, automatically generated class loader for
|
||||
| our application. We just need to utilize it! We'll simply require it
|
||||
| into the script here so that we don't have to worry about manual
|
||||
| loading any of our classes later on. It feels great to relax.
|
||||
| If the application is maintenance / demo mode via the "down" command we
|
||||
| will require this file so that any prerendered template can be shown
|
||||
| instead of starting the framework, which could cause an exception.
|
||||
|
|
||||
*/
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
|
||||
require __DIR__.'/../storage/framework/maintenance.php';
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Turn On The Lights
|
||||
| Register The Auto Loader
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| We need to illuminate PHP development, so let us turn on the lights.
|
||||
| This bootstraps the framework and gets it ready for use, then it
|
||||
| will load up this application so that we can run it and send
|
||||
| the responses back to the browser and delight our users.
|
||||
| Composer provides a convenient, automatically generated class loader for
|
||||
| this application. We just need to utilize it! We'll simply require it
|
||||
| into the script here so we don't need to manually load our classes.
|
||||
|
|
||||
*/
|
||||
|
||||
$app = require_once __DIR__.'/../bootstrap/app.php';
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Run The Application
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Once we have the application, we can handle the incoming request
|
||||
| through the kernel, and send the associated response back to
|
||||
| the client's browser allowing them to enjoy the creative
|
||||
| and wonderful application we have prepared for them.
|
||||
| Once we have the application, we can handle the incoming request using
|
||||
| the application's HTTP kernel. Then, we will send the response back
|
||||
| to this client's browser, allowing them to enjoy our application.
|
||||
|
|
||||
*/
|
||||
|
||||
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
||||
$app = require_once __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$response = $kernel->handle(
|
||||
$request = Illuminate\Http\Request::capture()
|
||||
);
|
||||
$kernel = $app->make(Kernel::class);
|
||||
|
||||
$response->send();
|
||||
$response = tap($kernel->handle(
|
||||
$request = Request::capture()
|
||||
))->send();
|
||||
|
||||
$kernel->terminate($request, $response);
|
||||
|
@ -1,75 +0,0 @@
|
||||
<template>
|
||||
<v-row :class="`ma-0 mt-2 checklist`">
|
||||
<v-col xl="12" class="pt-4 pb-0 pr-0"> <section-title theme="sm" title-fa="چک لیست" title-en="check list" /></v-col>
|
||||
<v-col xl="12" class="task-item row ma-0 mt-1 pt-1 pb-1 section-bordered flex-justified-space-between" :class="(task_status) ? 'done' : ''">
|
||||
<div class="flex-justified-right">
|
||||
<div class="En Bold text--24 counter">1</div>
|
||||
<v-switch :color="$_color('task')" inset class="mr-2" v-model="task_status" />
|
||||
<div class="Fa pr-2 text"> چک کردن سئو وبسایت وردک </div>
|
||||
</div>
|
||||
<div class="flex-justified-left">
|
||||
<v-btn fab x-small :color="$_color('task')" dark>
|
||||
<v-icon dark>WMi-pencil</v-icon>
|
||||
</v-btn>
|
||||
<v-btn fab x-small color="red" dark>
|
||||
<v-icon dark>WMi-minus</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col xl="12" class="row ma-0 mt-1 pt-1 pb-1 section-bordered flex-justified-right">
|
||||
<v-text-field
|
||||
v-validate="'min:4'"
|
||||
label=" متن آیتم را وارد کنید "
|
||||
color="cyan"
|
||||
prepend-icon="WMi-text"
|
||||
></v-text-field>
|
||||
<v-btn
|
||||
fab
|
||||
small
|
||||
color="cyan"
|
||||
dark
|
||||
class="mr-3"
|
||||
>
|
||||
<v-icon dark>WMi-plus</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<!-- <div class="add-button-row flex-justified-center">-->
|
||||
<!-- <v-icon>WMi-plus</v-icon>-->
|
||||
<!-- </div>-->
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
task_status: false,
|
||||
};
|
||||
},
|
||||
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.checklist .counter {
|
||||
width: 30px;
|
||||
border-left: 1px solid #eeeeec;
|
||||
}
|
||||
.checklist .task-item {
|
||||
transition: 0.2s;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.task-item.done {
|
||||
border: 1px solid var(--color-purple);
|
||||
background-color: var(--color-bg-purple);
|
||||
}
|
||||
.task-item .text {
|
||||
transition: 2.0s;
|
||||
}
|
||||
.task-item.done .text {
|
||||
text-decoration: line-through;
|
||||
text-decoration-color: var(--color-purple);
|
||||
}
|
||||
</style>
|
@ -0,0 +1,14 @@
|
||||
import { LooseObject } from "@Global/infrastructure/Interfaces/GlobalInterface";
|
||||
export default class Resource {
|
||||
getJson(data: LooseObject): LooseObject {
|
||||
return data;
|
||||
}
|
||||
|
||||
getArray(data: Array<LooseObject>): Array<LooseObject> {
|
||||
return data;
|
||||
}
|
||||
|
||||
setJson(data: LooseObject): LooseObject {
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
import {LooseObject} from './GlobalInterface'
|
||||
|
||||
export default interface BinderInterface {
|
||||
request(data: LooseObject): void;
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
export interface LooseObject {
|
||||
[key: string]: any
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
import {LooseObject} from './GlobalInterface'
|
||||
|
||||
export default interface ResourceInterface {
|
||||
|
||||
getJson(data: LooseObject): LooseObject;
|
||||
|
||||
getArray(data: Array<LooseObject>): Array<LooseObject>;
|
||||
|
||||
setJson(data: LooseObject): LooseObject;
|
||||
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
import CRMPolicy from '@CRM/policy';
|
||||
import BlogPolicy from '@Blog/policy';
|
||||
import PortfolioPolicy from '@Portfolio/policy';
|
||||
import ProductPolicy from '@Product/policy';
|
||||
import ServicePolicy from '@Service/policy';
|
||||
import CorePolicy from '@Core/policy';
|
||||
import CommonPolicy from '@Common/policy';
|
||||
|
||||
export default {
|
||||
...PortfolioPolicy,
|
||||
...BlogPolicy,
|
||||
...CRMPolicy,
|
||||
...ProductPolicy,
|
||||
...ServicePolicy,
|
||||
...CorePolicy,
|
||||
...CommonPolicy,
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import Vue from "vue";
|
||||
import {CorePolicies} from "@Core/policy";
|
||||
import CommonPolicy from "@Common/policy";
|
||||
|
||||
|
||||
Vue.prototype.$policiesClasses = {
|
||||
...CorePolicies,
|
||||
...CommonPolicy
|
||||
};
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBasicTest()
|
||||
{
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
//{
|
||||
// "compilerOptions": {
|
||||
// "module": "commonjs",
|
||||
// "target": "es5",
|
||||
// "noImplicitAny": false,
|
||||
// "sourceMap": false
|
||||
// }
|
||||
//}
|
||||
{
|
||||
"compilerOptions": {
|
||||
"lib": ["dom", "es5", "es2015"],
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"noImplicitAny": false,
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"paths": {
|
||||
"@JS/*": ["./resources/js/*"],
|
||||
"@Global/*": ["./resources/js/Global/*"],
|
||||
"@Home/*": ["./resources/js/Home/*"],
|
||||
"@CRM/*": ["./modules/wm-crm/resources/js/*"],
|
||||
"@Common/*": ["./modules/wm-common/resources/js/*"],
|
||||
"@Core/*": ["./modules/wm-core/resources/js/*"],
|
||||
"@User/*": ["./modules/wm-core/resources/js/Modules/User/*"],
|
||||
"@Auth/*": ["./modules/wm-core/resources/js/Modules/Authentication/*"],
|
||||
"@Service/*": ["./modules/wm-service/resources/js/*"],
|
||||
"@Product/*": ["./modules/wm-product/resources/js/*"],
|
||||
"@Blog/*": ["./modules/wm-blog/resources/js/*"]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue