This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use DB; | |
use Exception; | |
class ImageService | |
{ | |
public function store($imgFile){ | |
if($imgFile==null) | |
return back(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from 'prop-types'; | |
import { Component } from 'react'; | |
import reducerMixin from 'Core/reducerMixin'; | |
import PasswordReducer from '../reducer'; | |
import Button from 'Src/components/controls/button/button'; | |
import Input from 'Src/components/controls/textField/textField'; | |
import './index.css'; | |
import Router from 'next/router'; | |
import { inquirePwdPrompt } from 'Src/modules/passwordModule/action'; | |
import { connect } from 'react-redux'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from 'prop-types'; | |
import { Component } from 'react'; | |
import reducerMixin from 'Core/reducerMixin'; | |
import PasswordReducer from '../reducer'; | |
import Button from 'Src/components/controls/button/button'; | |
import Input from 'Src/components/controls/textField/textField'; | |
import './index.css'; | |
import Router from 'next/router'; | |
import { inquirePwdPrompt } from 'Src/modules/passwordModule/action'; | |
import { connect } from 'react-redux'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.config.js | |
module.exports = { | |
module: { | |
rules: [ | |
{ | |
test: /\.(png|jpg|gif)$/, | |
use: [ | |
{ | |
loader: 'file-loader', | |
options: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ratingStar from 'AppSrc/icons/rating_start.png' | |
<img src={ratingStar} width="22px" alt=""/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#welcome{ | |
background-image: url('~AppSrc/img/Image_upload_test.jpg'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resolve: { | |
alias: | |
{ | |
AppSrc: path.resolve(__dirname, 'app/src'), | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('/some-page',function(){ | |
$fakeDatas=[ | |
'a'=>a, | |
'b'=b | |
]; | |
return view('someVew',['datas'=>$fakeDatas]); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// | |
"importProptypes":{ | |
"prefix": "#react_i_prop_types", | |
"body": ["import PropTypes from 'prop-types';"], | |
"description": "import propTypes" | |
}, | |
"propTypes":{ | |
"prefix": "#react_prop_types", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import ReactDOM from 'react-dom' | |
import scriptLoader from 'react-async-script-loader'; | |
class PayPalBtn extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
showButton: false | |
} |
OlderNewer