Skip to content

Commit

Permalink
name swap
Browse files Browse the repository at this point in the history
  • Loading branch information
Retzam Tarle authored and Retzam Tarle committed Apr 1, 2019
1 parent e50fc92 commit ef8146c
Show file tree
Hide file tree
Showing 46 changed files with 101 additions and 101 deletions.
8 changes: 4 additions & 4 deletions src/components/village/Category View.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Home extends React.Component {
const auth = localStorage.getItem('auth_code')

try {
const res = await fetch('http://165.22.140.170:8000/api/isloggedin/', {
const res = await fetch('http://www.iwansell.com/api/isloggedin/', {

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -42,7 +42,7 @@ export default class Home extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/get_account/',{
const res = await fetch('http://www.iwansell.com/api/get_account/',{

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -61,7 +61,7 @@ export default class Home extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/get_campus/',{
const res = await fetch('http://www.iwansell.com/api/get_campus/',{

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -80,7 +80,7 @@ export default class Home extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/campus_code/' + this.state.campus_id + '/');
const res = await fetch('http://www.iwansell.com/api/campus_code/' + this.state.campus_id + '/');
const market = await res.json();
this.setState({
market
Expand Down
6 changes: 3 additions & 3 deletions src/components/village/E Shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async componentDidMount() {
const auth = localStorage.getItem('auth_code')

try {
const res = await fetch('http://165.22.140.170:8000/api/eshop/' + this.props.match.params.eshop_id);
const res = await fetch('http://www.iwansell.com/api/eshop/' + this.props.match.params.eshop_id);
const eshop = await res.json();
this.setState({
eshop
Expand All @@ -30,7 +30,7 @@ try {


try {
const res = await fetch('http://165.22.140.170:8000/api/ismyeshop/' + this.props.match.params.eshop_id, {
const res = await fetch('http://www.iwansell.com/api/ismyeshop/' + this.props.match.params.eshop_id, {

headers : {
'Authorization' : 'Token ' + auth,
Expand All @@ -52,7 +52,7 @@ try {


setMedia(media_name){
this.state.media = 'http://165.22.140.170:8000/api' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}

render() {
Expand Down
8 changes: 4 additions & 4 deletions src/components/village/EShop List.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class EshopList extends React.Component {
async componentDidMount() {
this.setState({ isLoading: true})
try {
const res = await fetch('http://165.22.140.170:8000/api/eshop_list/' + this.props.match.params.campus_id + '/');
const res = await fetch('http://www.iwansell.com/api/eshop_list/' + this.props.match.params.campus_id + '/');
const eshop_list = await res.json();
this.setState({
eshop_list
Expand All @@ -29,7 +29,7 @@ export default class EshopList extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/category/');
const res = await fetch('http://www.iwansell.com/api/category/');
const categorylist = await res.json();
this.setState({
categorylist
Expand Down Expand Up @@ -58,7 +58,7 @@ async submitForm(){
formData.append("eshop_name", eshop_name)

try {
const res = await fetch('http://165.22.140.170:8000/api/eshop_list/' + this.props.match.params.campus_id + '/', {
const res = await fetch('http://www.iwansell.com/api/eshop_list/' + this.props.match.params.campus_id + '/', {

body: formData,
method: 'POST'
Expand All @@ -82,7 +82,7 @@ async sortByCategory(id){

this.setState({ isLoading: true })
try {
const res = await fetch('http://127.0.0.1:8000/api/eshop_list_category/' + this.props.match.params.campus_id + '/' + id + '/');
const res = await fetch('http://www.iwansell.com/api/eshop_list_category/' + this.props.match.params.campus_id + '/' + id + '/');
const eshop_list = await res.json();
this.setState({
eshop_list
Expand Down
2 changes: 1 addition & 1 deletion src/components/village/Feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class FeedBack extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/feedback/', {
const res = await fetch('http://www.iwansell.com/api/feedback/', {

body :formData,
method: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion src/components/village/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class Home extends React.Component {
console.log(auth)

try {
const res = await fetch('http://165.22.140.170:8000/api/get_account/',{
const res = await fetch('http://www.iwansell.com/api/get_account/',{

credentials: 'same-origin',
mode: 'cors',
Expand Down
4 changes: 2 additions & 2 deletions src/components/village/Landing Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class LandingPage extends React.Component {
formData.append('key_word', key_word)

try {
const res = await fetch('http://165.22.140.170:8000/api/campus_search/', {
const res = await fetch('http://www.iwansell.com/api/campus_search/', {

body :formData,
method: 'POST',
Expand Down Expand Up @@ -73,7 +73,7 @@ setSchool(){

async getMarket(id){
try {
const res = await fetch('http://165.22.140.170:8000/api/campus_code/' + id + '/');
const res = await fetch('http://www.iwansell.com/api/campus_code/' + id + '/');
const market = await res.json();

this.setState({
Expand Down
2 changes: 1 addition & 1 deletion src/components/village/Product Details.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class ProductDetails extends React.Component {
const auth = localStorage.getItem('auth_code')

try {
const res = await fetch('http://165.22.140.170:8000/api/isloggedin/', {
const res = await fetch('http://www.iwansell.com/api/isloggedin/', {

credentials: 'same-origin',
mode: 'cors',
Expand Down
4 changes: 2 additions & 2 deletions src/components/village/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class Profile extends React.Component {
const auth = localStorage.getItem('auth_code')

try {
const res = await fetch('http://165.22.140.170:8000/api/is_myprofile/' + this.props.match.params.profile_id + '/', {
const res = await fetch('http://www.iwansell.com/api/is_myprofile/' + this.props.match.params.profile_id + '/', {

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -41,7 +41,7 @@ export default class Profile extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/isloggedin/', {
const res = await fetch('http://www.iwansell.com/api/isloggedin/', {

credentials: 'same-origin',
mode: 'cors',
Expand Down
8 changes: 4 additions & 4 deletions src/components/village/Subcategory View.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class SubcategoryView extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/isloggedin/', {
const res = await fetch('http://www.iwansell.com/api/isloggedin/', {

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -43,7 +43,7 @@ export default class SubcategoryView extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/get_account/',{
const res = await fetch('http://www.iwansell.com/api/get_account/',{

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -62,7 +62,7 @@ export default class SubcategoryView extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/get_campus/',{
const res = await fetch('http://www.iwansell.com/api/get_campus/',{

credentials: 'same-origin',
mode: 'cors',
Expand All @@ -81,7 +81,7 @@ export default class SubcategoryView extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/campus_code/' + this.state.campus_id + '/');
const res = await fetch('http://www.iwansell.com/api/campus_code/' + this.state.campus_id + '/');
const market = await res.json();
this.setState({
market
Expand Down
2 changes: 1 addition & 1 deletion src/components/village/View More.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class ViewMore extends React.Component {
console.log(auth)

try {
const res = await fetch('http://165.22.140.170:8000/api/get_account/',{
const res = await fetch('http://www.iwansell.com/api/get_account/',{

credentials: 'same-origin',
mode: 'cors',
Expand Down
2 changes: 1 addition & 1 deletion src/components/village/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Welcome extends React.Component {
else{

try {
const res = await fetch('http://165.22.140.170:8000/api/isloggedin/', {
const res = await fetch('http://www.iwansell.com/api/isloggedin/', {

credentials: 'same-origin',
mode: 'cors',
Expand Down
10 changes: 5 additions & 5 deletions src/components/village/neighborhoods/Category Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class CategoryMain extends React.Component {
async componentWillMount() {

try {
const res = await fetch('http://165.22.140.170:8000/api/category/');
const res = await fetch('http://www.iwansell.com/api/category/');
const categoryList = await res.json();
this.setState({
categoryList
Expand All @@ -30,7 +30,7 @@ export default class CategoryMain extends React.Component {
}

try {
const res = await fetch('http://165.22.140.170:8000/api/category_product/' + this.props.campus_id + '/' + this.props.category_id + '/');
const res = await fetch('http://www.iwansell.com/api/category_product/' + this.props.campus_id + '/' + this.props.category_id + '/');
const categoryProductList = await res.json();
this.setState({
categoryProductList
Expand All @@ -52,7 +52,7 @@ export default class CategoryMain extends React.Component {
this.setState({category: name, isLoading: true })

try {
const res = await fetch('http://165.22.140.170:8000/api/category_product/' + this.state.campus_id + '/' + id + '/1');
const res = await fetch('http://www.iwansell.com/api/category_product/' + this.state.campus_id + '/' + id + '/1');
const categoryProductList = await res.json();
this.setState({
categoryProductList
Expand All @@ -68,11 +68,11 @@ export default class CategoryMain extends React.Component {


setMediaIcon(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}

setMedia(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}


Expand Down
4 changes: 2 additions & 2 deletions src/components/village/neighborhoods/Category Slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class CategorySlide extends React.Component {
async componentWillMount() {

try {
const res = await fetch('http://165.22.140.170:8000/api/category/');
const res = await fetch('http://www.iwansell.com/api/category/');
const categoryList = await res.json();
this.setState({
categoryList
Expand All @@ -31,7 +31,7 @@ export default class CategorySlide extends React.Component {


setMedia(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}


Expand Down
4 changes: 2 additions & 2 deletions src/components/village/neighborhoods/Profile Details.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class ProfileDetails extends React.Component {

async componentWillMount() {
try {
const res = await fetch('http://165.22.140.170:8000/api/accounts/' + this.props.profile_id);
const res = await fetch('http://www.iwansell.com/api/accounts/' + this.props.profile_id);
const profileDetail = await res.json();
this.setState({
profileDetail
Expand All @@ -25,7 +25,7 @@ export default class ProfileDetails extends React.Component {
}

setMedia(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}


Expand Down
10 changes: 5 additions & 5 deletions src/components/village/neighborhoods/Subcategory Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class SubcategoryMain extends React.Component {
async componentWillMount() {

try {
const res = await fetch('http://165.22.140.170:8000/api/subcategory_main/');
const res = await fetch('http://www.iwansell.com/api/subcategory_main/');
const categoryList = await res.json();
this.setState({
categoryList
Expand All @@ -30,7 +30,7 @@ export default class SubcategoryMain extends React.Component {
}

try {
const res = await fetch('http://165.22.140.170:8000/api/subcategory_product/' + this.props.campus_id + '/' + this.props.subcategory_id + '/');
const res = await fetch('http://www.iwansell.com/api/subcategory_product/' + this.props.campus_id + '/' + this.props.subcategory_id + '/');
const categoryProductList = await res.json();
this.setState({
categoryProductList
Expand All @@ -52,7 +52,7 @@ export default class SubcategoryMain extends React.Component {
this.setState({category: name, isLoading: true })

try {
const res = await fetch('http://165.22.140.170:8000/api/subcategory_product/' + this.state.campus_id + '/' + id);
const res = await fetch('http://www.iwansell.com/api/subcategory_product/' + this.state.campus_id + '/' + id);
const categoryProductList = await res.json();
this.setState({
categoryProductList
Expand All @@ -68,11 +68,11 @@ export default class SubcategoryMain extends React.Component {


setMediaIcon(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}

setMedia(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}


Expand Down
12 changes: 6 additions & 6 deletions src/components/village/neighborhoods/Trending.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class Trending extends React.Component {


try {
const res = await fetch('http://165.22.140.170:8000/api/trending/' + this.props.campus_id + '/' + this.trending_url_1 + '/');
const res = await fetch('http://www.iwansell.com/api/trending/' + this.props.campus_id + '/' + this.trending_url_1 + '/');
const trendList_1 = await res.json();
this.setState({
trendList_1
Expand All @@ -56,7 +56,7 @@ export default class Trending extends React.Component {
}

try {
const res = await fetch('http://165.22.140.170:8000/api/trending/' + this.props.campus_id + '/' + this.trending_url_2 + '/');
const res = await fetch('http://www.iwansell.com/api/trending/' + this.props.campus_id + '/' + this.trending_url_2 + '/');
const trendList_2 = await res.json();
this.setState({
trendList_2
Expand All @@ -66,7 +66,7 @@ export default class Trending extends React.Component {
}

try {
const res = await fetch('http://165.22.140.170:8000/api/trending/' + this.props.campus_id + '/' + this.trending_url_3 + '/');
const res = await fetch('http://www.iwansell.com/api/trending/' + this.props.campus_id + '/' + this.trending_url_3 + '/');
const trendList_3 = await res.json();
this.setState({
trendList_3
Expand All @@ -76,7 +76,7 @@ export default class Trending extends React.Component {
}

try {
const res = await fetch('http://165.22.140.170:8000/api/trending/' + this.props.campus_id + '/' + this.trending_url_4 + '/');
const res = await fetch('http://www.iwansell.com/api/trending/' + this.props.campus_id + '/' + this.trending_url_4 + '/');
const trendList_4 = await res.json();
this.setState({
trendList_4
Expand All @@ -86,7 +86,7 @@ export default class Trending extends React.Component {
}

try {
const res = await fetch('http://165.22.140.170:8000/api/trending/' + this.props.campus_id + '/' + this.trending_url_5 + '/');
const res = await fetch('http://www.iwansell.com/api/trending/' + this.props.campus_id + '/' + this.trending_url_5 + '/');
const trendList_5 = await res.json();
this.setState({
trendList_5
Expand All @@ -100,7 +100,7 @@ export default class Trending extends React.Component {
}

setMedia(media_name){
this.state.media = 'http://165.22.140.170:8000' + media_name
this.state.media = 'http://www.iwansell.com' + media_name
}


Expand Down
Loading

0 comments on commit ef8146c

Please sign in to comment.