mirror of
https://github.com/aelve/guide.git
synced 2024-12-22 20:31:31 +03:00
Change port of React
app to 3080
PureScript app is running on `8080` now
This commit is contained in:
parent
be77f89d07
commit
c823ca780b
@ -22,7 +22,7 @@ The `config.json` file contains the config (it will be created at the 1st start)
|
|||||||
$ stack build
|
$ stack build
|
||||||
$ stack exec guide
|
$ stack exec guide
|
||||||
|
|
||||||
And go to <http://localhost:8080>. The status page is available at <http://localhost:5050>; the admin page, at <http://localhost:8080/admin>.
|
And go to <http://localhost:3080>. The status page is available at <http://localhost:5050>; the admin page, at <http://localhost:3080/admin>.
|
||||||
|
|
||||||
# How to install on a server
|
# How to install on a server
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ class Category extends Component {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const uid = extractUid(this.props.match.params.uid);
|
const uid = extractUid(this.props.match.params.uid);
|
||||||
|
|
||||||
fetchData('http://localhost:8080/haskell/api/category/'+uid)
|
fetchData('http://localhost:3080/haskell/api/category/'+uid)
|
||||||
.then((data : T.Cat) => this.setState({cat: data}))
|
.then((data : T.Cat) => this.setState({cat: data}))
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
@ -74,7 +74,7 @@ class Category extends Component {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>{
|
<div>{
|
||||||
this.state.cat.items
|
this.state.cat.items
|
||||||
.map(item => <Item key={item.uid} {...item}/>)
|
.map(item => <Item key={item.uid} {...item}/>)
|
||||||
}</div>
|
}</div>
|
||||||
@ -83,7 +83,7 @@ class Category extends Component {
|
|||||||
.Item {
|
.Item {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-info {
|
.category-info {
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -102,9 +102,9 @@ class Category extends Component {
|
|||||||
|
|
||||||
.text-button::before {content: "[";}
|
.text-button::before {content: "[";}
|
||||||
.text-button::after {content: "]";}
|
.text-button::after {content: "]";}
|
||||||
|
|
||||||
.text-button > a:visited {color: #008ACE;}
|
.text-button > a:visited {color: #008ACE;}
|
||||||
h1 > a:visited {color: #008ACE;}
|
h1 > a:visited {color: #008ACE;}
|
||||||
|
|
||||||
.category-info .group {
|
.category-info .group {
|
||||||
font-size: 60%;
|
font-size: 60%;
|
||||||
|
@ -14,7 +14,7 @@ class Home extends Component {
|
|||||||
this.setState({ categories: [] });
|
this.setState({ categories: [] });
|
||||||
}
|
}
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
fetchData('http://localhost:8080/haskell/api/all-categories')
|
fetchData('http://localhost:3080/haskell/api/all-categories')
|
||||||
.then(data => this.setState({categories: data}))
|
.then(data => this.setState({categories: data}))
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user