docs: 📝 Create readme and add license

This commit is contained in:
Louis Gallet 2023-07-06 19:04:09 +02:00
parent aad0425f5f
commit c161af6c75
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY
2 changed files with 66 additions and 0 deletions

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) [2023] [Louis Galet]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

45
README.md Normal file
View File

@ -0,0 +1,45 @@
# ShortMenu
ShortMenu is a macOS application built with SwiftUI that allows users to shorten URLs. It provides a convenient way to generate shorter, more manageable links for sharing.
## Features
- Shorten URLs: Enter a long URL and click the "ShortURL" button to generate a shortened version.
- Define API Key: Click the "Define API Key" button to open a modal window where you can enter your API key. The key will be stored securely in the macOS Keychain.
## Requirements
- macOS 10.15 or later
## Installation
1. Clone the repository:
```
git clone https://gitea.louisgallet.fr/lgallet/short-menu.git
```
2. Open the project in Xcode.
3. Build and run the project in Xcode.
## Usage
1. Launch the ShortMenu application.
2. Copy the long URL you want to shorten.
3. Click the "ShortURL" button to shorten a URL.
4. If you haven't defined an API key yet, click the "Define API Key" button. Enter your API key in the provided text field and click "Save".
5. Paste the long URL everywhere you want to share it.
## License
[MIT License](LICENSE)
## Acknowledgements
ShortMenu is built using SwiftUI and makes use of the [Short.io API](https://short.io) API for URL shortening.
## Contributing
Contributions are welcome! If you have any suggestions or feature requests, please open an issue or submit a pull request.