Compare commits

..

No commits in common. "9529f5d17b5d042d5b253516a984c4868c6aaba6" and "5cc1830e2b446094eefd21759cd94b4a103f7c4a" have entirely different histories.

6 changed files with 3 additions and 42 deletions

1
.gitignore vendored
View File

@ -13,7 +13,6 @@
# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local

View File

@ -25,28 +25,4 @@ npm run build
The development server will start on `http://localhost:3000`
Get css docs here https://materializecss.com/
Default .htaccess file
```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
```
env variables
```
REACT_APP_SITE_URL=SITEURL
REACT_APP_API_ADDRESS=ADDRESS
REACT_APP_API_KEY=APIKEY
```
Get css docs here https://materializecss.com/

View File

@ -1,3 +0,0 @@
REACT_APP_SITE_URL=SITEURL
REACT_APP_API_ADDRESS=ADDRESS
REACT_APP_API_KEY=APIKEY

View File

@ -1,11 +0,0 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>

View File

@ -3,5 +3,5 @@ import axios from "axios";
// Axios create, exporting callAPI
export const callAPI = axios.create({
baseURL: process.env.REACT_APP_API_ADDRESS,
baseURL: "https://devapi.benjamyn.love/migrations/",
});

View File

@ -9,7 +9,7 @@ function Msgbox(props) {
<span className="card-title">
{ props.error ? <span> { "Unable to update: " + props.error } </span> : null }
{ props.msg ? <span className="white-text">{ "Updated migration details for: " + props.msg }</span> : null }
{ props.linkid ? <a href={ process.env.REACT_APP_SITE_URL + props.linkid } className="white-link">{process.env.REACT_APP_SITE_URL + props.linkid }</a> : null }
{ props.linkid ? <a href={ "https://devui.benjamyn.love/migrations/" + props.linkid } className="white-link">{"https://devui.benjamyn.love/migrations/" + props.linkid }</a> : null }
</span>
</center>
</div>