diff --git a/README.md b/README.md index fbea216..249f103 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ - Easy [ShareX](https://github.com/ShareX/ShareX) integration - Dockerizable -## Webinterface +## [Webinterface](https://s.b0n.pl)  @@ -26,7 +26,6 @@  - ## Documenation - [Installation](https://github.com/maxibanki/golang-url-shortener/wiki/Installation) @@ -34,24 +33,13 @@ - [Setting up OAuth](https://github.com/maxibanki/golang-url-shortener/wiki/Setting-up-OAuth) - [ShareX Usage](https://github.com/maxibanki/golang-url-shortener/wiki/ShareX) -## Clients - -### General - -In general the `POST` endpoints can be called, by using one of the following techniques: - -- application/json -- application/x-www-form-urlencoded -- multipart/form-data - -For all the endpoints which are on `/api/v1/protected` there is the `Authorization` header required. - ## Why did you built this -Just only because I want to extend my current self hosted URL shorter with some features and learn about new techniques like: +Just only because I want to extend my current self hosted URL shorter (which was really messy code) with some more features and learn about new techniques like: - Golang unit testing - React - Makefiles - Travis CI - Key / Value databases +- Dockerfile and Docker Image Creation diff --git a/static/package.json b/static/package.json index 508b472..af8caea 100644 --- a/static/package.json +++ b/static/package.json @@ -16,6 +16,7 @@ "react-dom": "^16.1.1", "react-prism": "^4.3.1", "react-qr-svg": "^2.1.0", + "react-responsive": "^4.0.0", "react-router": "^4.2.0", "react-router-dom": "^4.2.2", "react-scripts": "1.0.17", diff --git a/static/src/Home/Home.js b/static/src/Home/Home.js index d2c0242..8e20457 100644 --- a/static/src/Home/Home.js +++ b/static/src/Home/Home.js @@ -2,6 +2,7 @@ import React, { Component } from 'react' import { Input, Segment, Form, Header, Card, Button, Select, Icon } from 'semantic-ui-react' import DatePicker from 'react-datepicker'; import moment from 'moment'; +import MediaQuery from 'react-responsive'; import 'react-datepicker/dist/react-datepicker.css'; import CustomCard from '../Card/Card' @@ -76,10 +77,17 @@ export default class HomeComponent extends Component {