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 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
|
||||
|
||||
|
@ -45,7 +45,7 @@ class Category extends Component {
|
||||
componentDidMount() {
|
||||
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}))
|
||||
}
|
||||
render() {
|
||||
@ -74,7 +74,7 @@ class Category extends Component {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>{
|
||||
<div>{
|
||||
this.state.cat.items
|
||||
.map(item => <Item key={item.uid} {...item}/>)
|
||||
}</div>
|
||||
@ -83,7 +83,7 @@ class Category extends Component {
|
||||
.Item {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
.category-info {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
@ -102,9 +102,9 @@ class Category extends Component {
|
||||
|
||||
.text-button::before {content: "[";}
|
||||
.text-button::after {content: "]";}
|
||||
|
||||
|
||||
.text-button > a:visited {color: #008ACE;}
|
||||
h1 > a:visited {color: #008ACE;}
|
||||
h1 > a:visited {color: #008ACE;}
|
||||
|
||||
.category-info .group {
|
||||
font-size: 60%;
|
||||
|
@ -14,7 +14,7 @@ class Home extends Component {
|
||||
this.setState({ categories: [] });
|
||||
}
|
||||
componentDidMount() {
|
||||
fetchData('http://localhost:8080/haskell/api/all-categories')
|
||||
fetchData('http://localhost:3080/haskell/api/all-categories')
|
||||
.then(data => this.setState({categories: data}))
|
||||
}
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user