Skip to content

Commit

Permalink
polished up the open source part
Browse files Browse the repository at this point in the history
  • Loading branch information
klausbreyer committed Nov 19, 2023
1 parent 9f0ed60 commit 8de0414
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 244 deletions.
2 changes: 0 additions & 2 deletions Makefile

This file was deleted.

21 changes: 21 additions & 0 deletions license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Tim Holman

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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.0.0",
"repository": "git@github.com:klausbreyer/unixtime.app.git",
"author": "Klaus Breyer <kb@v01.io>",
"license": "UNLICENSED",
"license": "MIT",
"devDependencies": {
"@parcel/packager-raw-url": "2.8.3",
"@parcel/transformer-sass": "2.8.3",
Expand Down
37 changes: 31 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
# unixtime.app - Bulk Timestamp Conversion for API developers
## An App for unix timestamp conversion when working with API responses.
# unixtime.app - Bulk Timestamp Conversion for API Developers

A unix epoch timestamp conversion tool to convert and highlight full texts, whole API responses, and lists with timestamps. Everything that looks like a timestamp since a specific year will just be replaced - simple and easy.
Welcome to `unixtime.app`, a dedicated tool designed to streamline the timestamp conversion process for API developers. This application is an ideal solution for converting and highlighting unix epoch timestamps within full texts, complete API responses, and lists containing timestamps.

Configuration Options are available: Chose between milliseconds and seconds and choose the year for the timestamps.
## Key Features

This App works for a list of timestamps, complete API responses, and whatever text you provide.
- **Bulk Conversion**: Effortlessly convert entire texts, API responses, and lists with timestamps.
- **Automatic Detection**: The app identifies and converts anything that resembles a unix timestamp since a specific year.
- **Simple Replacement**: Timestamps are replaced directly in the text, offering a seamless conversion experience.

Feedback is welcome..
## Configuration Options

- **Epoch Format**: Choose between milliseconds and seconds for timestamp representation.
- **Year Threshold**: Specify the starting year for recognizing timestamps.

## Use Cases

- **API Response Handling**: Perfect for developers working with APIs that return timestamps.
- **Timestamp Lists**: Convert lists of timestamps with ease.
- **Text Processing**: Useful for processing any text that includes unix timestamps.

## Getting Started

To contribute to the development of `unixtime.app`, follow these steps:

```bash
yarn install
yarn start
```

Your contributions and feedback are highly appreciated as we continually strive to improve this tool.

---

We hope `unixtime.app` enhances your development workflow and makes handling unix timestamps a breeze!
43 changes: 39 additions & 4 deletions src/header.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
<header>
<nav>
<a href="/" id="logo">unixtime.app</a>
<a href="https://www.v01.io/categories/unixtime.app/"
target="_blank">About</a><a
href="https://github.com/klausbreyer/unixtime.app"
target="_blank">Contribute</a>
<a href="https://www.v01.io/categories/unixtime.app/" target="_blank">About</a><a href="https://github.com/klausbreyer/unixtime.app" target="_blank">Contribute</a>
<p>&copy;<a href="https://v01.io" target="_blank">Klaus Breyer</a></p>
</nav>
<a href="https://your-url" class="github-corner" aria-label="View source on GitHub"><svg width="70" height="70" viewBox="0 0 250 250" style="fill:#FD6C6C; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg></a>
<style>
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
}

@keyframes octocat-wave {

0%,
100% {
transform: rotate(0)
}

20%,
60% {
transform: rotate(-25deg)
}

40%,
80% {
transform: rotate(10deg)
}
}

@media (max-width:500px) {
.github-corner:hover .octo-arm {
animation: none
}

.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
}
</style>
</header>
Loading

0 comments on commit 8de0414

Please sign in to comment.